In [ ]:
. ./nbs_header.ps1
. ./core.ps1
In [ ]:
{ pwsh ../apps/builder/build.ps1 } | Invoke-Block
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ # DibParser (Polyglot)                                                       │
╰──────────────────────────────────────────────────────────────────────────────╯

── fsharp ──────────────────────────────────────────────────────────────────────
#r 
@"../../../../../../../.nuget/packages/fsharp.control.asyncseq/3.2.1/lib/netstan
dard2.1/FSharp.Control.AsyncSeq.dll"
#r 
@"../../../../../../../.nuget/packages/system.reactive/6.0.1-preview.1/lib/net6.
0/System.Reactive.dll"
#r 
@"../../../../../../../.nuget/packages/system.reactive.linq/6.0.1-preview.1/lib/
netstandard2.0/System.Reactive.Linq.dll"
#r 
@"../../../../../../../.nuget/packages/argu/6.2.4/lib/netstandard2.0/Argu.dll"
#r 
@"../../../../../../../.nuget/packages/fparsec/2.0.0-beta2/lib/netstandard2.1/FP
arsec.dll"
#r 
@"../../../../../../../.nuget/packages/fparsec/2.0.0-beta2/lib/netstandard2.1/FP
arsecCS.dll"

── pwsh ────────────────────────────────────────────────────────────────────────
ls ~/.nuget/packages/argu

╭─[ 485.17ms - stdout ]────────────────────────────────────────────────────────╮
│                                                                              │
│     Directory: C:\Users\i574n\.nuget\packages\argu                           │
│                                                                              │
│ Mode                 LastWriteTime         Length[     │
│ 32;1m Name                                                                 │
│ ----                 -------------         ------ [      │
│ 32;1m----                                                                  │
│ d----          2023-05-17  4:38 PM                6.1.1               │
│ d----          2024-03-12  9:22 PM                6.1.4               │
│ d----          2024-01-29  6:12 PM                6.1.5               │
│ d----          2024-03-12  9:20 PM                6.2.0               │
│ d----          2024-02-23  7:50 PM                6.2.1               │
│ d----          2024-03-12  9:15 PM                6.2.2               │
│ d----          2024-05-14  9:20 PM                6.2.3               │
│ d----          2024-06-06  8:37 PM                6.2.4               │
│                                                                              │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯

── fsharp ──────────────────────────────────────────────────────────────────────
#if !INTERACTIVE
open Lib
#endif

── fsharp ──────────────────────────────────────────────────────────────────────
open Common
open FParsec
open SpiralFileSystem.Operators

── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## escapeCell (test)                                                         │
╰──────────────────────────────────────────────────────────────────────────────╯

── fsharp ──────────────────────────────────────────────────────────────────────
//// test

let inline escapeCell input =
    input
    |> SpiralSm.split "\n"
    |> Array.map (function
        | line when line |> SpiralSm.starts_with "\\#!" || line |> 
SpiralSm.starts_with "\\#r" ->
            System.Text.RegularExpressions.Regex.Replace (line, "^\\\\#", "#")
        | line -> line
    )
    |> SpiralSm.concat "\n"

── fsharp ──────────────────────────────────────────────────────────────────────
//// test

$"a{nl}\\#!magic{nl}b{nl}"
|> escapeCell
|> _assertEqual (
    $"a{nl}#!magic{nl}b{nl}"
)

╭─[ 68.83ms - stdout ]─────────────────────────────────────────────────────────╮
│ "a                                                                           │
│ #!magic                                                                      │
│ b                                                                            │
│ "                                                                            │
│                                                                              │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯

── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## magicMarker                                                               │
╰──────────────────────────────────────────────────────────────────────────────╯

── fsharp ──────────────────────────────────────────────────────────────────────
let magicMarker : Parser<string, unit> = pstring "#!"

── fsharp ──────────────────────────────────────────────────────────────────────
//// test

"#!magic"
|> run magicMarker
|> _assertEqual (
    Success ("#!", (), Position ("", 2, 1, 3))
)

╭─[ 42.09ms - stdout ]─────────────────────────────────────────────────────────╮
│ Success: "#!"                                                                │
│                                                                              │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯

── fsharp ──────────────────────────────────────────────────────────────────────
//// test

"##!magic"
|> run magicMarker
|> _assertEqual (
    Failure (
        $"Error in Ln: 1 Col: 1{nl}##!magic{nl}^{nl}Expecting: '#!'{nl}",
        ParserError (
            Position ("", 0, 1, 1),
            (),
            ErrorMessageList (ExpectedString "#!")
        ),
        ()
    )
)

╭─[ 47.12ms - stdout ]─────────────────────────────────────────────────────────╮
│ Failure:                                                                     │
│ Error in Ln: 1 Col: 1                                                        │
│ ##!magic                                                                     │
│ ^                                                                            │
│ Expecting: '#!'                                                              │
│                                                                              │
│                                                                              │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯

── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## magicCommand                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯

── fsharp ──────────────────────────────────────────────────────────────────────
let magicCommand =
    magicMarker
    >>. manyTill anyChar newline
    |>> (System.String.Concat >> SpiralSm.trim)

── fsharp ──────────────────────────────────────────────────────────────────────
//// test

"#!magic

a"
|> run magicCommand
|> _assertEqual (
    Success ("magic", (), Position ("", 8, 2, 1))
)

╭─[ 33.37ms - stdout ]─────────────────────────────────────────────────────────╮
│ Success: "magic"                                                             │
│                                                                              │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯

── fsharp ──────────────────────────────────────────────────────────────────────
//// test

" #!magic

a"
|> run magicCommand
|> _assertEqual (
    Failure (
        $"Error in Ln: 1 Col: 1{nl} #!magic{nl}^{nl}Expecting: '#!'{nl}",
        ParserError (
            Position ("", 0, 1, 1),
            (),
            ErrorMessageList (ExpectedString "#!")
        ),
        ()
    )
)

╭─[ 30.93ms - stdout ]─────────────────────────────────────────────────────────╮
│ Failure:                                                                     │
│ Error in Ln: 1 Col: 1                                                        │
│  #!magic                                                                     │
│ ^                                                                            │
│ Expecting: '#!'                                                              │
│                                                                              │
│                                                                              │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯

── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## content                                                                   │
╰──────────────────────────────────────────────────────────────────────────────╯

── fsharp ──────────────────────────────────────────────────────────────────────
let content =
    (newline >>. magicMarker) <|> (eof >>. preturn "")
    |> attempt
    |> lookAhead
    |> manyTill anyChar
    |>> (System.String.Concat >> SpiralSm.trim)

── fsharp ──────────────────────────────────────────────────────────────────────
//// test

"#!magic


a


"
|> run content
|> _assertEqual (
    Success ("#!magic


a", (), Position ("", 14, 7, 1))
)

╭─[ 29.58ms - stdout ]─────────────────────────────────────────────────────────╮
│ Success: "#!magic                                                            │
│                                                                              │
│                                                                              │
│ a"                                                                           │
│                                                                              │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯

── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## Output                                                                    │
╰──────────────────────────────────────────────────────────────────────────────╯

── fsharp ──────────────────────────────────────────────────────────────────────
type Output =
    | Fs
    | Md
    | Spi
    | Spir

── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## Magic                                                                     │
╰──────────────────────────────────────────────────────────────────────────────╯

── fsharp ──────────────────────────────────────────────────────────────────────
type Magic =
    | Fsharp
    | Markdown
    | Spiral of Output
    | Magic of string

── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## kernelOutputs                                                             │
╰──────────────────────────────────────────────────────────────────────────────╯

── fsharp ──────────────────────────────────────────────────────────────────────
let inline kernelOutputs magic =
    match magic with
    | Fsharp -> [[ Fs ]]
    | Markdown -> [[ Md ]]
    | Spiral output -> [[ output ]]
    | _ -> [[]]

── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## Block                                                                     │
╰──────────────────────────────────────────────────────────────────────────────╯

── fsharp ──────────────────────────────────────────────────────────────────────
type Block =
    {
        magic : Magic
        content : string
    }

── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## block                                                                     │
╰──────────────────────────────────────────────────────────────────────────────╯

── fsharp ──────────────────────────────────────────────────────────────────────
let block =
    pipe2
        magicCommand
        content
        (fun magic content ->
            let magic, content =
                match magic with
                | "fsharp" -> Fsharp, content
                | "markdown" -> Markdown, content
                | "spiral" ->
                    let output = if content |> SpiralSm.contains "//// real\n" 
then Spir else Spi
                    let content =
                        if output = Spi
                        then content
                        else
                            content
                            |> SpiralSm.replace "//// real\n\n" ""
                            |> SpiralSm.replace "//// real\n" ""
                    Spiral output, content
                | magic -> magic |> Magic, content
            {
                magic = magic
                content = content
            })

── fsharp ──────────────────────────────────────────────────────────────────────
//// test

"#!magic


a


"
|> run block
|> _assertEqual (
    Success (
        { magic = Magic "magic"; content = "a" },
        (),
        Position ("", 14, 7, 1)
    )
)

╭─[ 42.01ms - stdout ]─────────────────────────────────────────────────────────╮
│ Success: { magic = Magic "magic"                                             │
│   content = "a" }                                                            │
│                                                                              │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯

── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## blocks                                                                    │
╰──────────────────────────────────────────────────────────────────────────────╯

── fsharp ──────────────────────────────────────────────────────────────────────
let blocks =
    skipMany newline
    >>. sepEndBy block (skipMany1 newline)

── fsharp ──────────────────────────────────────────────────────────────────────
//// test


"#!magic1

a

\#!magic2

b

"
|> escapeCell
|> run blocks
|> _assertEqual (
    Success (
        [[
            { magic = Magic "magic1"; content = "a" }
            { magic = Magic "magic2"; content = "b" }
        ]],
        (),
        Position ("", 26, 9, 1)
    )
)

╭─[ 42.93ms - stdout ]─────────────────────────────────────────────────────────╮
│ Success: [{ magic = Magic "magic1"                                           │
│    content = "a" }; { magic = Magic "magic2"                                 │
│                       content = "b" }]                                       │
│                                                                              │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯

── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## formatBlock                                                               │
╰──────────────────────────────────────────────────────────────────────────────╯

── fsharp ──────────────────────────────────────────────────────────────────────
let inline formatBlock output (block : Block) =
    match output, block with
    | output, { magic = Markdown; content = content } ->
        let markdownComment =
            match output with
            | Spi | Spir -> "/// "
            | Fs -> "/// "
            | _ -> ""
        content
        |> SpiralSm.split "\n"
        |> Array.map (SpiralSm.trim_end [[||]])
        |> Array.filter (SpiralSm.ends_with " (test)" >> not)
        |> Array.map (function
            | "" -> markdownComment
            | line -> System.Text.RegularExpressions.Regex.Replace (line, 
"^\\s*", $"$&{markdownComment}")
        )
        |> SpiralSm.concat "\n"
    | Fs, { magic = Fsharp; content = content } ->
        let trimmedContent = content |> SpiralSm.trim
        if trimmedContent |> SpiralSm.contains "//// test\n"
            || trimmedContent |> SpiralSm.contains "//// ignore\n"
        then ""
        else
            content
            |> SpiralSm.split "\n"
            |> Array.filter (SpiralSm.trim_start [[||]] >> SpiralSm.starts_with 
"#r" >> not)
            |> SpiralSm.concat "\n"
    | (Spi | Spir), { magic = Spiral output'; content = content } when output' =
output ->
        let trimmedContent = content |> SpiralSm.trim
        if trimmedContent |> SpiralSm.contains "//// test\n"
            || trimmedContent |> SpiralSm.contains "//// ignore\n"
        then ""
        else content
    | _ -> ""

── fsharp ──────────────────────────────────────────────────────────────────────
//// test

"#!markdown


a

    b

c


\#!markdown


c


\#!fsharp


let a = 1"
|> escapeCell
|> run block
|> function
    | Success (block, _, _) -> formatBlock Fs block
    | Failure (msg, _, _) -> failwith msg
|> _assertEqual "/// a
/// 
    /// b
/// 
/// c"

╭─[ 50.49ms - stdout ]─────────────────────────────────────────────────────────╮
│ "/// a                                                                       │
│ ///                                                                          │
│     /// b                                                                    │
│ ///                                                                          │
│ /// c"                                                                       │
│                                                                              │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯

── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## formatBlocks                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯

── fsharp ──────────────────────────────────────────────────────────────────────
let inline formatBlocks output blocks =
    blocks
    |> List.map (fun block ->
        block, formatBlock output block
    )
    |> List.filter (snd >> (<>) "")
    |> fun list ->
        (list, (None, [[]]))
        ||> List.foldBack (fun (block, content) (lastMagic, acc) ->
            let lineBreak =
                if block.magic = Markdown && lastMagic <> Some Markdown && 
lastMagic <> None
                then ""
                else "\n"
            Some block.magic, $"{content}{lineBreak}" :: acc
        )
    |> snd
    |> SpiralSm.concat "\n"

── fsharp ──────────────────────────────────────────────────────────────────────
//// test

"#!markdown


a

b


\#!markdown


c


\#!fsharp


let a = 1

\#!markdown

d (test)

\#!fsharp

//// test

let a = 2

\#!markdown

e

\#!fsharp

let a = 3"
|> escapeCell
|> run blocks
|> function
    | Success (blocks, _, _) -> formatBlocks Fs blocks
    | Failure (msg, _, _) -> failwith msg
|> _assertEqual "/// a
/// 
/// b

/// c
let a = 1

/// e
let a = 3
"

╭─[ 62.39ms - stdout ]─────────────────────────────────────────────────────────╮
│ "/// a                                                                       │
│ ///                                                                          │
│ /// b                                                                        │
│                                                                              │
│ /// c                                                                        │
│ let a = 1                                                                    │
│                                                                              │
│ /// e                                                                        │
│ let a = 3                                                                    │
│ "                                                                            │
│                                                                              │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯

── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## parse                                                                     │
╰──────────────────────────────────────────────────────────────────────────────╯

── fsharp ──────────────────────────────────────────────────────────────────────
let inline parse output input =
    match run blocks input with
    | Success (blocks, _, _) ->
        let blocks =
            blocks
            |> List.filter (fun block ->
                block.magic |> kernelOutputs |> List.contains output || 
block.magic = Markdown
            )

        match blocks with
        | { magic = Markdown; content = content } :: _
            when output = Fs
            && content |> SpiralSm.starts_with "# "
            && content |> SpiralSm.ends_with ")"
            ->
            let inline indentBlock (block : Block) =
                { block with
                    content =
                        block.content
                        |> SpiralSm.split "\n"
                        |> Array.fold
                            (fun (lines, isMultiline) line ->
                                let trimmedLine = line |> SpiralSm.trim
                                if trimmedLine = ""
                                then "" :: lines, isMultiline
                                else
                                    let inline singleQuoteLine () =
                                        trimmedLine |> Seq.sumBy ((=) '"' >> 
System.Convert.ToInt32) = 1
                                        && trimmedLine |> SpiralSm.contains 
@"'""'" |> not
                                        && trimmedLine |> SpiralSm.ends_with "{"
|> not
                                        && trimmedLine |> SpiralSm.ends_with 
"{|" |> not
                                        && trimmedLine |> SpiralSm.starts_with 
"}" |> not
                                        && trimmedLine |> SpiralSm.starts_with 
"|}" |> not

                                    match isMultiline, trimmedLine |> 
SpiralSm.split_string [[| $"{q}{q}{q}" |]] with
                                    | false, [[| _; _ |]] ->
                                        $"    {line}" :: lines, true

                                    | true, [[| _; _ |]] ->
                                        line :: lines, false

                                    | false, _ when singleQuoteLine () ->
                                        $"    {line}" :: lines, true

                                    | false, _ when line |> SpiralSm.starts_with
"#" && block.magic = Fsharp ->
                                        line :: lines, false

                                    | false, _ ->
                                        $"    {line}" :: lines, false

                                    | true, _ when singleQuoteLine () && line |>
SpiralSm.starts_with "    " ->
                                        $"    {line}" :: lines, false

                                    | true, _ when singleQuoteLine () ->
                                        line :: lines, false

                                    | true, _ ->
                                        line :: lines, true
                            )
                            ([[]], false)
                        |> fst
                        |> List.rev
                        |> SpiralSm.concat "\n"
                }

            let moduleName, namespaceName =
                System.Text.RegularExpressions.Regex.Match (content, @"# (.*) 
\((.*)\)$")
                |> fun m -> m.Groups.[[1]].Value, m.Groups.[[2]].Value

            let moduleBlock =
                {
                    magic = Fsharp
                    content =
                        $"#if !INTERACTIVE
namespace {namespaceName}
#endif

module {moduleName} ="
                }

            blocks
            |> List.indexed
            |> List.fold
                (fun blocks (index, block) ->
                    match index with
                    | 0 -> blocks
                    | 1 -> indentBlock block :: moduleBlock :: blocks
                    | _ -> indentBlock block :: blocks
                )
                [[]]
            |> List.rev
        | _ -> blocks
        |> Result.Ok
    | Failure (errorMsg, _, _) -> Result.Error errorMsg

── fsharp ──────────────────────────────────────────────────────────────────────
//// test

let example1 =
    $"""#!meta

{{"kernelInfo":{{"defaultKernelName":"fsharp","items":[[{{"aliases":[[]],"name":
"fsharp"}},{{"aliases":[[]],"name":"fsharp"}}]]}}}}

\#!markdown

# TestModule (TestNamespace)

\#!fsharp

\#!import file.dib

\#!fsharp

\#r "nuget:Expecto"

\#!markdown

## ParserLibrary

\#!fsharp

open System

\#!markdown

## x (test)

\#!fsharp

//// ignore

let x = 1

\#!spiral

//// test

inl x = 1i32

\#!spiral

//// real

inl x = 2i32

\#!spiral

inl x = 3i32

\#!markdown

### TextInput

\#!fsharp

let str1 = "abc
def"

let str2 =
    "abc\
def"

let str3 =
    $"1{{
        1
    }}1"

let str4 =
    $"1{{({{|
        a = 1
    |}}).a}}1"

let str5 =
    "abc \
        def"

let x =
    match '"' with
    | '"' -> true
    | _ -> false

let long1 = {q}{q}{q}a{q}{q}{q}

let long2 =
    {q}{q}{q}
a
{q}{q}{q}

\#!fsharp

type Position =
    {{
#if INTERACTIVE
        line : string
#else
        line : int
#endif
        column : int
    }}"""
    |> escapeCell

── fsharp ──────────────────────────────────────────────────────────────────────
//// test

example1
|> parse Fs
|> Result.toOption
|> Option.get
|> (formatBlocks Fs)
|> _assertEqual $"""#if !INTERACTIVE
namespace TestNamespace
#endif

module TestModule =

    /// ## ParserLibrary
    open System

    /// ### TextInput
    let str1 = "abc
def"

    let str2 =
        "abc\
def"

    let str3 =
        $"1{{
            1
        }}1"

    let str4 =
        $"1{{({{|
            a = 1
        |}}).a}}1"

    let str5 =
        "abc \
            def"

    let x =
        match '"' with
        | '"' -> true
        | _ -> false

    let long1 = {q}{q}{q}a{q}{q}{q}

    let long2 =
        {q}{q}{q}
a
{q}{q}{q}

    type Position =
        {{
#if INTERACTIVE
            line : string
#else
            line : int
#endif
            column : int
        }}
"""

╭─[ 149.33ms - stdout ]────────────────────────────────────────────────────────╮
│ "#if !INTERACTIVE                                                            │
│ namespace TestNamespace                                                      │
│ #endif                                                                       │
│                                                                              │
│ module TestModule =                                                          │
│                                                                              │
│     /// ## ParserLibrary                                                     │
│     open System                                                              │
│                                                                              │
│     /// ### TextInput                                                        │
│     let str1 = "abc                                                          │
│ def"                                                                         │
│                                                                              │
│     let str2 =                                                               │
│         "abc\                                                                │
│ def"                                                                         │
│                                                                              │
│     let str3 =                                                               │
│         $"1{                                                                 │
│             1                                                                │
│         }1"                                                                  │
│                                                                              │
│     let str4 =                                                               │
│         $"1{({|                                                              │
│             a = 1                                                            │
│         |}).a}1"                                                             │
│                                                                              │
│     let str5 =                                                               │
│         "abc \                                                               │
│             def"                                                             │
│                                                                              │
│     let x =                                                                  │
│         match '"' with                                                       │
│         | '"' -> true                                                        │
│         | _ -> false                                                         │
│                                                                              │
│     let long1 = """a"""                                                      │
│                                                                              │
│     let long2 =                                                              │
│         """                                                                  │
│ a                                                                            │
│ """                                                                          │
│                                                                              │
│     type Position =                                                          │
│         {                                                                    │
│ #if INTERACTIVE                                                              │
│             line : string                                                    │
│ #else                                                                        │
│             line : int                                                       │
│ #endif                                                                       │
│             column : int                                                     │
│         }                                                                    │
│ "                                                                            │
│                                                                              │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯

── fsharp ──────────────────────────────────────────────────────────────────────
//// test

example1
|> parse Md
|> Result.toOption
|> Option.get
|> (formatBlocks Md)
|> _assertEqual "# TestModule (TestNamespace)

## ParserLibrary

### TextInput
"

╭─[ 147.90ms - stdout ]────────────────────────────────────────────────────────╮
│ "# TestModule (TestNamespace)                                                │
│                                                                              │
│ ## ParserLibrary                                                             │
│                                                                              │
│ ### TextInput                                                                │
│ "                                                                            │
│                                                                              │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯

── fsharp ──────────────────────────────────────────────────────────────────────
//// test

example1
|> parse Spi
|> Result.toOption
|> Option.get
|> (formatBlocks Spi)
|> _assertEqual "/// # TestModule (TestNamespace)

/// ## ParserLibrary
inl x = 3i32

/// ### TextInput
"

╭─[ 166.90ms - stdout ]────────────────────────────────────────────────────────╮
│ "/// # TestModule (TestNamespace)                                            │
│                                                                              │
│ /// ## ParserLibrary                                                         │
│ inl x = 3i32                                                                 │
│                                                                              │
│ /// ### TextInput                                                            │
│ "                                                                            │
│                                                                              │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯

── fsharp ──────────────────────────────────────────────────────────────────────
//// test

example1
|> parse Spir
|> Result.toOption
|> Option.get
|> (formatBlocks Spir)
|> _assertEqual "/// # TestModule (TestNamespace)

/// ## ParserLibrary
inl x = 2i32

/// ### TextInput
"

╭─[ 154.80ms - stdout ]────────────────────────────────────────────────────────╮
│ "/// # TestModule (TestNamespace)                                            │
│                                                                              │
│ /// ## ParserLibrary                                                         │
│ inl x = 2i32                                                                 │
│                                                                              │
│ /// ### TextInput                                                            │
│ "                                                                            │
│                                                                              │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯

── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## parseDibCode                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯

── fsharp ──────────────────────────────────────────────────────────────────────
let inline parseDibCode output file = async {
    trace Debug
        (fun () -> "parseDibCode")
        (fun () -> $"output: {output} / file: {file} / {_locals ()}")
    let! input = file |> SpiralFileSystem.read_all_text_async
    match parse output input with
    | Result.Ok blocks -> return blocks |> formatBlocks output
    | Result.Error msg -> return failwith msg
}

── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## writeDibCode                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯

── fsharp ──────────────────────────────────────────────────────────────────────
let inline writeDibCode output path = async {
    trace Debug
        (fun () -> "writeDibCode")
        (fun () -> $"output: {output} / path: {path} / {_locals ()}")
    let! result = parseDibCode output path
    let pathDir = path |> System.IO.Path.GetDirectoryName
    let fileNameWithoutExt =
        match output, path |> System.IO.Path.GetFileNameWithoutExtension with
        | Spir, fileNameWithoutExt -> $"real_{fileNameWithoutExt}"
        | _, fileNameWithoutExt -> fileNameWithoutExt
    let outputPath = pathDir </> $"{fileNameWithoutExt}.{output |> string |> 
SpiralSm.to_lower}"
    do! result |> SpiralFileSystem.write_all_text_async outputPath
}

── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## Arguments                                                                 │
╰──────────────────────────────────────────────────────────────────────────────╯

── fsharp ──────────────────────────────────────────────────────────────────────
[[<RequireQualifiedAccess>]]
type Arguments =
    | [[<Argu.ArguAttributes.MainCommand; Argu.ArguAttributes.Mandatory>]]
        File of file : string * Output

    interface Argu.IArgParserTemplate with
        member s.Usage =
            match s with
            | File _ -> nameof File

── fsharp ──────────────────────────────────────────────────────────────────────
//// test

Argu.ArgumentParser.Create<Arguments>().PrintUsage ()

╭─[ 99.65ms - return value ]───────────────────────────────────────────────────╮
│ "USAGE: dotnet-repl [--help] <file> <fs|md|spi|spir>                         │
│                                                                              │
│ FILE:                                                                        │
│                                                                              │
│     <file> <fs|md|spi|spir>                                                  │
│                           File                                               │
│                                                                              │
│ OPTIONS:                                                                     │
│                                                                              │
│     --help                display this list of options.                      │
│ "                                                                            │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯

── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## main                                                                      │
╰──────────────────────────────────────────────────────────────────────────────╯

── fsharp ──────────────────────────────────────────────────────────────────────
let main args =
    let argsMap = args |> Runtime.parseArgsMap<Arguments>

    let files =
        argsMap.[[nameof Arguments.File]]
        |> List.map (function
            | Arguments.File (path, output) -> path, output
        )

    files
    |> List.map (fun (path, output) -> path |> writeDibCode output)
    |> Async.Parallel
    |> Async.Ignore
    |> Async.runWithTimeout 30000
    |> function
        | Some () -> 0
        | None -> 1

── fsharp ──────────────────────────────────────────────────────────────────────
//// test

let args =
    System.Environment.GetEnvironmentVariable "ARGS"
    |> SpiralRuntime.split_args
    |> Result.toArray
    |> Array.collect id

match args with
| [[||]] -> 0
| args -> if main args = 0 then 0 else failwith "main failed"

╭─[ 233.03ms - return value ]──────────────────────────────────────────────────╮
│ <div class="dni-plaintext"><pre>0                                            │
│ </pre></div><style>                                                          │
│ .dni-code-hint {                                                             │
│     font-style: italic;                                                      │
│     overflow: hidden;                                                        │
│     white-space: nowrap;                                                     │
│ }                                                                            │
│ .dni-treeview {                                                              │
│     white-space: nowrap;                                                     │
│ }                                                                            │
│ .dni-treeview td {                                                           │
│     vertical-align: top;                                                     │
│     text-align: start;                                                       │
│ }                                                                            │
│ details.dni-treeview {                                                       │
│     padding-left: 1em;                                                       │
│ }                                                                            │
│ table td {                                                                   │
│     text-align: start;                                                       │
│ }                                                                            │
│ table tr {                                                                   │
│     vertical-align: top;                                                     │
│     margin: 0em 0px;                                                         │
│ }                                                                            │
│ table tr td pre                                                              │
│ {                                                                            │
│     vertical-align: top !important;                                          │
│     margin: 0em 0px !important;                                              │
│ }                                                                            │
│ table th {                                                                   │
│     text-align: start;                                                       │
│ }                                                                            │
│ </style>                                                                     │
╰──────────────────────────────────────────────────────────────────────────────╯

╭─[ 236.72ms - stdout ]────────────────────────────────────────────────────────╮
│ 00:00:05   debug #1 writeDibCode / output: Fs / path: Builder.dib       │
│ 00:00:05   debug #2 parseDibCode / output: Fs / file: Builder.dib       │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯
00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "Builder.dib"])) }
00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/apps/builder/Builder.dib", "--output-path", "c:/home/git/polyglot/apps/builder/Builder.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/apps/builder/Builder.dib" --output-path "c:/home/git/polyglot/apps/builder/Builder.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ # Builder (Polyglot)                                                         │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> #r 
> @"../../../../../../../.nuget/packages/fsharp.control.asyncseq/3.2.1/lib/netstan
> dard2.1/FSharp.Control.AsyncSeq.dll"
> #r 
> @"../../../../../../../.nuget/packages/system.reactive/6.0.1-preview.1/lib/net6.
> 0/System.Reactive.dll"
> #r 
> @"../../../../../../../.nuget/packages/system.reactive.linq/6.0.1-preview.1/lib/
> netstandard2.0/System.Reactive.Linq.dll"
> #r 
> @"../../../../../../../.nuget/packages/argu/6.2.4/lib/netstandard2.0/Argu.dll"
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> #if !INTERACTIVE
> open Lib
> #endif
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> open Common
> open SpiralFileSystem.Operators
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## buildProject                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline buildProject runtime outputDir path = async {
>     let fullPath = path |> System.IO.Path.GetFullPath
>     let fileDir = fullPath |> System.IO.Path.GetDirectoryName
>     let extension = fullPath |> System.IO.Path.GetExtension
> 
>     trace Debug
>         (fun () -> "buildProject")
>         (fun () -> $"fullPath: {fullPath} / {_locals ()}")
> 
>     match extension with
>     | ".fsproj" -> ()
>     | _ -> failwith "Invalid project file"
> 
>     let runtimes =
>         runtime
>         |> Option.map List.singleton
>         |> Option.defaultValue [[ "linux-x64"; "win-x64" ]]
> 
>     let outputDir = outputDir |> Option.defaultValue "dist"
> 
>     return!
>         runtimes
>         |> List.map (fun runtime -> async {
>             let command = $@"dotnet publish ""{path}"" --configuration Release 
> --output ""{outputDir}"" --runtime {runtime}"
>             let! exitCode, _result =
>                 SpiralRuntime.execution_options (fun x ->
>                     { x with
>                         l0 = command
>                         l6 = Some fileDir
>                     }
>                 )
>                 |> SpiralRuntime.execute_with_options_async
>             return exitCode
>         })
>         |> Async.Sequential
>         |> Async.map Array.sum
> }
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## persistCodeProject                                                        │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline persistCodeProject packages modules name hash code = async {
>     trace Debug
>         (fun () -> "persistCodeProject")
>         (fun () -> $"packages: {packages} / modules: {modules} / name: {name} / 
> hash: {hash} / code.Length: {code |> String.length} / {_locals ()}")
> 
>     let workspaceRoot = SpiralFileSystem.get_workspace_root ()
> 
>     let targetDir =
>         let targetDir = workspaceRoot </> "target/Builder" </> name
>         match hash with
>         | Some hash -> targetDir </> "packages" </> hash
>         | None -> targetDir
>     targetDir |> System.IO.Directory.CreateDirectory |> ignore
> 
>     let filePath = targetDir </> $"{name}.fs" |> System.IO.Path.GetFullPath
>     do! code |> SpiralFileSystem.write_all_text_exists filePath
> 
>     let modulesCode =
>         modules
>         |> List.map (fun path -> $"""<Compile Include="{workspaceRoot </> path}"
> />""")
>         |> SpiralSm.concat "\n        "
> 
>     let fsprojPath = targetDir </> $"{name}.fsproj"
>     let fsprojCode = $"""<Project Sdk="Microsoft.NET.Sdk">
>     <PropertyGroup>
>         <TargetFramework>net9.0</TargetFramework>
>         <LangVersion>preview</LangVersion>
>         <RollForward>Major</RollForward>
>         <TargetLatestRuntimePatch>true</TargetLatestRuntimePatch>
>         <PublishAot>false</PublishAot>
>         <PublishTrimmed>false</PublishTrimmed>
>         <PublishSingleFile>true</PublishSingleFile>
>         <SelfContained>true</SelfContained>
>         <Version>0.0.1-alpha.1</Version>
>         <OutputType>Exe</OutputType>
>     </PropertyGroup>
> 
>     <PropertyGroup Condition="$([[MSBuild]]::IsOSPlatform('FreeBSD'))">
>         <DefineConstants>_FREEBSD</DefineConstants>
>     </PropertyGroup>
> 
>     <PropertyGroup Condition="$([[MSBuild]]::IsOSPlatform('Linux'))">
>         <DefineConstants>_LINUX</DefineConstants>
>     </PropertyGroup>
> 
>     <PropertyGroup Condition="$([[MSBuild]]::IsOSPlatform('OSX'))">
>         <DefineConstants>_OSX</DefineConstants>
>     </PropertyGroup>
> 
>     <PropertyGroup Condition="$([[MSBuild]]::IsOSPlatform('Windows'))">
>         <DefineConstants>_WINDOWS</DefineConstants>
>     </PropertyGroup>
> 
>     <ItemGroup>
>         {modulesCode}
>         <Compile Include="{filePath}" />
>     </ItemGroup>
> 
>     <Import Project="{workspaceRoot}/.paket/Paket.Restore.targets" />
> </Project>
> """
>     do! fsprojCode |> SpiralFileSystem.write_all_text_exists fsprojPath
> 
>     let paketReferencesPath = targetDir </> "paket.references"
>     let paketReferencesCode =
>         "FSharp.Core" :: packages
>         |> SpiralSm.concat "\n"
>     do! paketReferencesCode |> SpiralFileSystem.write_all_text_exists 
> paketReferencesPath
> 
>     return fsprojPath
> }
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## buildCode                                                                 │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline buildCode runtime packages modules outputDir name code = async {
>     let! fsprojPath = code |> persistCodeProject packages modules name None
>     let! exitCode = fsprojPath |> buildProject runtime outputDir
>     if exitCode <> 0 then
>         let! fsprojText = fsprojPath |> SpiralFileSystem.read_all_text_async
>         trace Critical
>             (fun () -> "buildCode")
>             (fun () -> $"code: {code |> SpiralSm.ellipsis_end 400} / fsprojText:
> {fsprojText} / {_locals ()}")
>     return exitCode
> }
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> "1 + 1 |> ignore"
> |> buildCode None [[]] [[]] None "test1"
> |> Async.runWithTimeout 180000
> |> _assertEqual (Some 0)
> 
> ╭─[ 12.75s - stdout ]──────────────────────────────────────────────────────────╮
> │ 00:00:02   debug #1 persistCodeProject / packages: [] / modules: [] /   │
> │ name: test1 / hash:  / code.Length: 15                                       │
> │ 00:00:02   debug #2 buildProject / fullPath:                            │
> │ C:\home\git\polyglot\target\Builder\test1\test1.fsproj                       │
> │ 00:00:05   debug #1 runtime.execute_with_options_async / { options = {  │
> │ command = dotnet publish                                                     │
> │ "C:\home\git\polyglot\target/Builder\test1\test1.fsproj" --configuration     │
> │ Release --output "dist" --runtime linux-x64; cancellation_token = None;      │
> │ environment_variables = [||]; on_line = None; stdin = None; trace = true;    │
> │ working_directory = Some "C:\home\git\polyglot\target\Builder\test1" } }     │
> │ 00:00:05 verbose #2 > MSBuild version                                   │
> │ 17.10.0-preview-24101-01+07fd5d51f for .NET                                  │
> │ 00:00:06 verbose #3 >   Determining projects to restore...              │
> │ 00:00:10 verbose #4 >   Restored                                        │
> │ C:\home\git\polyglot\target\Builder\test1\test1.fsproj (in 4.12 sec).        │
> │ 00:00:10 verbose #5 >                                                   │
> │ C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.2 │
> │ 4101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInferen │
> │ ce.targets(313,5): message NETSDK1057: You are using a preview version of    │
> │ .NET. See: https://aka.ms/dotnet-support-policy [                            │
> │ C:\home\git\polyglot\target\Builder\test1\test1.fsproj]                      │
> │ 00:00:11 verbose #6 >   test1 ->                                        │
> │ C:\home\git\polyglot\target\Builder\test1\bin\Release\net9.0\linux-x64\test1 │
> │ .dll                                                                         │
> │ 00:00:12 verbose #7 >   test1 ->                                        │
> │ C:\home\git\polyglot\target\Builder\test1\dist\                              │
> │ 00:00:13   debug #8 runtime.execute_with_options_async / { exit_code =  │
> │ 0; output_length = 659 }                                                     │
> │ 00:00:13   debug #9 runtime.execute_with_options_async / { options = {  │
> │ command = dotnet publish                                                     │
> │ "C:\home\git\polyglot\target/Builder\test1\test1.fsproj" --configuration     │
> │ Release --output "dist" --runtime win-x64; cancellation_token = None;        │
> │ environment_variables = [||]; on_line = None; stdin = None; trace = true;    │
> │ working_directory = Some "C:\home\git\polyglot\target\Builder\test1" } }     │
> │ 00:00:13 verbose #10 > MSBuild version                                  │
> │ 17.10.0-preview-24101-01+07fd5d51f for .NET                                  │
> │ 00:00:13 verbose #11 >   Determining projects to restore...             │
> │ 00:00:14 verbose #12 >   Restored                                       │
> │ C:\home\git\polyglot\target\Builder\test1\test1.fsproj (in 316 ms).          │
> │ 00:00:14 verbose #13 >                                                  │
> │ C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.2 │
> │ 4101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInferen │
> │ ce.targets(313,5): message NETSDK1057: You are using a preview version of    │
> │ .NET. See: https://aka.ms/dotnet-support-policy [                            │
> │ C:\home\git\polyglot\target\Builder\test1\test1.fsproj]                      │
> │ 00:00:15 verbose #14 >   test1 ->                                       │
> │ C:\home\git\polyglot\target\Builder\test1\bin\Release\net9.0\win-x64\test1.d │
> │ ll                                                                           │
> │ 00:00:17 verbose #15 >   test1 ->                                       │
> │ C:\home\git\polyglot\target\Builder\test1\dist\                              │
> │ 00:00:17   debug #16 runtime.execute_with_options_async / { exit_code = │
> │ 0; output_length = 655 }                                                     │
> │ Some 0                                                                       │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> "1 + a |> ignore"
> |> buildCode None [[]] [[]] None "test2"
> |> Async.runWithTimeout 180000
> |> _assertEqual (Some 2)
> 
> ╭─[ 6.32s - stdout ]───────────────────────────────────────────────────────────╮
> │ 00:00:15   debug #3 persistCodeProject / packages: [] / modules: [] /   │
> │ name: test2 / hash:  / code.Length: 15                                       │
> │ 00:00:15   debug #4 buildProject / fullPath:                            │
> │ C:\home\git\polyglot\target\Builder\test2\test2.fsproj                       │
> │ 00:00:18   debug #17 runtime.execute_with_options_async / { options = { │
> │ command = dotnet publish                                                     │
> │ "C:\home\git\polyglot\target/Builder\test2\test2.fsproj" --configuration     │
> │ Release --output "dist" --runtime linux-x64; cancellation_token = None;      │
> │ environment_variables = [||]; on_line = None; stdin = None; trace = true;    │
> │ working_directory = Some "C:\home\git\polyglot\target\Builder\test2" } }     │
> │ 00:00:18 verbose #18 > MSBuild version                                  │
> │ 17.10.0-preview-24101-01+07fd5d51f for .NET                                  │
> │ 00:00:18 verbose #19 >   Determining projects to restore...             │
> │ 00:00:19 verbose #20 >   Restored                                       │
> │ C:\home\git\polyglot\target\Builder\test2\test2.fsproj (in 330 ms).          │
> │ 00:00:19 verbose #21 >                                                  │
> │ C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.2 │
> │ 4101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInferen │
> │ ce.targets(313,5): message NETSDK1057: You are using a preview version of    │
> │ .NET. See: https://aka.ms/dotnet-support-policy [                            │
> │ C:\home\git\polyglot\target\Builder\test2\test2.fsproj]                      │
> │ 00:00:21 verbose #22 >                                                  │
> │ C:\home\git\polyglot\target\Builder\test2\test2.fs(1,5): error FS0039: The   │
> │ value or constructor 'a' is not defined. [                                   │
> │ C:\home\git\polyglot\target\Builder\test2\test2.fsproj]                      │
> │ 00:00:21   debug #23 runtime.execute_with_options_async / { exit_code = │
> │ 1; output_length = 679 }                                                     │
> │ 00:00:21   debug #24 runtime.execute_with_options_async / { options = { │
> │ command = dotnet publish                                                     │
> │ "C:\home\git\polyglot\target/Builder\test2\test2.fsproj" --configuration     │
> │ Release --output "dist" --runtime win-x64; cancellation_token = None;        │
> │ environment_variables = [||]; on_line = None; stdin = None; trace = true;    │
> │ working_directory = Some "C:\home\git\polyglot\target\Builder\test2" } }     │
> │ 00:00:21 verbose #25 > MSBuild version                                  │
> │ 17.10.0-preview-24101-01+07fd5d51f for .NET                                  │
> │ 00:00:21 verbose #26 >   Determining projects to restore...             │
> │ 00:00:22 verbose #27 >   Restored                                       │
> │ C:\home\git\polyglot\target\Builder\test2\test2.fsproj (in 309 ms).          │
> │ 00:00:22 verbose #28 >                                                  │
> │ C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.2 │
> │ 4101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInferen │
> │ ce.targets(313,5): message NETSDK1057: You are using a preview version of    │
> │ .NET. See: https://aka.ms/dotnet-support-policy [                            │
> │ C:\home\git\polyglot\target\Builder\test2\test2.fsproj]                      │
> │ 00:00:24 verbose #29 >                                                  │
> │ C:\home\git\polyglot\target\Builder\test2\test2.fs(1,5): error FS0039: The   │
> │ value or constructor 'a' is not defined. [                                   │
> │ C:\home\git\polyglot\target\Builder\test2\test2.fsproj]                      │
> │ 00:00:24   debug #30 runtime.execute_with_options_async / { exit_code = │
> │ 1; output_length = 679 }                                                     │
> │ 00:00:21 critical #5 buildCode / code: 1 + a |> ignore / fsprojText:    │
> │ <Project Sdk="Microsoft.NET.Sdk">                                            │
> │     <PropertyGroup>                                                          │
> │         <TargetFramework>net9.0</TargetFramework>                            │
> │         <LangVersion>preview</LangVersion>                                   │
> │         <RollForward>Major</RollForward>                                     │
> │         <TargetLatestRuntimePatch>true</TargetLatestRuntimePatch>            │
> │         <PublishAot>false</PublishAot>                                       │
> │         <PublishTrimmed>false</PublishTrimmed>                               │
> │         <PublishSingleFile>true</PublishSingleFile>                          │
> │         <SelfContained>true</SelfContained>                                  │
> │         <Version>0.0.1-alpha.1</Version>                                     │
> │         <OutputType>Exe</OutputType>                                         │
> │     </PropertyGroup>                                                         │
> │                                                                              │
> │     <PropertyGroup Condition="$([MSBuild]::IsOSPlatform('FreeBSD'))">        │
> │         <DefineConstants>_FREEBSD</DefineConstants>                          │
> │     </PropertyGroup>                                                         │
> │                                                                              │
> │     <PropertyGroup Condition="$([MSBuild]::IsOSPlatform('Linux'))">          │
> │         <DefineConstants>_LINUX</DefineConstants>                            │
> │     </PropertyGroup>                                                         │
> │                                                                              │
> │     <PropertyGroup Condition="$([MSBuild]::IsOSPlatform('OSX'))">            │
> │         <DefineConstants>_OSX</DefineConstants>                              │
> │     </PropertyGroup>                                                         │
> │                                                                              │
> │     <PropertyGroup Condition="$([MSBuild]::IsOSPlatform('Windows'))">        │
> │         <DefineConstants>_WINDOWS</DefineConstants>                          │
> │     </PropertyGroup>                                                         │
> │                                                                              │
> │     <ItemGroup>                                                              │
> │                                                                              │
> │         <Compile                                                             │
> │ Include="C:\home\git\polyglot\target\Builder\test2\test2.fs" />              │
> │     </ItemGroup>                                                             │
> │                                                                              │
> │     <Import Project="C:\home\git\polyglot/.paket/Paket.Restore.targets" />   │
> │ </Project>                                                                   │
> │                                                                              │
> │ Some 2                                                                       │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## readFile                                                                  │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline readFile path = async {
>     let! code = path |> SpiralFileSystem.read_all_text_async
> 
>     let code = System.Text.RegularExpressions.Regex.Replace (
>         code,
>         @"( *)(let\s+main\s+.*?\s*=)",
>         fun m -> m.Groups.[[1]].Value + "[[<EntryPoint>]]\n" + 
> m.Groups.[[1]].Value + m.Groups.[[2]].Value
>     )
> 
>     let codeTrim = code |> SpiralSm.trim_end [[||]]
>     return
>         if codeTrim |> SpiralSm.ends_with "\n()"
>         then codeTrim |> SpiralSm.slice 0 ((codeTrim |> String.length) - 3)
>         else code
> }
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## buildFile                                                                 │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline buildFile runtime packages modules path = async {
>     let fullPath = path |> System.IO.Path.GetFullPath
>     let dir = fullPath |> System.IO.Path.GetDirectoryName
>     let name = fullPath |> System.IO.Path.GetFileNameWithoutExtension
>     let! code = fullPath |> readFile
>     return! code |> buildCode runtime packages modules (dir </> "dist" |> Some) 
> name
> }
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## persistFile                                                               │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline persistFile packages modules path = async {
>     let fullPath = path |> System.IO.Path.GetFullPath
>     let name = fullPath |> System.IO.Path.GetFileNameWithoutExtension
>     let! code = fullPath |> readFile
>     return! code |> persistCodeProject packages modules name None
> }
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## Arguments                                                                 │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> [[<RequireQualifiedAccess>]]
> type Arguments =
>     | [[<Argu.ArguAttributes.MainCommand; Argu.ArguAttributes.ExactlyOnce>]] 
> Path of path : string
>     | [[<Argu.ArguAttributes.Unique>]] Packages of packages : string list
>     | [[<Argu.ArguAttributes.Unique>]] Modules of modules : string list
>     | [[<Argu.ArguAttributes.Unique>]] Runtime of runtime : string
>     | [[<Argu.ArguAttributes.Unique>]] Persist_Only
> 
>     interface Argu.IArgParserTemplate with
>         member s.Usage =
>             match s with
>             | Path _ -> nameof Path
>             | Packages _ -> nameof Packages
>             | Modules _ -> nameof Modules
>             | Runtime _ -> nameof Runtime
>             | Persist_Only -> nameof Persist_Only
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> Argu.ArgumentParser.Create<Arguments>().PrintUsage ()
> 
> ╭─[ 102.77ms - return value ]──────────────────────────────────────────────────╮
> │ "USAGE: dotnet-repl [--help] [--packages [<packages>...]]                    │
> │                    [--modules [<modules>...]] [--runtime <runtime>]          │
> │                    [--persist-only] <path>                                   │
> │                                                                              │
> │ PATH:                                                                        │
> │                                                                              │
> │     <path>                Path                                               │
> │                                                                              │
> │ OPTIONS:                                                                     │
> │                                                                              │
> │     --packages [<packages>...]                                               │
> │                           Packages                                           │
> │     --modules [<modules>...]                                                 │
> │                           Modules                                            │
> │     --runtime <runtime>   Runtime                                            │
> │     --persist-only        Persist_Only                                       │
> │     --help                display this list of options.                      │
> │ "                                                                            │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## main                                                                      │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let main args =
>     let argsMap = args |> Runtime.parseArgsMap<Arguments>
> 
>     let path =
>         match argsMap.[[nameof Arguments.Path]] with
>         | [[ Arguments.Path path ]] -> Some path
>         | _ -> None
>         |> Option.get
> 
>     let packages =
>         match argsMap |> Map.tryFind (nameof Arguments.Packages) with
>         | Some [[ Arguments.Packages packages ]] -> packages
>         | _ -> [[]]
> 
>     let modules =
>         match argsMap |> Map.tryFind (nameof Arguments.Modules) with
>         | Some [[ Arguments.Modules modules ]] -> modules
>         | _ -> [[]]
> 
>     let runtime =
>         match argsMap |> Map.tryFind (nameof Arguments.Runtime) with
>         | Some [[ Arguments.Runtime runtime ]] -> Some runtime
>         | _ -> None
> 
>     let persistOnly = argsMap |> Map.containsKey (nameof Arguments.Persist_Only)
> 
>     if persistOnly
>     then path |> persistFile packages modules |> Async.map (fun _ -> 0)
>     else path |> buildFile runtime packages modules
>     |> Async.runWithTimeout (60000 * 60)
>     |> function
>         | Some exitCode -> exitCode
>         | None -> 1
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let args =
>     System.Environment.GetEnvironmentVariable "ARGS"
>     |> SpiralRuntime.split_args
>     |> Result.toArray
>     |> Array.collect id
> 
> match args with
> | [[||]] -> 0
> | args -> if main args = 0 then 0 else failwith "main failed"
> 
> ╭─[ 28.56s - return value ]────────────────────────────────────────────────────╮
> │ <div class="dni-plaintext"><pre>0                                            │
> │ </pre></div><style>                                                          │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 28.56s - stdout ]──────────────────────────────────────────────────────────╮
> │ 00:00:22   debug #6 persistCodeProject / packages: [Argu;               │
> │ FSharp.Control.AsyncSeq; System.Reactive.Linq] / modules: [                  │
> │ lib/spiral/common.fsx; lib/spiral/sm.fsx; lib/spiral/crypto.fsx; ... ] /     │
> │ name: Builder / hash:  / code.Length: 8210                                   │
> │ 00:00:22   debug #7 buildProject / fullPath:                            │
> │ C:\home\git\polyglot\target\Builder\Builder\Builder.fsproj                   │
> │ 00:00:25   debug #31 runtime.execute_with_options_async / { options = { │
> │ command = dotnet publish                                                     │
> │ "C:\home\git\polyglot\target/Builder\Builder\Builder.fsproj" --configuration │
> │ Release --output "C:\home\git\polyglot\apps\builder\dist" --runtime          │
> │ linux-x64; cancellation_token = None; environment_variables = [||]; on_line  │
> │ = None; stdin = None; trace = true; working_directory = Some                 │
> │ "C:\home\git\polyglot\target\Builder\Builder" } }                            │
> │ 00:00:25 verbose #32 > MSBuild version                                  │
> │ 17.10.0-preview-24101-01+07fd5d51f for .NET                                  │
> │ 00:00:26 verbose #33 >   Determining projects to restore...             │
> │ 00:00:26 verbose #34 >   Restored                                       │
> │ C:\home\git\polyglot\target\Builder\Builder\Builder.fsproj (in 363 ms).      │
> │ 00:00:26 verbose #35 >                                                  │
> │ C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.2 │
> │ 4101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInferen │
> │ ce.targets(313,5): message NETSDK1057: You are using a preview version of    │
> │ .NET. See: https://aka.ms/dotnet-support-policy [                            │
> │ C:\home\git\polyglot\target\Builder\Builder\Builder.fsproj]                  │
> │ 00:00:37 verbose #36 >   Builder ->                                     │
> │ C:\home\git\polyglot\target\Builder\Builder\bin\Release\net9.0\linux-x64\Bui │
> │ lder.dll                                                                     │
> │ 00:00:38 verbose #37 >   Builder ->                                     │
> │ C:\home\git\polyglot\apps\builder\dist\                                      │
> │ 00:00:38   debug #38 runtime.execute_with_options_async / { exit_code = │
> │ 0; output_length = 665 }                                                     │
> │ 00:00:38   debug #39 runtime.execute_with_options_async / { options = { │
> │ command = dotnet publish                                                     │
> │ "C:\home\git\polyglot\target/Builder\Builder\Builder.fsproj" --configuration │
> │ Release --output "C:\home\git\polyglot\apps\builder\dist" --runtime win-x64; │
> │ cancellation_token = None; environment_variables = [||]; on_line = None;     │
> │ stdin = None; trace = true; working_directory = Some                         │
> │ "C:\home\git\polyglot\target\Builder\Builder" } }                            │
> │ 00:00:38 verbose #40 > MSBuild version                                  │
> │ 17.10.0-preview-24101-01+07fd5d51f for .NET                                  │
> │ 00:00:39 verbose #41 >   Determining projects to restore...             │
> │ 00:00:40 verbose #42 >   Restored                                       │
> │ C:\home\git\polyglot\target\Builder\Builder\Builder.fsproj (in 357 ms).      │
> │ 00:00:40 verbose #43 >                                                  │
> │ C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.2 │
> │ 4101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInferen │
> │ ce.targets(313,5): message NETSDK1057: You are using a preview version of    │
> │ .NET. See: https://aka.ms/dotnet-support-policy [                            │
> │ C:\home\git\polyglot\target\Builder\Builder\Builder.fsproj]                  │
> │ 00:00:50 verbose #44 >   Builder ->                                     │
> │ C:\home\git\polyglot\target\Builder\Builder\bin\Release\net9.0\win-x64\Build │
> │ er.dll                                                                       │
> │ 00:00:53 verbose #45 >   Builder ->                                     │
> │ C:\home\git\polyglot\apps\builder\dist\                                      │
> │ 00:00:53   debug #46 runtime.execute_with_options_async / { exit_code = │
> │ 0; output_length = 663 }                                                     │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:07 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 34436 }
00:01:07   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/apps/builder/Builder.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/apps/builder/Builder.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:01:09 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/apps/builder/Builder.dib.ipynb to html
00:01:09 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:01:09 verbose #7 !   validate(nb)
00:01:10 verbose #8 ! [NbConvertApp] Writing 335134 bytes to c:\home\git\polyglot\apps\builder\Builder.dib.html
00:01:10 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 649 }
00:01:10   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 649 }
00:01:10   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/apps/builder/Builder.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/apps/builder/Builder.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:01:11 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:01:11   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:01:11   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 35144 }
In [ ]:
{ pwsh ../apps/spiral/builder/build.ps1 -SkipFsx 1 } | Invoke-Block
00:00:00   debug #1 persistCodeProject / packages: [Fable.Core] / modules: [lib/spiral/common.fsx; lib/spiral/sm.fsx; lib/spiral/crypto.fsx; ... ] / name: spiral_builder / hash:  / code.Length: 1263682
targetDir: C:\home\git\polyglot\target\Builder\spiral_builder
Fable 4.19.3: F# to Rust compiler (status: alpha)

Thanks to the contributor! @damonmcminn
Stand with Ukraine! https://standwithukraine.com.ua/

Parsing target\Builder\spiral_builder\spiral_builder.fsproj...
Retrieving project options from cache, in case of issues run `dotnet fable clean` or try `--noCache` option.
Project and references (14 source files) parsed in 183ms

Started Fable compilation...

Fable compilation finished in 13684ms

.\lib\spiral\async_.fsx(80,0): (80,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\threading.fsx(141,0): (141,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\date_time.fsx(1056,0): (1056,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\crypto.fsx(1398,0): (1398,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\common.fsx(1270,0): (1270,67) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\common.fsx(1277,0): (1277,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\sm.fsx(426,0): (426,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\platform.fsx(108,0): (108,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\networking.fsx(4875,0): (4875,67) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\networking.fsx(4884,0): (4884,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\trace.fsx(1140,0): (1140,67) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\trace.fsx(1143,0): (1143,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\runtime.fsx(5448,0): (5448,67) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\runtime.fsx(5459,0): (5459,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\file_system.fsx(11602,0): (11602,67) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\file_system.fsx(11641,0): (11641,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
   Compiling spiral_builder v0.0.1 (C:\home\git\polyglot\apps\spiral\builder)
    Finished `release` profile [optimized] target(s) in 19.40s
     Running unittests spiral_builder.rs (C:\home\git\polyglot\workspace\target\release\deps\spiral_builder-f43d88b7a5b1c176.exe)

running 1 test
test module_7e2cd9e0::Spiral_builder::verify_app ... ok

successes:

successes:
    module_7e2cd9e0::Spiral_builder::verify_app

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

   Compiling spiral_builder v0.0.1 (C:\home\git\polyglot\apps\spiral\builder)
error: failed to remove file `C:\home\git\polyglot\workspace\target\release\spiral_builder.exe`

Caused by:
  Access is denied. (os error 5)

# Invoke-Block / $retry: 1/1 / $Location:  / Get-Location: C:\home\git\polyglot\apps\spiral\builder / $OnError: Continue / $exitcode: 101 / $EnvVars: {
  "PATH": "C:\\Users\\i574n\\scoop\\apps\\pwsh\\current;C:\\Program Files\\NVIDIA\\CUDNN\\v9.1\\bin;C:\\ProgramData\\scoop\\shims;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\ProgramData\\chocolatey\\bin;C:\\Program Files\\dotnet\\;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\Intel\\WiFi\\bin\\;C:\\Program Files\\Common Files\\Intel\\WirelessCommon\\;C:\\Program Files\\Perforce;C:\\Users\\i574n\\scoop\\apps\\vscode-insiders\\current\\bin;C:\\Users\\i574n\\scoop\\apps\\elixir\\current\\bin;C:\\Users\\i574n\\scoop\\apps\\python\\current\\Scripts;C:\\Users\\i574n\\scoop\\apps\\rustup\\current\\.cargo\\bin;C:\\Users\\i574n\\scoop\\apps\\latex\\current\\texmfs\\install\\miktex\\bin\\x64;C:\\Users\\i574n\\scoop\\apps\\dotnet-sdk-preview\\current;C:\\Users\\i574n\\scoop\\apps\\dotnet-sdk\\current;C:\\Users\\i574n\\scoop\\apps\\gsudo\\current;C:\\Users\\i574n\\scoop\\apps\\python\\current;C:\\Users\\i574n\\scoop\\apps\\nircmd\\current;C:\\Users\\i574n\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\i574n/scoop/buckets/mold/home/windows/path;C:\\Users\\i574n/scoop/persist/rustup/.cargo/bin;C:\\Users\\i574n/scoop/apps/nvm/current/nodejs/nodejs;C:\\Users\\i574n/scoop/apps/cygwin/current/root/bin;C:\\Users\\i574n\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\i574n\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\i574n\\.bun\\bin;C:\\Users\\i574n\\.dotnet\\tools;C:\\Users\\i574n\\scoop\\shims;C:\\Users\\i574n\\.fly\\bin;C:\\Users\\i574n/.cargo/bin;C:\\Users\\i574n/.bun/bin;C:\\Users\\i574n/.cargo/bin;C:\\Users\\i574n/.bun/bin;C:\\Users\\i574n/.cargo/bin;C:\\Users\\i574n/.bun/bin"
} / $Error: '' / $ScriptBlock:
'cargo +nightly build --release'

In [ ]:
{ pwsh ../apps/parser/build.ps1 } | Invoke-Block
00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "DibParser.dib"])) }
00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/apps/parser/DibParser.dib", "--output-path", "c:/home/git/polyglot/apps/parser/DibParser.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/apps/parser/DibParser.dib" --output-path "c:/home/git/polyglot/apps/parser/DibParser.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ # DibParser (Polyglot)                                                       │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> #r 
> @"../../../../../../../.nuget/packages/fsharp.control.asyncseq/3.2.1/lib/netstan
> dard2.1/FSharp.Control.AsyncSeq.dll"
> #r 
> @"../../../../../../../.nuget/packages/system.reactive/6.0.1-preview.1/lib/net6.
> 0/System.Reactive.dll"
> #r 
> @"../../../../../../../.nuget/packages/system.reactive.linq/6.0.1-preview.1/lib/
> netstandard2.0/System.Reactive.Linq.dll"
> #r 
> @"../../../../../../../.nuget/packages/argu/6.2.4/lib/netstandard2.0/Argu.dll"
> #r 
> @"../../../../../../../.nuget/packages/fparsec/2.0.0-beta2/lib/netstandard2.1/FP
> arsec.dll"
> #r 
> @"../../../../../../../.nuget/packages/fparsec/2.0.0-beta2/lib/netstandard2.1/FP
> arsecCS.dll"
> 
> ── pwsh ────────────────────────────────────────────────────────────────────────
> ls ~/.nuget/packages/argu
> 
> ╭─[ 480.48ms - stdout ]────────────────────────────────────────────────────────╮
> │                                                                              │
> │     Directory: C:\Users\i574n\.nuget\packages\argu                           │
> │                                                                              │
> │ Mode                 LastWriteTime         Length[     │
> │ 32;1m Name                                                                 │
> │ ----                 -------------         ------ [      │
> │ 32;1m----                                                                  │
> │ d----          2023-05-17  4:38 PM                6.1.1               │
> │ d----          2024-03-12  9:22 PM                6.1.4               │
> │ d----          2024-01-29  6:12 PM                6.1.5               │
> │ d----          2024-03-12  9:20 PM                6.2.0               │
> │ d----          2024-02-23  7:50 PM                6.2.1               │
> │ d----          2024-03-12  9:15 PM                6.2.2               │
> │ d----          2024-05-14  9:20 PM                6.2.3               │
> │ d----          2024-06-06  8:37 PM                6.2.4               │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> #if !INTERACTIVE
> open Lib
> #endif
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> open Common
> open FParsec
> open SpiralFileSystem.Operators
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## escapeCell (test)                                                         │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let inline escapeCell input =
>     input
>     |> SpiralSm.split "\n"
>     |> Array.map (function
>         | line when line |> SpiralSm.starts_with "\\#!" || line |> 
> SpiralSm.starts_with "\\#r" ->
>             System.Text.RegularExpressions.Regex.Replace (line, "^\\\\#", "#")
>         | line -> line
>     )
>     |> SpiralSm.concat "\n"
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> $"a{nl}\\#!magic{nl}b{nl}"
> |> escapeCell
> |> _assertEqual (
>     $"a{nl}#!magic{nl}b{nl}"
> )
> 
> ╭─[ 52.08ms - stdout ]─────────────────────────────────────────────────────────╮
> │ "a                                                                           │
> │ #!magic                                                                      │
> │ b                                                                            │
> │ "                                                                            │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## magicMarker                                                               │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let magicMarker : Parser<string, unit> = pstring "#!"
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> "#!magic"
> |> run magicMarker
> |> _assertEqual (
>     Success ("#!", (), Position ("", 2, 1, 3))
> )
> 
> ╭─[ 41.67ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Success: "#!"                                                                │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> "##!magic"
> |> run magicMarker
> |> _assertEqual (
>     Failure (
>         $"Error in Ln: 1 Col: 1{nl}##!magic{nl}^{nl}Expecting: '#!'{nl}",
>         ParserError (
>             Position ("", 0, 1, 1),
>             (),
>             ErrorMessageList (ExpectedString "#!")
>         ),
>         ()
>     )
> )
> 
> ╭─[ 43.88ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Failure:                                                                     │
> │ Error in Ln: 1 Col: 1                                                        │
> │ ##!magic                                                                     │
> │ ^                                                                            │
> │ Expecting: '#!'                                                              │
> │                                                                              │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## magicCommand                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let magicCommand =
>     magicMarker
>     >>. manyTill anyChar newline
>     |>> (System.String.Concat >> SpiralSm.trim)
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> "#!magic
> 
> a"
> |> run magicCommand
> |> _assertEqual (
>     Success ("magic", (), Position ("", 8, 2, 1))
> )
> 
> ╭─[ 41.80ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Success: "magic"                                                             │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> " #!magic
> 
> a"
> |> run magicCommand
> |> _assertEqual (
>     Failure (
>         $"Error in Ln: 1 Col: 1{nl} #!magic{nl}^{nl}Expecting: '#!'{nl}",
>         ParserError (
>             Position ("", 0, 1, 1),
>             (),
>             ErrorMessageList (ExpectedString "#!")
>         ),
>         ()
>     )
> )
> 
> ╭─[ 31.67ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Failure:                                                                     │
> │ Error in Ln: 1 Col: 1                                                        │
> │  #!magic                                                                     │
> │ ^                                                                            │
> │ Expecting: '#!'                                                              │
> │                                                                              │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## content                                                                   │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let content =
>     (newline >>. magicMarker) <|> (eof >>. preturn "")
>     |> attempt
>     |> lookAhead
>     |> manyTill anyChar
>     |>> (System.String.Concat >> SpiralSm.trim)
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> "#!magic
> 
> 
> a
> 
> 
> "
> |> run content
> |> _assertEqual (
>     Success ("#!magic
> 
> 
> a", (), Position ("", 14, 7, 1))
> )
> 
> ╭─[ 30.84ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Success: "#!magic                                                            │
> │                                                                              │
> │                                                                              │
> │ a"                                                                           │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## Output                                                                    │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> type Output =
>     | Fs
>     | Md
>     | Spi
>     | Spir
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## Magic                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> type Magic =
>     | Fsharp
>     | Markdown
>     | Spiral of Output
>     | Magic of string
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## kernelOutputs                                                             │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline kernelOutputs magic =
>     match magic with
>     | Fsharp -> [[ Fs ]]
>     | Markdown -> [[ Md ]]
>     | Spiral output -> [[ output ]]
>     | _ -> [[]]
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## Block                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> type Block =
>     {
>         magic : Magic
>         content : string
>     }
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## block                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let block =
>     pipe2
>         magicCommand
>         content
>         (fun magic content ->
>             let magic, content =
>                 match magic with
>                 | "fsharp" -> Fsharp, content
>                 | "markdown" -> Markdown, content
>                 | "spiral" ->
>                     let output = if content |> SpiralSm.contains "//// real\n" 
> then Spir else Spi
>                     let content =
>                         if output = Spi
>                         then content
>                         else
>                             content
>                             |> SpiralSm.replace "//// real\n\n" ""
>                             |> SpiralSm.replace "//// real\n" ""
>                     Spiral output, content
>                 | magic -> magic |> Magic, content
>             {
>                 magic = magic
>                 content = content
>             })
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> "#!magic
> 
> 
> a
> 
> 
> "
> |> run block
> |> _assertEqual (
>     Success (
>         { magic = Magic "magic"; content = "a" },
>         (),
>         Position ("", 14, 7, 1)
>     )
> )
> 
> ╭─[ 42.17ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Success: { magic = Magic "magic"                                             │
> │   content = "a" }                                                            │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## blocks                                                                    │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let blocks =
>     skipMany newline
>     >>. sepEndBy block (skipMany1 newline)
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> 
> "#!magic1
> 
> a
> 
> \#!magic2
> 
> b
> 
> "
> |> escapeCell
> |> run blocks
> |> _assertEqual (
>     Success (
>         [[
>             { magic = Magic "magic1"; content = "a" }
>             { magic = Magic "magic2"; content = "b" }
>         ]],
>         (),
>         Position ("", 26, 9, 1)
>     )
> )
> 
> ╭─[ 44.07ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Success: [{ magic = Magic "magic1"                                           │
> │    content = "a" }; { magic = Magic "magic2"                                 │
> │                       content = "b" }]                                       │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## formatBlock                                                               │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline formatBlock output (block : Block) =
>     match output, block with
>     | output, { magic = Markdown; content = content } ->
>         let markdownComment =
>             match output with
>             | Spi | Spir -> "/// "
>             | Fs -> "/// "
>             | _ -> ""
>         content
>         |> SpiralSm.split "\n"
>         |> Array.map (SpiralSm.trim_end [[||]])
>         |> Array.filter (SpiralSm.ends_with " (test)" >> not)
>         |> Array.map (function
>             | "" -> markdownComment
>             | line -> System.Text.RegularExpressions.Regex.Replace (line, 
> "^\\s*", $"$&{markdownComment}")
>         )
>         |> SpiralSm.concat "\n"
>     | Fs, { magic = Fsharp; content = content } ->
>         let trimmedContent = content |> SpiralSm.trim
>         if trimmedContent |> SpiralSm.contains "//// test\n"
>             || trimmedContent |> SpiralSm.contains "//// ignore\n"
>         then ""
>         else
>             content
>             |> SpiralSm.split "\n"
>             |> Array.filter (SpiralSm.trim_start [[||]] >> SpiralSm.starts_with 
> "#r" >> not)
>             |> SpiralSm.concat "\n"
>     | (Spi | Spir), { magic = Spiral output'; content = content } when output' =
> output ->
>         let trimmedContent = content |> SpiralSm.trim
>         if trimmedContent |> SpiralSm.contains "//// test\n"
>             || trimmedContent |> SpiralSm.contains "//// ignore\n"
>         then ""
>         else content
>     | _ -> ""
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> "#!markdown
> 
> 
> a
> 
>     b
> 
> c
> 
> 
> \#!markdown
> 
> 
> c
> 
> 
> \#!fsharp
> 
> 
> let a = 1"
> |> escapeCell
> |> run block
> |> function
>     | Success (block, _, _) -> formatBlock Fs block
>     | Failure (msg, _, _) -> failwith msg
> |> _assertEqual "/// a
> /// 
>     /// b
> /// 
> /// c"
> 
> ╭─[ 47.63ms - stdout ]─────────────────────────────────────────────────────────╮
> │ "/// a                                                                       │
> │ ///                                                                          │
> │     /// b                                                                    │
> │ ///                                                                          │
> │ /// c"                                                                       │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## formatBlocks                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline formatBlocks output blocks =
>     blocks
>     |> List.map (fun block ->
>         block, formatBlock output block
>     )
>     |> List.filter (snd >> (<>) "")
>     |> fun list ->
>         (list, (None, [[]]))
>         ||> List.foldBack (fun (block, content) (lastMagic, acc) ->
>             let lineBreak =
>                 if block.magic = Markdown && lastMagic <> Some Markdown && 
> lastMagic <> None
>                 then ""
>                 else "\n"
>             Some block.magic, $"{content}{lineBreak}" :: acc
>         )
>     |> snd
>     |> SpiralSm.concat "\n"
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> "#!markdown
> 
> 
> a
> 
> b
> 
> 
> \#!markdown
> 
> 
> c
> 
> 
> \#!fsharp
> 
> 
> let a = 1
> 
> \#!markdown
> 
> d (test)
> 
> \#!fsharp
> 
> //// test
> 
> let a = 2
> 
> \#!markdown
> 
> e
> 
> \#!fsharp
> 
> let a = 3"
> |> escapeCell
> |> run blocks
> |> function
>     | Success (blocks, _, _) -> formatBlocks Fs blocks
>     | Failure (msg, _, _) -> failwith msg
> |> _assertEqual "/// a
> /// 
> /// b
> 
> /// c
> let a = 1
> 
> /// e
> let a = 3
> "
> 
> ╭─[ 62.18ms - stdout ]─────────────────────────────────────────────────────────╮
> │ "/// a                                                                       │
> │ ///                                                                          │
> │ /// b                                                                        │
> │                                                                              │
> │ /// c                                                                        │
> │ let a = 1                                                                    │
> │                                                                              │
> │ /// e                                                                        │
> │ let a = 3                                                                    │
> │ "                                                                            │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## parse                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline parse output input =
>     match run blocks input with
>     | Success (blocks, _, _) ->
>         let blocks =
>             blocks
>             |> List.filter (fun block ->
>                 block.magic |> kernelOutputs |> List.contains output || 
> block.magic = Markdown
>             )
> 
>         match blocks with
>         | { magic = Markdown; content = content } :: _
>             when output = Fs
>             && content |> SpiralSm.starts_with "# "
>             && content |> SpiralSm.ends_with ")"
>             ->
>             let inline indentBlock (block : Block) =
>                 { block with
>                     content =
>                         block.content
>                         |> SpiralSm.split "\n"
>                         |> Array.fold
>                             (fun (lines, isMultiline) line ->
>                                 let trimmedLine = line |> SpiralSm.trim
>                                 if trimmedLine = ""
>                                 then "" :: lines, isMultiline
>                                 else
>                                     let inline singleQuoteLine () =
>                                         trimmedLine |> Seq.sumBy ((=) '"' >> 
> System.Convert.ToInt32) = 1
>                                         && trimmedLine |> SpiralSm.contains 
> @"'""'" |> not
>                                         && trimmedLine |> SpiralSm.ends_with "{"
> |> not
>                                         && trimmedLine |> SpiralSm.ends_with 
> "{|" |> not
>                                         && trimmedLine |> SpiralSm.starts_with 
> "}" |> not
>                                         && trimmedLine |> SpiralSm.starts_with 
> "|}" |> not
> 
>                                     match isMultiline, trimmedLine |> 
> SpiralSm.split_string [[| $"{q}{q}{q}" |]] with
>                                     | false, [[| _; _ |]] ->
>                                         $"    {line}" :: lines, true
> 
>                                     | true, [[| _; _ |]] ->
>                                         line :: lines, false
> 
>                                     | false, _ when singleQuoteLine () ->
>                                         $"    {line}" :: lines, true
> 
>                                     | false, _ when line |> SpiralSm.starts_with
> "#" && block.magic = Fsharp ->
>                                         line :: lines, false
> 
>                                     | false, _ ->
>                                         $"    {line}" :: lines, false
> 
>                                     | true, _ when singleQuoteLine () && line |>
> SpiralSm.starts_with "    " ->
>                                         $"    {line}" :: lines, false
> 
>                                     | true, _ when singleQuoteLine () ->
>                                         line :: lines, false
> 
>                                     | true, _ ->
>                                         line :: lines, true
>                             )
>                             ([[]], false)
>                         |> fst
>                         |> List.rev
>                         |> SpiralSm.concat "\n"
>                 }
> 
>             let moduleName, namespaceName =
>                 System.Text.RegularExpressions.Regex.Match (content, @"# (.*) 
> \((.*)\)$")
>                 |> fun m -> m.Groups.[[1]].Value, m.Groups.[[2]].Value
> 
>             let moduleBlock =
>                 {
>                     magic = Fsharp
>                     content =
>                         $"#if !INTERACTIVE
> namespace {namespaceName}
> #endif
> 
> module {moduleName} ="
>                 }
> 
>             blocks
>             |> List.indexed
>             |> List.fold
>                 (fun blocks (index, block) ->
>                     match index with
>                     | 0 -> blocks
>                     | 1 -> indentBlock block :: moduleBlock :: blocks
>                     | _ -> indentBlock block :: blocks
>                 )
>                 [[]]
>             |> List.rev
>         | _ -> blocks
>         |> Result.Ok
>     | Failure (errorMsg, _, _) -> Result.Error errorMsg
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let example1 =
>     $"""#!meta
> 
> {{"kernelInfo":{{"defaultKernelName":"fsharp","items":[[{{"aliases":[[]],"name":
> "fsharp"}},{{"aliases":[[]],"name":"fsharp"}}]]}}}}
> 
> \#!markdown
> 
> # TestModule (TestNamespace)
> 
> \#!fsharp
> 
> \#!import file.dib
> 
> \#!fsharp
> 
> \#r "nuget:Expecto"
> 
> \#!markdown
> 
> ## ParserLibrary
> 
> \#!fsharp
> 
> open System
> 
> \#!markdown
> 
> ## x (test)
> 
> \#!fsharp
> 
> //// ignore
> 
> let x = 1
> 
> \#!spiral
> 
> //// test
> 
> inl x = 1i32
> 
> \#!spiral
> 
> //// real
> 
> inl x = 2i32
> 
> \#!spiral
> 
> inl x = 3i32
> 
> \#!markdown
> 
> ### TextInput
> 
> \#!fsharp
> 
> let str1 = "abc
> def"
> 
> let str2 =
>     "abc\
> def"
> 
> let str3 =
>     $"1{{
>         1
>     }}1"
> 
> let str4 =
>     $"1{{({{|
>         a = 1
>     |}}).a}}1"
> 
> let str5 =
>     "abc \
>         def"
> 
> let x =
>     match '"' with
>     | '"' -> true
>     | _ -> false
> 
> let long1 = {q}{q}{q}a{q}{q}{q}
> 
> let long2 =
>     {q}{q}{q}
> a
> {q}{q}{q}
> 
> \#!fsharp
> 
> type Position =
>     {{
> #if INTERACTIVE
>         line : string
> #else
>         line : int
> #endif
>         column : int
>     }}"""
>     |> escapeCell
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> example1
> |> parse Fs
> |> Result.toOption
> |> Option.get
> |> (formatBlocks Fs)
> |> _assertEqual $"""#if !INTERACTIVE
> namespace TestNamespace
> #endif
> 
> module TestModule =
> 
>     /// ## ParserLibrary
>     open System
> 
>     /// ### TextInput
>     let str1 = "abc
> def"
> 
>     let str2 =
>         "abc\
> def"
> 
>     let str3 =
>         $"1{{
>             1
>         }}1"
> 
>     let str4 =
>         $"1{{({{|
>             a = 1
>         |}}).a}}1"
> 
>     let str5 =
>         "abc \
>             def"
> 
>     let x =
>         match '"' with
>         | '"' -> true
>         | _ -> false
> 
>     let long1 = {q}{q}{q}a{q}{q}{q}
> 
>     let long2 =
>         {q}{q}{q}
> a
> {q}{q}{q}
> 
>     type Position =
>         {{
> #if INTERACTIVE
>             line : string
> #else
>             line : int
> #endif
>             column : int
>         }}
> """
> 
> ╭─[ 151.11ms - stdout ]────────────────────────────────────────────────────────╮
> │ "#if !INTERACTIVE                                                            │
> │ namespace TestNamespace                                                      │
> │ #endif                                                                       │
> │                                                                              │
> │ module TestModule =                                                          │
> │                                                                              │
> │     /// ## ParserLibrary                                                     │
> │     open System                                                              │
> │                                                                              │
> │     /// ### TextInput                                                        │
> │     let str1 = "abc                                                          │
> │ def"                                                                         │
> │                                                                              │
> │     let str2 =                                                               │
> │         "abc\                                                                │
> │ def"                                                                         │
> │                                                                              │
> │     let str3 =                                                               │
> │         $"1{                                                                 │
> │             1                                                                │
> │         }1"                                                                  │
> │                                                                              │
> │     let str4 =                                                               │
> │         $"1{({|                                                              │
> │             a = 1                                                            │
> │         |}).a}1"                                                             │
> │                                                                              │
> │     let str5 =                                                               │
> │         "abc \                                                               │
> │             def"                                                             │
> │                                                                              │
> │     let x =                                                                  │
> │         match '"' with                                                       │
> │         | '"' -> true                                                        │
> │         | _ -> false                                                         │
> │                                                                              │
> │     let long1 = """a"""                                                      │
> │                                                                              │
> │     let long2 =                                                              │
> │         """                                                                  │
> │ a                                                                            │
> │ """                                                                          │
> │                                                                              │
> │     type Position =                                                          │
> │         {                                                                    │
> │ #if INTERACTIVE                                                              │
> │             line : string                                                    │
> │ #else                                                                        │
> │             line : int                                                       │
> │ #endif                                                                       │
> │             column : int                                                     │
> │         }                                                                    │
> │ "                                                                            │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> example1
> |> parse Md
> |> Result.toOption
> |> Option.get
> |> (formatBlocks Md)
> |> _assertEqual "# TestModule (TestNamespace)
> 
> ## ParserLibrary
> 
> ### TextInput
> "
> 
> ╭─[ 137.68ms - stdout ]────────────────────────────────────────────────────────╮
> │ "# TestModule (TestNamespace)                                                │
> │                                                                              │
> │ ## ParserLibrary                                                             │
> │                                                                              │
> │ ### TextInput                                                                │
> │ "                                                                            │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> example1
> |> parse Spi
> |> Result.toOption
> |> Option.get
> |> (formatBlocks Spi)
> |> _assertEqual "/// # TestModule (TestNamespace)
> 
> /// ## ParserLibrary
> inl x = 3i32
> 
> /// ### TextInput
> "
> 
> ╭─[ 145.64ms - stdout ]────────────────────────────────────────────────────────╮
> │ "/// # TestModule (TestNamespace)                                            │
> │                                                                              │
> │ /// ## ParserLibrary                                                         │
> │ inl x = 3i32                                                                 │
> │                                                                              │
> │ /// ### TextInput                                                            │
> │ "                                                                            │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> example1
> |> parse Spir
> |> Result.toOption
> |> Option.get
> |> (formatBlocks Spir)
> |> _assertEqual "/// # TestModule (TestNamespace)
> 
> /// ## ParserLibrary
> inl x = 2i32
> 
> /// ### TextInput
> "
> 
> ╭─[ 136.56ms - stdout ]────────────────────────────────────────────────────────╮
> │ "/// # TestModule (TestNamespace)                                            │
> │                                                                              │
> │ /// ## ParserLibrary                                                         │
> │ inl x = 2i32                                                                 │
> │                                                                              │
> │ /// ### TextInput                                                            │
> │ "                                                                            │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## parseDibCode                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline parseDibCode output file = async {
>     trace Debug
>         (fun () -> "parseDibCode")
>         (fun () -> $"output: {output} / file: {file} / {_locals ()}")
>     let! input = file |> SpiralFileSystem.read_all_text_async
>     match parse output input with
>     | Result.Ok blocks -> return blocks |> formatBlocks output
>     | Result.Error msg -> return failwith msg
> }
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## writeDibCode                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline writeDibCode output path = async {
>     trace Debug
>         (fun () -> "writeDibCode")
>         (fun () -> $"output: {output} / path: {path} / {_locals ()}")
>     let! result = parseDibCode output path
>     let pathDir = path |> System.IO.Path.GetDirectoryName
>     let fileNameWithoutExt =
>         match output, path |> System.IO.Path.GetFileNameWithoutExtension with
>         | Spir, fileNameWithoutExt -> $"real_{fileNameWithoutExt}"
>         | _, fileNameWithoutExt -> fileNameWithoutExt
>     let outputPath = pathDir </> $"{fileNameWithoutExt}.{output |> string |> 
> SpiralSm.to_lower}"
>     do! result |> SpiralFileSystem.write_all_text_async outputPath
> }
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## Arguments                                                                 │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> [[<RequireQualifiedAccess>]]
> type Arguments =
>     | [[<Argu.ArguAttributes.MainCommand; Argu.ArguAttributes.Mandatory>]]
>         File of file : string * Output
> 
>     interface Argu.IArgParserTemplate with
>         member s.Usage =
>             match s with
>             | File _ -> nameof File
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> Argu.ArgumentParser.Create<Arguments>().PrintUsage ()
> 
> ╭─[ 86.61ms - return value ]───────────────────────────────────────────────────╮
> │ "USAGE: dotnet-repl [--help] <file> <fs|md|spi|spir>                         │
> │                                                                              │
> │ FILE:                                                                        │
> │                                                                              │
> │     <file> <fs|md|spi|spir>                                                  │
> │                           File                                               │
> │                                                                              │
> │ OPTIONS:                                                                     │
> │                                                                              │
> │     --help                display this list of options.                      │
> │ "                                                                            │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## main                                                                      │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let main args =
>     let argsMap = args |> Runtime.parseArgsMap<Arguments>
> 
>     let files =
>         argsMap.[[nameof Arguments.File]]
>         |> List.map (function
>             | Arguments.File (path, output) -> path, output
>         )
> 
>     files
>     |> List.map (fun (path, output) -> path |> writeDibCode output)
>     |> Async.Parallel
>     |> Async.Ignore
>     |> Async.runWithTimeout 30000
>     |> function
>         | Some () -> 0
>         | None -> 1
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let args =
>     System.Environment.GetEnvironmentVariable "ARGS"
>     |> SpiralRuntime.split_args
>     |> Result.toArray
>     |> Array.collect id
> 
> match args with
> | [[||]] -> 0
> | args -> if main args = 0 then 0 else failwith "main failed"
> 
> ╭─[ 260.67ms - return value ]──────────────────────────────────────────────────╮
> │ <div class="dni-plaintext"><pre>0                                            │
> │ </pre></div><style>                                                          │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 263.63ms - stdout ]────────────────────────────────────────────────────────╮
> │ 00:00:05   debug #1 writeDibCode / output: Fs / path: DibParser.dib     │
> │ 00:00:05   debug #2 parseDibCode / output: Fs / file: DibParser.dib     │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:22 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 44158 }
00:00:22   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/apps/parser/DibParser.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/apps/parser/DibParser.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:00:24 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/apps/parser/DibParser.dib.ipynb to html
00:00:24 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:00:24 verbose #7 !   validate(nb)
00:00:25 verbose #8 ! [NbConvertApp] Writing 378847 bytes to c:\home\git\polyglot\apps\parser\DibParser.dib.html
00:00:25 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 651 }
00:00:25   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 651 }
00:00:25   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/apps/parser/DibParser.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/apps/parser/DibParser.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:00:26 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:00:26   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:00:27   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 44868 }
00:00:00   debug #1 persistCodeProject / packages: [Argu; FParsec; FSharp.Control.AsyncSeq; ... ] / modules: [lib/spiral/common.fsx; lib/spiral/sm.fsx; lib/spiral/crypto.fsx; ... ] / name: DibParser / hash:  / code.Length: 10861
00:00:00   debug #2 buildProject / fullPath: C:\home\git\polyglot\target\Builder\DibParser\DibParser.fsproj
00:00:00   debug #1 runtime.execute_with_options_async / { options = { command = dotnet publish "C:\home\git\polyglot\target/Builder\DibParser\DibParser.fsproj" --configuration Release --output "C:\home\git\polyglot\apps\parser\dist" --runtime linux-x64; cancellation_token = None; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = Some "C:\home\git\polyglot\target\Builder\DibParser" } }
00:00:00 verbose #2 > MSBuild version 17.10.0-preview-24101-01+07fd5d51f for .NET
00:00:01 verbose #3 >   Determining projects to restore...
00:00:01 verbose #4 >   Restored C:\home\git\polyglot\target\Builder\DibParser\DibParser.fsproj (in 398 ms).
00:00:02 verbose #5 > C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.24101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(313,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\home\git\polyglot\target\Builder\DibParser\DibParser.fsproj]
00:00:13 verbose #6 >   DibParser -> C:\home\git\polyglot\target\Builder\DibParser\bin\Release\net9.0\linux-x64\DibParser.dll
00:00:14 verbose #7 >   DibParser -> C:\home\git\polyglot\apps\parser\dist\
00:00:14   debug #8 runtime.execute_with_options_async / { exit_code = 0; output_length = 680 }
00:00:14   debug #9 runtime.execute_with_options_async / { options = { command = dotnet publish "C:\home\git\polyglot\target/Builder\DibParser\DibParser.fsproj" --configuration Release --output "C:\home\git\polyglot\apps\parser\dist" --runtime win-x64; cancellation_token = None; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = Some "C:\home\git\polyglot\target\Builder\DibParser" } }
00:00:15 verbose #10 > MSBuild version 17.10.0-preview-24101-01+07fd5d51f for .NET
00:00:15 verbose #11 >   Determining projects to restore...
00:00:16 verbose #12 >   Restored C:\home\git\polyglot\target\Builder\DibParser\DibParser.fsproj (in 380 ms).
00:00:16 verbose #13 > C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.24101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(313,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\home\git\polyglot\target\Builder\DibParser\DibParser.fsproj]
00:00:27 verbose #14 >   DibParser -> C:\home\git\polyglot\target\Builder\DibParser\bin\Release\net9.0\win-x64\DibParser.dll
00:00:31 verbose #15 >   DibParser -> C:\home\git\polyglot\apps\parser\dist\
00:00:31   debug #16 runtime.execute_with_options_async / { exit_code = 0; output_length = 678 }
00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "JsonParser.dib"])) }
00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/apps/parser/JsonParser.dib", "--output-path", "c:/home/git/polyglot/apps/parser/JsonParser.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/apps/parser/JsonParser.dib" --output-path "c:/home/git/polyglot/apps/parser/JsonParser.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ # JsonParser (Polyglot)                                                      │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> open Common
> open Parser
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## JsonParser                                                                │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> (*
> // --------------------------------
> JSON spec from http://www.json.org/
> // --------------------------------
> 
> The JSON spec is available at [[json.org]](http://www.json.org/). I'll paraphase
> it here:
> 
> * A `value` can be a `string` or a `number` or a `bool` or `null` or an `object`
> or an `array`.
>   * These structures can be nested.
> * A `string` is a sequence of zero or more Unicode characters, wrapped in double
> quotes, using backslash escapes.
> * A `number` is very much like a C or Java number, except that the octal and 
> hexadecimal formats are not used.
> * A `boolean` is the literal `true` or `false`
> * A `null` is the literal `null`
> * An `object` is an unordered set of name/value pairs.
>   * An object begins with { (left brace) and ends with } (right brace).
>   * Each name is followed by : (colon) and the name/value pairs are separated by
> , (comma).
> * An `array` is an ordered collection of values.
>   * An array begins with [[ (left bracket) and ends with ]] (right bracket).
>   * Values are separated by , (comma).
> * Whitespace can be inserted between any pair of tokens.
> *)
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let inline parserEqual (expected : ParseResult<'a>) (actual : ParseResult<'a * 
> Input>) =
>     match actual, expected with
>     | Success (_actual, _), Success _expected ->
>         printResult actual
>         _actual |> _assertEqual _expected
>     | Failure (l1, e1, p1), Failure (l2, e2, p2) when l1 = l2 && e1 = e2 && p1 =
> p2 ->
>         printResult actual
>     | _ ->
>         printfn $"Actual: {actual}"
>         printfn $"Expected: {expected}"
>         failwith "Parse failed"
>     actual
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### JValue                                                                   │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> type JValue =
>     | JString of string
>     | JNumber of float
>     | JBool   of bool
>     | JNull
>     | JObject of Map<string, JValue>
>     | JArray  of JValue list
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let jValue, jValueRef = createParserForwardedToRef<JValue> ()
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### jNull                                                                    │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let jNull =
>     pstring "null"
>     >>% JNull
>     <?> "null"
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> jValueRef <|
>     choice
>         [[
>             jNull
>         ]]
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jValue "null"
> |> parserEqual (Success JNull)
> 
> ╭─[ 313.46ms - return value ]──────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success (JNull, { lines = [                      │
> │ |&quot;null&quot;|]<br />                  position = { line = 0<br />       │
> │ column = 4 }                                                                 │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(JNull, { lines = [|&quot;null&quot;|]<br />     │
> │ position = { line = 0<br />               column = 4 }                       │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><details class="dni-treeview"><summary><span                  │
> │ class="dni-code-hint"><code>JNull</code></span></summary><div><table><thead> │
> │ <tr></tr></thead><tbody><tr><td>IsJString</td><td><div                       │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNumber</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJBool</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNull</td><td><div                           │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr><tr><td>IsJObject</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJArray</td><td><div                          │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>Item │
> │ 2</td><td><details class="dni-treeview"><summary><span                       │
> │ class="dni-code-hint"><code>{ lines = [|&quot;null&quot;|]<br />  position = │
> │ { line = 0<br />               column = 4 }                                  │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ null                         │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 0<br />  column = 4                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>0                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>4                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 324.10ms - stdout ]────────────────────────────────────────────────────────╮
> │ JNull                                                                        │
> │ JNull                                                                        │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jNull "nulp"
> |> parserEqual (
>     Failure (
>         "null",
>         "Unexpected 'p'",
>         { currentLine = "nulp"; line = 0; column = 3 }
>     )
> )
> 
> ╭─[ 45.95ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Failure (&quot;null&quot;, &quot;Unexpected      │
> │ &#39;p&#39;&quot;, { currentLine = &quot;nulp&quot;<br />                    │
> │ line = 0<br />                                     column = 3                │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><div class="dni-plaintext"><pre>&quot;null&quot;              │
> │ </pre></div></td></tr><tr><td>Item2</td><td><div                             │
> │ class="dni-plaintext"><pre>&quot;Unexpected &#39;p&#39;&quot;                │
> │ </pre></div></td></tr><tr><td>Item3</td><td><details                         │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{            │
> │ currentLine = &quot;nulp&quot;<br />  line = 0<br />  column = 3             │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ currentLine</td><td><div class="dni-plaintext"><pre>&quot;nulp&quot;         │
> │ </pre></div></td></tr><tr><td>line</td><td><div class="dni-plaintext"><pre>0 │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>3                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>IsSu │
> │ ccess</td><td><div class="dni-plaintext"><pre>false                          │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 52.45ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Line:0 Col:3 Error parsing null                                              │
> │ nulp                                                                         │
> │    ^Unexpected 'p'                                                           │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### jBool                                                                    │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let jBool =
>     let jtrue =
>         pstring "true"
>         >>% JBool true
>     let jfalse =
>         pstring "false"
>         >>% JBool false
> 
>     jtrue <|> jfalse
>     <?> "bool"
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> jValueRef <|
>     choice
>         [[
>             jNull
>             jBool
>         ]]
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jBool "true"
> |> parserEqual (Success (JBool true))
> 
> ╭─[ 47.78ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success (JBool true, { lines = [                 │
> │ |&quot;true&quot;|]<br />                       position = { line = 0<br />  │
> │ column = 4 }                                                                 │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(JBool true, { lines = [|&quot;true&quot;|]<br   │
> │ />  position = { line = 0<br />               column = 4 }                   │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><details class="dni-treeview"><summary><span                  │
> │ class="dni-code-hint"><code>JBool                                            │
> │ true</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr>< │
> │ td>Item</td><td><div class="dni-plaintext"><pre>true                         │
> │ </pre></div></td></tr><tr><td>IsJString</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNumber</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJBool</td><td><div                           │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr><tr><td>IsJNull</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJObject</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJArray</td><td><div                          │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>Item │
> │ 2</td><td><details class="dni-treeview"><summary><span                       │
> │ class="dni-code-hint"><code>{ lines = [|&quot;true&quot;|]<br />  position = │
> │ { line = 0<br />               column = 4 }                                  │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ true                         │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 0<br />  column = 4                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>0                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>4                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 66.52ms - stdout ]─────────────────────────────────────────────────────────╮
> │ JBool true                                                                   │
> │ JBool true                                                                   │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jBool "false"
> |> parserEqual (Success (JBool false))
> 
> ╭─[ 36.82ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success (JBool false, { lines = [                │
> │ |&quot;false&quot;|]<br />                        position = { line = 0<br   │
> │ />                                     column = 5 }                          │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(JBool false, { lines = [|&quot;false&quot;|]<br │
> │ />  position = { line = 0<br />               column = 5 }                   │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><details class="dni-treeview"><summary><span                  │
> │ class="dni-code-hint"><code>JBool                                            │
> │ false</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr> │
> │ <td>Item</td><td><div class="dni-plaintext"><pre>false                       │
> │ </pre></div></td></tr><tr><td>IsJString</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNumber</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJBool</td><td><div                           │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr><tr><td>IsJNull</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJObject</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJArray</td><td><div                          │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>Item │
> │ 2</td><td><details class="dni-treeview"><summary><span                       │
> │ class="dni-code-hint"><code>{ lines = [|&quot;false&quot;|]<br />  position  │
> │ = { line = 0<br />               column = 5 }                                │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ false                        │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 0<br />  column = 5                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>0                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>5                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 43.94ms - stdout ]─────────────────────────────────────────────────────────╮
> │ JBool false                                                                  │
> │ JBool false                                                                  │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jBool "truX"
> |> parserEqual (
>     Failure (
>         "bool",
>         "Unexpected 't'",
>         { currentLine = "truX"; line = 0; column = 0 }
>     )
> )
> 
> ╭─[ 30.30ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Failure (&quot;bool&quot;, &quot;Unexpected      │
> │ &#39;t&#39;&quot;, { currentLine = &quot;truX&quot;<br />                    │
> │ line = 0<br />                                     column = 0                │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><div class="dni-plaintext"><pre>&quot;bool&quot;              │
> │ </pre></div></td></tr><tr><td>Item2</td><td><div                             │
> │ class="dni-plaintext"><pre>&quot;Unexpected &#39;t&#39;&quot;                │
> │ </pre></div></td></tr><tr><td>Item3</td><td><details                         │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{            │
> │ currentLine = &quot;truX&quot;<br />  line = 0<br />  column = 0             │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ currentLine</td><td><div class="dni-plaintext"><pre>&quot;truX&quot;         │
> │ </pre></div></td></tr><tr><td>line</td><td><div class="dni-plaintext"><pre>0 │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>0                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>IsSu │
> │ ccess</td><td><div class="dni-plaintext"><pre>false                          │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 34.64ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Line:0 Col:0 Error parsing bool                                              │
> │ truX                                                                         │
> │ ^Unexpected 't'                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### jUnescapedChar                                                           │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let jUnescapedChar =
>     satisfy (fun ch -> ch <> '\\' && ch <> '\"') "char"
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jUnescapedChar "a"
> |> parserEqual (Success 'a')
> 
> ╭─[ 58.11ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success (&#39;a&#39;, { lines = [                │
> │ |&quot;a&quot;|]<br />                position = { line = 0<br />            │
> │ column = 1 }                                                                 │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(a, { lines = [|&quot;a&quot;|]<br />  position  │
> │ = { line = 0<br />               column = 1 }                                │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><div class="dni-plaintext"><pre>&#39;a&#39;                   │
> │ </pre></div></td></tr><tr><td>Item2</td><td><details                         │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ lines = [  │
> │ |&quot;a&quot;|]<br />  position = { line = 0<br />               column = 1 │
> │ }                                                                            │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ a                            │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 0<br />  column = 1                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>0                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>1                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 63.38ms - stdout ]─────────────────────────────────────────────────────────╮
> │ 'a'                                                                          │
> │ 'a'                                                                          │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jUnescapedChar "\\"
> |> parserEqual (
>     Failure (
>         "char",
>         "Unexpected '\\'",
>         { currentLine = "\\"; line = 0; column = 0 }
>     )
> )
> 
> ╭─[ 39.19ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Failure (&quot;char&quot;, &quot;Unexpected      │
> │ &#39;\&#39;&quot;, { currentLine = &quot;\&quot;<br />                       │
> │ line = 0<br />                                     column = 0                │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><div class="dni-plaintext"><pre>&quot;char&quot;              │
> │ </pre></div></td></tr><tr><td>Item2</td><td><div                             │
> │ class="dni-plaintext"><pre>&quot;Unexpected &#39;\&#39;&quot;                │
> │ </pre></div></td></tr><tr><td>Item3</td><td><details                         │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{            │
> │ currentLine = &quot;\&quot;<br />  line = 0<br />  column = 0                │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ currentLine</td><td><div class="dni-plaintext"><pre>&quot;\&quot;            │
> │ </pre></div></td></tr><tr><td>line</td><td><div class="dni-plaintext"><pre>0 │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>0                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>IsSu │
> │ ccess</td><td><div class="dni-plaintext"><pre>false                          │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 43.45ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Line:0 Col:0 Error parsing char                                              │
> │ \                                                                            │
> │ ^Unexpected '\'                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### jEscapedChar                                                             │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let jEscapedChar =
>     [[
>         ("\\\"",'\"')
>         ("\\\\",'\\')
>         ("\\/",'/')
>         ("\\b",'\b')
>         ("\\f",'\f')
>         ("\\n",'\n')
>         ("\\r",'\r')
>         ("\\t",'\t')
>     ]]
>     |> List.map (fun (toMatch, result) ->
>         pstring toMatch >>% result
>     )
>     |> choice
>     <?> "escaped char"
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jEscapedChar "\\\\"
> |> parserEqual (Success '\\')
> 
> ╭─[ 38.06ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success (&#39;\\&#39;, { lines = [               │
> │ |&quot;\\&quot;|]<br />                 position = { line = 0<br />          │
> │ column = 2 }                                                                 │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(\, { lines = [|&quot;\\&quot;|]<br />  position │
> │ = { line = 0<br />               column = 2 }                                │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><div class="dni-plaintext"><pre>&#39;\\&#39;                  │
> │ </pre></div></td></tr><tr><td>Item2</td><td><details                         │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ lines = [  │
> │ |&quot;\\&quot;|]<br />  position = { line = 0<br />               column =  │
> │ 2 }                                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ \\                           │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 0<br />  column = 2                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>0                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>2                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 43.27ms - stdout ]─────────────────────────────────────────────────────────╮
> │ '\\'                                                                         │
> │ '\\'                                                                         │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jEscapedChar "\\t"
> |> parserEqual (Success '\t')
> 
> ╭─[ 34.37ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success (&#39;\009&#39;, { lines = [             │
> │ |&quot;\t&quot;|]<br />                   position = { line = 0<br />        │
> │ column = 2 }                                                                 │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(	, { lines = [|&quot;\t&quot;|]<br />  position = │
> │ { line = 0<br />               column = 2 }                                  │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><div class="dni-plaintext"><pre>&#39;\009&#39;                │
> │ </pre></div></td></tr><tr><td>Item2</td><td><details                         │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ lines = [  │
> │ |&quot;\t&quot;|]<br />  position = { line = 0<br />               column =  │
> │ 2 }                                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ \t                           │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 0<br />  column = 2                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>0                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>2                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 39.59ms - stdout ]─────────────────────────────────────────────────────────╮
> │ '\009'                                                                       │
> │ '\009'                                                                       │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jEscapedChar @"\\"
> |> parserEqual (Success '\\')
> 
> ╭─[ 35.46ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success (&#39;\\&#39;, { lines = [               │
> │ |&quot;\\&quot;|]<br />                 position = { line = 0<br />          │
> │ column = 2 }                                                                 │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(\, { lines = [|&quot;\\&quot;|]<br />  position │
> │ = { line = 0<br />               column = 2 }                                │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><div class="dni-plaintext"><pre>&#39;\\&#39;                  │
> │ </pre></div></td></tr><tr><td>Item2</td><td><details                         │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ lines = [  │
> │ |&quot;\\&quot;|]<br />  position = { line = 0<br />               column =  │
> │ 2 }                                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ \\                           │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 0<br />  column = 2                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>0                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>2                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 40.85ms - stdout ]─────────────────────────────────────────────────────────╮
> │ '\\'                                                                         │
> │ '\\'                                                                         │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jEscapedChar @"\n"
> |> parserEqual (Success '\n')
> 
> ╭─[ 38.30ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success (&#39;\010&#39;, { lines = [|&quot;<br   │
> │ />&quot;|]<br />                   position = { line = 0<br />               │
> │ column = 2 }                                                                 │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(<br />, { lines = [|&quot;<br />&quot;|]<br />  │
> │ position = { line = 0<br />               column = 2 }                       │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><div class="dni-plaintext"><pre>&#39;\010&#39;                │
> │ </pre></div></td></tr><tr><td>Item2</td><td><details                         │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ lines = [  │
> │ |&quot;<br />&quot;|]<br />  position = { line = 0<br />                     │
> │ column = 2 }                                                                 │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ <br />                       │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 0<br />  column = 2                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>0                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>2                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 44.95ms - stdout ]─────────────────────────────────────────────────────────╮
> │ '\010'                                                                       │
> │ '\010'                                                                       │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jEscapedChar "a"
> |> parserEqual (
>     Failure (
>         "escaped char",
>         "Unexpected 'a'",
>         { currentLine = "a"; line = 0; column = 0 }
>     )
> )
> 
> ╭─[ 30.61ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Failure (&quot;escaped char&quot;,               │
> │ &quot;Unexpected &#39;a&#39;&quot;, { currentLine = &quot;a&quot;<br />      │
> │ line = 0<br />                                             column = 0        │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><div class="dni-plaintext"><pre>&quot;escaped char&quot;      │
> │ </pre></div></td></tr><tr><td>Item2</td><td><div                             │
> │ class="dni-plaintext"><pre>&quot;Unexpected &#39;a&#39;&quot;                │
> │ </pre></div></td></tr><tr><td>Item3</td><td><details                         │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{            │
> │ currentLine = &quot;a&quot;<br />  line = 0<br />  column = 0                │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ currentLine</td><td><div class="dni-plaintext"><pre>&quot;a&quot;            │
> │ </pre></div></td></tr><tr><td>line</td><td><div class="dni-plaintext"><pre>0 │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>0                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>IsSu │
> │ ccess</td><td><div class="dni-plaintext"><pre>false                          │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 35.05ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Line:0 Col:0 Error parsing escaped char                                      │
> │ a                                                                            │
> │ ^Unexpected 'a'                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### jUnicodeChar                                                             │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let jUnicodeChar =
>     let backslash = pchar '\\'
>     let uChar = pchar 'u'
>     let hexdigit = anyOf ([[ '0' .. '9' ]] @ [[ 'A' .. 'F' ]] @ [[ 'a' .. 'f' 
> ]])
>     let fourHexDigits = hexdigit .>>. hexdigit .>>. hexdigit .>>. hexdigit
> 
>     let inline convertToChar (((h1, h2), h3), h4) =
>         let str = $"%c{h1}%c{h2}%c{h3}%c{h4}"
>         Int32.Parse (str, Globalization.NumberStyles.HexNumber) |> char
> 
>     backslash >>. uChar >>. fourHexDigits
>     |>> convertToChar
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jUnicodeChar "\\u263A"
> |> parserEqual (Success '☺')
> 
> ╭─[ 44.15ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success (&#39;☺&#39;, { lines = [                │
> │ |&quot;\u263A&quot;|]<br />                position = { line = 0<br />       │
> │ column = 6 }                                                                 │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(☺, { lines = [|&quot;\u263A&quot;|]<br />       │
> │ position = { line = 0<br />               column = 6 }                       │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><div class="dni-plaintext"><pre>&#39;☺&#39;                   │
> │ </pre></div></td></tr><tr><td>Item2</td><td><details                         │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ lines = [  │
> │ |&quot;\u263A&quot;|]<br />  position = { line = 0<br />                     │
> │ column = 6 }                                                                 │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ \u263A                       │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 0<br />  column = 6                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>0                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>6                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 49.48ms - stdout ]─────────────────────────────────────────────────────────╮
> │ '☺'                                                                          │
> │ '☺'                                                                          │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### jString                                                                  │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let quotedString =
>     let quote = pchar '\"' <?> "quote"
>     let jchar = jUnescapedChar <|> jEscapedChar <|> jUnicodeChar
> 
>     quote >>. manyChars jchar .>> quote
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let jString =
>     quotedString
>     |>> JString
>     <?> "quoted string"
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> jValueRef <|
>     choice
>         [[
>             jNull
>             jBool
>             jString
>         ]]
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jString "\"\""
> |> parserEqual (Success (JString ""))
> 
> ╭─[ 51.82ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success (JString &quot;&quot;, { lines = [       │
> │ |&quot;&quot;&quot;&quot;|]<br />                       position = { line =  │
> │ 0<br />                                    column = 2 }                      │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(JString &quot;&quot;, { lines = [               │
> │ |&quot;&quot;&quot;&quot;|]<br />  position = { line = 0<br />               │
> │ column = 2 }                                                                 │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><details class="dni-treeview"><summary><span                  │
> │ class="dni-code-hint"><code>JString                                          │
> │ &quot;&quot;</code></span></summary><div><table><thead><tr></tr></thead><tbo │
> │ dy><tr><td>Item</td><td><div class="dni-plaintext"><pre>&quot;&quot;         │
> │ </pre></div></td></tr><tr><td>IsJString</td><td><div                         │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr><tr><td>IsJNumber</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJBool</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNull</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJObject</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJArray</td><td><div                          │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>Item │
> │ 2</td><td><details class="dni-treeview"><su...span                           │
> │ class="dni-code-hint"><code>{ lines = [|&quot;&quot;&quot;&quot;|]<br />     │
> │ position = { line = 0<br />               column = 2 }                       │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ &quot;&quot;                 │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 0<br />  column = 2                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>0                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>2                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 57.80ms - stdout ]─────────────────────────────────────────────────────────╮
> │ JString ""                                                                   │
> │ JString ""                                                                   │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jString "\"a\""
> |> parserEqual (Success (JString "a"))
> 
> ╭─[ 39.28ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success (JString &quot;a&quot;, { lines = [      │
> │ |&quot;&quot;a&quot;&quot;|]<br />                        position = { line  │
> │ = 0<br />                                     column = 3 }                   │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(JString &quot;a&quot;, { lines = [              │
> │ |&quot;&quot;a&quot;&quot;|]<br />  position = { line = 0<br />              │
> │ column = 3 }                                                                 │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><details class="dni-treeview"><summary><span                  │
> │ class="dni-code-hint"><code>JString                                          │
> │ &quot;a&quot;</code></span></summary><div><table><thead><tr></tr></thead><tb │
> │ ody><tr><td>Item</td><td><div class="dni-plaintext"><pre>&quot;a&quot;       │
> │ </pre></div></td></tr><tr><td>IsJString</td><td><div                         │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr><tr><td>IsJNumber</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJBool</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNull</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJObject</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJArray</td><td><div                          │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>Item │
> │ 2</td><td><details class="dni-treev...an class="dni-code-hint"><code>{ lines │
> │ = [|&quot;&quot;a&quot;&quot;|]<br />  position = { line = 0<br />           │
> │ column = 3 }                                                                 │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ &quot;a&quot;                │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 0<br />  column = 3                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>0                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>3                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 45.91ms - stdout ]─────────────────────────────────────────────────────────╮
> │ JString "a"                                                                  │
> │ JString "a"                                                                  │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jString "\"ab\""
> |> parserEqual (Success (JString "ab"))
> 
> ╭─[ 34.82ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success (JString &quot;ab&quot;, { lines = [     │
> │ |&quot;&quot;ab&quot;&quot;|]<br />                         position = {     │
> │ line = 0<br />                                      column = 4 }             │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(JString &quot;ab&quot;, { lines = [             │
> │ |&quot;&quot;ab&quot;&quot;|]<br />  position = { line = 0<br />             │
> │ column = 4 }                                                                 │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><details class="dni-treeview"><summary><span                  │
> │ class="dni-code-hint"><code>JString                                          │
> │ &quot;ab&quot;</code></span></summary><div><table><thead><tr></tr></thead><t │
> │ body><tr><td>Item</td><td><div class="dni-plaintext"><pre>&quot;ab&quot;     │
> │ </pre></div></td></tr><tr><td>IsJString</td><td><div                         │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr><tr><td>IsJNumber</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJBool</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNull</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJObject</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJArray</td><td><div                          │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>Item │
> │ 2</td><td><details class="d... class="dni-code-hint"><code>{ lines = [       │
> │ |&quot;&quot;ab&quot;&quot;|]<br />  position = { line = 0<br />             │
> │ column = 4 }                                                                 │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ &quot;ab&quot;               │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 0<br />  column = 4                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>0                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>4                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 41.64ms - stdout ]─────────────────────────────────────────────────────────╮
> │ JString "ab"                                                                 │
> │ JString "ab"                                                                 │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jString "\"ab\\tde\""
> |> parserEqual (Success (JString "ab\tde"))
> 
> ╭─[ 42.31ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success (JString &quot;ab	de&quot;, { lines = [    │
> │ |&quot;&quot;ab\tde&quot;&quot;|]<br />                            position  │
> │ = { line = 0<br />                                         column = 8 }      │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(JString &quot;ab	de&quot;, { lines = [            │
> │ |&quot;&quot;ab\tde&quot;&quot;|]<br />  position = { line = 0<br />         │
> │ column = 8 }                                                                 │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><details class="dni-treeview"><summary><span                  │
> │ class="dni-code-hint"><code>JString &quot;ab	                                  │
> │ de&quot;</code></span></summary><div><table><thead><tr></tr></thead><tbody>< │
> │ tr><td>Item</td><td><div class="dni-plaintext"><pre>&quot;ab	de&quot;          │
> │ </pre></div></td></tr><tr><td>IsJString</td><td><div                         │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr><tr><td>IsJNumber</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJBool</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNull</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJObject</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJArray</td><td><div                          │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>Item │
> │ 2...dni-code-hint"><code>{ lines = [|&quot;&quot;ab\tde&quot;&quot;|]<br />  │
> │ position = { line = 0<br />               column = 8 }                       │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ &quot;ab\tde&quot;           │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 0<br />  column = 8                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>0                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>8                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 48.57ms - stdout ]─────────────────────────────────────────────────────────╮
> │ JString "ab	de"                                                                │
> │ JString "ab	de"                                                                │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jString "\"ab\\u263Ade\""
> |> parserEqual (Success (JString "ab☺de"))
> 
> ╭─[ 39.76ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success (JString &quot;ab☺de&quot;, { lines = [  │
> │ |&quot;&quot;ab\u263Ade&quot;&quot;|]<br />                                  │
> │ position = { line = 0<br />                                         column = │
> │ 12 }                                                                         │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(JString &quot;ab☺de&quot;, { lines = [          │
> │ |&quot;&quot;ab\u263Ade&quot;&quot;|]<br />  position = { line = 0<br />     │
> │ column = 12 }                                                                │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><details class="dni-treeview"><summary><span                  │
> │ class="dni-code-hint"><code>JString                                          │
> │ &quot;ab☺de&quot;</code></span></summary><div><table><thead><tr></tr></thead │
> │ ><tbody><tr><td>Item</td><td><div                                            │
> │ class="dni-plaintext"><pre>&quot;ab☺de&quot;                                 │
> │ </pre></div></td></tr><tr><td>IsJString</td><td><div                         │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr><tr><td>IsJNumber</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJBool</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNull</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJObject</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJArray</td><td><div                          │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr...nt"><c │
> │ ode>{ lines = [|&quot;&quot;ab\u263Ade&quot;&quot;|]<br />  position = {     │
> │ line = 0<br />               column = 12 }                                   │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ &quot;ab\u263Ade&quot;       │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 0<br />  column = 12                                                         │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>0                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>12                                                │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 46.44ms - stdout ]─────────────────────────────────────────────────────────╮
> │ JString "ab☺de"                                                              │
> │ JString "ab☺de"                                                              │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### jNumber                                                                  │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let jNumber =
>     let optSign = opt (pchar '-')
> 
>     let zero = pstring "0"
> 
>     let digitOneNine =
>         satisfy (fun ch -> Char.IsDigit ch && ch <> '0') "1-9"
> 
>     let digit =
>         satisfy Char.IsDigit "digit"
> 
>     let point = pchar '.'
> 
>     let e = pchar 'e' <|> pchar 'E'
> 
>     let optPlusMinus = opt (pchar '-' <|> pchar '+')
> 
>     let nonZeroInt =
>         digitOneNine .>>. manyChars digit
>         |>> fun (first, rest) -> string first + rest
> 
>     let intPart = zero <|> nonZeroInt
> 
>     let fractionPart = point >>. manyChars1 digit
> 
>     let exponentPart = e >>. optPlusMinus .>>. manyChars1 digit
> 
>     let inline (|>?) opt f =
>         match opt with
>         | None -> ""
>         | Some x -> f x
> 
>     let inline convertToJNumber (((optSign, intPart), fractionPart), expPart) =
>         let signStr =
>             optSign
>             |>? string
> 
>         let fractionPartStr =
>             fractionPart
>             |>? (fun digits -> "." + digits)
> 
>         let expPartStr =
>             expPart
>             |>? fun (optSign, digits) ->
>                 let sign = optSign |>? string
>                 "e" + sign + digits
> 
>         (signStr + intPart + fractionPartStr + expPartStr)
>         |> float
>         |> JNumber
> 
>     optSign .>>. intPart .>>. opt fractionPart .>>. opt exponentPart
>     |>> convertToJNumber
>     <?> "number"
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> jValueRef <|
>     choice
>         [[
>             jNull
>             jBool
>             jString
>             jNumber
>         ]]
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jNumber "123"
> |> parserEqual (Success (JNumber 123.0))
> 
> ╭─[ 57.65ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success (JNumber 123.0, { lines = [              │
> │ |&quot;123&quot;|]<br />                          position = { line = 0<br   │
> │ />                                       column = 3 }                        │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(JNumber 123.0, { lines = [|&quot;123&quot;|]<br │
> │ />  position = { line = 0<br />               column = 3 }                   │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><details class="dni-treeview"><summary><span                  │
> │ class="dni-code-hint"><code>JNumber                                          │
> │ 123.0</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr> │
> │ <td>Item</td><td><div class="dni-plaintext"><pre>123.0                       │
> │ </pre></div></td></tr><tr><td>IsJString</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNumber</td><td><div                         │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr><tr><td>IsJBool</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNull</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJObject</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJArray</td><td><div                          │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>Item │
> │ 2</td><td><details class="dni-treeview"><summary><span                       │
> │ class="dni-code-hint"><code>{ lines = [|&quot;123&quot;|]<br />  position =  │
> │ { line = 0<br />               column = 3 }                                  │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ 123                          │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 0<br />  column = 3                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>0                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>3                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 63.68ms - stdout ]─────────────────────────────────────────────────────────╮
> │ JNumber 123.0                                                                │
> │ JNumber 123.0                                                                │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jNumber "-123"
> |> parserEqual (Success (JNumber -123.0))
> 
> ╭─[ 40.63ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success (JNumber -123.0, { lines = [             │
> │ |&quot;-123&quot;|]<br />                           position = { line = 0<br │
> │ />                                        column = 4 }                       │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(JNumber -123.0, { lines = [                     │
> │ |&quot;-123&quot;|]<br />  position = { line = 0<br />               column  │
> │ = 4 }                                                                        │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><details class="dni-treeview"><summary><span                  │
> │ class="dni-code-hint"><code>JNumber                                          │
> │ -123.0</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr │
> │ ><td>Item</td><td><div class="dni-plaintext"><pre>-123.0                     │
> │ </pre></div></td></tr><tr><td>IsJString</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNumber</td><td><div                         │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr><tr><td>IsJBool</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNull</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJObject</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJArray</td><td><div                          │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>Item │
> │ 2</td><td><details class="dni-treeview"><summary><span                       │
> │ class="dni-code-hint"><code>{ lines = [|&quot;-123&quot;|]<br />  position = │
> │ { line = 0<br />               column = 4 }                                  │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ -123                         │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 0<br />  column = 4                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>0                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>4                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 47.02ms - stdout ]─────────────────────────────────────────────────────────╮
> │ JNumber -123.0                                                               │
> │ JNumber -123.0                                                               │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jNumber "123.4"
> |> parserEqual (Success (JNumber 123.4))
> 
> ╭─[ 50.00ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success (JNumber 123.4, { lines = [              │
> │ |&quot;123.4&quot;|]<br />                          position = { line = 0<br │
> │ />                                       column = 5 }                        │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(JNumber 123.4, { lines = [                      │
> │ |&quot;123.4&quot;|]<br />  position = { line = 0<br />               column │
> │ = 5 }                                                                        │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><details class="dni-treeview"><summary><span                  │
> │ class="dni-code-hint"><code>JNumber                                          │
> │ 123.4</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr> │
> │ <td>Item</td><td><div class="dni-plaintext"><pre>123.4                       │
> │ </pre></div></td></tr><tr><td>IsJString</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNumber</td><td><div                         │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr><tr><td>IsJBool</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNull</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJObject</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJArray</td><td><div                          │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>Item │
> │ 2</td><td><details class="dni-treeview"><summary><span                       │
> │ class="dni-code-hint"><code>{ lines = [|&quot;123.4&quot;|]<br />  position  │
> │ = { line = 0<br />               column = 5 }                                │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ 123.4                        │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 0<br />  column = 5                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>0                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>5                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 57.58ms - stdout ]─────────────────────────────────────────────────────────╮
> │ JNumber 123.4                                                                │
> │ JNumber 123.4                                                                │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jNumber "-123."
> |> parserEqual (Success (JNumber -123.0))
> 
> ╭─[ 42.49ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success (JNumber -123.0, { lines = [             │
> │ |&quot;-123.&quot;|]<br />                           position = { line =     │
> │ 0<br />                                        column = 4 }                  │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(JNumber -123.0, { lines = [                     │
> │ |&quot;-123.&quot;|]<br />  position = { line = 0<br />               column │
> │ = 4 }                                                                        │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><details class="dni-treeview"><summary><span                  │
> │ class="dni-code-hint"><code>JNumber                                          │
> │ -123.0</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr │
> │ ><td>Item</td><td><div class="dni-plaintext"><pre>-123.0                     │
> │ </pre></div></td></tr><tr><td>IsJString</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNumber</td><td><div                         │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr><tr><td>IsJBool</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNull</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJObject</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJArray</td><td><div                          │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>Item │
> │ 2</td><td><details class="dni-treeview"><summary><span                       │
> │ class="dni-code-hint"><code>{ lines = [|&quot;-123.&quot;|]<br />  position  │
> │ = { line = 0<br />               column = 4 }                                │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ -123.                        │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 0<br />  column = 4                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>0                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>4                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 49.10ms - stdout ]─────────────────────────────────────────────────────────╮
> │ JNumber -123.0                                                               │
> │ JNumber -123.0                                                               │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jNumber "00.1"
> |> parserEqual (Success (JNumber 0.0))
> 
> ╭─[ 38.03ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success (JNumber 0.0, { lines = [                │
> │ |&quot;00.1&quot;|]<br />                        position = { line = 0<br /> │
> │ column = 1 }                                                                 │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(JNumber 0.0, { lines = [|&quot;00.1&quot;|]<br  │
> │ />  position = { line = 0<br />               column = 1 }                   │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><details class="dni-treeview"><summary><span                  │
> │ class="dni-code-hint"><code>JNumber                                          │
> │ 0.0</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><t │
> │ d>Item</td><td><div class="dni-plaintext"><pre>0.0                           │
> │ </pre></div></td></tr><tr><td>IsJString</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNumber</td><td><div                         │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr><tr><td>IsJBool</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNull</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJObject</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJArray</td><td><div                          │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>Item │
> │ 2</td><td><details class="dni-treeview"><summary><span                       │
> │ class="dni-code-hint"><code>{ lines = [|&quot;00.1&quot;|]<br />  position = │
> │ { line = 0<br />               column = 1 }                                  │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ 00.1                         │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 0<br />  column = 1                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>0                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>1                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 44.66ms - stdout ]─────────────────────────────────────────────────────────╮
> │ JNumber 0.0                                                                  │
> │ JNumber 0.0                                                                  │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let jNumber_ = jNumber .>> spaces1
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jNumber_ "123"
> |> parserEqual (Success (JNumber 123.0))
> 
> ╭─[ 42.35ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success (JNumber 123.0, { lines = [              │
> │ |&quot;123&quot;|]<br />                          position = { line = 1<br   │
> │ />                                       column = 0 }                        │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(JNumber 123.0, { lines = [|&quot;123&quot;|]<br │
> │ />  position = { line = 1<br />               column = 0 }                   │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><details class="dni-treeview"><summary><span                  │
> │ class="dni-code-hint"><code>JNumber                                          │
> │ 123.0</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr> │
> │ <td>Item</td><td><div class="dni-plaintext"><pre>123.0                       │
> │ </pre></div></td></tr><tr><td>IsJString</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNumber</td><td><div                         │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr><tr><td>IsJBool</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNull</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJObject</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJArray</td><td><div                          │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>Item │
> │ 2</td><td><details class="dni-treeview"><summary><span                       │
> │ class="dni-code-hint"><code>{ lines = [|&quot;123&quot;|]<br />  position =  │
> │ { line = 1<br />               column = 0 }                                  │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ 123                          │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 1<br />  column = 0                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>1                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>0                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 48.28ms - stdout ]─────────────────────────────────────────────────────────╮
> │ JNumber 123.0                                                                │
> │ JNumber 123.0                                                                │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jNumber_ "-123"
> |> parserEqual (Success (JNumber -123.0))
> 
> ╭─[ 34.84ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success (JNumber -123.0, { lines = [             │
> │ |&quot;-123&quot;|]<br />                           position = { line = 1<br │
> │ />                                        column = 0 }                       │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(JNumber -123.0, { lines = [                     │
> │ |&quot;-123&quot;|]<br />  position = { line = 1<br />               column  │
> │ = 0 }                                                                        │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><details class="dni-treeview"><summary><span                  │
> │ class="dni-code-hint"><code>JNumber                                          │
> │ -123.0</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr │
> │ ><td>Item</td><td><div class="dni-plaintext"><pre>-123.0                     │
> │ </pre></div></td></tr><tr><td>IsJString</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNumber</td><td><div                         │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr><tr><td>IsJBool</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNull</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJObject</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJArray</td><td><div                          │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>Item │
> │ 2</td><td><details class="dni-treeview"><summary><span                       │
> │ class="dni-code-hint"><code>{ lines = [|&quot;-123&quot;|]<br />  position = │
> │ { line = 1<br />               column = 0 }                                  │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ -123                         │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 1<br />  column = 0                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>1                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>0                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 43.57ms - stdout ]─────────────────────────────────────────────────────────╮
> │ JNumber -123.0                                                               │
> │ JNumber -123.0                                                               │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jNumber_ "-123."
> |> parserEqual (
>     Failure (
>         "number andThen many1 whitespace",
>         "Unexpected '.'",
>         { currentLine = "-123."; line = 0; column = 4 }
>     )
> )
> 
> ╭─[ 28.47ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Failure<br />  (&quot;number andThen many1       │
> │ whitespace&quot;, &quot;Unexpected &#39;.&#39;&quot;, { currentLine =        │
> │ &quot;-123.&quot;<br />                                                      │
> │ line = 0<br />                                                               │
> │ column = 4                                                                   │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><div class="dni-plaintext"><pre>&quot;number andThen many1    │
> │ whitespace&quot;                                                             │
> │ </pre></div></td></tr><tr><td>Item2</td><td><div                             │
> │ class="dni-plaintext"><pre>&quot;Unexpected &#39;.&#39;&quot;                │
> │ </pre></div></td></tr><tr><td>Item3</td><td><details                         │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{            │
> │ currentLine = &quot;-123.&quot;<br />  line = 0<br />  column = 4            │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ currentLine</td><td><div class="dni-plaintext"><pre>&quot;-123.&quot;        │
> │ </pre></div></td></tr><tr><td>line</td><td><div class="dni-plaintext"><pre>0 │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>4                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>IsSu │
> │ ccess</td><td><div class="dni-plaintext"><pre>false                          │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 32.86ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Line:0 Col:4 Error parsing number andThen many1 whitespace                   │
> │ -123.                                                                        │
> │     ^Unexpected '.'                                                          │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jNumber_ "123.4"
> |> parserEqual (Success (JNumber 123.4))
> 
> ╭─[ 35.64ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success (JNumber 123.4, { lines = [              │
> │ |&quot;123.4&quot;|]<br />                          position = { line = 1<br │
> │ />                                       column = 0 }                        │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(JNumber 123.4, { lines = [                      │
> │ |&quot;123.4&quot;|]<br />  position = { line = 1<br />               column │
> │ = 0 }                                                                        │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><details class="dni-treeview"><summary><span                  │
> │ class="dni-code-hint"><code>JNumber                                          │
> │ 123.4</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr> │
> │ <td>Item</td><td><div class="dni-plaintext"><pre>123.4                       │
> │ </pre></div></td></tr><tr><td>IsJString</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNumber</td><td><div                         │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr><tr><td>IsJBool</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNull</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJObject</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJArray</td><td><div                          │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>Item │
> │ 2</td><td><details class="dni-treeview"><summary><span                       │
> │ class="dni-code-hint"><code>{ lines = [|&quot;123.4&quot;|]<br />  position  │
> │ = { line = 1<br />               column = 0 }                                │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ 123.4                        │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 1<br />  column = 0                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>1                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>0                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 41.35ms - stdout ]─────────────────────────────────────────────────────────╮
> │ JNumber 123.4                                                                │
> │ JNumber 123.4                                                                │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jNumber_ "00.4"
> |> parserEqual (
>     Failure (
>         "number andThen many1 whitespace",
>         "Unexpected '0'",
>         { currentLine = "00.4"; line = 0; column = 1 }
>     )
> )
> 
> ╭─[ 30.91ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Failure<br />  (&quot;number andThen many1       │
> │ whitespace&quot;, &quot;Unexpected &#39;0&#39;&quot;, { currentLine =        │
> │ &quot;00.4&quot;<br />                                                       │
> │ line = 0<br />                                                               │
> │ column = 1                                                                   │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><div class="dni-plaintext"><pre>&quot;number andThen many1    │
> │ whitespace&quot;                                                             │
> │ </pre></div></td></tr><tr><td>Item2</td><td><div                             │
> │ class="dni-plaintext"><pre>&quot;Unexpected &#39;0&#39;&quot;                │
> │ </pre></div></td></tr><tr><td>Item3</td><td><details                         │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{            │
> │ currentLine = &quot;00.4&quot;<br />  line = 0<br />  column = 1             │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ currentLine</td><td><div class="dni-plaintext"><pre>&quot;00.4&quot;         │
> │ </pre></div></td></tr><tr><td>line</td><td><div class="dni-plaintext"><pre>0 │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>1                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>IsSu │
> │ ccess</td><td><div class="dni-plaintext"><pre>false                          │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 35.60ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Line:0 Col:1 Error parsing number andThen many1 whitespace                   │
> │ 00.4                                                                         │
> │  ^Unexpected '0'                                                             │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jNumber_ "123e4"
> |> parserEqual (Success (JNumber 1230000.0))
> 
> ╭─[ 43.59ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success (JNumber 1230000.0, { lines = [          │
> │ |&quot;123e4&quot;|]<br />                              position = { line =  │
> │ 1<br />                                           column = 0 }               │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(JNumber 1230000.0, { lines = [                  │
> │ |&quot;123e4&quot;|]<br />  position = { line = 1<br />               column │
> │ = 0 }                                                                        │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><details class="dni-treeview"><summary><span                  │
> │ class="dni-code-hint"><code>JNumber                                          │
> │ 1230000.0</code></span></summary><div><table><thead><tr></tr></thead><tbody> │
> │ <tr><td>Item</td><td><div class="dni-plaintext"><pre>1230000.0               │
> │ </pre></div></td></tr><tr><td>IsJString</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNumber</td><td><div                         │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr><tr><td>IsJBool</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNull</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJObject</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJArray</td><td><div                          │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>Item │
> │ 2</td><td><details class="dni-treeview"><summary><span                       │
> │ class="dni-code-hint"><code>{ lines = [|&quot;123e4&quot;|]<br />  position  │
> │ = { line = 1<br />               column = 0 }                                │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ 123e4                        │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 1<br />  column = 0                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>1                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>0                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 49.87ms - stdout ]─────────────────────────────────────────────────────────╮
> │ JNumber 1230000.0                                                            │
> │ JNumber 1230000.0                                                            │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jNumber_ "123.4e5"
> |> parserEqual (Success (JNumber 12340000.0))
> 
> ╭─[ 38.77ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success (JNumber 12340000.0, { lines = [         │
> │ |&quot;123.4e5&quot;|]<br />                               position = { line │
> │ = 1<br />                                            column = 0 }            │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(JNumber 12340000.0, { lines = [                 │
> │ |&quot;123.4e5&quot;|]<br />  position = { line = 1<br />                    │
> │ column = 0 }                                                                 │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><details class="dni-treeview"><summary><span                  │
> │ class="dni-code-hint"><code>JNumber                                          │
> │ 12340000.0</code></span></summary><div><table><thead><tr></tr></thead><tbody │
> │ ><tr><td>Item</td><td><div class="dni-plaintext"><pre>12340000.0             │
> │ </pre></div></td></tr><tr><td>IsJString</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNumber</td><td><div                         │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr><tr><td>IsJBool</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNull</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJObject</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJArray</td><td><div                          │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>Item │
> │ 2</td><td><details class="dni-treeview"><summary><span                       │
> │ class="dni-code-hint"><code>{ lines = [|&quot;123.4e5&quot;|]<br />          │
> │ position = { line = 1<br />               column = 0 }                       │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ 123.4e5                      │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 1<br />  column = 0                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>1                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>0                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 45.17ms - stdout ]─────────────────────────────────────────────────────────╮
> │ JNumber 12340000.0                                                           │
> │ JNumber 12340000.0                                                           │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jNumber_ "123.4e-5"
> |> parserEqual (Success (JNumber 0.001234))
> 
> ╭─[ 40.26ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success (JNumber 0.001234, { lines = [           │
> │ |&quot;123.4e-5&quot;|]<br />                             position = { line  │
> │ = 1<br />                                          column = 0 }              │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(JNumber 0.001234, { lines = [                   │
> │ |&quot;123.4e-5&quot;|]<br />  position = { line = 1<br />                   │
> │ column = 0 }                                                                 │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><details class="dni-treeview"><summary><span                  │
> │ class="dni-code-hint"><code>JNumber                                          │
> │ 0.001234</code></span></summary><div><table><thead><tr></tr></thead><tbody>< │
> │ tr><td>Item</td><td><div class="dni-plaintext"><pre>0.001234                 │
> │ </pre></div></td></tr><tr><td>IsJString</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNumber</td><td><div                         │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr><tr><td>IsJBool</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNull</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJObject</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJArray</td><td><div                          │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>Item │
> │ 2</td><td><details class="dni-treeview"><summary><span                       │
> │ class="dni-code-hint"><code>{ lines = [|&quot;123.4e-5&quot;|]<br />         │
> │ position = { line = 1<br />               column = 0 }                       │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ 123.4e-5                     │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 1<br />  column = 0                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>1                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>0                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 46.65ms - stdout ]─────────────────────────────────────────────────────────╮
> │ JNumber 0.001234                                                             │
> │ JNumber 0.001234                                                             │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### jArray                                                                   │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let jArray =
>     let left = pchar '[[' .>> spaces
>     let right = pchar ']]' .>> spaces
>     let comma = pchar ',' .>> spaces
>     let value = jValue .>> spaces
> 
>     let values = sepBy value comma
> 
>     between left values right
>     |>> JArray
>     <?> "array"
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> jValueRef <|
>     choice
>         [[
>             jNull
>             jBool
>             jString
>             jNumber
>             jArray
>         ]]
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jArray "[[ 1, 2 ]]"
> |> parserEqual (Success (JArray [[ JNumber 1.0; JNumber 2.0 ]]))
> 
> ╭─[ 89.42ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success (JArray [JNumber 1.0; JNumber 2.0], {    │
> │ lines = [|&quot;[ 1, 2 ]&quot;|]<br />                                       │
> │ position = { line = 1<br />                                                  │
> │ column = 0 }                                                                 │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(JArray [JNumber 1.0; JNumber 2.0], { lines = [  │
> │ |&quot;[ 1, 2 ]&quot;|]<br />  position = { line = 1<br />                   │
> │ column = 0 }                                                                 │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><details class="dni-treeview"><summary><span                  │
> │ class="dni-code-hint"><code>JArray [JNumber 1.0; JNumber                     │
> │ 2.0]</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr>< │
> │ td>Item</td><td><table><thead><tr><th><i>index</i></th><th>value</th></tr></ │
> │ thead><tbody><tr><td>0</td><td><details class="dni-treeview"><summary><span  │
> │ class="dni-code-hint"><code>JNumber                                          │
> │ 1.0</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><t │
> │ d>Item</td><td><div class="dni-plaintext"><pre>1.0                           │
> │ </pre></div></td></tr><tr><td>IsJString</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNumber</td><td><div                         │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr><tr><td>IsJBool</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNull</td><td>...ummary><span                │
> │ class="dni-code-hint"><code>{ lines = [|&quot;[ 1, 2 ]&quot;|]<br />         │
> │ position = { line = 1<br />               column = 0 }                       │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ [ 1, 2 ]                     │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 1<br />  column = 0                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>1                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>0                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 95.59ms - stdout ]─────────────────────────────────────────────────────────╮
> │ JArray [JNumber 1.0; JNumber 2.0]                                            │
> │ JArray [JNumber 1.0; JNumber 2.0]                                            │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jArray "[[ 1, 2, ]]"
> |> parserEqual (
>     Failure (
>         "array",
>         "Unexpected ','",
>         { currentLine = "[[ 1, 2, ]]"; line = 0; column = 6 }
>     )
> )
> 
> ╭─[ 39.68ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Failure (&quot;array&quot;, &quot;Unexpected     │
> │ &#39;,&#39;&quot;, { currentLine = &quot;[ 1, 2, ]&quot;<br />               │
> │ line = 0<br />                                      column = 6               │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><div class="dni-plaintext"><pre>&quot;array&quot;             │
> │ </pre></div></td></tr><tr><td>Item2</td><td><div                             │
> │ class="dni-plaintext"><pre>&quot;Unexpected &#39;,&#39;&quot;                │
> │ </pre></div></td></tr><tr><td>Item3</td><td><details                         │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{            │
> │ currentLine = &quot;[ 1, 2, ]&quot;<br />  line = 0<br />  column = 6        │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ currentLine</td><td><div class="dni-plaintext"><pre>&quot;[ 1, 2, ]&quot;    │
> │ </pre></div></td></tr><tr><td>line</td><td><div class="dni-plaintext"><pre>0 │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>6                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>IsSu │
> │ ccess</td><td><div class="dni-plaintext"><pre>false                          │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 44.72ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Line:0 Col:6 Error parsing array                                             │
> │ [ 1, 2, ]                                                                    │
> │       ^Unexpected ','                                                        │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### jObject                                                                  │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let jObject =
>     let left = spaces >>. pchar '{' .>> spaces
>     let right = pchar '}' .>> spaces
>     let colon = pchar ':' .>> spaces
>     let comma = pchar ',' .>> spaces
>     let key = quotedString .>> spaces
>     let value = jValue .>> spaces
> 
>     let keyValue = (key .>> colon) .>>. value
>     let keyValues = sepBy keyValue comma
> 
>     between left keyValues right
>     |>> Map.ofList
>     |>> JObject
>     <?> "object"
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> jValueRef <|
>     choice
>         [[
>             jNull
>             jBool
>             jString
>             jNumber
>             jArray
>             jObject
>         ]]
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jObject """{ "a":1, "b"  :  2 }"""
> |> parserEqual (
>     Success (
>         JObject (
>             Map.ofList [[
>                 "a", JNumber 1.0
>                 "b", JNumber 2.0
>             ]]
>         )
>     )
> )
> 
> ╭─[ 91.72ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success<br />  (JObject (map [(&quot;a&quot;,    │
> │ JNumber 1.0); (&quot;b&quot;, JNumber 2.0)]),<br />   { lines = [|&quot;{    │
> │ &quot;a&quot;:1, &quot;b&quot;  :  2 }&quot;|]<br />     position = { line = │
> │ 1<br />                  column = 0 }                                        │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(JObject (map [(&quot;a&quot;, JNumber 1.0);     │
> │ (&quot;b&quot;, JNumber 2.0)]), { lines = [|&quot;{ &quot;a&quot;:1,         │
> │ &quot;b&quot;  :  2 }&quot;|]<br />  position = { line = 1<br />             │
> │ column = 0 }                                                                 │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><details class="dni-treeview"><summary><span                  │
> │ class="dni-code-hint"><code>JObject (map [(&quot;a&quot;, JNumber 1.0);      │
> │ (&quot;b&quot;, JNumber                                                      │
> │ 2.0)])</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr │
> │ ><td>Item</td><td><table><thead><tr><th><i>key</i></th><th>value</th></tr></ │
> │ thead><tbody><tr><td><div class="dni-plaintext"><pre>&quot;a&quot;           │
> │ </pre></div></td><td><details class="dni-treeview"><summary><span            │
> │ class="dni-code-hint"><code>JNumber                                          │
> │ 1.0</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><t │
> │ d>Item</td><td><div class="dni-plaintext"><pre>1.0                           │
> │ </pre></div></td></tr><tr><td>IsJString</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNumber</...ot;a&quot;:1, &quot;b&quot;  :   │
> │ 2 }&quot;|]<br />  position = { line = 1<br />               column = 0 }    │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ { &quot;a&quot;:1,           │
> │ &quot;b&quot;  :  2 }                                                        │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 1<br />  column = 0                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>1                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>0                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 97.77ms - stdout ]─────────────────────────────────────────────────────────╮
> │ JObject (map [("a", JNumber 1.0); ("b", JNumber 2.0)])                       │
> │ JObject (map [("a", JNumber 1.0); ("b", JNumber 2.0)])                       │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jObject """{ "a":1, "b"  :  2, }"""
> |> parserEqual (
>     Failure (
>         "object",
>         "Unexpected ','",
>         { currentLine = """{ "a":1, "b"  :  2, }"""; line = 0; column = 18 }
>     )
> )
> 
> ╭─[ 41.20ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Failure (&quot;object&quot;, &quot;Unexpected    │
> │ &#39;,&#39;&quot;, { currentLine = &quot;{ &quot;a&quot;:1, &quot;b&quot;  : │
> │ 2, }&quot;<br />                                       line = 0<br />        │
> │ column = 18                                                                  │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><div class="dni-plaintext"><pre>&quot;object&quot;            │
> │ </pre></div></td></tr><tr><td>Item2</td><td><div                             │
> │ class="dni-plaintext"><pre>&quot;Unexpected &#39;,&#39;&quot;                │
> │ </pre></div></td></tr><tr><td>Item3</td><td><details                         │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{            │
> │ currentLine = &quot;{ &quot;a&quot;:1, &quot;b&quot;  :  2, }&quot;<br />    │
> │ line = 0<br />  column = 18                                                  │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ currentLine</td><td><div class="dni-plaintext"><pre>&quot;{ &quot;a&quot;:1, │
> │ &quot;b&quot;  :  2, }&quot;                                                 │
> │ </pre></div></td></tr><tr><td>line</td><td><div class="dni-plaintext"><pre>0 │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>18                                                │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>IsSu │
> │ ccess</td><td><div class="dni-plaintext"><pre>false                          │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 45.81ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Line:0 Col:18 Error parsing object                                           │
> │ { "a":1, "b"  :  2, }                                                        │
> │                   ^Unexpected ','                                            │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### jValue                                                                   │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let example1 = """{
>     "name" : "Scott",
>     "isMale" : true,
>     "bday" : {"year":2001, "month":12, "day":25 },
>     "favouriteColors" : [["blue", "green"]],
>     "emptyArray" : [[]],
>     "emptyObject" : {}
> }"""
> run jValue example1
> |> parserEqual (
>     Success (
>         JObject (
>             Map.ofList [[
>                 "name", JString "Scott"
>                 "isMale", JBool true
>                 "bday", JObject (
>                     Map.ofList [[
>                         "year", JNumber 2001.0
>                         "month", JNumber 12.0
>                         "day", JNumber 25.0
>                     ]]
>                 )
>                 "favouriteColors", JArray [[ JString "blue"; JString "green" ]]
>                 "emptyArray", JArray [[]]
>                 "emptyObject", JObject Map.empty
>             ]]
>         )
>     )
> )
> 
> ╭─[ 163.74ms - return value ]──────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success<br />  (JObject<br />     (map<br />     │
> │ [(&quot;bday&quot;,<br />          JObject<br />            (map<br />       │
> │ [(&quot;day&quot;, JNumber 25.0); (&quot;month&quot;, JNumber 12.0);<br />   │
> │ (&quot;year&quot;, JNumber 2001.0)])); (&quot;emptyArray&quot;, JArray [     │
> │ ]);<br />         (&quot;emptyObject&quot;, JObject (map []));<br />         │
> │ (&quot;favouriteColors&quot;,                                                │
> │ ...</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><t │
> │ d>Item</td><td><details class="dni-treeview"><summary><span                  │
> │ class="dni-code-hint"><code>(JObject<br />  (map<br />     [                 │
> │ (&quot;bday&quot;,<br />       JObject<br />         (map<br />            [ │
> │ (&quot;day&quot;, JNumber 25.0); (&quot;month&quot;, JNumber 12.0);<br />    │
> │ (&quot;year&quot;, JNumber 2001.0)])); (&quot;emptyArray&quot;, JArray [     │
> │ ]);<br />      (&quot;emptyObject&quot;, JObject (map []));<br />            │
> │ (&quot;favouriteColors&quot;, JArray [JString &quot;blue&quot;; JString      │
> │ &quot;gr...</code></span></summary><div><table><thead><tr></tr></thead><tbod │
> │ y><tr><td>Item1</td><td><details class="dni-treeview"><summary><span         │
> │ class="dni-code-hint"><code>JObject<br />  (map<br />     [                  │
> │ (&quot;bday&quot;,<br />       JObject<br />         (map<br />            [ │
> │ (&quot;day&quot;, JNumber 25.0); (&quot;month&quot;, JNumber 12.0);<br />    │
> │ (&quot;year&quot;, JNumber 2001.0)])); (&quot;emptyArray&quot;, JArra...,,   │
> │ &quot;isMale&quot; : true,,     &quot;bday&quot; : {&quot;year&quot;:2001,   │
> │ &quot;month&quot;:12, &quot;day&quot;:25 },,     &quot;favouriteColors&quot; │
> │ : [&quot;blue&quot;, &quot;green&quot;],,     &quot;emptyArray&quot; : [],,  │
> │ &quot;emptyObject&quot; : {}, }                                              │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 8<br />  column = 0                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>8                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>0                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 171.39ms - stdout ]────────────────────────────────────────────────────────╮
> │ JObject                                                                      │
> │   (map                                                                       │
> │      [("bday",                                                               │
> │        JObject                                                               │
> │          (map                                                                │
> │             [("day", JNumber 25.0); ("month", JNumber 12.0);                 │
> │              ("year", JNumber 2001.0)])); ("emptyArray", JArray []);         │
> │       ("emptyObject", JObject (map []));                                     │
> │       ("favouriteColors", JArray [JString "blue"; JString "green"]);         │
> │       ("isMale", JBool true); ("name", JString "Scott")])                    │
> │ JObject                                                                      │
> │   (map                                                                       │
> │      [("bday", JObject (map [("day", JNumber 25.0); ("month", JNumber 12.0); │
> │ ("year", JNumber 2001.0)]));                                                 │
> │       ("emptyArray", JArray []); ("emptyObject", JObject (map []));          │
> │       ("favouriteColors", JArray [JString "blue"; JString "green"]);         │
> │ ("isMale", JBool true); ("name", JString "Scott")])                          │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let example2 = """{"widget": {
>     "debug": "on",
>     "window": {
>         "title": "Sample Konfabulator Widget",
>         "name": "main_window",
>         "width": 500,
>         "height": 500
>     },
>     "image": {
>         "src": "Images/Sun.png",
>         "name": "sun1",
>         "hOffset": 250,
>         "vOffset": 250,
>         "alignment": "center"
>     },
>     "text": {
>         "data": "Click Here",
>         "size": 36,
>         "style": "bold",
>         "name": "text1",
>         "hOffset": 250,
>         "vOffset": 100,
>         "alignment": "center",
>         "onMouseUp": "sun1.opacity = (sun1.opacity / 100) * 90;"
>     }
> }}"""
> 
> run jValue example2
> |> parserEqual (
>     Success (
>         JObject (
>             Map.ofList [[
>                 "widget", JObject (
>                     Map.ofList [[
>                         "debug", JString "on"
>                         "window", JObject (
>                             Map.ofList [[
>                                 "title", JString "Sample Konfabulator Widget"
>                                 "name", JString "main_window"
>                                 "width", JNumber 500.0
>                                 "height", JNumber 500.0
>                             ]]
>                         )
>                         "image", JObject (
>                             Map.ofList [[
>                                 "src", JString "Images/Sun.png"
>                                 "name", JString "sun1"
>                                 "hOffset", JNumber 250.0
>                                 "vOffset", JNumber 250.0
>                                 "alignment", JString "center"
>                             ]]
>                         )
>                         "text", JObject (
>                             Map.ofList [[
>                                 "data", JString "Click Here"
>                                 "size", JNumber 36.0
>                                 "style", JString "bold"
>                                 "name", JString "text1"
>                                 "hOffset", JNumber 250.0
>                                 "vOffset", JNumber 100.0
>                                 "alignment", JString "center"
>                                 "onMouseUp", JString "sun1.opacity = 
> (sun1.opacity / 100) * 90;"
>                             ]]
>                         )
>                     ]]
>                 )
>             ]]
>         )
>     )
> )
> 
> ╭─[ 316.16ms - return value ]──────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success<br />  (JObject<br />     (map<br />     │
> │ [(&quot;widget&quot;,<br />          JObject<br />            (map<br />     │
> │ [(&quot;debug&quot;, JString &quot;on&quot;);<br />                          │
> │ (&quot;image&quot;,<br />                 JObject<br />                      │
> │ (map<br />                      [(&quot;alignment&quot;, JString             │
> │ &quot;center&quot;);<br />                                                   │
> │ (&quot;hOffset&quot;...</code></span></summary><div><table><thead><tr></tr>< │
> │ /thead><tbody><tr><td>Item</td><td><details                                  │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>(JObject<br  │
> │ />  (map<br />     [(&quot;widget&quot;,<br />       JObject<br />           │
> │ (map<br />            [(&quot;debug&quot;, JString &quot;on&quot;);<br />    │
> │ (&quot;image&quot;,<br />              JObject<br />                (map<br  │
> │ />                   [(&quot;alignment&quot;, JString &quot;center&quot;);   │
> │ (&quot;hOffset&quot;, JNumber 250.0);<br />                                  │
> │ (&quot;name&quot;, JString                                                   │
> │ &quot;sun1&quot;...</code></span></summary><div><table><thead><tr></tr></the │
> │ ad><tbody><tr><td>Item1</td><td><details class="dni-treeview"><summary><span │
> │ class="dni-code-hint"><code>JObject<br />  (map<br />     [                  │
> │ (&quot;widget&quot;,<br />       JObject<br />         (map<br />            │
> │ [(&quot;debug&quot;, JString &quot;on&quot;);<br />                          │
> │ (&quot;image&quot;,<br />              JObject<br />                (...t;,, │
> │ &quot;name&quot;: &quot;text1&quot;,,         &quot;hOffset&quot;: 250,,     │
> │ &quot;vOffset&quot;: 100,,         &quot;alignment&quot;:                    │
> │ &quot;center&quot;,,         &quot;onMouseUp&quot;: &quot;sun1.opacity =     │
> │ (sun1.opacity / 100) * 90;&quot;,     }, }}                                  │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 26<br />  column = 0                                                         │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>26                              │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>0                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 322.62ms - stdout ]────────────────────────────────────────────────────────╮
> │ JObject                                                                      │
> │   (map                                                                       │
> │      [("widget",                                                             │
> │        JObject                                                               │
> │          (map                                                                │
> │             [("debug", JString "on");                                        │
> │              ("image",                                                       │
> │               JObject                                                        │
> │                 (map                                                         │
> │                    [("alignment", JString "center"); ("hOffset", JNumber     │
> │ 250.0);                                                                      │
> │                     ("name", JString "sun1"); ("src", JString                │
> │ "Images/Sun.png");                                                           │
> │                     ("vOffset", JNumber 250.0)]));                           │
> │              ("text",                                                        │
> │               JObject                                                        │
> │                 (map                                                         │
> │                    [("alignment", JString "center");                         │
> │                     ("data", JString "Click Here"); ("hOffset", JNumber      │
> │ 250.0);                                                                      │
> │                     ("name", JString "text1");                               │
> │                     ("onMouseUp",                                            │
> │                      JString "sun1.opacity = (sun1.opacity / 100) * 90;");   │
> │                     ("size", JNumber 36.0); ("style", JString "bold");       │
> │                     ("vOffset", JNumber 100.0)]));                           │
> │              ("window",                                                      │
> │               JObject                                                        │
> │                 (map                                                         │
> │                    [("height", JNumber 500.0); ("name", JString              │
> │ "main_window");                                                              │
> │                     ("title", JString "Sample Konfabulator Widget");         │
> │                     ("width", JNumber 500.0)]))]))])                         │
> │ JObject                                                                      │
> │   (map                                                                       │
> │      [("widget",                                                             │
> │        JObject                                                               │
> │          (map                                                                │
> │             [("debug", JString "on");                                        │
> │              ("image",                                                       │
> │               JObject                                                        │
> │                 (map                                                         │
> │                    [("alignment", JString "center"); ("hOffset", JNumber     │
> │ 250.0); ("name", JString "sun1");                                            │
> │                     ("src", JString "Images/Sun.png"); ("vOffset", JNumber   │
> │ 250.0)]));                                                                   │
> │              ("text",                                                        │
> │               JObject                                                        │
> │                 (map                                                         │
> │                    [("alignment", JString "center"); ("data", JString "Click │
> │ Here"); ("hOffset", JNumber 250.0);                                          │
> │                     ("name", JString "text1"); ("onMouseUp", JString         │
> │ "sun1.opacity = (sun1.opacity / 100) * 90;");                                │
> │                     ("size", JNumber 36.0); ("style", JString "bold");       │
> │ ("vOffset", JNumber 100.0)]));                                               │
> │              ("window",                                                      │
> │               JObject                                                        │
> │                 (map                                                         │
> │                    [("height", JNumber 500.0); ("name", JString              │
> │ "main_window");                                                              │
> │                     ("title", JString "Sample Konfabulator Widget");         │
> │ ("width", JNumber 500.0)]))]))])                                             │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let example3 = """{
>   "string": "Hello, \"World\"!",
>   "escapedString": "This string contains \\/\\\\\\b\\f\\n\\r\\t\\\"\\'",
>   "number": 42,
>   "scientificNumber": 3.14e-10,
>   "boolean": true,
>   "nullValue": null,
>   "array": [[1, 2, 3, 4, 5]],
>   "unicodeString1": "프리마",
>   "unicodeString2": "\u0048\u0065\u006C\u006C\u006F, 
> \u0022\u0057\u006F\u0072\u006C\u0064\u0022!",
>   "specialCharacters": "!@#$%^&*()",
>   "emptyArray": [[]],
>   "emptyObject": {},
>   "nestedArrays": [[[[1, 2, 3]], [[4, 5, 6]]]],
>   "object": {
>     "nestedString": "Nested Value",
>     "nestedNumber": 3.14,
>     "nestedBoolean": false,
>     "nestedNull": null,
>     "nestedArray": [["a", "b", "c"]],
>     "nestedObject": {
>       "nestedProperty": "Nested Object Value"
>     }
>   },
>   "nestedObjects": [[
>     {"name": "Alice", "age": 25},
>     {"name": "Bob", "age": 30}
>   ]]
> }"""
> run jValue example3
> |> parserEqual (
>     Success (
>         JObject (
>             Map.ofList [[
>                 "string", JString @"Hello, ""World""!"
>                 "escapedString", JString @"This string contains 
> \/\\\b\f\n\r\t\""\'"
>                 "number", JNumber 42.0
>                 "scientificNumber", JNumber 3.14e-10
>                 "boolean", JBool true
>                 "nullValue", JNull
>                 "array", JArray [[
>                     JNumber 1.0; JNumber 2.0; JNumber 3.0; JNumber 4.0; JNumber 
> 5.0
>                 ]]
>                 "unicodeString1", JString "프리마"
>                 "unicodeString2", JString @"Hello, ""World""!"
>                 "specialCharacters", JString "!@#$%^&*()"
>                 "emptyArray", JArray [[]]
>                 "emptyObject", JObject Map.empty
>                 "nestedArrays", JArray [[
>                     JArray [[ JNumber 1.0; JNumber 2.0; JNumber 3.0 ]]
>                     JArray [[ JNumber 4.0; JNumber 5.0; JNumber 6.0 ]]
>                 ]]
>                 "object", JObject (
>                     Map.ofList [[
>                         "nestedString", JString "Nested Value"
>                         "nestedNumber", JNumber 3.14
>                         "nestedBoolean", JBool false
>                         "nestedNull", JNull
>                         "nestedArray", JArray [[JString "a"; JString "b"; 
> JString "c"]]
>                         "nestedObject", JObject (
>                             Map.ofList [[
>                                 "nestedProperty", JString "Nested Object Value"
>                             ]]
>                         )
>                     ]]
>                 )
>                 "nestedObjects", JArray [[
>                   JObject (Map.ofList [[ "name", JString "Alice"; "age", JNumber
> 25.0 ]])
>                   JObject (Map.ofList [[ "name", JString "Bob"; "age", JNumber 
> 30.0 ]])
>                 ]]
>             ]]
>         )
>     )
> )
> 
> ╭─[ 440.06ms - return value ]──────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success<br />  (JObject<br />     (map<br />     │
> │ [(&quot;array&quot;,<br />          JArray<br />            [JNumber 1.0;    │
> │ JNumber 2.0; JNumber 3.0; JNumber 4.0; JNumber 5.0]);<br />                  │
> │ (&quot;boolean&quot;, JBool true); (&quot;emptyArray&quot;, JArray []);<br   │
> │ />         (&quot;emptyObject&quot;, JObject (map []));<br />                │
> │ (&quot;escapedString&quot;, JString &quot;This                               │
> │ s...</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr>< │
> │ td>Item</td><td><details class="dni-treeview"><summary><span                 │
> │ class="dni-code-hint"><code>(JObject<br />  (map<br />     [                 │
> │ (&quot;array&quot;,<br />       JArray [JNumber 1.0; JNumber 2.0; JNumber    │
> │ 3.0; JNumber 4.0; JNumber 5.0]);<br />      (&quot;boolean&quot;, JBool      │
> │ true); (&quot;emptyArray&quot;, JArray []);<br />                            │
> │ (&quot;emptyObject&quot;, JObject (map []));<br />                           │
> │ (&quot;escapedString&quot;, JString &quot;This string contains \/\\\b\f<br   │
> │ />\r\t\&quot;\&#39;&quot;);<br />                                            │
> │ ...</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><t │
> │ d>Item1</td><td><details class="dni-treeview"><summary><span                 │
> │ class="dni-code-hint"><code>JObject<br />  (map<br />     [                  │
> │ (&quot;array&quot;,<br />       JArray [JNumber 1.0; JNumber 2.0; JNumber    │
> │ 3.0; JNumber 4.0; JNumber 5.0]);<br />      (&quot;boolean&quot;, JBool      │
> │ true); (&quot;emptyArray&quot;, JArray []);<br />                            │
> │ (&quot;emptyObject&quot;, JObject (map []));<br />                           │
> │ (&quot;es...nestedObject&quot;: {,       &quot;nestedProperty&quot;:         │
> │ &quot;Nested Object Value&quot;,     },   },,   &quot;nestedObjects&quot;: [ │
> │ ,     {&quot;name&quot;: &quot;Alice&quot;, &quot;age&quot;: 25},,           │
> │ {&quot;name&quot;: &quot;Bob&quot;, &quot;age&quot;: 30},   ], }             │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 29<br />  column = 0                                                         │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>29                              │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>0                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 447.06ms - stdout ]────────────────────────────────────────────────────────╮
> │ JObject                                                                      │
> │   (map                                                                       │
> │      [("array",                                                              │
> │        JArray [JNumber 1.0; JNumber 2.0; JNumber 3.0; JNumber 4.0; JNumber   │
> │ 5.0]);                                                                       │
> │       ("boolean", JBool true); ("emptyArray", JArray []);                    │
> │       ("emptyObject", JObject (map []));                                     │
> │       ("escapedString", JString "This string contains \/\\\b\f\n\r\t\"\'");  │
> │       ("nestedArrays",                                                       │
> │        JArray                                                                │
> │          [JArray [JNumber 1.0; JNumber 2.0; JNumber 3.0];                    │
> │           JArray [JNumber 4.0; JNumber 5.0; JNumber 6.0]]);                  │
> │       ("nestedObjects",                                                      │
> │        JArray                                                                │
> │          [JObject (map [("age", JNumber 25.0); ("name", JString "Alice")]);  │
> │           JObject (map [("age", JNumber 30.0); ("name", JString "Bob")])]);  │
> │       ("nullValue", JNull); ("number", JNumber 42.0); ...])                  │
> │ JObject                                                                      │
> │   (map                                                                       │
> │      [("array", JArray [JNumber 1.0; JNumber 2.0; JNumber 3.0; JNumber 4.0;  │
> │ JNumber 5.0]); ("boolean", JBool true);                                      │
> │       ("emptyArray", JArray []); ("emptyObject", JObject (map []));          │
> │       ("escapedString", JString "This string contains \/\\\b\f\n\r\t\"\'");  │
> │       ("nestedArrays",                                                       │
> │        JArray [JArray [JNumber 1.0; JNumber 2.0; JNumber 3.0]; JArray [      │
> │ JNumber 4.0; JNumber 5.0; JNumber 6.0]]);                                    │
> │       ("nestedObjects",                                                      │
> │        JArray                                                                │
> │          [JObject (map [("age", JNumber 25.0); ("name", JString "Alice")]);  │
> │           JObject (map [("age", JNumber 30.0); ("name", JString "Bob")])]);  │
> │ ("nullValue", JNull);                                                        │
> │       ("number", JNumber 42.0); ...])                                        │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:23 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 266592 }
00:00:23   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/apps/parser/JsonParser.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/apps/parser/JsonParser.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:00:25 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/apps/parser/JsonParser.dib.ipynb to html
00:00:25 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:00:25 verbose #7 !   validate(nb)
00:00:27 verbose #8 ! [NbConvertApp] Writing 534279 bytes to c:\home\git\polyglot\apps\parser\JsonParser.dib.html
00:00:27 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 653 }
00:00:27   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 653 }
00:00:27   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/apps/parser/JsonParser.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/apps/parser/JsonParser.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:00:28 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:00:28   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:00:29   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 267304 }
00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "Parser.dib"])) }
00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/apps/parser/Parser.dib", "--output-path", "c:/home/git/polyglot/apps/parser/Parser.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/apps/parser/Parser.dib" --output-path "c:/home/git/polyglot/apps/parser/Parser.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ # Parser (Polyglot)                                                          │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> open Common
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### TextInput                                                                │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> type Position =
>     {
>         line : int
>         column : int
>     }
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let initialPos = { line = 0; column = 0 }
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline incrCol (pos : Position) =
>     { pos with column = pos.column + 1 }
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline incrLine pos =
>     { line = pos.line + 1; column = 0 }
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> type InputState =
>     {
>         lines : string[[]]
>         position : Position
>     }
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline fromStr str =
>     {
>         lines =
>             if str |> String.IsNullOrEmpty
>             then [[||]]
>             else str |> SpiralSm.split_string [[| "\r\n"; "\n" |]]
>         position = initialPos
>     }
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> fromStr "" |> _assertEqual {
>     lines = [[||]]
>     position = { line = 0; column = 0 }
> }
> 
> ╭─[ 49.81ms - stdout ]─────────────────────────────────────────────────────────╮
> │ { lines = [||]                                                               │
> │   position = { line = 0                                                      │
> │                column = 0 } }                                                │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> fromStr "Hello \n World" |> _assertEqual {
>     lines = [[| "Hello "; " World" |]]
>     position = { line = 0; column = 0 }
> }
> 
> ╭─[ 21.46ms - stdout ]─────────────────────────────────────────────────────────╮
> │ { lines = [|"Hello "; " World"|]                                             │
> │   position = { line = 0                                                      │
> │                column = 0 } }                                                │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline currentLine inputState =
>     let linePos = inputState.position.line
>     if linePos < inputState.lines.Length
>     then inputState.lines.[[linePos]]
>     else "end of file"
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline nextChar input =
>     let linePos = input.position.line
>     let colPos = input.position.column
> 
>     if linePos >= input.lines.Length
>     then input, None
>     else
>         let currentLine = currentLine input
>         if colPos < currentLine.Length then
>             let char = currentLine.[[colPos]]
>             let newPos = incrCol input.position
>             let newState = { input with position = newPos }
>             newState, Some char
>         else
>             let char = '\n'
>             let newPos = incrLine input.position
>             let newState = { input with position = newPos }
>             newState, Some char
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let newInput, charOpt = fromStr "Hello World" |> nextChar
> 
> newInput |> _assertEqual {
>     lines = [[| "Hello World" |]]
>     position = { line = 0; column = 1 }
> }
> charOpt |> _assertEqual (Some 'H')
> 
> ╭─[ 41.34ms - stdout ]─────────────────────────────────────────────────────────╮
> │ { lines = [|"Hello World"|]                                                  │
> │   position = { line = 0                                                      │
> │                column = 1 } }                                                │
> │                                                                              │
> │ Some 'H'                                                                     │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let newInput, charOpt = fromStr "Hello\n\nWorld" |> nextChar
> 
> newInput |> _assertEqual {
>     lines = [[| "Hello"; ""; "World" |]]
>     position = { line = 0; column = 1 }
> }
> charOpt |> _assertEqual (Some 'H')
> 
> ╭─[ 33.28ms - stdout ]─────────────────────────────────────────────────────────╮
> │ { lines = [|"Hello"; ""; "World"|]                                           │
> │   position = { line = 0                                                      │
> │                column = 1 } }                                                │
> │                                                                              │
> │ Some 'H'                                                                     │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### Parser                                                                   │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> type Input = InputState
> type ParserLabel = string
> type ParserError = string
> 
> type ParserPosition =
>     {
>         currentLine : string
>         line : int
>         column : int
>     }
> 
> type ParseResult<'a> =
>     | Success of 'a
>     | Failure of ParserLabel * ParserError * ParserPosition
> 
> type Parser<'a> =
>     {
>         label : ParserLabel
>         parseFn : Input -> ParseResult<'a * Input>
>     }
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline printResult result =
>     match result with
>     | Success (value, input) ->
>         printfn $"%A{value}"
>     | Failure (label, error, parserPos) ->
>         let errorLine = parserPos.currentLine
>         let colPos = parserPos.column
>         let linePos = parserPos.line
>         let failureCaret = $"{' ' |> string |> String.replicate colPos}^{error}"
>         printfn $"Line:%i{linePos} Col:%i{colPos} Error parsing 
> %s{label}\n%s{errorLine}\n%s{failureCaret}"
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline runOnInput parser input =
>     parser.parseFn input
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline run parser inputStr =
>     runOnInput parser (fromStr inputStr)
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline parserPositionFromInputState (inputState : Input) =
>     {
>         currentLine = currentLine inputState
>         line = inputState.position.line
>         column = inputState.position.column
>     }
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline getLabel parser =
>     parser.label
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline setLabel parser newLabel =
>     {
>         label = newLabel
>         parseFn = fun input ->
>             match parser.parseFn input with
>             | Success s -> Success s
>             | Failure (oldLabel, err, pos) -> Failure (newLabel, err, pos)
>     }
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let (<?>) = setLabel
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline satisfy predicate label =
>     {
>         label = label
>         parseFn = fun input ->
>             let remainingInput, charOpt = nextChar input
>             match charOpt with
>             | None ->
>                 let err = "No more input"
>                 let pos = parserPositionFromInputState input
>                 Failure (label, err, pos)
>             | Some first ->
>                 if predicate first
>                 then Success (first, remainingInput)
>                 else
>                     let err = $"Unexpected '%c{first}'"
>                     let pos = parserPositionFromInputState input
>                     Failure (label, err, pos)
>     }
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let input = fromStr "Hello"
> let parser = satisfy (fun c -> c = 'H') "H"
> runOnInput parser input |> _assertEqual (
>     Success (
>         'H',
>         {
>             lines = [[| "Hello" |]]
>             position = { line = 0; column = 1 }
>         }
>     )
> )
> 
> ╭─[ 37.88ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Success ('H', { lines = [|"Hello"|]                                          │
> │                 position = { line = 0                                        │
> │                              column = 1 } })                                 │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let input = fromStr "World"
> let parser = satisfy (fun c -> c = 'H') "H"
> runOnInput parser input |> _assertEqual (
>     Failure (
>         "H",
>         "Unexpected 'W'",
>         {
>             currentLine = "World"
>             line = 0
>             column = 0
>         }
>     )
> )
> 
> ╭─[ 33.99ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Failure ("H", "Unexpected 'W'", { currentLine = "World"                      │
> │                                   line = 0                                   │
> │                                   column = 0 })                              │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline bindP f p =
>     {
>         label = "unknown"
>         parseFn = fun input ->
>             match runOnInput p input with
>             | Failure (label, err, pos) -> Failure (label, err, pos)
>             | Success (value1, remainingInput) -> runOnInput (f value1) 
> remainingInput
>     }
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline (>>=) p f = bindP f p
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let input = fromStr "Hello"
> let parser = satisfy (fun c -> c = 'H') "H"
> let parser2 = parser >>= fun c -> satisfy (fun c -> c = 'e') "e"
> runOnInput parser2 input |> _assertEqual (
>     Success (
>         'e',
>         {
>             lines = [[| "Hello" |]]
>             position = { line = 0; column = 2 }
>         }
>     )
> )
> 
> ╭─[ 49.67ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Success ('e', { lines = [|"Hello"|]                                          │
> │                 position = { line = 0                                        │
> │                              column = 2 } })                                 │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let input = fromStr "World"
> let parser = satisfy (fun c -> c = 'W') "W"
> let parser2 = parser >>= fun c -> satisfy (fun c -> c = 'e') "e"
> runOnInput parser2 input |> _assertEqual (
>     Failure (
>         "e",
>         "Unexpected 'o'",
>         {
>             currentLine = "World"
>             line = 0
>             column = 1
>         }
>     )
> )
> 
> ╭─[ 52.86ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Failure ("e", "Unexpected 'o'", { currentLine = "World"                      │
> │                                   line = 0                                   │
> │                                   column = 1 })                              │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline returnP x =
>     {
>         label = $"%A{x}"
>         parseFn = fun input -> Success (x, input)
>     }
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let input = fromStr "Hello"
> let parser = returnP "Hello"
> runOnInput parser input |> _assertEqual (
>     Success (
>         "Hello",
>         {
>             lines = [[| "Hello" |]]
>             position = { line = 0; column = 0 }
>         }
>     )
> )
> 
> ╭─[ 28.75ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Success ("Hello", { lines = [|"Hello"|]                                      │
> │                     position = { line = 0                                    │
> │                                  column = 0 } })                             │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline mapP f =
>     bindP (f >> returnP)
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let (<!>) = mapP
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline (|>>) x f = f <!> x
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let input = fromStr "Hello"
> let parser = satisfy (fun c -> c = 'H') "H"
> let parser2 = parser |>> string
> runOnInput parser2 input |> _assertEqual (
>     Success (
>         "H",
>         {
>             lines = [[| "Hello" |]]
>             position = { line = 0; column = 1 }
>         }
>     )
> )
> 
> ╭─[ 53.03ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Success ("H", { lines = [|"Hello"|]                                          │
> │                 position = { line = 0                                        │
> │                              column = 1 } })                                 │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline applyP fP xP =
>     fP >>=
>         fun f ->
>             xP >>=
>                 fun x ->
>                     returnP (f x)
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let (<*>) = applyP
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline lift2 f xP yP =
>     returnP f <*> xP <*> yP
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let input = fromStr "Hello"
> let parser = satisfy (fun c -> c = 'H') "H"
> let parser2 = satisfy (fun c -> c = 'e') "e"
> let parser3 = lift2 (fun c1 c2 -> string c1 + string c2) parser parser2
> runOnInput parser3 input |> _assertEqual (
>     Success (
>         "He",
>         {
>             lines = [[| "Hello" |]]
>             position = { line = 0; column = 2 }
>         }
>     )
> )
> 
> ╭─[ 59.97ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Success ("He", { lines = [|"Hello"|]                                         │
> │                  position = { line = 0                                       │
> │                               column = 2 } })                                │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline andThen p1 p2 =
>     p1 >>=
>         fun p1Result ->
>             p2 >>=
>                 fun p2Result ->
>                     returnP (p1Result, p2Result)
>     <?> $"{getLabel p1} andThen {getLabel p2}"
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let (.>>.) = andThen
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let input = fromStr "Hello"
> let parser = satisfy (fun c -> c = 'H') "H"
> let parser2 = satisfy (fun c -> c = 'e') "e"
> let parser3 = parser .>>. parser2
> runOnInput parser3 input |> _assertEqual (
>     Success (
>         ('H', 'e'),
>         {
>             lines = [[| "Hello" |]]
>             position = { line = 0; column = 2 }
>         }
>     )
> )
> 
> ╭─[ 47.03ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Success (('H', 'e'), { lines = [|"Hello"|]                                   │
> │                        position = { line = 0                                 │
> │                                     column = 2 } })                          │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline orElse p1 p2 =
>     {
>         label = $"{getLabel p1} orElse {getLabel p2}"
>         parseFn = fun input ->
>             match runOnInput p1 input with
>             | Success _ as result -> result
>             | Failure _ -> runOnInput p2 input
>     }
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let (<|>) = orElse
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let input = fromStr "hello"
> let parser = satisfy (fun c -> c = 'H') "H"
> let parser2 = satisfy (fun c -> c = 'h') "h"
> let parser3 = parser <|> parser2
> runOnInput parser3 input |> _assertEqual (
>     Success (
>         'h',
>         {
>             lines = [[| "hello" |]]
>             position = { line = 0; column = 1 }
>         }
>     )
> )
> 
> ╭─[ 43.56ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Success ('h', { lines = [|"hello"|]                                          │
> │                 position = { line = 0                                        │
> │                              column = 1 } })                                 │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline choice listOfParsers =
>     listOfParsers |> List.reduce (<|>)
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let input = fromStr "hello"
> let parser = satisfy (fun c -> c = 'H') "H"
> let parser2 = satisfy (fun c -> c = 'h') "h"
> let parser3 = choice [[ parser; parser2 ]]
> runOnInput parser3 input |> _assertEqual (
>     Success (
>         'h',
>         {
>             lines = [[| "hello" |]]
>             position = { line = 0; column = 1 }
>         }
>     )
> )
> 
> ╭─[ 42.63ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Success ('h', { lines = [|"hello"|]                                          │
> │                 position = { line = 0                                        │
> │                              column = 1 } })                                 │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let rec sequence parserList =
>     match parserList with
>     | [[]] -> returnP [[]]
>     | head :: tail -> (lift2 cons) head (sequence tail)
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let input = fromStr "Hello"
> let parser = satisfy (fun c -> c = 'H') "H"
> let parser2 = satisfy (fun c -> c = 'e') "e"
> let parser3 = sequence [[ parser; parser2 ]]
> runOnInput parser3 input |> _assertEqual (
>     Success (
>         [[ 'H'; 'e' ]],
>         {
>             lines = [[| "Hello" |]]
>             position = { line = 0; column = 2 }
>         }
>     )
> )
> 
> ╭─[ 74.48ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Success (['H'; 'e'], { lines = [|"Hello"|]                                   │
> │                        position = { line = 0                                 │
> │                                     column = 2 } })                          │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let rec parseZeroOrMore parser input =
>     match runOnInput parser input with
>     | Failure (_, _, _) ->
>         [[]], input
>     | Success (firstValue, inputAfterFirstParse) ->
>         let subsequentValues, remainingInput = parseZeroOrMore parser 
> inputAfterFirstParse
>         firstValue :: subsequentValues, remainingInput
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline many parser =
>     {
>         label = $"many {getLabel parser}"
>         parseFn = fun input -> Success (parseZeroOrMore parser input)
>     }
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let input = fromStr "hello"
> let parser = satisfy (fun c -> c = 'H') "H"
> let parser2 = many parser
> runOnInput parser2 input |> _assertEqual (
>     Success (
>         [[]],
>         {
>             lines = [[| "hello" |]]
>             position = { line = 0; column = 0 }
>         }
>     )
> )
> 
> ╭─[ 63.12ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Success ([], { lines = [|"hello"|]                                           │
> │                position = { line = 0                                         │
> │                             column = 0 } })                                  │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline many1 p =
>     p >>=
>         fun head ->
>             many p >>=
>                 fun tail ->
>                     returnP (head :: tail)
>     <?> $"many1 {getLabel p}"
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let input = fromStr "hello"
> let parser = satisfy (fun c -> c = 'H') "H"
> let parser2 = many1 parser
> runOnInput parser2 input |> _assertEqual (
>     Failure (
>         "many1 H",
>         "Unexpected 'h'",
>         {
>             currentLine = "hello"
>             line = 0
>             column = 0
>         }
>     )
> )
> 
> ╭─[ 55.13ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Failure ("many1 H", "Unexpected 'h'", { currentLine = "hello"                │
> │                                         line = 0                             │
> │                                         column = 0 })                        │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline opt p =
>     let some = p |>> Some
>     let none = returnP None
>     (some <|> none)
>     <?> $"opt {getLabel p}"
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let input = fromStr "hello"
> let parser = satisfy (fun c -> c = 'H') "H"
> let parser2 = opt parser
> runOnInput parser2 input |> _assertEqual (
>     Success (
>         None,
>         {
>             lines = [[| "hello" |]]
>             position = { line = 0; column = 0 }
>         }
>     )
> )
> 
> ╭─[ 46.12ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Success (None, { lines = [|"hello"|]                                         │
> │                  position = { line = 0                                       │
> │                               column = 0 } })                                │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline (.>>) p1 p2 =
>     p1 .>>. p2
>     |> mapP fst
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline (>>.) p1 p2 =
>     p1 .>>. p2
>     |> mapP snd
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline between p1 p2 p3 =
>     p1 >>. p2 .>> p3
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let input = fromStr "[[Hello]]"
> let parser =
>     between
>         (satisfy (fun c -> c = '[[') "[[")
>         (many (satisfy (fun c -> [[ 'a' .. 'z' ]] @ [[ 'A' .. 'Z' ]] |> 
> List.contains c) "letter"))
>         (satisfy (fun c -> c = ']]') "]]")
> runOnInput parser input |> _assertEqual (
>     Success (
>         [[ 'H'; 'e'; 'l'; 'l'; 'o' ]],
>         {
>             lines = [[| "[[Hello]]" |]]
>             position = { line = 0; column = 7 }
>         }
>     )
> )
> 
> ╭─[ 130.70ms - stdout ]────────────────────────────────────────────────────────╮
> │ Success (['H'; 'e'; 'l'; 'l'; 'o'], { lines = [|"[Hello]"|]                  │
> │                                       position = { line = 0                  │
> │                                                    column = 7 } })           │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline sepBy1 p sep =
>     let sepThenP = sep >>. p
>     p .>>. many sepThenP
>     |>> fun (p, pList) -> p :: pList
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline sepBy p sep =
>     sepBy1 p sep <|> returnP [[]]
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let input = fromStr "Hello,World"
> let parser = sepBy (many (satisfy (fun c -> c <> ',') "not comma")) (satisfy 
> (fun c -> c = ',') "comma")
> runOnInput parser input |> _assertEqual (
>     Success (
>         [[ [[ 'H'; 'e'; 'l'; 'l'; 'o' ]]; [[ 'W'; 'o'; 'r'; 'l'; 'd'; '\n' ]] 
> ]],
>         {
>             lines = [[| "Hello,World" |]]
>             position = { line = 1; column = 0 }
>         }
>     )
> )
> 
> ╭─[ 88.89ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Success ([['H'; 'e'; 'l'; 'l'; 'o']; ['W'; 'o'; 'r'; 'l'; 'd'; '\010']], {   │
> │ lines = [|"Hello,World"|]                                                    │
> │                                                                              │
> │ position = { line = 1                                                        │
> │                                                                              │
> │ column = 0 } })                                                              │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline pchar charToMatch =
>     satisfy ((=) charToMatch) $"%c{charToMatch}"
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline anyOf listOfChars =
>     listOfChars
>     |> List.map pchar
>     |> choice
>     <?> $"anyOf %A{listOfChars}"
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let input = fromStr "Hello"
> let parser = anyOf [[ 'H'; 'e'; 'l'; 'o' ]] |> many
> runOnInput parser input |> _assertEqual (
>     Success (
>         [[ 'H'; 'e'; 'l'; 'l'; 'o' ]],
>         {
>             lines = [[| "Hello" |]]
>             position = { line = 0; column = 5 }
>         }
>     )
> )
> 
> ╭─[ 49.50ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Success (['H'; 'e'; 'l'; 'l'; 'o'], { lines = [|"Hello"|]                    │
> │                                       position = { line = 0                  │
> │                                                    column = 5 } })           │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline charListToStr charList =
>     charList |> List.toArray |> String
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline manyChars cp =
>     many cp
>     |>> charListToStr
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline manyChars1 cp =
>     many1 cp
>     |>> charListToStr
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let input = fromStr "Hello"
> let parser = manyChars1 (anyOf [[ 'H'; 'e'; 'l'; 'o' ]])
> runOnInput parser input |> _assertEqual (
>     Success (
>         "Hello",
>         {
>             lines = [[| "Hello" |]]
>             position = { line = 0; column = 5 }
>         }
>     )
> )
> 
> ╭─[ 65.26ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Success ("Hello", { lines = [|"Hello"|]                                      │
> │                     position = { line = 0                                    │
> │                                  column = 5 } })                             │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline pstring str =
>     str
>     |> List.ofSeq
>     |> List.map pchar
>     |> sequence
>     |> mapP charListToStr
>     <?> str
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let input = fromStr "Hello"
> let parser = pstring "Hello"
> runOnInput parser input |> _assertEqual (
>     Success (
>         "Hello",
>         {
>             lines = [[| "Hello" |]]
>             position = { line = 0; column = 5 }
>         }
>     )
> )
> 
> ╭─[ 68.39ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Success ("Hello", { lines = [|"Hello"|]                                      │
> │                     position = { line = 0                                    │
> │                                  column = 5 } })                             │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let whitespaceChar =
>     satisfy Char.IsWhiteSpace "whitespace"
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let spaces = many whitespaceChar
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let spaces1 = many1 whitespaceChar
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let input = fromStr "  Hello"
> let parser = spaces1 .>>. pstring "Hello"
> runOnInput parser input |> _assertEqual (
>     Success (
>         ([[ ' '; ' ' ]], "Hello"),
>         {
>             lines = [[| "  Hello" |]]
>             position = { line = 0; column = 7 }
>         }
>     )
> )
> 
> ╭─[ 56.79ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Success (([' '; ' '], "Hello"), { lines = [|"  Hello"|]                      │
> │                                   position = { line = 0                      │
> │                                                column = 7 } })               │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let digitChar =
>     satisfy Char.IsDigit "digit"
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let input = fromStr "Hello"
> let parser = digitChar
> runOnInput parser input |> _assertEqual (
>     Failure (
>         "digit",
>         "Unexpected 'H'",
>         {
>             currentLine = "Hello"
>             line = 0
>             column = 0
>         }
>     )
> )
> 
> ╭─[ 25.09ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Failure ("digit", "Unexpected 'H'", { currentLine = "Hello"                  │
> │                                       line = 0                               │
> │                                       column = 0 })                          │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let pint =
>     let inline resultToInt (sign, digits) =
>         let i = int digits
>         match sign with
>         | Some ch -> -i
>         | None -> i
> 
>     let digits = manyChars1 digitChar
> 
>     opt (pchar '-') .>>. digits
>     |> mapP resultToInt
>     <?> "integer"
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run pint "-123"
> |> _assertEqual (
>     Success (
>         -123,
>         {
>             lines = [[| "-123" |]]
>             position = { line = 0; column = 4 }
>         }
>     )
> )
> 
> ╭─[ 28.29ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Success (-123, { lines = [|"-123"|]                                          │
> │                  position = { line = 0                                       │
> │                               column = 4 } })                                │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let pfloat =
>     let inline resultToFloat (((sign, digits1), point), digits2) =
>         let fl = float $"{digits1}.{digits2}"
>         match sign with
>         | Some ch -> -fl
>         | None -> fl
> 
>     let digits = manyChars1 digitChar
> 
>     opt (pchar '-') .>>. digits .>>. pchar '.' .>>. digits
>     |> mapP resultToFloat
>     <?> "float"
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run pfloat "-123.45"
> |> _assertEqual (
>     Success (
>         -123.45,
>         {
>             lines = [[| "-123.45" |]]
>             position = { line = 0; column = 7 }
>         }
>     )
> )
> 
> ╭─[ 33.58ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Success (-123.45, { lines = [|"-123.45"|]                                    │
> │                     position = { line = 0                                    │
> │                                  column = 7 } })                             │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline createParserForwardedToRef<'a> () =
>     let mutable parserRef : Parser<'a> =
>         {
>             label = "unknown"
>             parseFn = fun _ -> failwith "unfixed forwarded parser"
>         }
> 
>     let wrapperParser =
>         { parserRef with
>             parseFn = fun input -> runOnInput parserRef input
>         }
> 
>     wrapperParser, (fun v -> parserRef <- v)
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline (>>%) p x =
>     p
>     |>> fun _ -> x
00:00:20 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 39314 }
00:00:20   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/apps/parser/Parser.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/apps/parser/Parser.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:00:22 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/apps/parser/Parser.dib.ipynb to html
00:00:22 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:00:22 verbose #7 !   validate(nb)
00:00:24 verbose #8 ! [NbConvertApp] Writing 413674 bytes to c:\home\git\polyglot\apps\parser\Parser.dib.html
00:00:24 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 645 }
00:00:24   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 645 }
00:00:24   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/apps/parser/Parser.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/apps/parser/Parser.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:00:25 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:00:25   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:00:25   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 40018 }
00:00:00   debug #1 writeDibCode / output: Fs / path: JsonParser.dib
00:00:00   debug #1 writeDibCode / output: Fs / path: Parser.dib
00:00:00   debug #3 parseDibCode / output: Fs / file: Parser.dib
00:00:00   debug #3 parseDibCode / output: Fs / file: JsonParser.dib
In [ ]:
{ pwsh ../apps/spiral/build.ps1 } | Invoke-Block
00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "Supervisor.dib", "--retries", "3"])) }
00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/apps/spiral/Supervisor.dib", "--output-path", "c:/home/git/polyglot/apps/spiral/Supervisor.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/apps/spiral/Supervisor.dib" --output-path "c:/home/git/polyglot/apps/spiral/Supervisor.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ # Supervisor (Polyglot)                                                      │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> #r 
> @"../../../../../../../.nuget/packages/fsharp.control.asyncseq/3.2.1/lib/netstan
> dard2.1/FSharp.Control.AsyncSeq.dll"
> #r 
> @"../../../../../../../.nuget/packages/system.reactive/6.0.1-preview.1/lib/net6.
> 0/System.Reactive.dll"
> #r 
> @"../../../../../../../.nuget/packages/system.reactive.linq/6.0.1-preview.1/lib/
> netstandard2.0/System.Reactive.Linq.dll"
> #r 
> @"../../../../../../../.nuget/packages/argu/6.2.4/lib/netstandard2.0/Argu.dll"
> #r 
> @"../../../../../../../.nuget/packages/microsoft.aspnetcore.http.connections.com
> mon/7.0.0/lib/net7.0/Microsoft.AspNetCore.Http.Connections.Common.dll"
> #r 
> @"../../../../../../../.nuget/packages/microsoft.aspnetcore.http.connections.cli
> ent/7.0.0/lib/net7.0/Microsoft.AspNetCore.Http.Connections.Client.dll"
> #r 
> @"../../../../../../../.nuget/packages/microsoft.aspnetcore.signalr.common/7.0.0
> /lib/net7.0/Microsoft.AspNetCore.SignalR.Common.dll"
> #r 
> @"../../../../../../../.nuget/packages/microsoft.aspnetcore.signalr.client/7.0.0
> /lib/net7.0/Microsoft.AspNetCore.SignalR.Client.dll"
> #r 
> @"../../../../../../../.nuget/packages/microsoft.aspnetcore.signalr.client.core/
> 7.0.0/lib/net7.0/Microsoft.AspNetCore.SignalR.Client.Core.dll"
> #r 
> @"../../../../../../../.nuget/packages/fsharp.json/0.4.1/lib/netstandard2.0/FSha
> rp.Json.dll"
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> #if !INTERACTIVE
> open Lib
> #endif
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> open Common
> open SpiralFileSystem.Operators
> open Microsoft.AspNetCore.SignalR.Client
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### sendJson                                                                 │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline sendJson (port : int) (json : string) = async {
>     let host = "127.0.0.1"
>     let! portOpen = SpiralNetworking.test_port_open host port
>     if portOpen then
>         try
>             let connection = 
> HubConnectionBuilder().WithUrl($"http://{host}:{port}").Build()
>             do! connection.StartAsync () |> Async.AwaitTask
>             let! result = connection.InvokeAsync<string>("ClientToServerMsg", 
> json) |> Async.AwaitTask
>             do! connection.StopAsync () |> Async.AwaitTask
>             trace Verbose (fun () -> $"Supervisor.sendJson / port: {port} / 
> json: {json |> SpiralSm.ellipsis_end 200} / result: {result |> Option.ofObj |> 
> Option.map (SpiralSm.ellipsis_end 200)}") _locals
>             return Some result
>         with ex ->
>             trace Critical (fun () -> $"Supervisor.sendJson / port: {port} / 
> json: {json |> SpiralSm.ellipsis_end 200} / ex: {ex |> 
> SpiralSm.format_exception}") _locals
>             return None
>     else
>         trace Debug (fun () -> "Supervisor.sendJson / port: {port} / error: port
> not open") _locals
>         return None
> }
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### sendObj                                                                  │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline sendObj port obj =
>     obj
>     |> System.Text.Json.JsonSerializer.Serialize
>     |> sendJson port
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### VSCPos                                                                   │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> type VSCPos = {| line : int; character : int |}
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### VSCRange                                                                 │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> type VSCRange = VSCPos * VSCPos
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### RString                                                                  │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> type RString = VSCRange * string
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### TracedError                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> type TracedError = {| trace : string list; message : string |}
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### ClientErrorsRes                                                          │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> type ClientErrorsRes =
>     | FatalError of string
>     | TracedError of TracedError
>     | PackageErrors of {| uri : string; errors : RString list |}
>     | TokenizerErrors of {| uri : string; errors : RString list |}
>     | ParserErrors of {| uri : string; errors : RString list |}
>     | TypeErrors of {| uri : string; errors : RString list |}
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### workspaceRoot                                                            │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let workspaceRoot = SpiralFileSystem.get_workspace_root ()
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### awaitCompiler                                                            │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline awaitCompiler port cancellationToken = async {
>     let host = "127.0.0.1"
>     let struct (ct, disposable) = cancellationToken |> 
> SpiralThreading.new_disposable_token
>     let! ct = ct |> SpiralAsync.merge_cancellation_token_with_default_async
> 
>     let compiler = MailboxProcessor.Start (fun inbox -> async {
>         let! availablePort = SpiralNetworking.get_available_port (Some 180) host
> port
>         if availablePort <> port then
>             inbox.Post (port, false)
>         else
>             let compilerPath =
>                 workspaceRoot </> "deps/The-Spiral-Language/The Spiral Language 
> 2/artifacts/bin/The Spiral Language 2/release"
>                 |> System.IO.Path.GetFullPath
> 
>             let dllPath = compilerPath </> "Spiral.dll"
> 
>             let! exitCode, result =
>                 SpiralRuntime.execution_options (fun x ->
>                     { x with
>                         l0 = $@"dotnet ""{dllPath}"" --port {availablePort} 
> --default-int i32 --default-float f64"
>                         l1 = Some ct
>                         l3 = Some (fun struct (_, line, _) -> async {
>                             if line |> SpiralSm.contains 
> $"System.IO.IOException: Failed to bind to address http://{host}:{port}: address
> already in use." then
>                                 inbox.Post (port, false)
> 
>                             if line |> SpiralSm.contains $"Server bound to: 
> http://localhost:{availablePort}" then
>                                 let rec loop retry = async {
>                                     do!
>                                         SpiralNetworking.wait_for_port_access 
> (Some 100) true host availablePort
>                                         |> Async.runWithTimeoutAsync 500
>                                         |> Async.Ignore
> 
>                                     let _locals () = $"port: {availablePort} / 
> retry: {retry} / {_locals ()}"
>                                     try
>                                         let pingObj = {| Ping = true |}
>                                         let! pingResult = pingObj |> sendObj 
> availablePort
>                                         trace Verbose (fun () -> $"awaitCompiler
> / Ping / result: '{pingResult}'") _locals
> 
>                                         inbox.Post (availablePort, true)
>                                     with ex ->
>                                         trace Verbose (fun () -> $"awaitCompiler
> / Ping / ex: {ex |> SpiralSm.format_exception}") _locals
>                                         do! Async.Sleep 10
>                                         do! loop (retry + 1)
>                                 }
>                                 do! loop 0
>                         })
>                         l6 = Some workspaceRoot
>                     }
>                 )
>                 |> SpiralRuntime.execute_with_options_async
> 
>             trace Debug (fun () -> $"awaitCompiler / exitCode: {exitCode} / 
> result: {result}") _locals
>             disposable.Dispose ()
>     }, ct)
> 
>     let! serverPort, managed = compiler.Receive ()
> 
>     let connection = 
> HubConnectionBuilder().WithUrl($"http://{host}:{serverPort}").Build ()
>     do! connection.StartAsync () |> Async.AwaitTask
> 
>     let event = Event<_> ()
>     let disposable' = connection.On<string> ("ServerToClientMsg", event.Trigger)
>     let stream =
>         FSharp.Control.AsyncSeq.unfoldAsync
>             (fun () -> async {
>                 let! msg = event.Publish |> Async.AwaitEvent
>                 return Some (msg |> 
> FSharp.Json.Json.deserialize<ClientErrorsRes>, ())
>             })
>             ()
> 
>     let disposable' =
>         new_disposable (fun () ->
>             async {
>                 disposable'.Dispose ()
>                 do! connection.StopAsync () |> Async.AwaitTask
>                 disposable.Dispose ()
>                 if managed
>                 then do!
>                     SpiralNetworking.wait_for_port_access (Some 100) false host 
> serverPort
>                     |> Async.runWithTimeoutAsync 1500
>                     |> Async.Ignore
>             }
>             |> Async.RunSynchronously
>         )
> 
>     return
>         serverPort,
>         stream,
>         ct,
>         disposable'
> }
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### getFilePathFromUri                                                       │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline getFilePathFromUri uri =
>     match System.Uri.TryCreate (uri, System.UriKind.Absolute) with
>     | true, uri -> uri.AbsolutePath |> System.IO.Path.GetFullPath
>     | _ -> failwith "invalid uri"
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### getCompilerPort                                                          │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline getCompilerPort () =
>     13805
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### serialize_obj                                                            │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
>     let serializeObj obj =
>         try
>             obj
>             |> FSharp.Json.Json.serialize
>             |> SpiralSm.replace "\\\\" "\\"
>             |> SpiralSm.replace "\\r\\n" "\n"
>             |> SpiralSm.replace "\\n" "\n"
>         with ex ->
>             trace Critical (fun () -> "Supervisor.serialize_obj / obj: %A{obj}")
> _locals
>             ""
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### Backend                                                                  │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> type Backend =
>     | Fsharp
>     | Cuda
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### buildFile                                                                │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline buildFile backend timeout port cancellationToken path =
>     let rec loop retry = async {
>         let fullPath = path |> System.IO.Path.GetFullPath
>         let fileDir = fullPath |> System.IO.Path.GetDirectoryName
>         let fileName = fullPath |> System.IO.Path.GetFileNameWithoutExtension
>         let! code = fullPath |> SpiralFileSystem.read_all_text_async
> 
>         let stream, disposable = fileDir |> FileSystem.watchDirectory (fun _ -> 
> true)
>         use _ = disposable
> 
>         let struct (token, disposable) = SpiralThreading.new_disposable_token 
> cancellationToken
>         use _ = disposable
> 
>         let port = port |> Option.defaultWith getCompilerPort
>         let! serverPort, errors, ct, disposable = awaitCompiler port (Some 
> token)
>         use _ = disposable
> 
>         let outputFileName =
>             match backend with
>             | Fsharp -> $"{fileName}.fsx"
>             | Cuda -> $"{fileName}.py"
> 
>         let outputContentSeq =
>             stream
>             |> FSharp.Control.AsyncSeq.chooseAsync (function
>                 | _, (FileSystem.FileSystemChange.Changed (path, Some text))
>                     when (path |> System.IO.Path.GetFileName) = outputFileName
>                     ->
>                         // fileDir </> path |> 
> SpiralFileSystem.read_all_text_retry_async
>                         text |> Some |> Async.init
>                 | _ -> None |> Async.init
>             )
>             |> FSharp.Control.AsyncSeq.map (fun content ->
>                 Some (content |> SpiralSm.replace "\r\n" "\n"), None
>             )
> 
>         let inline printErrorData (data : {| uri : string; errors : RString list
> |}) =
>             let fileName = data.uri |> System.IO.Path.GetFileName
>             let errors =
>                 data.errors
>                 |> List.map snd
>                 |> SpiralSm.concat "\n"
>             $"{fileName}:\n{errors}"
> 
>         let errorsSeq =
>             errors
>             |> FSharp.Control.AsyncSeq.choose (fun error ->
>                 match error with
>                 | FatalError message ->
>                     Some (message, error)
>                 | TracedError data ->
>                     Some (data.message, error)
>                 | PackageErrors data when data.errors |> List.isEmpty |> not ->
>                     Some (data |> printErrorData, error)
>                 | TokenizerErrors data when data.errors |> List.isEmpty |> not 
> ->
>                     Some (data |> printErrorData, error)
>                 | ParserErrors data when data.errors |> List.isEmpty |> not ->
>                     Some (data |> printErrorData, error)
>                 | TypeErrors data when data.errors |> List.isEmpty |> not ->
>                     Some (data |> printErrorData, error)
>                 | _ -> None
>             )
>             |> FSharp.Control.AsyncSeq.map (fun (message, error) ->
>                 None, Some (message, error)
>             )
> 
>         let timerSeq =
>             500
>             |> FSharp.Control.AsyncSeq.intervalMs
>             |> FSharp.Control.AsyncSeq.map (fun _ -> None, None)
> 
>         let outputSeq =
>             [[ outputContentSeq; errorsSeq; timerSeq ]]
>             |> FSharp.Control.AsyncSeq.mergeAll
> 
>         let! outputChild =
>             ((None, [[]], 0), outputSeq)
>             ||> FSharp.Control.AsyncSeq.scan (
>                 fun (outputContentResult, errors, typeErrorCount) 
> (outputContent, error) ->
>                     trace Debug (fun () -> $"Supervisor.buildFile / 
> AsyncSeq.scan / outputContent:\n{outputContent |> Option.defaultValue 
> System.String.Empty |> SpiralSm.ellipsis_end 300} / errors: {errors |> 
> serializeObj} / outputContentResult: {outputContentResult} / typeErrorCount: 
> {typeErrorCount} / retry: {retry} / error: {error} / path: {path}") _locals
>                     match outputContent, error with
>                     | Some outputContent, None -> Some outputContent, errors, 
> typeErrorCount
>                     | None, Some (_, FatalError "File main has a type error 
> somewhere in its path.") ->
>                         outputContentResult, errors, typeErrorCount + 1
>                     | None, Some error -> outputContentResult, error :: errors, 
> typeErrorCount
>                     | None, None when typeErrorCount >= 1 ->
>                         outputContentResult, errors, typeErrorCount + 1
>                     | _ -> outputContentResult, errors, typeErrorCount
>             )
>             |> FSharp.Control.AsyncSeq.takeWhileInclusive (fun (outputContent, 
> errors, typeErrorCount) ->
>                 trace Debug (fun () -> $"Supervisor.buildFile / 
> takeWhileInclusive / outputContent:\n{outputContent |> Option.defaultValue 
> System.String.Empty |> SpiralSm.ellipsis_end 300} / errors: {errors |> 
> serializeObj} / typeErrorCount: {typeErrorCount} / retry: {retry} / path: 
> {path}") _locals
>     #if INTERACTIVE
>                 let errorWait = 2
>     #else
>                 let errorWait = 2
>     #endif
>                 match outputContent, errors with
>                 | None, [[]] when typeErrorCount > errorWait -> false
>                 | None, [[]] -> true
>                 | _ -> false
>             )
>             |> FSharp.Control.AsyncSeq.tryLast
>             |> Async.withCancellationToken ct
>             |> Async.catch
>             |> Async.runWithTimeoutAsync timeout
>             |> Async.StartChild
> 
>         // do! Async.Sleep 60
> 
>         let fullPathUri = fullPath |> SpiralFileSystem.normalize_path |> 
> SpiralFileSystem.new_file_uri
> 
>         let fileOpenObj = {| FileOpen = {| uri = fullPathUri; spiText = code |} 
> |}
>         let! _fileOpenResult = fileOpenObj |> sendObj serverPort
> 
>         // do! Async.Sleep 60
> 
>         let backendId =
>             match backend with
>             | Fsharp -> "Fsharp"
>             | Cuda -> "Python + Cuda"
>         let buildFileObj = {| BuildFile = {| uri = fullPathUri; backend = 
> backendId |} |}
>         let! _buildFileResult = buildFileObj |> sendObj serverPort
> 
>         let! result, typeErrorCount =
>             outputChild
>             |> Async.map (function
>                 | Some (Ok (Some (outputCode, errors, typeErrorCount))) ->
>                     (outputCode, errors |> List.distinct |> List.rev), 
> typeErrorCount
>                 | Some (Error ex) ->
>                     trace Critical (fun () -> $"Supervisor.buildFile / error: 
> {ex |> SpiralSm.format_exception} / retry: {retry}") _locals
>                     (None, [[]]), 0
>                 | _ -> (None, [[]]), 0
>             )
>         
>         match result with
>         | None, _ when typeErrorCount > 0 && retry = 0 ->
>             return! loop (retry + 1)
>         | _ ->
>             if fileDir |> SpiralSm.starts_with (workspaceRoot </> "target") then
>                 let fileDirUri = fileDir |> SpiralFileSystem.normalize_path |> 
> SpiralFileSystem.new_file_uri
>                 let fileDeleteObj = {| FileDelete = {| uris = [[| fileDirUri |]]
> |} |}
>                 let! _fileDeleteResult = fileDeleteObj |> sendObj serverPort
>                 ()
> 
>             let outputPath = fileDir </> outputFileName
>             return outputPath, result
>     }
>     loop 0
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### SpiralInput                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> type SpiralInput =
>     | Spi of string * string option
>     | Spir of string
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### persistCode                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline persistCode backend input = async {
>     let targetDir = workspaceRoot </> "target/spiral_Eval"
> 
>     let packagesDir = targetDir </> "packages"
> 
>     let hashHex = $"%A{backend}%A{input}" |> SpiralCrypto.hash_text
> 
>     let codeDir = packagesDir </> hashHex
>     codeDir |> System.IO.Directory.CreateDirectory |> ignore
> 
>     let moduleName = "main"
> 
>     let spirModule, spiModule =
>         match input with
>         | Spi (spi, Some spir) -> true, true
>         | Spi (spi, None) -> false, true
>         | Spir spir -> true, false
>         |> fun (spir, spi) ->
>             (if spir then $"real_{moduleName}*-" else ""),
>             if spi then moduleName else ""
> 
>     let spiprojPath = codeDir </> "package.spiproj"
>     let spiprojCode =
>         $"""packageDir: {workspaceRoot </> "lib"}
> packages:
>     |core-
>     spiral-
> modules:
>     {spirModule}
>     {spiModule}
> """
>     do! spiprojCode |> SpiralFileSystem.write_all_text_exists spiprojPath
> 
>     let spirPath = codeDir </> $"real_{moduleName}.spir"
>     let spiPath = codeDir </> $"{moduleName}.spi"
> 
>     let spirCode, spiCode =
>         match input with
>         | Spi (spi, Some spir) -> Some spir, Some spi
>         | Spi (spi, None) -> None, Some spi
>         | Spir spir -> Some spir, None
> 
>     match spirCode with
>     | Some spir -> do! spir |> SpiralFileSystem.write_all_text_exists spirPath
>     | None -> ()
>     match spiCode with
>     | Some spi -> do! spi |> SpiralFileSystem.write_all_text_exists spiPath
>     | None -> ()
> 
>     let spiralPath =
>         match input with
>         | Spi _ -> spiPath
>         | Spir _ -> spirPath
>     match backend with
>     | None -> return spiralPath, None
>     | Some backend ->
>         let outputFileName =
>             let fileName =
>                 match input with
>                 | Spi _ -> moduleName
>                 | Spir _ -> $"real_{moduleName}"
>             match backend with
>             | Fsharp -> $"{fileName}.fsx"
>             | Cuda -> $"{fileName}.py"
>         let outputPath = codeDir </> outputFileName
>         if outputPath |> System.IO.File.Exists |> not
>         then return spiralPath, None
>         else
>             let! oldCode = spiralPath |> SpiralFileSystem.read_all_text_async
>             if oldCode <> (spiCode |> Option.defaultValue (spirCode |> 
> Option.defaultValue ""))
>             then return spiralPath, None
>             else
>                 let! outputCode = outputPath |> 
> SpiralFileSystem.read_all_text_async
>                 return spiralPath, Some (outputPath, outputCode |> 
> SpiralSm.replace "\r\n" "\n")
>     }
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### buildCode                                                                │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let buildCode backend isCache timeout cancellationToken input = async {
>     let! mainPath, outputCache = input |> persistCode (Some backend)
>     match outputCache with
>     | Some (outputPath, outputCode) when isCache -> return mainPath, 
> (outputPath, Some outputCode), [[]]
>     | _ ->
>         let! outputPath, (outputCode, errors) = mainPath |> buildFile backend 
> timeout None cancellationToken
>         return mainPath, (outputPath, outputCode), errors
> }
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> """inl app () =
>     console.write_line "text"
>     1i32
> 
> inl main () =
>     app
>     |> dyn
>     |> ignore
> """
> |> fun code -> Spi (code, None)
> |> buildCode Fsharp false 15000 None
> |> Async.runWithTimeout 15000
> |> Option.map (fun (_, (_, outputContent), errors) -> outputContent, errors |> 
> List.map fst)
> |> _assertEqual (
>     Some (
>         Some """let rec closure0 () () : int32 =
>     let v2 : (string -> unit) = System.Console.WriteLine
>     let v3 : string = "text"
>     v2 v3
>     1
> let v0 : (unit -> int32) = closure0()
> ()
> """,
>         [[]]
>     )
> )
> 
> ╭─[ 4.73s - stdout ]───────────────────────────────────────────────────────────╮
> │ 00:00:14 verbose #1 async.run_with_timeout_async / { timeout = 180 }    │
> │ 00:00:11   debug #1 runtime.execute_with_options_async / { options = {  │
> │ command = dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral   │
> │ Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port    │
> │ 13805 --default-int i32 --default-float f64; cancellation_token = Some       │
> │ System.Threading.CancellationToken; environment_variables = [||]; on_line =  │
> │ Some <fun:buildCode@6-92>; stdin = None; trace = true; working_directory =   │
> │ Some "C:\home\git\polyglot" } }                                              │
> │ 00:00:11 verbose #2 > 00:00:00   debug #1 pwd:                     │
> │ C:\home\git\polyglot                                                         │
> │ 00:00:11 verbose #3 > 00:00:00   debug #2 dllPath:                 │
> │ C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language            │
> │ 2\artifacts\bin\The Spiral Language 2\release                                │
> │ 00:00:11 verbose #4 > 00:00:00   debug #3 targetDir:               │
> │ C:\home\git\polyglot\target/spiral_Eval                                      │
> │ 00:00:14 verbose #2 async.run_with_timeout_async / { timeout = 100 }    │
> │ 00:00:14 verbose #3 networking.wait_for_port_access / { port = 13805;   │
> │ retry = 0; timeout = Some 100; status = true }                               │
> │ 00:00:14 verbose #4 async.run_with_timeout_async / { timeout = 100 }    │
> │ 00:00:11 verbose #5 > Starting the Spiral Server. It is bound to:       │
> │ http://localhost:13805                                                       │
> │ 00:00:15 verbose #5 async.run_with_timeout_async / { timeout = 100 }    │
> │ 00:00:08 verbose #1 Supervisor.sendJson / port: 13805 / json:           │
> │ {"Ping":true} / result:                                                      │
> │ 00:00:08 verbose #2 awaitCompiler / Ping / result: 'Some(null)' / port: │
> │ 13805 / retry: 0                                                             │
> │ 00:00:12 verbose #6 > Server bound to: http://localhost:13805           │
> │ 00:00:09   debug #3 Supervisor.buildFile / takeWhileInclusive /         │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\22ccd04317d5605c65f81c7f777 │
> │ 766f357e85dc69f2d6d04b9dc60aebd08a0d6\main.spi                               │
> │ 00:00:09   debug #4 Supervisor.buildFile / AsyncSeq.scan /              │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\22ccd04317d5605c65f81c7f777 │
> │ 766f357e85dc69f2d6d04b9dc60aebd08a0d6\main.spi                               │
> │ 00:00:09   debug #5 Supervisor.buildFile / takeWhileInclusive /         │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\22ccd04317d5605c65f81c7f777 │
> │ 766f357e85dc69f2d6d04b9dc60aebd08a0d6\main.spi                               │
> │ 00:00:09 verbose #6 Supervisor.sendJson / port: 13805 / json:           │
> │ {"FileOpen":{"spiText":"inl app () =\n    console.write_line                 │
> │ \u0022text\u0022\n    1i32\n\ninl main                                       │
> │ ...et/spiral_Eval/packages/22ccd04317d5605c65f81c7f777766f357e85dc69f2d6d04b │
> │ 9dc60aebd08a0d6/main.spi"}} / result:                                        │
> │ 00:00:09 verbose #7 Supervisor.sendJson / port: 13805 / json:           │
> │ {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/target/ │
> │ spiral_Eval/packages/22ccd04317d5605c65f81c7f777766f357e85dc69f2d6d04b9dc60a │
> │ ebd08a0d6/main.spi"}} / result:                                              │
> │ 00:00:12 verbose #7 > 00:00:01   debug #4                          │
> │ Supervisor.supervisor_server.BuildFile / file:                               │
> │ c:/home/git/polyglot/target/spiral_Eval/packages/22ccd04317d5605c65f81c7f777 │
> │ 766f357e85dc69f2d6d04b9dc60aebd08a0d6/main.spi                               │
> │ 00:00:09   debug #8 Supervisor.buildFile / AsyncSeq.scan /              │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\22ccd04317d5605c65f81c7f777 │
> │ 766f357e85dc69f2d6d04b9dc60aebd08a0d6\main.spi                               │
> │ 00:00:09   debug #9 Supervisor.buildFile / takeWhileInclusive /         │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\22ccd04317d5605c65f81c7f777 │
> │ 766f357e85dc69f2d6d04b9dc60aebd08a0d6\main.spi                               │
> │ 00:00:10   debug #10 Supervisor.buildFile / AsyncSeq.scan /             │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\22ccd04317d5605c65f81c7f777 │
> │ 766f357e85dc69f2d6d04b9dc60aebd08a0d6\main.spi                               │
> │ 00:00:10   debug #11 Supervisor.buildFile / takeWhileInclusive /        │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\22ccd04317d5605c65f81c7f777 │
> │ 766f357e85dc69f2d6d04b9dc60aebd08a0d6\main.spi                               │
> │ 00:00:10   debug #12 Supervisor.buildFile / AsyncSeq.scan /             │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\22ccd04317d5605c65f81c7f777 │
> │ 766f357e85dc69f2d6d04b9dc60aebd08a0d6\main.spi                               │
> │ 00:00:10   debug #13 Supervisor.buildFile / takeWhileInclusive /        │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\22ccd04317d5605c65f81c7f777 │
> │ 766f357e85dc69f2d6d04b9dc60aebd08a0d6\main.spi                               │
> │ 00:00:11   debug #14 Supervisor.buildFile / AsyncSeq.scan /             │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\22ccd04317d5605c65f81c7f777 │
> │ 766f357e85dc69f2d6d04b9dc60aebd08a0d6\main.spi                               │
> │ 00:00:11   debug #15 Supervisor.buildFile / takeWhileInclusive /        │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\22ccd04317d5605c65f81c7f777 │
> │ 766f357e85dc69f2d6d04b9dc60aebd08a0d6\main.spi                               │
> │ 00:00:11   debug #16 Supervisor.buildFile / AsyncSeq.scan /             │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\22ccd04317d5605c65f81c7f777 │
> │ 766f357e85dc69f2d6d04b9dc60aebd08a0d6\main.spi                               │
> │ 00:00:11   debug #17 Supervisor.buildFile / takeWhileInclusive /        │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\22ccd04317d5605c65f81c7f777 │
> │ 766f357e85dc69f2d6d04b9dc60aebd08a0d6\main.spi                               │
> │ 00:00:11   debug #18 Supervisor.buildFile / AsyncSeq.scan /             │
> │ outputContent:                                                               │
> │ let rec closure0 () () : int32 =                                             │
> │     let v2 : (string -> unit) = System.Console.WriteLine                     │
> │     let v3 : string = "text"                                                 │
> │     v2 v3                                                                    │
> │     1                                                                        │
> │ let v0 : (unit -> int32) = closure0()                                        │
> │ ()                                                                           │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\22ccd04317d5605c65f81c7f777 │
> │ 766f357e85dc69f2d6d04b9dc60aebd08a0d6\main.spi                               │
> │ 00:00:11   debug #19 Supervisor.buildFile / takeWhileInclusive /        │
> │ outputContent:                                                               │
> │ let rec closure0 () () : int32 =                                             │
> │     let v2 : (string -> unit) = System.Console.WriteLine                     │
> │     let v3 : string = "text"                                                 │
> │     v2 v3                                                                    │
> │     1                                                                        │
> │ let v0 : (unit -> int32) = closure0()                                        │
> │ ()                                                                           │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\22ccd04317d5605c65f81c7f777 │
> │ 766f357e85dc69f2d6d04b9dc60aebd08a0d6\main.spi                               │
> │ 00:00:11 verbose #20 Supervisor.sendJson / port: 13805 / json:          │
> │ {"FileDelete":{"uris":[                                                      │
> │ "file:///c:/home/git/polyglot/target/spiral_Eval/packages/22ccd04317d5605c65 │
> │ f81c7f777766f357e85dc69f2d6d04b9dc60aebd08a0d6"]}} / result:                 │
> │ 00:00:18 verbose #6 networking.wait_for_port_access / { port = 13805;   │
> │ retry = 0; timeout = Some 100; status = false }                              │
> │ 00:00:18 verbose #7 async.run_with_timeout_async / { timeout = 100 }    │
> │ 00:00:12   debug #21 FileSystem.watchWithFilter / Disposing watch       │
> │ stream / filter: FileName, LastWrite                                         │
> │ Some                                                                         │
> │   (Some                                                                      │
> │      "let rec closure0 () () : int32 =                                       │
> │     let v2 : (string -> unit) = System.Console.WriteLine                     │
> │     let v3 : string = "text"                                                 │
> │     v2 v3                                                                    │
> │     1                                                                        │
> │ let v0 : (unit -> int32) = closure0()                                        │
> │ ()                                                                           │
> │ ",                                                                           │
> │    [])                                                                       │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> ""
> |> fun code -> Spi (code, None)
> |> buildCode Fsharp false 10000 None
> |> Async.runWithTimeout 10000
> |> Option.map (fun (_, (_, outputContent), errors) -> outputContent, errors |> 
> List.map fst)
> |> _assertEqual (
>     Some (
>         None,
>         [[ "Cannot find `main` in file main." ]]
>     )
> )
> 
> ╭─[ 4.03s - stdout ]───────────────────────────────────────────────────────────╮
> │ 00:00:18 verbose #8 async.run_with_timeout_async / { timeout = 180 }    │
> │ 00:00:15   debug #8 runtime.execute_with_options_async / { options = {  │
> │ command = dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral   │
> │ Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port    │
> │ 13805 --default-int i32 --default-float f64; cancellation_token = Some       │
> │ System.Threading.CancellationToken; environment_variables = [||]; on_line =  │
> │ Some <fun:buildCode@6-92>; stdin = None; trace = true; working_directory =   │
> │ Some "C:\home\git\polyglot" } }                                              │
> │ 00:00:16 verbose #9 > 00:00:00   debug #1 pwd:                     │
> │ C:\home\git\polyglot                                                         │
> │ 00:00:16 verbose #10 > 00:00:00   debug #2 dllPath:                │
> │ C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language            │
> │ 2\artifacts\bin\The Spiral Language 2\release                                │
> │ 00:00:16 verbose #11 > 00:00:00   debug #3 targetDir:              │
> │ C:\home\git\polyglot\target/spiral_Eval                                      │
> │ 00:00:19 verbose #9 async.run_with_timeout_async / { timeout = 100 }    │
> │ 00:00:19 verbose #10 networking.wait_for_port_access / { port = 13805;  │
> │ retry = 0; timeout = Some 100; status = true }                               │
> │ 00:00:19 verbose #11 async.run_with_timeout_async / { timeout = 100 }   │
> │ 00:00:16 verbose #12 > Starting the Spiral Server. It is bound to:      │
> │ http://localhost:13805                                                       │
> │ 00:00:19 verbose #12 async.run_with_timeout_async / { timeout = 100 }   │
> │ 00:00:13 verbose #22 Supervisor.sendJson / port: 13805 / json:          │
> │ {"Ping":true} / result:                                                      │
> │ 00:00:13 verbose #23 awaitCompiler / Ping / result: 'Some(null)' /      │
> │ port: 13805 / retry: 0                                                       │
> │ 00:00:16 verbose #13 > Server bound to: http://localhost:13805          │
> │ 00:00:13   debug #24 Supervisor.buildFile / takeWhileInclusive /        │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\a65342ccc7da0da967b18d8e705 │
> │ d0260e9a932e5e68c0feb33db55c4d28170aa\main.spi                               │
> │ 00:00:13   debug #25 Supervisor.buildFile / AsyncSeq.scan /             │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\a65342ccc7da0da967b18d8e705 │
> │ d0260e9a932e5e68c0feb33db55c4d28170aa\main.spi                               │
> │ 00:00:13   debug #26 Supervisor.buildFile / takeWhileInclusive /        │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\a65342ccc7da0da967b18d8e705 │
> │ d0260e9a932e5e68c0feb33db55c4d28170aa\main.spi                               │
> │ 00:00:13 verbose #27 Supervisor.sendJson / port: 13805 / json:          │
> │ {"FileOpen":{"spiText":"","uri":"file:///c:/home/git/polyglot/target/spiral_ │
> │ Eval/packages/a65342ccc7da0da967b18d8e705d0260e9a932e5e68c0feb33db55c4d28170 │
> │ aa/main.spi"}} / result:                                                     │
> │ 00:00:13 verbose #28 Supervisor.sendJson / port: 13805 / json:          │
> │ {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/target/ │
> │ spiral_Eval/packages/a65342ccc7da0da967b18d8e705d0260e9a932e5e68c0feb33db55c │
> │ 4d28170aa/main.spi"}} / result:                                              │
> │ 00:00:17 verbose #14 > 00:00:01   debug #4                         │
> │ Supervisor.supervisor_server.BuildFile / file:                               │
> │ c:/home/git/polyglot/target/spiral_Eval/packages/a65342ccc7da0da967b18d8e705 │
> │ d0260e9a932e5e68c0feb33db55c4d28170aa/main.spi                               │
> │ 00:00:13   debug #29 Supervisor.buildFile / AsyncSeq.scan /             │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\a65342ccc7da0da967b18d8e705 │
> │ d0260e9a932e5e68c0feb33db55c4d28170aa\main.spi                               │
> │ 00:00:13   debug #30 Supervisor.buildFile / takeWhileInclusive /        │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\a65342ccc7da0da967b18d8e705 │
> │ d0260e9a932e5e68c0feb33db55c4d28170aa\main.spi                               │
> │ 00:00:14   debug #31 Supervisor.buildFile / AsyncSeq.scan /             │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\a65342ccc7da0da967b18d8e705 │
> │ d0260e9a932e5e68c0feb33db55c4d28170aa\main.spi                               │
> │ 00:00:14   debug #32 Supervisor.buildFile / takeWhileInclusive /        │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\a65342ccc7da0da967b18d8e705 │
> │ d0260e9a932e5e68c0feb33db55c4d28170aa\main.spi                               │
> │ 00:00:14   debug #33 Supervisor.buildFile / AsyncSeq.scan /             │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\a65342ccc7da0da967b18d8e705 │
> │ d0260e9a932e5e68c0feb33db55c4d28170aa\main.spi                               │
> │ 00:00:14   debug #34 Supervisor.buildFile / takeWhileInclusive /        │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\a65342ccc7da0da967b18d8e705 │
> │ d0260e9a932e5e68c0feb33db55c4d28170aa\main.spi                               │
> │ 00:00:15   debug #35 Supervisor.buildFile / AsyncSeq.scan /             │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\a65342ccc7da0da967b18d8e705 │
> │ d0260e9a932e5e68c0feb33db55c4d28170aa\main.spi                               │
> │ 00:00:15   debug #36 Supervisor.buildFile / takeWhileInclusive /        │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\a65342ccc7da0da967b18d8e705 │
> │ d0260e9a932e5e68c0feb33db55c4d28170aa\main.spi                               │
> │ 00:00:15   debug #37 Supervisor.buildFile / AsyncSeq.scan /             │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\a65342ccc7da0da967b18d8e705 │
> │ d0260e9a932e5e68c0feb33db55c4d28170aa\main.spi                               │
> │ 00:00:15   debug #38 Supervisor.buildFile / takeWhileInclusive /        │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\a65342ccc7da0da967b18d8e705 │
> │ d0260e9a932e5e68c0feb33db55c4d28170aa\main.spi                               │
> │ 00:00:15   debug #39 Supervisor.buildFile / AsyncSeq.scan /             │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error: Some((Cannot find `main` in file main., FatalError "Cannot find       │
> │ `main` in file main.")) / path:                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\a65342ccc7da0da967b18d8e705 │
> │ d0260e9a932e5e68c0feb33db55c4d28170aa\main.spi                               │
> │ 00:00:15   debug #40 Supervisor.buildFile / takeWhileInclusive /        │
> │ outputContent:                                                               │
> │  / errors: [                                                                 │
> │   [                                                                          │
> │     "Cannot find `main` in file main.",                                      │
> │     {                                                                        │
> │       "FatalError": "Cannot find `main` in file main."                       │
> │     }                                                                        │
> │   ]                                                                          │
> │ ] / typeErrorCount: 0 / retry: 0 / path:                                     │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\a65342ccc7da0da967b18d8e705 │
> │ d0260e9a932e5e68c0feb33db55c4d28170aa\main.spi                               │
> │ 00:00:16 verbose #41 Supervisor.sendJson / port: 13805 / json:          │
> │ {"FileDelete":{"uris":[                                                      │
> │ "file:///c:/home/git/polyglot/target/spiral_Eval/packages/a65342ccc7da0da967 │
> │ b18d8e705d0260e9a932e5e68c0feb33db55c4d28170aa"]}} / result:                 │
> │ 00:00:22 verbose #13 networking.wait_for_port_access / { port = 13805;  │
> │ retry = 0; timeout = Some 100; status = false }                              │
> │ 00:00:22 verbose #14 async.run_with_timeout_async / { timeout = 100 }   │
> │ 00:00:16   debug #42 FileSystem.watchWithFilter / Disposing watch       │
> │ stream / filter: FileName, LastWrite                                         │
> │ Some (None, ["Cannot find `main` in file main."])                            │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> """inl main () =
>     1i32 / 0i32
> """
> |> fun code -> Spi (code, None)
> |> buildCode Fsharp false 10000 None
> |> Async.runWithTimeout 10000
> |> Option.map (fun (_, (_, outputContent), errors) -> outputContent, errors |> 
> List.map fst)
> |> _assertEqual (
>     Some (
>         None,
>         [[ "An attempt to divide by zero has been detected at compile time." ]]
>     )
> )
> 
> ╭─[ 3.87s - stdout ]───────────────────────────────────────────────────────────╮
> │ 00:00:22 verbose #15 async.run_with_timeout_async / { timeout = 180 }   │
> │ 00:00:19   debug #15 runtime.execute_with_options_async / { options = { │
> │ command = dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral   │
> │ Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port    │
> │ 13805 --default-int i32 --default-float f64; cancellation_token = Some       │
> │ System.Threading.CancellationToken; environment_variables = [||]; on_line =  │
> │ Some <fun:buildCode@6-92>; stdin = None; trace = true; working_directory =   │
> │ Some "C:\home\git\polyglot" } }                                              │
> │ 00:00:20 verbose #16 > 00:00:00   debug #1 pwd:                    │
> │ C:\home\git\polyglot                                                         │
> │ 00:00:20 verbose #17 > 00:00:00   debug #2 dllPath:                │
> │ C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language            │
> │ 2\artifacts\bin\The Spiral Language 2\release                                │
> │ 00:00:20 verbose #18 > 00:00:00   debug #3 targetDir:              │
> │ C:\home\git\polyglot\target/spiral_Eval                                      │
> │ 00:00:23 verbose #16 async.run_with_timeout_async / { timeout = 100 }   │
> │ 00:00:23 verbose #17 networking.wait_for_port_access / { port = 13805;  │
> │ retry = 0; timeout = Some 100; status = true }                               │
> │ 00:00:23 verbose #18 async.run_with_timeout_async / { timeout = 100 }   │
> │ 00:00:20 verbose #19 > Starting the Spiral Server. It is bound to:      │
> │ http://localhost:13805                                                       │
> │ 00:00:23 verbose #19 async.run_with_timeout_async / { timeout = 100 }   │
> │ 00:00:17 verbose #43 Supervisor.sendJson / port: 13805 / json:          │
> │ {"Ping":true} / result:                                                      │
> │ 00:00:17 verbose #44 awaitCompiler / Ping / result: 'Some(null)' /      │
> │ port: 13805 / retry: 0                                                       │
> │ 00:00:20 verbose #20 > Server bound to: http://localhost:13805          │
> │ 00:00:17   debug #45 Supervisor.buildFile / takeWhileInclusive /        │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\fef9812d9b06b75b1ab26589e52 │
> │ c6d6ff05910b73ead9e8c4f27f88d2a5cdfb2\main.spi                               │
> │ 00:00:17   debug #46 Supervisor.buildFile / AsyncSeq.scan /             │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\fef9812d9b06b75b1ab26589e52 │
> │ c6d6ff05910b73ead9e8c4f27f88d2a5cdfb2\main.spi                               │
> │ 00:00:17   debug #47 Supervisor.buildFile / takeWhileInclusive /        │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\fef9812d9b06b75b1ab26589e52 │
> │ c6d6ff05910b73ead9e8c4f27f88d2a5cdfb2\main.spi                               │
> │ 00:00:17 verbose #48 Supervisor.sendJson / port: 13805 / json:          │
> │ {"FileOpen":{"spiText":"inl main () =\n    1i32 /                            │
> │ 0i32\n","uri":"file:///c:/home/git/polyglot/target/spiral_Eval/packages/fef9 │
> │ 812d9b06b75b1ab26589e52c6d6ff05910b73ead9e8c4f27f88d2a5cdfb2/main.spi"}} /   │
> │ result:                                                                      │
> │ 00:00:17 verbose #49 Supervisor.sendJson / port: 13805 / json:          │
> │ {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/target/ │
> │ spiral_Eval/packages/fef9812d9b06b75b1ab26589e52c6d6ff05910b73ead9e8c4f27f88 │
> │ d2a5cdfb2/main.spi"}} / result:                                              │
> │ 00:00:20 verbose #21 > 00:00:01   debug #4                         │
> │ Supervisor.supervisor_server.BuildFile / file:                               │
> │ c:/home/git/polyglot/target/spiral_Eval/packages/fef9812d9b06b75b1ab26589e52 │
> │ c6d6ff05910b73ead9e8c4f27f88d2a5cdfb2/main.spi                               │
> │ 00:00:17   debug #50 Supervisor.buildFile / AsyncSeq.scan /             │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\fef9812d9b06b75b1ab26589e52 │
> │ c6d6ff05910b73ead9e8c4f27f88d2a5cdfb2\main.spi                               │
> │ 00:00:17   debug #51 Supervisor.buildFile / takeWhileInclusive /        │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\fef9812d9b06b75b1ab26589e52 │
> │ c6d6ff05910b73ead9e8c4f27f88d2a5cdfb2\main.spi                               │
> │ 00:00:18   debug #52 Supervisor.buildFile / AsyncSeq.scan /             │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\fef9812d9b06b75b1ab26589e52 │
> │ c6d6ff05910b73ead9e8c4f27f88d2a5cdfb2\main.spi                               │
> │ 00:00:18   debug #53 Supervisor.buildFile / takeWhileInclusive /        │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\fef9812d9b06b75b1ab26589e52 │
> │ c6d6ff05910b73ead9e8c4f27f88d2a5cdfb2\main.spi                               │
> │ 00:00:18   debug #54 Supervisor.buildFile / AsyncSeq.scan /             │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\fef9812d9b06b75b1ab26589e52 │
> │ c6d6ff05910b73ead9e8c4f27f88d2a5cdfb2\main.spi                               │
> │ 00:00:18   debug #55 Supervisor.buildFile / takeWhileInclusive /        │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\fef9812d9b06b75b1ab26589e52 │
> │ c6d6ff05910b73ead9e8c4f27f88d2a5cdfb2\main.spi                               │
> │ 00:00:19   debug #56 Supervisor.buildFile / AsyncSeq.scan /             │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\fef9812d9b06b75b1ab26589e52 │
> │ c6d6ff05910b73ead9e8c4f27f88d2a5cdfb2\main.spi                               │
> │ 00:00:19   debug #57 Supervisor.buildFile / takeWhileInclusive /        │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\fef9812d9b06b75b1ab26589e52 │
> │ c6d6ff05910b73ead9e8c4f27f88d2a5cdfb2\main.spi                               │
> │ 00:00:19   debug #58 Supervisor.buildFile / AsyncSeq.scan /             │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error: Some((An attempt to divide by zero has been detected at compile       │
> │ time., TracedError                                                           │
> │   { message = "An attempt to divide by zero has been detected at compile     │
> │ time."                                                                       │
> │     trace =                                                                  │
> │      ["Error trace on line: 1, column: 10 in module:                         │
> │ c:/home/git/polyglot/target/spiral_Eval/packages/fef9812d9b06b75b1ab26589e52 │
> │ c6d6ff05910b73ead9e8c4f27f88d2a5cdfb2/main.spi.                              │
> │ inl main () =                                                                │
> │          ^                                                                   │
> │ ";                                                                           │
> │       "Error trace on line: 2, column: 5 in module:                          │
> │ c:/home/git/polyglot/target/spiral_Eval/packages/fef9812d9b06b75b1ab26589e52 │
> │ c6d6ff05910b73ead9e8c4f27f88d2a5cdfb2/main.spi.                              │
> │     1i32 / 0i32                                                              │
> │     ^                                                                        │
> │ "] })) / path:                                                               │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\fef9812d9b06b75b1ab26589e52 │
> │ c6d6ff05910b73ead9e8c4f27f88d2a5cdfb2\main.spi                               │
> │ 00:00:19   debug #59 Supervisor.buildFile / takeWhileInclusive /        │
> │ outputContent:                                                               │
> │  / errors: [                                                                 │
> │   [                                                                          │
> │     "An attempt to divide by zero has been detected at compile time.",       │
> │     {                                                                        │
> │       "TracedError": {                                                       │
> │         "message": "An attempt to divide by zero has been detected at        │
> │ compile time.",                                                              │
> │         "trace": [                                                           │
> │           "Error trace on line: 1, column: 10 in module:                     │
> │ c:/home/git/polyglot/target/spiral_Eval/packages/fef9812d9b06b75b1ab26589e52 │
> │ c6d6ff05910b73ead9e8c4f27f88d2a5cdfb2/main.spi.                              │
> │ inl main () =                                                                │
> │          ^                                                                   │
> │ ",                                                                           │
> │           "Error trace on line: 2, column: 5 in module:                      │
> │ c:/home/git/polyglot/target/spiral_Eval/packages/fef9812d9b06b75b1ab26589e52 │
> │ c6d6ff05910b73ead9e8c4f27f88d2a5cdfb2/main.spi.                              │
> │     1i32 / 0i32                                                              │
> │     ^                                                                        │
> │ "                                                                            │
> │         ]                                                                    │
> │       }                                                                      │
> │     }                                                                        │
> │   ]                                                                          │
> │ ] / typeErrorCount: 0 / retry: 0 / path:                                     │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\fef9812d9b06b75b1ab26589e52 │
> │ c6d6ff05910b73ead9e8c4f27f88d2a5cdfb2\main.spi                               │
> │ 00:00:19 verbose #60 Supervisor.sendJson / port: 13805 / json:          │
> │ {"FileDelete":{"uris":[                                                      │
> │ "file:///c:/home/git/polyglot/target/spiral_Eval/packages/fef9812d9b06b75b1a │
> │ b26589e52c6d6ff05910b73ead9e8c4f27f88d2a5cdfb2"]}} / result:                 │
> │ 00:00:26 verbose #20 networking.wait_for_port_access / { port = 13805;  │
> │ retry = 0; timeout = Some 100; status = false }                              │
> │ 00:00:26 verbose #21 async.run_with_timeout_async / { timeout = 100 }   │
> │ 00:00:20   debug #61 FileSystem.watchWithFilter / Disposing watch       │
> │ stream / filter: FileName, LastWrite                                         │
> │ Some (None, ["An attempt to divide by zero has been detected at compile      │
> │ time."])                                                                     │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> """inl main () =
>     1 + ""
> """
> |> fun code -> Spi (code, None)
> |> buildCode Fsharp false 10000 None
> |> Async.runWithTimeout 10000
> |> Option.map (fun (_, (_, outputContent), errors) -> outputContent, errors |> 
> List.map fst)
> |> _assertEqual (
>     Some (
>         None,
>         [[
>             "main.spi:
> Constraint satisfaction error.
> Got: string
> Fails to satisfy: number"
>         ]]
>     )
> )
> 
> ╭─[ 3.77s - stdout ]───────────────────────────────────────────────────────────╮
> │ 00:00:26 verbose #22 async.run_with_timeout_async / { timeout = 180 }   │
> │ 00:00:23   debug #22 runtime.execute_with_options_async / { options = { │
> │ command = dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral   │
> │ Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port    │
> │ 13805 --default-int i32 --default-float f64; cancellation_token = Some       │
> │ System.Threading.CancellationToken; environment_variables = [||]; on_line =  │
> │ Some <fun:buildCode@6-92>; stdin = None; trace = true; working_directory =   │
> │ Some "C:\home\git\polyglot" } }                                              │
> │ 00:00:24 verbose #23 > 00:00:00   debug #1 pwd:                    │
> │ C:\home\git\polyglot                                                         │
> │ 00:00:24 verbose #24 > 00:00:00   debug #2 dllPath:                │
> │ C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language            │
> │ 2\artifacts\bin\The Spiral Language 2\release                                │
> │ 00:00:24 verbose #25 > 00:00:00   debug #3 targetDir:              │
> │ C:\home\git\polyglot\target/spiral_Eval                                      │
> │ 00:00:27 verbose #23 async.run_with_timeout_async / { timeout = 100 }   │
> │ 00:00:27 verbose #24 networking.wait_for_port_access / { port = 13805;  │
> │ retry = 0; timeout = Some 100; status = true }                               │
> │ 00:00:27 verbose #25 async.run_with_timeout_async / { timeout = 100 }   │
> │ 00:00:24 verbose #26 > Starting the Spiral Server. It is bound to:      │
> │ http://localhost:13805                                                       │
> │ 00:00:27 verbose #26 async.run_with_timeout_async / { timeout = 100 }   │
> │ 00:00:21 verbose #62 Supervisor.sendJson / port: 13805 / json:          │
> │ {"Ping":true} / result:                                                      │
> │ 00:00:21 verbose #63 awaitCompiler / Ping / result: 'Some(null)' /      │
> │ port: 13805 / retry: 0                                                       │
> │ 00:00:24 verbose #27 > Server bound to: http://localhost:13805          │
> │ 00:00:21   debug #64 Supervisor.buildFile / takeWhileInclusive /        │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c030f84f8e553befcbdd9aabeac │
> │ e67685221d91a46e3655199e42df713504aa0\main.spi                               │
> │ 00:00:21   debug #65 Supervisor.buildFile / AsyncSeq.scan /             │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c030f84f8e553befcbdd9aabeac │
> │ e67685221d91a46e3655199e42df713504aa0\main.spi                               │
> │ 00:00:21   debug #66 Supervisor.buildFile / takeWhileInclusive /        │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c030f84f8e553befcbdd9aabeac │
> │ e67685221d91a46e3655199e42df713504aa0\main.spi                               │
> │ 00:00:21 verbose #67 Supervisor.sendJson / port: 13805 / json:          │
> │ {"FileOpen":{"spiText":"inl main () =\n    1 \u002B                          │
> │ \u0022\u0022\n","uri":"file:///c:/home/git/polyg...et/spiral_Eval/packages/c │
> │ 030f84f8e553befcbdd9aabeace67685221d91a46e3655199e42df713504aa0/main.spi"}}  │
> │ / result:                                                                    │
> │ 00:00:21 verbose #68 Supervisor.sendJson / port: 13805 / json:          │
> │ {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/target/ │
> │ spiral_Eval/packages/c030f84f8e553befcbdd9aabeace67685221d91a46e3655199e42df │
> │ 713504aa0/main.spi"}} / result:                                              │
> │ 00:00:24 verbose #28 > 00:00:01   debug #4                         │
> │ Supervisor.supervisor_server.BuildFile / file:                               │
> │ c:/home/git/polyglot/target/spiral_Eval/packages/c030f84f8e553befcbdd9aabeac │
> │ e67685221d91a46e3655199e42df713504aa0/main.spi                               │
> │ 00:00:21   debug #69 Supervisor.buildFile / AsyncSeq.scan /             │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c030f84f8e553befcbdd9aabeac │
> │ e67685221d91a46e3655199e42df713504aa0\main.spi                               │
> │ 00:00:21   debug #70 Supervisor.buildFile / takeWhileInclusive /        │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c030f84f8e553befcbdd9aabeac │
> │ e67685221d91a46e3655199e42df713504aa0\main.spi                               │
> │ 00:00:22   debug #71 Supervisor.buildFile / AsyncSeq.scan /             │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c030f84f8e553befcbdd9aabeac │
> │ e67685221d91a46e3655199e42df713504aa0\main.spi                               │
> │ 00:00:22   debug #72 Supervisor.buildFile / takeWhileInclusive /        │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c030f84f8e553befcbdd9aabeac │
> │ e67685221d91a46e3655199e42df713504aa0\main.spi                               │
> │ 00:00:22   debug #73 Supervisor.buildFile / AsyncSeq.scan /             │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c030f84f8e553befcbdd9aabeac │
> │ e67685221d91a46e3655199e42df713504aa0\main.spi                               │
> │ 00:00:22   debug #74 Supervisor.buildFile / takeWhileInclusive /        │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c030f84f8e553befcbdd9aabeac │
> │ e67685221d91a46e3655199e42df713504aa0\main.spi                               │
> │ 00:00:23   debug #75 Supervisor.buildFile / AsyncSeq.scan /             │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c030f84f8e553befcbdd9aabeac │
> │ e67685221d91a46e3655199e42df713504aa0\main.spi                               │
> │ 00:00:23   debug #76 Supervisor.buildFile / takeWhileInclusive /        │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c030f84f8e553befcbdd9aabeac │
> │ e67685221d91a46e3655199e42df713504aa0\main.spi                               │
> │ 00:00:23   debug #77 Supervisor.buildFile / AsyncSeq.scan /             │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error: Some((File main has a type error somewhere in its path., FatalError   │
> │ "File main has a type error somewhere in its path.")) / path:                │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c030f84f8e553befcbdd9aabeac │
> │ e67685221d91a46e3655199e42df713504aa0\main.spi                               │
> │ 00:00:23   debug #78 Supervisor.buildFile / takeWhileInclusive /        │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 1 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c030f84f8e553befcbdd9aabeac │
> │ e67685221d91a46e3655199e42df713504aa0\main.spi                               │
> │ 00:00:23   debug #79 Supervisor.buildFile / AsyncSeq.scan /             │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 1 / retry: 0 /       │
> │ error: Some((main.spi:                                                       │
> │ Constraint satisfaction error.                                               │
> │ Got: string                                                                  │
> │ Fails to satisfy: number, TypeErrors                                         │
> │   { errors =                                                                 │
> │      [(({ character = 8                                                      │
> │           line = 1 }, { character = 10                                       │
> │                         line = 1 }),                                         │
> │        "Constraint satisfaction error.                                       │
> │ Got: string                                                                  │
> │ Fails to satisfy: number")]                                                  │
> │     uri =                                                                    │
> │                                                                              │
> │ "file:///c:/home/git/polyglot/target/spiral_Eval/packages/c030f84f8e553befcb │
> │ dd9aabeace67685221d91a46e3655199e42df713504aa0/main.spi" })) / path:         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c030f84f8e553befcbdd9aabeac │
> │ e67685221d91a46e3655199e42df713504aa0\main.spi                               │
> │ 00:00:23   debug #80 Supervisor.buildFile / takeWhileInclusive /        │
> │ outputContent:                                                               │
> │  / errors: [                                                                 │
> │   [                                                                          │
> │     "main.spi:                                                               │
> │ Constraint satisfaction error.                                               │
> │ Got: string                                                                  │
> │ Fails to satisfy: number",                                                   │
> │     {                                                                        │
> │       "TypeErrors": {                                                        │
> │         "errors": [                                                          │
> │           [                                                                  │
> │             [                                                                │
> │               {                                                              │
> │                 "character": 8,                                              │
> │                 "line": 1                                                    │
> │               },                                                             │
> │               {                                                              │
> │                 "character": 10,                                             │
> │                 "line": 1                                                    │
> │               }                                                              │
> │             ],                                                               │
> │             "Constraint satisfaction error.                                  │
> │ Got: string                                                                  │
> │ Fails to satisfy: number"                                                    │
> │           ]                                                                  │
> │         ],                                                                   │
> │         "uri":                                                               │
> │ "file:///c:/home/git/polyglot/target/spiral_Eval/packages/c030f84f8e553befcb │
> │ dd9aabeace67685221d91a46e3655199e42df713504aa0/main.spi"                     │
> │       }                                                                      │
> │     }                                                                        │
> │   ]                                                                          │
> │ ] / typeErrorCount: 1 / retry: 0 / path:                                     │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c030f84f8e553befcbdd9aabeac │
> │ e67685221d91a46e3655199e42df713504aa0\main.spi                               │
> │ 00:00:30 verbose #27 async.run_with_timeout_async / { timeout = 180 }   │
> │ 00:00:23   debug #81 Supervisor.buildFile / takeWhileInclusive /        │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 1 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c030f84f8e553befcbdd9aabeac │
> │ e67685221d91a46e3655199e42df713504aa0\main.spi                               │
> │ 00:00:23   debug #82 Supervisor.buildFile / AsyncSeq.scan /             │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 1 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c030f84f8e553befcbdd9aabeac │
> │ e67685221d91a46e3655199e42df713504aa0\main.spi                               │
> │ 00:00:23   debug #83 Supervisor.buildFile / takeWhileInclusive /        │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 1 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c030f84f8e553befcbdd9aabeac │
> │ e67685221d91a46e3655199e42df713504aa0\main.spi                               │
> │ 00:00:23 verbose #84 Supervisor.sendJson / port: 13805 / json:          │
> │ {"FileOpen":{"spiText":"inl main () =\n    1 \u002B                          │
> │ \u0022\u0022\n","uri":"file:///c:/home/git/polyg...et/spiral_Eval/packages/c │
> │ 030f84f8e553befcbdd9aabeace67685221d91a46e3655199e42df713504aa0/main.spi"}}  │
> │ / result:                                                                    │
> │ 00:00:26 verbose #29 > 00:00:03   debug #5                         │
> │ Supervisor.supervisor_server.BuildFile / file:                               │
> │ c:/home/git/polyglot/target/spiral_Eval/packages/c030f84f8e553befcbdd9aabeac │
> │ e67685221d91a46e3655199e42df713504aa0/main.spi                               │
> │ 00:00:23 verbose #85 Supervisor.sendJson / port: 13805 / json:          │
> │ {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/target/ │
> │ spiral_Eval/packages/c030f84f8e553befcbdd9aabeace67685221d91a46e3655199e42df │
> │ 713504aa0/main.spi"}} / result:                                              │
> │ 00:00:23   debug #86 Supervisor.buildFile / AsyncSeq.scan /             │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 1 /       │
> │ error: Some((main.spi:                                                       │
> │ Constraint satisfaction error.                                               │
> │ Got: string                                                                  │
> │ Fails to satisfy: number, TypeErrors                                         │
> │   { errors =                                                                 │
> │      [(({ character = 8                                                      │
> │           line = 1 }, { character = 10                                       │
> │                         line = 1 }),                                         │
> │        "Constraint satisfaction error.                                       │
> │ Got: string                                                                  │
> │ Fails to satisfy: number")]                                                  │
> │     uri =                                                                    │
> │                                                                              │
> │ "file:///c:/home/git/polyglot/target/spiral_Eval/packages/c030f84f8e553befcb │
> │ dd9aabeace67685221d91a46e3655199e42df713504aa0/main.spi" })) / path:         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c030f84f8e553befcbdd9aabeac │
> │ e67685221d91a46e3655199e42df713504aa0\main.spi                               │
> │ 00:00:23   debug #87 Supervisor.buildFile / takeWhileInclusive /        │
> │ outputContent:                                                               │
> │  / errors: [                                                                 │
> │   [                                                                          │
> │     "main.spi:                                                               │
> │ Constraint satisfaction error.                                               │
> │ Got: string                                                                  │
> │ Fails to satisfy: number",                                                   │
> │     {                                                                        │
> │       "TypeErrors": {                                                        │
> │         "errors": [                                                          │
> │           [                                                                  │
> │             [                                                                │
> │               {                                                              │
> │                 "character": 8,                                              │
> │                 "line": 1                                                    │
> │               },                                                             │
> │               {                                                              │
> │                 "character": 10,                                             │
> │                 "line": 1                                                    │
> │               }                                                              │
> │             ],                                                               │
> │             "Constraint satisfaction error.                                  │
> │ Got: string                                                                  │
> │ Fails to satisfy: number"                                                    │
> │           ]                                                                  │
> │         ],                                                                   │
> │         "uri":                                                               │
> │ "file:///c:/home/git/polyglot/target/spiral_Eval/packages/c030f84f8e553befcb │
> │ dd9aabeace67685221d91a46e3655199e42df713504aa0/main.spi"                     │
> │       }                                                                      │
> │     }                                                                        │
> │   ]                                                                          │
> │ ] / typeErrorCount: 0 / retry: 1 / path:                                     │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c030f84f8e553befcbdd9aabeac │
> │ e67685221d91a46e3655199e42df713504aa0\main.spi                               │
> │ 00:00:23 verbose #88 Supervisor.sendJson / port: 13805 / json:          │
> │ {"FileDelete":{"uris":[                                                      │
> │ "file:///c:/home/git/polyglot/target/spiral_Eval/packages/c030f84f8e553befcb │
> │ dd9aabeace67685221d91a46e3655199e42df713504aa0"]}} / result:                 │
> │ 00:00:23   debug #89 FileSystem.watchWithFilter / Disposing watch       │
> │ stream / filter: FileName, LastWrite                                         │
> │ 00:00:30 verbose #28 networking.wait_for_port_access / { port = 13805;  │
> │ retry = 0; timeout = Some 100; status = false }                              │
> │ 00:00:30 verbose #29 async.run_with_timeout_async / { timeout = 100 }   │
> │ 00:00:23   debug #90 FileSystem.watchWithFilter / Disposing watch       │
> │ stream / filter: FileName, LastWrite                                         │
> │ Some (None, ["main.spi:                                                      │
> │ Constraint satisfaction error.                                               │
> │ Got: string                                                                  │
> │ Fails to satisfy: number"])                                                  │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> """inl main () =
>     x + y
> """
> |> fun code -> Spi (code, None)
> |> buildCode Fsharp false 10000 None
> |> Async.runWithTimeout 10000
> |> Option.map (fun (_, (_, outputContent), errors) -> outputContent, errors |> 
> List.map fst)
> |> _assertEqual (
>     Some (
>         None,
>         [[
>             "main.spi:
> Unbound variable: x.
> Unbound variable: y."
>         ]]
>     )
> )
> 
> ╭─[ 3.73s - stdout ]───────────────────────────────────────────────────────────╮
> │ 00:00:30 verbose #30 async.run_with_timeout_async / { timeout = 180 }   │
> │ 00:00:27   debug #30 runtime.execute_with_options_async / { options = { │
> │ command = dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral   │
> │ Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port    │
> │ 13805 --default-int i32 --default-float f64; cancellation_token = Some       │
> │ System.Threading.CancellationToken; environment_variables = [||]; on_line =  │
> │ Some <fun:buildCode@6-92>; stdin = None; trace = true; working_directory =   │
> │ Some "C:\home\git\polyglot" } }                                              │
> │ 00:00:27 verbose #31 > 00:00:00   debug #1 pwd:                    │
> │ C:\home\git\polyglot                                                         │
> │ 00:00:27 verbose #32 > 00:00:00   debug #2 dllPath:                │
> │ C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language            │
> │ 2\artifacts\bin\The Spiral Language 2\release                                │
> │ 00:00:27 verbose #33 > 00:00:00   debug #3 targetDir:              │
> │ C:\home\git\polyglot\target/spiral_Eval                                      │
> │ 00:00:31 verbose #31 async.run_with_timeout_async / { timeout = 100 }   │
> │ 00:00:31 verbose #32 networking.wait_for_port_access / { port = 13805;  │
> │ retry = 0; timeout = Some 100; status = true }                               │
> │ 00:00:31 verbose #33 async.run_with_timeout_async / { timeout = 100 }   │
> │ 00:00:28 verbose #34 > Starting the Spiral Server. It is bound to:      │
> │ http://localhost:13805                                                       │
> │ 00:00:31 verbose #34 async.run_with_timeout_async / { timeout = 100 }   │
> │ 00:00:25 verbose #91 Supervisor.sendJson / port: 13805 / json:          │
> │ {"Ping":true} / result:                                                      │
> │ 00:00:25 verbose #92 awaitCompiler / Ping / result: 'Some(null)' /      │
> │ port: 13805 / retry: 0                                                       │
> │ 00:00:28 verbose #35 > Server bound to: http://localhost:13805          │
> │ 00:00:25   debug #93 Supervisor.buildFile / takeWhileInclusive /        │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\6cdeec507f9de5ba9c8429cfa70 │
> │ 49b777a622aa3bf7333b151c767fde35dc5d1\main.spi                               │
> │ 00:00:25   debug #94 Supervisor.buildFile / AsyncSeq.scan /             │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\6cdeec507f9de5ba9c8429cfa70 │
> │ 49b777a622aa3bf7333b151c767fde35dc5d1\main.spi                               │
> │ 00:00:25   debug #95 Supervisor.buildFile / takeWhileInclusive /        │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\6cdeec507f9de5ba9c8429cfa70 │
> │ 49b777a622aa3bf7333b151c767fde35dc5d1\main.spi                               │
> │ 00:00:25 verbose #96 Supervisor.sendJson / port: 13805 / json:          │
> │ {"FileOpen":{"spiText":"inl main () =\n    x \u002B                          │
> │ y\n","uri":"file:///c:/home/git/polyglot/target/spiral_Eval/packages/6cdeec5 │
> │ 07f9de5ba9c8429cfa7049b777a622aa3bf7333b151c767fde35dc5d1/main.spi"}} /      │
> │ result:                                                                      │
> │ 00:00:25 verbose #97 Supervisor.sendJson / port: 13805 / json:          │
> │ {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/target/ │
> │ spiral_Eval/packages/6cdeec507f9de5ba9c8429cfa7049b777a622aa3bf7333b151c767f │
> │ de35dc5d1/main.spi"}} / result:                                              │
> │ 00:00:28 verbose #36 > 00:00:01   debug #4                         │
> │ Supervisor.supervisor_server.BuildFile / file:                               │
> │ c:/home/git/polyglot/target/spiral_Eval/packages/6cdeec507f9de5ba9c8429cfa70 │
> │ 49b777a622aa3bf7333b151c767fde35dc5d1/main.spi                               │
> │ 00:00:25   debug #98 Supervisor.buildFile / AsyncSeq.scan /             │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\6cdeec507f9de5ba9c8429cfa70 │
> │ 49b777a622aa3bf7333b151c767fde35dc5d1\main.spi                               │
> │ 00:00:25   debug #99 Supervisor.buildFile / takeWhileInclusive /        │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\6cdeec507f9de5ba9c8429cfa70 │
> │ 49b777a622aa3bf7333b151c767fde35dc5d1\main.spi                               │
> │ 00:00:26   debug #100 Supervisor.buildFile / AsyncSeq.scan /            │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\6cdeec507f9de5ba9c8429cfa70 │
> │ 49b777a622aa3bf7333b151c767fde35dc5d1\main.spi                               │
> │ 00:00:26   debug #101 Supervisor.buildFile / takeWhileInclusive /       │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\6cdeec507f9de5ba9c8429cfa70 │
> │ 49b777a622aa3bf7333b151c767fde35dc5d1\main.spi                               │
> │ 00:00:26   debug #102 Supervisor.buildFile / AsyncSeq.scan /            │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\6cdeec507f9de5ba9c8429cfa70 │
> │ 49b777a622aa3bf7333b151c767fde35dc5d1\main.spi                               │
> │ 00:00:26   debug #103 Supervisor.buildFile / takeWhileInclusive /       │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\6cdeec507f9de5ba9c8429cfa70 │
> │ 49b777a622aa3bf7333b151c767fde35dc5d1\main.spi                               │
> │ 00:00:27   debug #104 Supervisor.buildFile / AsyncSeq.scan /            │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\6cdeec507f9de5ba9c8429cfa70 │
> │ 49b777a622aa3bf7333b151c767fde35dc5d1\main.spi                               │
> │ 00:00:27   debug #105 Supervisor.buildFile / takeWhileInclusive /       │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\6cdeec507f9de5ba9c8429cfa70 │
> │ 49b777a622aa3bf7333b151c767fde35dc5d1\main.spi                               │
> │ 00:00:27   debug #106 Supervisor.buildFile / AsyncSeq.scan /            │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error: Some((File main has a type error somewhere in its path., FatalError   │
> │ "File main has a type error somewhere in its path.")) / path:                │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\6cdeec507f9de5ba9c8429cfa70 │
> │ 49b777a622aa3bf7333b151c767fde35dc5d1\main.spi                               │
> │ 00:00:27   debug #107 Supervisor.buildFile / takeWhileInclusive /       │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 1 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\6cdeec507f9de5ba9c8429cfa70 │
> │ 49b777a622aa3bf7333b151c767fde35dc5d1\main.spi                               │
> │ 00:00:27   debug #108 Supervisor.buildFile / AsyncSeq.scan /            │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 1 / retry: 0 /       │
> │ error: Some((main.spi:                                                       │
> │ Unbound variable: x.                                                         │
> │ Unbound variable: y., TypeErrors                                             │
> │   { errors =                                                                 │
> │      [(({ character = 4                                                      │
> │           line = 1 }, { character = 5                                        │
> │                         line = 1 }), "Unbound variable: x.");                │
> │       (({ character = 8                                                      │
> │           line = 1 }, { character = 9                                        │
> │                         line = 1 }), "Unbound variable: y.")]                │
> │     uri =                                                                    │
> │                                                                              │
> │ "file:///c:/home/git/polyglot/target/spiral_Eval/packages/6cdeec507f9de5ba9c │
> │ 8429cfa7049b777a622aa3bf7333b151c767fde35dc5d1/main.spi" })) / path:         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\6cdeec507f9de5ba9c8429cfa70 │
> │ 49b777a622aa3bf7333b151c767fde35dc5d1\main.spi                               │
> │ 00:00:27   debug #109 Supervisor.buildFile / takeWhileInclusive /       │
> │ outputContent:                                                               │
> │  / errors: [                                                                 │
> │   [                                                                          │
> │     "main.spi:                                                               │
> │ Unbound variable: x.                                                         │
> │ Unbound variable: y.",                                                       │
> │     {                                                                        │
> │       "TypeErrors": {                                                        │
> │         "errors": [                                                          │
> │           [                                                                  │
> │             [                                                                │
> │               {                                                              │
> │                 "character": 4,                                              │
> │                 "line": 1                                                    │
> │               },                                                             │
> │               {                                                              │
> │                 "character": 5,                                              │
> │                 "line": 1                                                    │
> │               }                                                              │
> │             ],                                                               │
> │             "Unbound variable: x."                                           │
> │           ],                                                                 │
> │           [                                                                  │
> │             [                                                                │
> │               {                                                              │
> │                 "character": 8,                                              │
> │                 "line": 1                                                    │
> │               },                                                             │
> │               {                                                              │
> │                 "character": 9,                                              │
> │                 "line": 1                                                    │
> │               }                                                              │
> │             ],                                                               │
> │             "Unbound variable: y."                                           │
> │           ]                                                                  │
> │         ],                                                                   │
> │         "uri":                                                               │
> │ "file:///c:/home/git/polyglot/target/spiral_Eval/packages/6cdeec507f9de5ba9c │
> │ 8429cfa7049b777a622aa3bf7333b151c767fde35dc5d1/main.spi"                     │
> │       }                                                                      │
> │     }                                                                        │
> │   ]                                                                          │
> │ ] / typeErrorCount: 1 / retry: 0 / path:                                     │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\6cdeec507f9de5ba9c8429cfa70 │
> │ 49b777a622aa3bf7333b151c767fde35dc5d1\main.spi                               │
> │ 00:00:33 verbose #35 async.run_with_timeout_async / { timeout = 180 }   │
> │ 00:00:27   debug #110 Supervisor.buildFile / takeWhileInclusive /       │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 1 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\6cdeec507f9de5ba9c8429cfa70 │
> │ 49b777a622aa3bf7333b151c767fde35dc5d1\main.spi                               │
> │ 00:00:27   debug #111 Supervisor.buildFile / AsyncSeq.scan /            │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 1 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\6cdeec507f9de5ba9c8429cfa70 │
> │ 49b777a622aa3bf7333b151c767fde35dc5d1\main.spi                               │
> │ 00:00:27   debug #112 Supervisor.buildFile / takeWhileInclusive /       │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 1 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\6cdeec507f9de5ba9c8429cfa70 │
> │ 49b777a622aa3bf7333b151c767fde35dc5d1\main.spi                               │
> │ 00:00:27 verbose #113 Supervisor.sendJson / port: 13805 / json:         │
> │ {"FileOpen":{"spiText":"inl main () =\n    x \u002B                          │
> │ y\n","uri":"file:///c:/home/git/polyglot/target/spiral_Eval/packages/6cdeec5 │
> │ 07f9de5ba9c8429cfa7049b777a622aa3bf7333b151c767fde35dc5d1/main.spi"}} /      │
> │ result:                                                                      │
> │ 00:00:30 verbose #37 > 00:00:03   debug #5                         │
> │ Supervisor.supervisor_server.BuildFile / file:                               │
> │ c:/home/git/polyglot/target/spiral_Eval/packages/6cdeec507f9de5ba9c8429cfa70 │
> │ 49b777a622aa3bf7333b151c767fde35dc5d1/main.spi                               │
> │ 00:00:27 verbose #114 Supervisor.sendJson / port: 13805 / json:         │
> │ {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/target/ │
> │ spiral_Eval/packages/6cdeec507f9de5ba9c8429cfa7049b777a622aa3bf7333b151c767f │
> │ de35dc5d1/main.spi"}} / result:                                              │
> │ 00:00:27   debug #115 Supervisor.buildFile / AsyncSeq.scan /            │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 1 /       │
> │ error: Some((main.spi:                                                       │
> │ Unbound variable: x.                                                         │
> │ Unbound variable: y., TypeErrors                                             │
> │   { errors =                                                                 │
> │      [(({ character = 4                                                      │
> │           line = 1 }, { character = 5                                        │
> │                         line = 1 }), "Unbound variable: x.");                │
> │       (({ character = 8                                                      │
> │           line = 1 }, { character = 9                                        │
> │                         line = 1 }), "Unbound variable: y.")]                │
> │     uri =                                                                    │
> │                                                                              │
> │ "file:///c:/home/git/polyglot/target/spiral_Eval/packages/6cdeec507f9de5ba9c │
> │ 8429cfa7049b777a622aa3bf7333b151c767fde35dc5d1/main.spi" })) / path:         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\6cdeec507f9de5ba9c8429cfa70 │
> │ 49b777a622aa3bf7333b151c767fde35dc5d1\main.spi                               │
> │ 00:00:27   debug #116 Supervisor.buildFile / takeWhileInclusive /       │
> │ outputContent:                                                               │
> │  / errors: [                                                                 │
> │   [                                                                          │
> │     "main.spi:                                                               │
> │ Unbound variable: x.                                                         │
> │ Unbound variable: y.",                                                       │
> │     {                                                                        │
> │       "TypeErrors": {                                                        │
> │         "errors": [                                                          │
> │           [                                                                  │
> │             [                                                                │
> │               {                                                              │
> │                 "character": 4,                                              │
> │                 "line": 1                                                    │
> │               },                                                             │
> │               {                                                              │
> │                 "character": 5,                                              │
> │                 "line": 1                                                    │
> │               }                                                              │
> │             ],                                                               │
> │             "Unbound variable: x."                                           │
> │           ],                                                                 │
> │           [                                                                  │
> │             [                                                                │
> │               {                                                              │
> │                 "character": 8,                                              │
> │                 "line": 1                                                    │
> │               },                                                             │
> │               {                                                              │
> │                 "character": 9,                                              │
> │                 "line": 1                                                    │
> │               }                                                              │
> │             ],                                                               │
> │             "Unbound variable: y."                                           │
> │           ]                                                                  │
> │         ],                                                                   │
> │         "uri":                                                               │
> │ "file:///c:/home/git/polyglot/target/spiral_Eval/packages/6cdeec507f9de5ba9c │
> │ 8429cfa7049b777a622aa3bf7333b151c767fde35dc5d1/main.spi"                     │
> │       }                                                                      │
> │     }                                                                        │
> │   ]                                                                          │
> │ ] / typeErrorCount: 0 / retry: 1 / path:                                     │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\6cdeec507f9de5ba9c8429cfa70 │
> │ 49b777a622aa3bf7333b151c767fde35dc5d1\main.spi                               │
> │ 00:00:27 verbose #117 Supervisor.sendJson / port: 13805 / json:         │
> │ {"FileDelete":{"uris":[                                                      │
> │ "file:///c:/home/git/polyglot/target/spiral_Eval/packages/6cdeec507f9de5ba9c │
> │ 8429cfa7049b777a622aa3bf7333b151c767fde35dc5d1"]}} / result:                 │
> │ 00:00:27   debug #118 FileSystem.watchWithFilter / Disposing watch      │
> │ stream / filter: FileName, LastWrite                                         │
> │ 00:00:33 verbose #36 networking.wait_for_port_access / { port = 13805;  │
> │ retry = 0; timeout = Some 100; status = false }                              │
> │ 00:00:34 verbose #37 async.run_with_timeout_async / { timeout = 100 }   │
> │ 00:00:27   debug #119 FileSystem.watchWithFilter / Disposing watch      │
> │ stream / filter: FileName, LastWrite                                         │
> │ Some (None, ["main.spi:                                                      │
> │ Unbound variable: x.                                                         │
> │ Unbound variable: y."])                                                      │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> """
> inl main () =
>     real
>         inl real_unbox forall a. (obj : a) : a =
>             typecase obj with
>             | _ => obj
>         real_unbox ()
>     ()
> """
> |> fun code -> Spi (code, None)
> |> buildCode Fsharp false 10000 None
> |> Async.runWithTimeout 10000
> |> Option.map (fun (_, (_, outputContent), errors) -> outputContent, errors |> 
> List.map fst)
> |> _assertEqual (
>     Some (
>         None,
>         [[ "Cannot apply a forall with a term." ]]
>     )
> )
> 
> ╭─[ 3.79s - stdout ]───────────────────────────────────────────────────────────╮
> │ 00:00:34 verbose #38 async.run_with_timeout_async / { timeout = 180 }   │
> │ 00:00:31   debug #38 runtime.execute_with_options_async / { options = { │
> │ command = dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral   │
> │ Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port    │
> │ 13805 --default-int i32 --default-float f64; cancellation_token = Some       │
> │ System.Threading.CancellationToken; environment_variables = [||]; on_line =  │
> │ Some <fun:buildCode@6-92>; stdin = None; trace = true; working_directory =   │
> │ Some "C:\home\git\polyglot" } }                                              │
> │ 00:00:31 verbose #39 > 00:00:00   debug #1 pwd:                    │
> │ C:\home\git\polyglot                                                         │
> │ 00:00:31 verbose #40 > 00:00:00   debug #2 dllPath:                │
> │ C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language            │
> │ 2\artifacts\bin\The Spiral Language 2\release                                │
> │ 00:00:31 verbose #41 > 00:00:00   debug #3 targetDir:              │
> │ C:\home\git\polyglot\target/spiral_Eval                                      │
> │ 00:00:34 verbose #39 async.run_with_timeout_async / { timeout = 100 }   │
> │ 00:00:34 verbose #40 networking.wait_for_port_access / { port = 13805;  │
> │ retry = 0; timeout = Some 100; status = true }                               │
> │ 00:00:34 verbose #41 async.run_with_timeout_async / { timeout = 100 }   │
> │ 00:00:31 verbose #42 > Starting the Spiral Server. It is bound to:      │
> │ http://localhost:13805                                                       │
> │ 00:00:35 verbose #42 async.run_with_timeout_async / { timeout = 100 }   │
> │ 00:00:28 verbose #120 Supervisor.sendJson / port: 13805 / json:         │
> │ {"Ping":true} / result:                                                      │
> │ 00:00:28 verbose #121 awaitCompiler / Ping / result: 'Some(null)' /     │
> │ port: 13805 / retry: 0                                                       │
> │ 00:00:32 verbose #43 > Server bound to: http://localhost:13805          │
> │ 00:00:28   debug #122 Supervisor.buildFile / takeWhileInclusive /       │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\61c59548b11a56efe6894b6855e │
> │ 845b5bd8d9f78be605803496c626bd6369493\main.spi                               │
> │ 00:00:28   debug #123 Supervisor.buildFile / AsyncSeq.scan /            │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\61c59548b11a56efe6894b6855e │
> │ 845b5bd8d9f78be605803496c626bd6369493\main.spi                               │
> │ 00:00:28   debug #124 Supervisor.buildFile / takeWhileInclusive /       │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\61c59548b11a56efe6894b6855e │
> │ 845b5bd8d9f78be605803496c626bd6369493\main.spi                               │
> │ 00:00:28 verbose #125 Supervisor.sendJson / port: 13805 / json:         │
> │ {"FileOpen":{"spiText":"\ninl main () =\n    real\n        inl real_unbox    │
> │ forall a. (obj : a) : a                                                      │
> │ =\...et/spiral_Eval/packages/61c59548b11a56efe6894b6855e845b5bd8d9f78be60580 │
> │ 3496c626bd6369493/main.spi"}} / result:                                      │
> │ 00:00:28 verbose #126 Supervisor.sendJson / port: 13805 / json:         │
> │ {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/target/ │
> │ spiral_Eval/packages/61c59548b11a56efe6894b6855e845b5bd8d9f78be605803496c626 │
> │ bd6369493/main.spi"}} / result:                                              │
> │ 00:00:32 verbose #44 > 00:00:01   debug #4                         │
> │ Supervisor.supervisor_server.BuildFile / file:                               │
> │ c:/home/git/polyglot/target/spiral_Eval/packages/61c59548b11a56efe6894b6855e │
> │ 845b5bd8d9f78be605803496c626bd6369493/main.spi                               │
> │ 00:00:29   debug #127 Supervisor.buildFile / AsyncSeq.scan /            │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\61c59548b11a56efe6894b6855e │
> │ 845b5bd8d9f78be605803496c626bd6369493\main.spi                               │
> │ 00:00:29   debug #128 Supervisor.buildFile / takeWhileInclusive /       │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\61c59548b11a56efe6894b6855e │
> │ 845b5bd8d9f78be605803496c626bd6369493\main.spi                               │
> │ 00:00:29   debug #129 Supervisor.buildFile / AsyncSeq.scan /            │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\61c59548b11a56efe6894b6855e │
> │ 845b5bd8d9f78be605803496c626bd6369493\main.spi                               │
> │ 00:00:29   debug #130 Supervisor.buildFile / takeWhileInclusive /       │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\61c59548b11a56efe6894b6855e │
> │ 845b5bd8d9f78be605803496c626bd6369493\main.spi                               │
> │ 00:00:30   debug #131 Supervisor.buildFile / AsyncSeq.scan /            │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\61c59548b11a56efe6894b6855e │
> │ 845b5bd8d9f78be605803496c626bd6369493\main.spi                               │
> │ 00:00:30   debug #132 Supervisor.buildFile / takeWhileInclusive /       │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\61c59548b11a56efe6894b6855e │
> │ 845b5bd8d9f78be605803496c626bd6369493\main.spi                               │
> │ 00:00:30   debug #133 Supervisor.buildFile / AsyncSeq.scan /            │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\61c59548b11a56efe6894b6855e │
> │ 845b5bd8d9f78be605803496c626bd6369493\main.spi                               │
> │ 00:00:30   debug #134 Supervisor.buildFile / takeWhileInclusive /       │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\61c59548b11a56efe6894b6855e │
> │ 845b5bd8d9f78be605803496c626bd6369493\main.spi                               │
> │ 00:00:31   debug #135 Supervisor.buildFile / AsyncSeq.scan /            │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error: Some((Cannot apply a forall with a term., TracedError                 │
> │   { message = "Cannot apply a forall with a term."                           │
> │     trace =                                                                  │
> │      ["Error trace on line: 2, column: 10 in module:                         │
> │ c:/home/git/polyglot/target/spiral_Eval/packages/61c59548b11a56efe6894b6855e │
> │ 845b5bd8d9f78be605803496c626bd6369493/main.spi.                              │
> │ inl main () =                                                                │
> │          ^                                                                   │
> │ ";                                                                           │
> │       "Error trace on line: 4, column: 9 in module:                          │
> │ c:/home/git/polyglot/target/spiral_Eval/packages/61c59548b11a56efe6894b6855e │
> │ 845b5bd8d9f78be605803496c626bd6369493/main.spi.                              │
> │         inl real_unbox forall a. (obj : a) : a =                             │
> │         ^                                                                    │
> │ ";                                                                           │
> │       "Error trace on line: 7, column: 9 in module:                          │
> │ c:/home/git/polyglot/target/spiral_Eval/packages/61c59548b11a56efe6894b6855e │
> │ 845b5bd8d9f78be605803496c626bd6369493/main.spi.                              │
> │         real_unbox ()                                                        │
> │         ^                                                                    │
> │ "] })) / path:                                                               │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\61c59548b11a56efe6894b6855e │
> │ 845b5bd8d9f78be605803496c626bd6369493\main.spi                               │
> │ 00:00:31   debug #136 Supervisor.buildFile / takeWhileInclusive /       │
> │ outputContent:                                                               │
> │  / errors: [                                                                 │
> │   [                                                                          │
> │     "Cannot apply a forall with a term.",                                    │
> │     {                                                                        │
> │       "TracedError": {                                                       │
> │         "message": "Cannot apply a forall with a term.",                     │
> │         "trace": [                                                           │
> │           "Error trace on line: 2, column: 10 in module:                     │
> │ c:/home/git/polyglot/target/spiral_Eval/packages/61c59548b11a56efe6894b6855e │
> │ 845b5bd8d9f78be605803496c626bd6369493/main.spi.                              │
> │ inl main () =                                                                │
> │          ^                                                                   │
> │ ",                                                                           │
> │           "Error trace on line: 4, column: 9 in module:                      │
> │ c:/home/git/polyglot/target/spiral_Eval/packages/61c59548b11a56efe6894b6855e │
> │ 845b5bd8d9f78be605803496c626bd6369493/main.spi.                              │
> │         inl real_unbox forall a. (obj : a) : a =                             │
> │         ^                                                                    │
> │ ",                                                                           │
> │           "Error trace on line: 7, column: 9 in module:                      │
> │ c:/home/git/polyglot/target/spiral_Eval/packages/61c59548b11a56efe6894b6855e │
> │ 845b5bd8d9f78be605803496c626bd6369493/main.spi.                              │
> │         real_unbox ()                                                        │
> │         ^                                                                    │
> │ "                                                                            │
> │         ]                                                                    │
> │       }                                                                      │
> │     }                                                                        │
> │   ]                                                                          │
> │ ] / typeErrorCount: 0 / retry: 0 / path:                                     │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\61c59548b11a56efe6894b6855e │
> │ 845b5bd8d9f78be605803496c626bd6369493\main.spi                               │
> │ 00:00:31 verbose #137 Supervisor.sendJson / port: 13805 / json:         │
> │ {"FileDelete":{"uris":[                                                      │
> │ "file:///c:/home/git/polyglot/target/spiral_Eval/packages/61c59548b11a56efe6 │
> │ 894b6855e845b5bd8d9f78be605803496c626bd6369493"]}} / result:                 │
> │ 00:00:37 verbose #43 networking.wait_for_port_access / { port = 13805;  │
> │ retry = 0; timeout = Some 100; status = false }                              │
> │ 00:00:37 verbose #44 async.run_with_timeout_async / { timeout = 100 }   │
> │ 00:00:31   debug #138 FileSystem.watchWithFilter / Disposing watch      │
> │ stream / filter: FileName, LastWrite                                         │
> │ Some (None, ["Cannot apply a forall with a term."])                          │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> """
> inl main () =
>     real
>         inl real_unbox forall a. (obj : a) : a =
>             typecase obj with
>             | _ => obj
>         real_unbox `i32 1
> """
> |> fun code -> Spi (code, None)
> |> buildCode Fsharp false 10000 None
> |> Async.runWithTimeout 10000
> |> Option.map (fun (_, (_, outputContent), errors) -> outputContent, errors |> 
> List.map fst)
> |> _assertEqual (
>     Some (
>         None,
>         [[ "The main function should not have a forall." ]]
>     )
> )
> 
> ╭─[ 3.56s - stdout ]───────────────────────────────────────────────────────────╮
> │ 00:00:38 verbose #45 async.run_with_timeout_async / { timeout = 180 }   │
> │ 00:00:34   debug #45 runtime.execute_with_options_async / { options = { │
> │ command = dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral   │
> │ Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port    │
> │ 13805 --default-int i32 --default-float f64; cancellation_token = Some       │
> │ System.Threading.CancellationToken; environment_variables = [||]; on_line =  │
> │ Some <fun:buildCode@6-92>; stdin = None; trace = true; working_directory =   │
> │ Some "C:\home\git\polyglot" } }                                              │
> │ 00:00:35 verbose #46 > 00:00:00   debug #1 pwd:                    │
> │ C:\home\git\polyglot                                                         │
> │ 00:00:35 verbose #47 > 00:00:00   debug #2 dllPath:                │
> │ C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language            │
> │ 2\artifacts\bin\The Spiral Language 2\release                                │
> │ 00:00:35 verbose #48 > 00:00:00   debug #3 targetDir:              │
> │ C:\home\git\polyglot\target/spiral_Eval                                      │
> │ 00:00:38 verbose #46 async.run_with_timeout_async / { timeout = 100 }   │
> │ 00:00:38 verbose #47 networking.wait_for_port_access / { port = 13805;  │
> │ retry = 0; timeout = Some 100; status = true }                               │
> │ 00:00:38 verbose #48 async.run_with_timeout_async / { timeout = 100 }   │
> │ 00:00:35 verbose #49 > Starting the Spiral Server. It is bound to:      │
> │ http://localhost:13805                                                       │
> │ 00:00:38 verbose #49 async.run_with_timeout_async / { timeout = 100 }   │
> │ 00:00:32 verbose #139 Supervisor.sendJson / port: 13805 / json:         │
> │ {"Ping":true} / result:                                                      │
> │ 00:00:32 verbose #140 awaitCompiler / Ping / result: 'Some(null)' /     │
> │ port: 13805 / retry: 0                                                       │
> │ 00:00:35 verbose #50 > Server bound to: http://localhost:13805          │
> │ 00:00:32   debug #141 Supervisor.buildFile / takeWhileInclusive /       │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\d18ab5eccdd16bb367f1cae1e75 │
> │ 791ae1134c04410280fa27c5ddd010dff3b10\main.spi                               │
> │ 00:00:32   debug #142 Supervisor.buildFile / AsyncSeq.scan /            │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\d18ab5eccdd16bb367f1cae1e75 │
> │ 791ae1134c04410280fa27c5ddd010dff3b10\main.spi                               │
> │ 00:00:32   debug #143 Supervisor.buildFile / takeWhileInclusive /       │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\d18ab5eccdd16bb367f1cae1e75 │
> │ 791ae1134c04410280fa27c5ddd010dff3b10\main.spi                               │
> │ 00:00:32 verbose #144 Supervisor.sendJson / port: 13805 / json:         │
> │ {"FileOpen":{"spiText":"\ninl main () =\n    real\n        inl real_unbox    │
> │ forall a. (obj : a) : a                                                      │
> │ =\...et/spiral_Eval/packages/d18ab5eccdd16bb367f1cae1e75791ae1134c04410280fa │
> │ 27c5ddd010dff3b10/main.spi"}} / result:                                      │
> │ 00:00:32 verbose #145 Supervisor.sendJson / port: 13805 / json:         │
> │ {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/target/ │
> │ spiral_Eval/packages/d18ab5eccdd16bb367f1cae1e75791ae1134c04410280fa27c5ddd0 │
> │ 10dff3b10/main.spi"}} / result:                                              │
> │ 00:00:36 verbose #51 > 00:00:01   debug #4                         │
> │ Supervisor.supervisor_server.BuildFile / file:                               │
> │ c:/home/git/polyglot/target/spiral_Eval/packages/d18ab5eccdd16bb367f1cae1e75 │
> │ 791ae1134c04410280fa27c5ddd010dff3b10/main.spi                               │
> │ 00:00:33   debug #146 Supervisor.buildFile / AsyncSeq.scan /            │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\d18ab5eccdd16bb367f1cae1e75 │
> │ 791ae1134c04410280fa27c5ddd010dff3b10\main.spi                               │
> │ 00:00:33   debug #147 Supervisor.buildFile / takeWhileInclusive /       │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\d18ab5eccdd16bb367f1cae1e75 │
> │ 791ae1134c04410280fa27c5ddd010dff3b10\main.spi                               │
> │ 00:00:33   debug #148 Supervisor.buildFile / AsyncSeq.scan /            │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\d18ab5eccdd16bb367f1cae1e75 │
> │ 791ae1134c04410280fa27c5ddd010dff3b10\main.spi                               │
> │ 00:00:33   debug #149 Supervisor.buildFile / takeWhileInclusive /       │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\d18ab5eccdd16bb367f1cae1e75 │
> │ 791ae1134c04410280fa27c5ddd010dff3b10\main.spi                               │
> │ 00:00:34   debug #150 Supervisor.buildFile / AsyncSeq.scan /            │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\d18ab5eccdd16bb367f1cae1e75 │
> │ 791ae1134c04410280fa27c5ddd010dff3b10\main.spi                               │
> │ 00:00:34   debug #151 Supervisor.buildFile / takeWhileInclusive /       │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\d18ab5eccdd16bb367f1cae1e75 │
> │ 791ae1134c04410280fa27c5ddd010dff3b10\main.spi                               │
> │ 00:00:34   debug #152 Supervisor.buildFile / AsyncSeq.scan /            │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\d18ab5eccdd16bb367f1cae1e75 │
> │ 791ae1134c04410280fa27c5ddd010dff3b10\main.spi                               │
> │ 00:00:34   debug #153 Supervisor.buildFile / takeWhileInclusive /       │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\d18ab5eccdd16bb367f1cae1e75 │
> │ 791ae1134c04410280fa27c5ddd010dff3b10\main.spi                               │
> │ 00:00:34   debug #154 Supervisor.buildFile / AsyncSeq.scan /            │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error: Some((The main function should not have a forall., TracedError {      │
> │ message = "The main function should not have a forall."                      │
> │               trace = [] })) / path:                                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\d18ab5eccdd16bb367f1cae1e75 │
> │ 791ae1134c04410280fa27c5ddd010dff3b10\main.spi                               │
> │ 00:00:34   debug #155 Supervisor.buildFile / takeWhileInclusive /       │
> │ outputContent:                                                               │
> │  / errors: [                                                                 │
> │   [                                                                          │
> │     "The main function should not have a forall.",                           │
> │     {                                                                        │
> │       "TracedError": {                                                       │
> │         "message": "The main function should not have a forall.",            │
> │         "trace": []                                                          │
> │       }                                                                      │
> │     }                                                                        │
> │   ]                                                                          │
> │ ] / typeErrorCount: 0 / retry: 0 / path:                                     │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\d18ab5eccdd16bb367f1cae1e75 │
> │ 791ae1134c04410280fa27c5ddd010dff3b10\main.spi                               │
> │ 00:00:34 verbose #156 Supervisor.sendJson / port: 13805 / json:         │
> │ {"FileDelete":{"uris":[                                                      │
> │ "file:///c:/home/git/polyglot/target/spiral_Eval/packages/d18ab5eccdd16bb367 │
> │ f1cae1e75791ae1134c04410280fa27c5ddd010dff3b10"]}} / result:                 │
> │ 00:00:41 verbose #50 networking.wait_for_port_access / { port = 13805;  │
> │ retry = 0; timeout = Some 100; status = false }                              │
> │ 00:00:41 verbose #51 async.run_with_timeout_async / { timeout = 100 }   │
> │ 00:00:34   debug #157 FileSystem.watchWithFilter / Disposing watch      │
> │ stream / filter: FileName, LastWrite                                         │
> │ Some (None, ["The main function should not have a forall."])                 │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> """
> inl init_series start end inc =
>     inl total : f64 = conv ((end - start) / inc) + 1
>     listm.init total (conv >> (*) inc >> (+) start) : list f64
> 
> type integration = (f64 -> f64) -> f64 -> f64 -> f64
> 
> inl integral dt : integration =
>     fun f a b =>
>         init_series (a + dt / 2) (b - dt / 2) dt
>         |> listm.map (f >> (*) dt)
>         |> listm.fold (+) 0
> 
> inl main () =
>     integral 0.1 (fun x => x ** 2) 0 1
> """
> |> fun code -> Spi (code, None)
> |> buildCode Fsharp false 10000 None
> |> Async.runWithTimeout 10000
> |> Option.map (fun (_, (_, outputContent), errors) -> outputContent, errors |> 
> List.map fst)
> |> _assertEqual (
>     Some (
>         Some "0.3325000000000001\n",
>         [[]]
>     )
> )
> 
> ╭─[ 3.92s - stdout ]───────────────────────────────────────────────────────────╮
> │ 00:00:41 verbose #52 async.run_with_timeout_async / { timeout = 180 }   │
> │ 00:00:38   debug #52 runtime.execute_with_options_async / { options = { │
> │ command = dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral   │
> │ Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port    │
> │ 13805 --default-int i32 --default-float f64; cancellation_token = Some       │
> │ System.Threading.CancellationToken; environment_variables = [||]; on_line =  │
> │ Some <fun:buildCode@6-92>; stdin = None; trace = true; working_directory =   │
> │ Some "C:\home\git\polyglot" } }                                              │
> │ 00:00:38 verbose #53 > 00:00:00   debug #1 pwd:                    │
> │ C:\home\git\polyglot                                                         │
> │ 00:00:38 verbose #54 > 00:00:00   debug #2 dllPath:                │
> │ C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language            │
> │ 2\artifacts\bin\The Spiral Language 2\release                                │
> │ 00:00:38 verbose #55 > 00:00:00   debug #3 targetDir:              │
> │ C:\home\git\polyglot\target/spiral_Eval                                      │
> │ 00:00:42 verbose #53 async.run_with_timeout_async / { timeout = 100 }   │
> │ 00:00:42 verbose #54 networking.wait_for_port_access / { port = 13805;  │
> │ retry = 0; timeout = Some 100; status = true }                               │
> │ 00:00:42 verbose #55 async.run_with_timeout_async / { timeout = 100 }   │
> │ 00:00:39 verbose #56 > Starting the Spiral Server. It is bound to:      │
> │ http://localhost:13805                                                       │
> │ 00:00:42 verbose #56 async.run_with_timeout_async / { timeout = 100 }   │
> │ 00:00:36 verbose #158 Supervisor.sendJson / port: 13805 / json:         │
> │ {"Ping":true} / result:                                                      │
> │ 00:00:36 verbose #159 awaitCompiler / Ping / result: 'Some(null)' /     │
> │ port: 13805 / retry: 0                                                       │
> │ 00:00:39 verbose #57 > Server bound to: http://localhost:13805          │
> │ 00:00:36   debug #160 Supervisor.buildFile / takeWhileInclusive /       │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c127414de2a2a92d9fd93ea5a8e │
> │ 9312a6aad9129ffd3cbd56ac7f0327106f1db\main.spi                               │
> │ 00:00:36   debug #161 Supervisor.buildFile / AsyncSeq.scan /            │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c127414de2a2a92d9fd93ea5a8e │
> │ 9312a6aad9129ffd3cbd56ac7f0327106f1db\main.spi                               │
> │ 00:00:36   debug #162 Supervisor.buildFile / takeWhileInclusive /       │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c127414de2a2a92d9fd93ea5a8e │
> │ 9312a6aad9129ffd3cbd56ac7f0327106f1db\main.spi                               │
> │ 00:00:36 verbose #163 Supervisor.sendJson / port: 13805 / json:         │
> │ {"FileOpen":{"spiText":"\ninl init_series start end inc =\n    inl total :   │
> │ f64 = conv ((end -                                                           │
> │ start)...et/spiral_Eval/packages/c127414de2a2a92d9fd93ea5a8e9312a6aad9129ffd │
> │ 3cbd56ac7f0327106f1db/main.spi"}} / result:                                  │
> │ 00:00:36 verbose #164 Supervisor.sendJson / port: 13805 / json:         │
> │ {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/target/ │
> │ spiral_Eval/packages/c127414de2a2a92d9fd93ea5a8e9312a6aad9129ffd3cbd56ac7f03 │
> │ 27106f1db/main.spi"}} / result:                                              │
> │ 00:00:39 verbose #58 > 00:00:01   debug #4                         │
> │ Supervisor.supervisor_server.BuildFile / file:                               │
> │ c:/home/git/polyglot/target/spiral_Eval/packages/c127414de2a2a92d9fd93ea5a8e │
> │ 9312a6aad9129ffd3cbd56ac7f0327106f1db/main.spi                               │
> │ 00:00:36   debug #165 Supervisor.buildFile / AsyncSeq.scan /            │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c127414de2a2a92d9fd93ea5a8e │
> │ 9312a6aad9129ffd3cbd56ac7f0327106f1db\main.spi                               │
> │ 00:00:36   debug #166 Supervisor.buildFile / takeWhileInclusive /       │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c127414de2a2a92d9fd93ea5a8e │
> │ 9312a6aad9129ffd3cbd56ac7f0327106f1db\main.spi                               │
> │ 00:00:37   debug #167 Supervisor.buildFile / AsyncSeq.scan /            │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c127414de2a2a92d9fd93ea5a8e │
> │ 9312a6aad9129ffd3cbd56ac7f0327106f1db\main.spi                               │
> │ 00:00:37   debug #168 Supervisor.buildFile / takeWhileInclusive /       │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c127414de2a2a92d9fd93ea5a8e │
> │ 9312a6aad9129ffd3cbd56ac7f0327106f1db\main.spi                               │
> │ 00:00:37   debug #169 Supervisor.buildFile / AsyncSeq.scan /            │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c127414de2a2a92d9fd93ea5a8e │
> │ 9312a6aad9129ffd3cbd56ac7f0327106f1db\main.spi                               │
> │ 00:00:37   debug #170 Supervisor.buildFile / takeWhileInclusive /       │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c127414de2a2a92d9fd93ea5a8e │
> │ 9312a6aad9129ffd3cbd56ac7f0327106f1db\main.spi                               │
> │ 00:00:38   debug #171 Supervisor.buildFile / AsyncSeq.scan /            │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c127414de2a2a92d9fd93ea5a8e │
> │ 9312a6aad9129ffd3cbd56ac7f0327106f1db\main.spi                               │
> │ 00:00:38   debug #172 Supervisor.buildFile / takeWhileInclusive /       │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c127414de2a2a92d9fd93ea5a8e │
> │ 9312a6aad9129ffd3cbd56ac7f0327106f1db\main.spi                               │
> │ 00:00:38   debug #173 Supervisor.buildFile / AsyncSeq.scan /            │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c127414de2a2a92d9fd93ea5a8e │
> │ 9312a6aad9129ffd3cbd56ac7f0327106f1db\main.spi                               │
> │ 00:00:38   debug #174 Supervisor.buildFile / takeWhileInclusive /       │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c127414de2a2a92d9fd93ea5a8e │
> │ 9312a6aad9129ffd3cbd56ac7f0327106f1db\main.spi                               │
> │ 00:00:38   debug #175 Supervisor.buildFile / AsyncSeq.scan /            │
> │ outputContent:                                                               │
> │ 0.3325000000000001                                                           │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c127414de2a2a92d9fd93ea5a8e │
> │ 9312a6aad9129ffd3cbd56ac7f0327106f1db\main.spi                               │
> │ 00:00:38   debug #176 Supervisor.buildFile / takeWhileInclusive /       │
> │ outputContent:                                                               │
> │ 0.3325000000000001                                                           │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c127414de2a2a92d9fd93ea5a8e │
> │ 9312a6aad9129ffd3cbd56ac7f0327106f1db\main.spi                               │
> │ 00:00:38 verbose #177 Supervisor.sendJson / port: 13805 / json:         │
> │ {"FileDelete":{"uris":[                                                      │
> │ "file:///c:/home/git/polyglot/target/spiral_Eval/packages/c127414de2a2a92d9f │
> │ d93ea5a8e9312a6aad9129ffd3cbd56ac7f0327106f1db"]}} / result:                 │
> │ 00:00:45 verbose #57 networking.wait_for_port_access / { port = 13805;  │
> │ retry = 0; timeout = Some 100; status = false }                              │
> │ 00:00:45 verbose #58 async.run_with_timeout_async / { timeout = 100 }   │
> │ 00:00:38   debug #178 FileSystem.watchWithFilter / Disposing watch      │
> │ stream / filter: FileName, LastWrite                                         │
> │ Some (Some "0.3325000000000001                                               │
> │ ", [])                                                                       │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> """
> inl init_series start end inc =
>     inl total : f64 = conv ((end - start) / inc) + 1
>     listm.init total (conv >> (*) inc >> (+) start) : list f64
> 
> type integration = (f64 -> f64) -> f64 -> f64 -> f64
> 
> inl integral dt : integration =
>     fun f a b =>
>         init_series (a + dt / 2) (b - dt / 2) dt
>         |> listm.map (f >> (*) dt)
>         |> listm.fold (+) 0
> 
> inl main () =
>     integral 0.1 (fun x => x ** 2) 0 1
> """
> |> fun code -> Spi (code, None)
> |> buildCode Cuda false 10000 None
> |> Async.runWithTimeout 10000
> |> Option.map (fun (_, (_, outputContent), errors) -> outputContent, errors |> 
> List.map fst)
> |> _assertEqual (
>     Some (
>         Some @"kernel = r""""""
> """"""
> class static_array():
>     def __init__(self, length):
>         self.ptr = [[]]
>         for _ in range(length):
>             self.ptr.append(None)
> 
>     def __getitem__(self, index):
>         assert 0 <= index < len(self.ptr), ""The get index needs to be in 
> range.""
>         return self.ptr[[index]]
>     
>     def __setitem__(self, index, value):
>         assert 0 <= index < len(self.ptr), ""The set index needs to be in 
> range.""
>         self.ptr[[index]] = value
> 
> class static_array_list(static_array):
>     def __init__(self, length):
>         super().__init__(length)
>         self.length = 0
> 
>     def __getitem__(self, index):
>         assert 0 <= index < self.length, ""The get index needs to be in range.""
>         return self.ptr[[index]]
>     
>     def __setitem__(self, index, value):
>         assert 0 <= index < self.length, ""The set index needs to be in range.""
>         self.ptr[[index]] = value
> 
>     def push(self,value):
>         assert (self.length < len(self.ptr)), ""The length before pushing has to
> be less than the maximum length of the array.""
>         self.ptr[[self.length]] = value
>         self.length += 1
> 
>     def pop(self):
>         assert (0 < self.length), ""The length before popping has to be greater 
> than 0.""
>         self.length -= 1
>         return self.ptr[[self.length]]
> 
>     def unsafe_set_length(self,i):
>         assert 0 <= i <= len(self.ptr), ""The new length has to be in range.""
>         self.length = i
> 
> class dynamic_array(static_array): 
>     pass
> 
> class dynamic_array_list(static_array_list):
>     def length_(self): return self.length
> 
> import cupy as cp
> from dataclasses import dataclass
> from typing import NamedTuple, Union, Callable, Tuple
> i8 = i16 = i32 = i64 = u8 = u16 = u32 = u64 = int; f32 = f64 = float; char = 
> string = str
> 
> def main():
>     return 0.3325000000000001
> 
> if __name__ == '__main__': result = main(); None if result is None else 
> print(result)
> ",
>         [[]]
>     )
> )
> 
> ╭─[ 3.76s - stdout ]───────────────────────────────────────────────────────────╮
> │ 00:00:45 verbose #59 async.run_with_timeout_async / { timeout = 180 }   │
> │ 00:00:42   debug #59 runtime.execute_with_options_async / { options = { │
> │ command = dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral   │
> │ Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port    │
> │ 13805 --default-int i32 --default-float f64; cancellation_token = Some       │
> │ System.Threading.CancellationToken; environment_variables = [||]; on_line =  │
> │ Some <fun:buildCode@6-92>; stdin = None; trace = true; working_directory =   │
> │ Some "C:\home\git\polyglot" } }                                              │
> │ 00:00:42 verbose #60 > 00:00:00   debug #1 pwd:                    │
> │ C:\home\git\polyglot                                                         │
> │ 00:00:42 verbose #61 > 00:00:00   debug #2 dllPath:                │
> │ C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language            │
> │ 2\artifacts\bin\The Spiral Language 2\release                                │
> │ 00:00:42 verbose #62 > 00:00:00   debug #3 targetDir:              │
> │ C:\home\git\polyglot\target/spiral_Eval                                      │
> │ 00:00:46 verbose #60 async.run_with_timeout_async / { timeout = 100 }   │
> │ 00:00:46 verbose #61 networking.wait_for_port_access / { port = 13805;  │
> │ retry = 0; timeout = Some 100; status = true }                               │
> │ 00:00:46 verbose #62 async.run_with_timeout_async / { timeout = 100 }   │
> │ 00:00:43 verbose #63 > Starting the Spiral Server. It is bound to:      │
> │ http://localhost:13805                                                       │
> │ 00:00:46 verbose #63 async.run_with_timeout_async / { timeout = 100 }   │
> │ 00:00:40 verbose #179 Supervisor.sendJson / port: 13805 / json:         │
> │ {"Ping":true} / result:                                                      │
> │ 00:00:40 verbose #180 awaitCompiler / Ping / result: 'Some(null)' /     │
> │ port: 13805 / retry: 0                                                       │
> │ 00:00:43 verbose #64 > Server bound to: http://localhost:13805          │
> │ 00:00:40   debug #181 Supervisor.buildFile / takeWhileInclusive /       │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\ca288d6928a8e761855210f25f9 │
> │ 7fdc056ee1f21be4a24b26e8533ec368831c8\main.spi                               │
> │ 00:00:40   debug #182 Supervisor.buildFile / AsyncSeq.scan /            │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\ca288d6928a8e761855210f25f9 │
> │ 7fdc056ee1f21be4a24b26e8533ec368831c8\main.spi                               │
> │ 00:00:40   debug #183 Supervisor.buildFile / takeWhileInclusive /       │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\ca288d6928a8e761855210f25f9 │
> │ 7fdc056ee1f21be4a24b26e8533ec368831c8\main.spi                               │
> │ 00:00:40 verbose #184 Supervisor.sendJson / port: 13805 / json:         │
> │ {"FileOpen":{"spiText":"\ninl init_series start end inc =\n    inl total :   │
> │ f64 = conv ((end -                                                           │
> │ start)...et/spiral_Eval/packages/ca288d6928a8e761855210f25f97fdc056ee1f21be4 │
> │ a24b26e8533ec368831c8/main.spi"}} / result:                                  │
> │ 00:00:40 verbose #185 Supervisor.sendJson / port: 13805 / json:         │
> │ {"BuildFile":{"backend":"Python \u002B                                       │
> │ Cuda","uri":"file:///c:/home/git/polyglot/target/spiral_Eval/packages/ca288d │
> │ 6928a8e761855210f25f97fdc056ee1f21be4a24b26e8533ec368831c8/main.spi"}} /     │
> │ result:                                                                      │
> │ 00:00:43 verbose #65 > 00:00:01   debug #4                         │
> │ Supervisor.supervisor_server.BuildFile / file:                               │
> │ c:/home/git/polyglot/target/spiral_Eval/packages/ca288d6928a8e761855210f25f9 │
> │ 7fdc056ee1f21be4a24b26e8533ec368831c8/main.spi                               │
> │ 00:00:40   debug #186 Supervisor.buildFile / AsyncSeq.scan /            │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\ca288d6928a8e761855210f25f9 │
> │ 7fdc056ee1f21be4a24b26e8533ec368831c8\main.spi                               │
> │ 00:00:40   debug #187 Supervisor.buildFile / takeWhileInclusive /       │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\ca288d6928a8e761855210f25f9 │
> │ 7fdc056ee1f21be4a24b26e8533ec368831c8\main.spi                               │
> │ 00:00:41   debug #188 Supervisor.buildFile / AsyncSeq.scan /            │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\ca288d6928a8e761855210f25f9 │
> │ 7fdc056ee1f21be4a24b26e8533ec368831c8\main.spi                               │
> │ 00:00:41   debug #189 Supervisor.buildFile / takeWhileInclusive /       │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\ca288d6928a8e761855210f25f9 │
> │ 7fdc056ee1f21be4a24b26e8533ec368831c8\main.spi                               │
> │ 00:00:41   debug #190 Supervisor.buildFile / AsyncSeq.scan /            │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\ca288d6928a8e761855210f25f9 │
> │ 7fdc056ee1f21be4a24b26e8533ec368831c8\main.spi                               │
> │ 00:00:41   debug #191 Supervisor.buildFile / takeWhileInclusive /       │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\ca288d6928a8e761855210f25f9 │
> │ 7fdc056ee1f21be4a24b26e8533ec368831c8\main.spi                               │
> │ 00:00:42   debug #192 Supervisor.buildFile / AsyncSeq.scan /            │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\ca288d6928a8e761855210f25f9 │
> │ 7fdc056ee1f21be4a24b26e8533ec368831c8\main.spi                               │
> │ 00:00:42   debug #193 Supervisor.buildFile / takeWhileInclusive /       │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\ca288d6928a8e761855210f25f9 │
> │ 7fdc056ee1f21be4a24b26e8533ec368831c8\main.spi                               │
> │ 00:00:42   debug #194 Supervisor.buildFile / AsyncSeq.scan /            │
> │ outputContent:                                                               │
> │ kernel = r"""                                                                │
> │ """                                                                          │
> │ class static_array():                                                        │
> │     def __init__(self, length):                                              │
> │         self.ptr = []                                                        │
> │         for _ in range(length):                                              │
> │             self.ptr.app...char = string = str                               │
> │                                                                              │
> │ def main():                                                                  │
> │     return 0.3325000000000001                                                │
> │                                                                              │
> │ if __name__ == '__main__': result = main(); None if result is None else      │
> │ print(result)                                                                │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\ca288d6928a8e761855210f25f9 │
> │ 7fdc056ee1f21be4a24b26e8533ec368831c8\main.spi                               │
> │ 00:00:42   debug #195 Supervisor.buildFile / takeWhileInclusive /       │
> │ outputContent:                                                               │
> │ kernel = r"""                                                                │
> │ """                                                                          │
> │ class static_array():                                                        │
> │     def __init__(self, length):                                              │
> │         self.ptr = []                                                        │
> │         for _ in range(length):                                              │
> │             self.ptr.app...char = string = str                               │
> │                                                                              │
> │ def main():                                                                  │
> │     return 0.3325000000000001                                                │
> │                                                                              │
> │ if __name__ == '__main__': result = main(); None if result is None else      │
> │ print(result)                                                                │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\ca288d6928a8e761855210f25f9 │
> │ 7fdc056ee1f21be4a24b26e8533ec368831c8\main.spi                               │
> │ 00:00:42 verbose #196 Supervisor.sendJson / port: 13805 / json:         │
> │ {"FileDelete":{"uris":[                                                      │
> │ "file:///c:/home/git/polyglot/target/spiral_Eval/packages/ca288d6928a8e76185 │
> │ 5210f25f97fdc056ee1f21be4a24b26e8533ec368831c8"]}} / result:                 │
> │ 00:00:48 verbose #64 networking.wait_for_port_access / { port = 13805;  │
> │ retry = 0; timeout = Some 100; status = false }                              │
> │ 00:00:49 verbose #65 async.run_with_timeout_async / { timeout = 100 }   │
> │ 00:00:42   debug #197 FileSystem.watchWithFilter / Disposing watch      │
> │ stream / filter: FileName, LastWrite                                         │
> │ Some                                                                         │
> │   (Some                                                                      │
> │      "kernel = r"""                                                          │
> │ """                                                                          │
> │ class static_array():                                                        │
> │     def __init__(self, length):                                              │
> │         self.ptr = []                                                        │
> │         for _ in range(length):                                              │
> │             self.ptr.append(None)                                            │
> │                                                                              │
> │     def __getitem__(self, index):                                            │
> │         assert 0 <= index < len(self.ptr), "The get index needs to be in     │
> │ range."                                                                      │
> │         return self.ptr[index]                                               │
> │                                                                              │
> │     def __setitem__(self, index, value):                                     │
> │         assert 0 <= index < len(self.ptr), "The set index needs to be in     │
> │ range."                                                                      │
> │         self.ptr[index] = value                                              │
> │                                                                              │
> │ class static_array_list(static_array):                                       │
> │     def __init__(self, length):                                              │
> │         super().__init__(length)                                             │
> │         self.length = 0                                                      │
> │                                                                              │
> │     def __getitem__(self, index):                                            │
> │         assert 0 <= index < self.length, "The get index needs to be in       │
> │ range."                                                                      │
> │         return self.ptr[index]                                               │
> │                                                                              │
> │     def __setitem__(self, index, value):                                     │
> │         assert 0 <= index < self.length, "The set index needs to be in       │
> │ range."                                                                      │
> │         self.ptr[index] = value                                              │
> │                                                                              │
> │     def push(self,value):                                                    │
> │         assert (self.length < len(self.ptr)), "The length before pushing has │
> │ to be less than the maximum length of the array."                            │
> │         self.ptr[self.length] = value                                        │
> │         self.length += 1                                                     │
> │                                                                              │
> │     def pop(self):                                                           │
> │         assert (0 < self.length), "The length before popping has to be       │
> │ greater than 0."                                                             │
> │         self.length -= 1                                                     │
> │         return self.ptr[self.length]                                         │
> │                                                                              │
> │     def unsafe_set_length(self,i):                                           │
> │         assert 0 <= i <= len(self.ptr), "The new length has to be in range." │
> │         self.length = i                                                      │
> │                                                                              │
> │ class dynamic_array(static_array):                                           │
> │     pass                                                                     │
> │                                                                              │
> │ class dynamic_array_list(static_array_list):                                 │
> │     def length_(self): return self.length                                    │
> │                                                                              │
> │ import cupy as cp                                                            │
> │ from dataclasses import dataclass                                            │
> │ from typing import NamedTuple, Union, Callable, Tuple                        │
> │ i8 = i16 = i32 = i64 = u8 = u16 = u32 = u64 = int; f32 = f64 = float; char = │
> │ string = str                                                                 │
> │                                                                              │
> │ def main():                                                                  │
> │     return 0.3325000000000001                                                │
> │                                                                              │
> │ if __name__ == '__main__': result = main(); None if result is None else      │
> │ print(result)                                                                │
> │ ",                                                                           │
> │    [])                                                                       │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> """
> inl init_series start end inc =
>     inl total : f64 = conv ((end - start) / inc) + 1
>     listm.init total (conv >> (*) inc >> (+) start) : list f64
> 
> type integration = (f64 -> f64) -> f64 -> f64 -> f64
> 
> inl integral dt : integration =
>     fun f a b =>
>         init_series (a + dt / 2) (b - dt / 2) dt
>         |> listm.map (f >> (*) dt)
>         |> listm.fold (+) 0
> 
> inl main () =
>     integral 0.01 (fun x => x ** 2) 0 1
> """
> |> fun code -> Spi (code, None)
> |> buildCode Fsharp false 10000 None
> |> Async.runWithTimeout 10000
> |> Option.map (fun (_, (_, outputContent), errors) -> outputContent, errors |> 
> List.map fst)
> |> _assertEqual (
>     Some (
>         Some "0.33332500000000004\n",
>         [[]]
>     )
> )
> // |> _assertEqual None
> // |> fun x -> printfn $"{x.ToDisplayString ()}"
> 
> ╭─[ 3.97s - stdout ]───────────────────────────────────────────────────────────╮
> │ 00:00:49 verbose #66 async.run_with_timeout_async / { timeout = 180 }   │
> │ 00:00:46   debug #66 runtime.execute_with_options_async / { options = { │
> │ command = dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral   │
> │ Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port    │
> │ 13805 --default-int i32 --default-float f64; cancellation_token = Some       │
> │ System.Threading.CancellationToken; environment_variables = [||]; on_line =  │
> │ Some <fun:buildCode@6-92>; stdin = None; trace = true; working_directory =   │
> │ Some "C:\home\git\polyglot" } }                                              │
> │ 00:00:46 verbose #67 > 00:00:00   debug #1 pwd:                    │
> │ C:\home\git\polyglot                                                         │
> │ 00:00:46 verbose #68 > 00:00:00   debug #2 dllPath:                │
> │ C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language            │
> │ 2\artifacts\bin\The Spiral Language 2\release                                │
> │ 00:00:46 verbose #69 > 00:00:00   debug #3 targetDir:              │
> │ C:\home\git\polyglot\target/spiral_Eval                                      │
> │ 00:00:49 verbose #67 async.run_with_timeout_async / { timeout = 100 }   │
> │ 00:00:49 verbose #68 networking.wait_for_port_access / { port = 13805;  │
> │ retry = 0; timeout = Some 100; status = true }                               │
> │ 00:00:50 verbose #69 async.run_with_timeout_async / { timeout = 100 }   │
> │ 00:00:46 verbose #70 > Starting the Spiral Server. It is bound to:      │
> │ http://localhost:13805                                                       │
> │ 00:00:50 verbose #70 async.run_with_timeout_async / { timeout = 100 }   │
> │ 00:00:43 verbose #198 Supervisor.sendJson / port: 13805 / json:         │
> │ {"Ping":true} / result:                                                      │
> │ 00:00:43 verbose #199 awaitCompiler / Ping / result: 'Some(null)' /     │
> │ port: 13805 / retry: 0                                                       │
> │ 00:00:47 verbose #71 > Server bound to: http://localhost:13805          │
> │ 00:00:43   debug #200 Supervisor.buildFile / takeWhileInclusive /       │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\2acc44d97e6b50ce3caf39a0b93 │
> │ 135633484d22c3ef6e7797ce64875a41451f4\main.spi                               │
> │ 00:00:43   debug #201 Supervisor.buildFile / AsyncSeq.scan /            │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\2acc44d97e6b50ce3caf39a0b93 │
> │ 135633484d22c3ef6e7797ce64875a41451f4\main.spi                               │
> │ 00:00:43   debug #202 Supervisor.buildFile / takeWhileInclusive /       │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\2acc44d97e6b50ce3caf39a0b93 │
> │ 135633484d22c3ef6e7797ce64875a41451f4\main.spi                               │
> │ 00:00:43 verbose #203 Supervisor.sendJson / port: 13805 / json:         │
> │ {"FileOpen":{"spiText":"\ninl init_series start end inc =\n    inl total :   │
> │ f64 = conv ((end -                                                           │
> │ start)...et/spiral_Eval/packages/2acc44d97e6b50ce3caf39a0b93135633484d22c3ef │
> │ 6e7797ce64875a41451f4/main.spi"}} / result:                                  │
> │ 00:00:43 verbose #204 Supervisor.sendJson / port: 13805 / json:         │
> │ {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/target/ │
> │ spiral_Eval/packages/2acc44d97e6b50ce3caf39a0b93135633484d22c3ef6e7797ce6487 │
> │ 5a41451f4/main.spi"}} / result:                                              │
> │ 00:00:47 verbose #72 > 00:00:01   debug #4                         │
> │ Supervisor.supervisor_server.BuildFile / file:                               │
> │ c:/home/git/polyglot/target/spiral_Eval/packages/2acc44d97e6b50ce3caf39a0b93 │
> │ 135633484d22c3ef6e7797ce64875a41451f4/main.spi                               │
> │ 00:00:44   debug #205 Supervisor.buildFile / AsyncSeq.scan /            │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\2acc44d97e6b50ce3caf39a0b93 │
> │ 135633484d22c3ef6e7797ce64875a41451f4\main.spi                               │
> │ 00:00:44   debug #206 Supervisor.buildFile / takeWhileInclusive /       │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\2acc44d97e6b50ce3caf39a0b93 │
> │ 135633484d22c3ef6e7797ce64875a41451f4\main.spi                               │
> │ 00:00:44   debug #207 Supervisor.buildFile / AsyncSeq.scan /            │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\2acc44d97e6b50ce3caf39a0b93 │
> │ 135633484d22c3ef6e7797ce64875a41451f4\main.spi                               │
> │ 00:00:44   debug #208 Supervisor.buildFile / takeWhileInclusive /       │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\2acc44d97e6b50ce3caf39a0b93 │
> │ 135633484d22c3ef6e7797ce64875a41451f4\main.spi                               │
> │ 00:00:45   debug #209 Supervisor.buildFile / AsyncSeq.scan /            │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\2acc44d97e6b50ce3caf39a0b93 │
> │ 135633484d22c3ef6e7797ce64875a41451f4\main.spi                               │
> │ 00:00:45   debug #210 Supervisor.buildFile / takeWhileInclusive /       │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\2acc44d97e6b50ce3caf39a0b93 │
> │ 135633484d22c3ef6e7797ce64875a41451f4\main.spi                               │
> │ 00:00:45   debug #211 Supervisor.buildFile / AsyncSeq.scan /            │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\2acc44d97e6b50ce3caf39a0b93 │
> │ 135633484d22c3ef6e7797ce64875a41451f4\main.spi                               │
> │ 00:00:45   debug #212 Supervisor.buildFile / takeWhileInclusive /       │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\2acc44d97e6b50ce3caf39a0b93 │
> │ 135633484d22c3ef6e7797ce64875a41451f4\main.spi                               │
> │ 00:00:46   debug #213 Supervisor.buildFile / AsyncSeq.scan /            │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\2acc44d97e6b50ce3caf39a0b93 │
> │ 135633484d22c3ef6e7797ce64875a41451f4\main.spi                               │
> │ 00:00:46   debug #214 Supervisor.buildFile / takeWhileInclusive /       │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\2acc44d97e6b50ce3caf39a0b93 │
> │ 135633484d22c3ef6e7797ce64875a41451f4\main.spi                               │
> │ 00:00:46   debug #215 Supervisor.buildFile / AsyncSeq.scan /            │
> │ outputContent:                                                               │
> │ 0.33332500000000004                                                          │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\2acc44d97e6b50ce3caf39a0b93 │
> │ 135633484d22c3ef6e7797ce64875a41451f4\main.spi                               │
> │ 00:00:46   debug #216 Supervisor.buildFile / takeWhileInclusive /       │
> │ outputContent:                                                               │
> │ 0.33332500000000004                                                          │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\2acc44d97e6b50ce3caf39a0b93 │
> │ 135633484d22c3ef6e7797ce64875a41451f4\main.spi                               │
> │ 00:00:46 verbose #217 Supervisor.sendJson / port: 13805 / json:         │
> │ {"FileDelete":{"uris":[                                                      │
> │ "file:///c:/home/git/polyglot/target/spiral_Eval/packages/2acc44d97e6b50ce3c │
> │ af39a0b93135633484d22c3ef6e7797ce64875a41451f4"]}} / result:                 │
> │ 00:00:52 verbose #71 networking.wait_for_port_access / { port = 13805;  │
> │ retry = 0; timeout = Some 100; status = false }                              │
> │ 00:00:53 verbose #72 async.run_with_timeout_async / { timeout = 100 }   │
> │ 00:00:46   debug #218 FileSystem.watchWithFilter / Disposing watch      │
> │ stream / filter: FileName, LastWrite                                         │
> │ Some (Some "0.33332500000000004                                              │
> │ ", [])                                                                       │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## getFileTokenRange                                                         │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline getFileTokenRange port cancellationToken path = async {
>     let fullPath = path |> System.IO.Path.GetFullPath
>     let! code = fullPath |> SpiralFileSystem.read_all_text_async
>     let lines = code |> SpiralSm.split "\n"
> 
>     let struct (token, disposable) = SpiralThreading.new_disposable_token 
> cancellationToken
>     use _ = disposable
> 
>     let port = port |> Option.defaultWith getCompilerPort
>     let! serverPort, _errors, ct, disposable = awaitCompiler port (Some token)
>     use _ = disposable
> 
>     let fullPathUri = fullPath |> SpiralFileSystem.normalize_path |> 
> SpiralFileSystem.new_file_uri
> 
>     let fileOpenObj = {| FileOpen = {| uri = fullPathUri; spiText = code |} |}
>     let! _fileOpenResult = fileOpenObj |> sendObj serverPort
> 
>     do! Async.Sleep 60
> 
>     let fileTokenRangeObj =
>         {|
>             FileTokenRange =
>                 {|
>                     uri = fullPathUri
>                     range =
>                         [[|
>                             {| line = 0; character = 0 |}
>                             {| line = lines.Length - 1; character = 
> lines.[[lines.Length - 1]].Length |}
>                         |]]
>                 |}
>         |}
>     let! fileTokenRangeResult =
>         fileTokenRangeObj
>         |> sendObj serverPort
>         |> Async.withCancellationToken ct
> 
>     let fileDir = fullPath |> System.IO.Path.GetDirectoryName
>     if fileDir |> SpiralSm.starts_with (workspaceRoot </> "target") then
>         let fileDirUri = fileDir |> SpiralFileSystem.normalize_path |> 
> SpiralFileSystem.new_file_uri
>         let fileDeleteObj = {| FileDelete = {| uris = [[| fileDirUri |]] |} |}
>         let! _fileDeleteResult = fileDeleteObj |> sendObj serverPort
>         ()
> 
>     return fileTokenRangeResult |> Option.map FSharp.Json.Json.deserialize<int 
> array>
> }
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## getCodeTokenRange                                                         │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline getCodeTokenRange cancellationToken code = async {
>     let! mainPath, _ = Spi (code, None) |> persistCode None
> 
>     let codeDir = mainPath |> System.IO.Path.GetDirectoryName
>     let tokensPath = codeDir </> "tokens.json"
>     let! tokens = async {
>         if tokensPath |> System.IO.File.Exists |> not
>         then return None
>         else
>             let! text = tokensPath |> SpiralFileSystem.read_all_text_async
> 
>             return
>                 if text.Length > 2
>                 then text |> FSharp.Json.Json.deserialize<int array> |> Some
>                 else None
>     }
>     match tokens with
>     | Some tokens ->
>         return tokens |> Some
>     | None -> return! mainPath |> getFileTokenRange None cancellationToken
> }
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> """inl main () = ()"""
> |> getCodeTokenRange None
> |> Async.runWithTimeout 10000
> |> Option.flatten
> |> _assertEqual (Some [[| 0; 0; 3; 7; 0; 0; 4; 4; 0; 0; 0; 5; 1; 8; 0; 0; 1; 1; 
> 8; 0; 0; 2; 1; 4; 0; 0;
> 2; 1; 8; 0; 0; 1; 1; 8; 0 |]])
> 
> ╭─[ 3.48s - stdout ]───────────────────────────────────────────────────────────╮
> │ 00:00:57 verbose #73 async.run_with_timeout_async / { timeout = 180 }   │
> │ 00:00:54   debug #73 runtime.execute_with_options_async / { options = { │
> │ command = dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral   │
> │ Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port    │
> │ 13805 --default-int i32 --default-float f64; cancellation_token = Some       │
> │ System.Threading.CancellationToken; environment_variables = [||]; on_line =  │
> │ Some <fun:it@4-187>; stdin = None; trace = true; working_directory = Some    │
> │ "C:\home\git\polyglot" } }                                                   │
> │ 00:00:54 verbose #74 > 00:00:00   debug #1 pwd:                    │
> │ C:\home\git\polyglot                                                         │
> │ 00:00:54 verbose #75 > 00:00:00   debug #2 dllPath:                │
> │ C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language            │
> │ 2\artifacts\bin\The Spiral Language 2\release                                │
> │ 00:00:54 verbose #76 > 00:00:00   debug #3 targetDir:              │
> │ C:\home\git\polyglot\target/spiral_Eval                                      │
> │ 00:00:58 verbose #74 async.run_with_timeout_async / { timeout = 100 }   │
> │ 00:00:58 verbose #75 networking.wait_for_port_access / { port = 13805;  │
> │ retry = 0; timeout = Some 100; status = true }                               │
> │ 00:00:58 verbose #76 async.run_with_timeout_async / { timeout = 100 }   │
> │ 00:00:55 verbose #77 > Starting the Spiral Server. It is bound to:      │
> │ http://localhost:13805                                                       │
> │ 00:00:58 verbose #77 async.run_with_timeout_async / { timeout = 100 }   │
> │ 00:00:52 verbose #219 Supervisor.sendJson / port: 13805 / json:         │
> │ {"Ping":true} / result:                                                      │
> │ 00:00:52 verbose #220 awaitCompiler / Ping / result: 'Some(null)' /     │
> │ port: 13805 / retry: 0                                                       │
> │ 00:00:55 verbose #78 > Server bound to: http://localhost:13805          │
> │ 00:00:52 verbose #221 Supervisor.sendJson / port: 13805 / json:         │
> │ {"FileOpen":{"spiText":"inl main () =                                        │
> │ ()","uri":"file:///c:/home/git/polyglot/target/spiral_Eval/packages/20e725d4 │
> │ 6cfdc99c0f307f1933a76ec7da4570c1b757721164d86f19feaf821e/main.spi"}} /       │
> │ result:                                                                      │
> │ 00:00:52 verbose #222 Supervisor.sendJson / port: 13805 / json:         │
> │ {"FileTokenRange":{"range":[                                                 │
> │ {"character":0,"line":0},{"character":16,"line":0}],"uri":"file:///c:/ho...e │
> │ t/spiral_Eval/packages/20e725d46cfdc99c0f307f1933a76ec7da4570c1b757721164d86 │
> │ f19feaf821e/main.spi"}} / result: Some([                                     │
> │   0,                                                                         │
> │   0,                                                                         │
> │   3,                                                                         │
> │   7,                                                                         │
> │   0,                                                                         │
> │   0,                                                                         │
> │   4,                                                                         │
> │   4,                                                                         │
> │   0,                                                                         │
> │   0,                                                                         │
> │   0,                                                                         │
> │   5,                                                                         │
> │   1,                                                                         │
> │   8,                                                                         │
> │   0,                                                                         │
> │   0,                                                                         │
> │  ...8,                                                                       │
> │   0,                                                                         │
> │   0,                                                                         │
> │   2,                                                                         │
> │   1,                                                                         │
> │   4,                                                                         │
> │   0,                                                                         │
> │   0,                                                                         │
> │   2,                                                                         │
> │   1,                                                                         │
> │   8,                                                                         │
> │   0,                                                                         │
> │   0,                                                                         │
> │   1,                                                                         │
> │   1,                                                                         │
> │   8,                                                                         │
> │   0                                                                          │
> │ ])                                                                           │
> │ 00:00:52 verbose #223 Supervisor.sendJson / port: 13805 / json:         │
> │ {"FileDelete":{"uris":[                                                      │
> │ "file:///c:/home/git/polyglot/target/spiral_Eval/packages/20e725d46cfdc99c0f │
> │ 307f1933a76ec7da4570c1b757721164d86f19feaf821e"]}} / result:                 │
> │ 00:00:59 verbose #78 networking.wait_for_port_access / { port = 13805;  │
> │ retry = 0; timeout = Some 100; status = false }                              │
> │ 00:00:59 verbose #79 async.run_with_timeout_async / { timeout = 100 }   │
> │ Some [|0; 0; 3; 7; 0; 0; 4; 4; 0; 0; 0; 5; 1; 8; 0; 0; 1; 1; 8; 0; 0; 2; 1;  │
> │ 4; 0; 0; 2; 1; 8; 0; 0; 1; 1; 8; 0|]                                         │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> """inl main () = 1i32"""
> |> getCodeTokenRange None
> |> Async.runWithTimeout 10000
> |> Option.flatten
> |> _assertEqual (Some [[| 0; 0; 3; 7; 0; 0; 4; 4; 0; 0; 0; 5; 1; 8; 0; 0; 1; 1; 
> 8; 0; 0; 2; 1; 4; 0; 0;
> 2; 1; 3; 0; 0; 1; 3; 12; 0 |]])
> 
> ╭─[ 3.58s - stdout ]───────────────────────────────────────────────────────────╮
> │ 00:01:01 verbose #80 async.run_with_timeout_async / { timeout = 180 }   │
> │ 00:00:58   debug #79 runtime.execute_with_options_async / { options = { │
> │ command = dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral   │
> │ Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port    │
> │ 13805 --default-int i32 --default-float f64; cancellation_token = Some       │
> │ System.Threading.CancellationToken; environment_variables = [||]; on_line =  │
> │ Some <fun:it@4-413>; stdin = None; trace = true; working_directory = Some    │
> │ "C:\home\git\polyglot" } }                                                   │
> │ 00:00:58 verbose #80 > 00:00:00   debug #1 pwd:                    │
> │ C:\home\git\polyglot                                                         │
> │ 00:00:58 verbose #81 > 00:00:00   debug #2 dllPath:                │
> │ C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language            │
> │ 2\artifacts\bin\The Spiral Language 2\release                                │
> │ 00:00:58 verbose #82 > 00:00:00   debug #3 targetDir:              │
> │ C:\home\git\polyglot\target/spiral_Eval                                      │
> │ 00:01:01 verbose #81 async.run_with_timeout_async / { timeout = 100 }   │
> │ 00:01:01 verbose #82 networking.wait_for_port_access / { port = 13805;  │
> │ retry = 0; timeout = Some 100; status = true }                               │
> │ 00:01:01 verbose #83 async.run_with_timeout_async / { timeout = 100 }   │
> │ 00:00:58 verbose #83 > Starting the Spiral Server. It is bound to:      │
> │ http://localhost:13805                                                       │
> │ 00:01:02 verbose #84 async.run_with_timeout_async / { timeout = 100 }   │
> │ 00:00:55 verbose #224 Supervisor.sendJson / port: 13805 / json:         │
> │ {"Ping":true} / result:                                                      │
> │ 00:00:55 verbose #225 awaitCompiler / Ping / result: 'Some(null)' /     │
> │ port: 13805 / retry: 0                                                       │
> │ 00:00:58 verbose #84 > Server bound to: http://localhost:13805          │
> │ 00:00:55 verbose #226 Supervisor.sendJson / port: 13805 / json:         │
> │ {"FileOpen":{"spiText":"inl main () =                                        │
> │ 1i32","uri":"file:///c:/home/git/polyglot/target/spiral_Eval/packages/537082 │
> │ 9508ddefc7386d6b4d280722b47d97cb925585525bee733a187ff8f18b/main.spi"}} /     │
> │ result:                                                                      │
> │ 00:00:56 verbose #227 Supervisor.sendJson / port: 13805 / json:         │
> │ {"FileTokenRange":{"range":[                                                 │
> │ {"character":0,"line":0},{"character":18,"line":0}],"uri":"file:///c:/ho...e │
> │ t/spiral_Eval/packages/5370829508ddefc7386d6b4d280722b47d97cb925585525bee733 │
> │ a187ff8f18b/main.spi"}} / result: Some([                                     │
> │   0,                                                                         │
> │   0,                                                                         │
> │   3,                                                                         │
> │   7,                                                                         │
> │   0,                                                                         │
> │   0,                                                                         │
> │   4,                                                                         │
> │   4,                                                                         │
> │   0,                                                                         │
> │   0,                                                                         │
> │   0,                                                                         │
> │   5,                                                                         │
> │   1,                                                                         │
> │   8,                                                                         │
> │   0,                                                                         │
> │   0,                                                                         │
> │  ...,                                                                        │
> │   0,                                                                         │
> │   0,                                                                         │
> │   2,                                                                         │
> │   1,                                                                         │
> │   4,                                                                         │
> │   0,                                                                         │
> │   0,                                                                         │
> │   2,                                                                         │
> │   1,                                                                         │
> │   3,                                                                         │
> │   0,                                                                         │
> │   0,                                                                         │
> │   1,                                                                         │
> │   3,                                                                         │
> │   12,                                                                        │
> │   0                                                                          │
> │ ])                                                                           │
> │ 00:00:56 verbose #228 Supervisor.sendJson / port: 13805 / json:         │
> │ {"FileDelete":{"uris":[                                                      │
> │ "file:///c:/home/git/polyglot/target/spiral_Eval/packages/5370829508ddefc738 │
> │ 6d6b4d280722b47d97cb925585525bee733a187ff8f18b"]}} / result:                 │
> │ 00:01:02 verbose #85 networking.wait_for_port_access / { port = 13805;  │
> │ retry = 0; timeout = Some 100; status = false }                              │
> │ 00:01:02 verbose #86 async.run_with_timeout_async / { timeout = 100 }   │
> │ Some [|0; 0; 3; 7; 0; 0; 4; 4; 0; 0; 0; 5; 1; 8; 0; 0; 1; 1; 8; 0; 0; 2; 1;  │
> │ 4; 0; 0; 2; 1; 3; 0; 0; 1; 3; 12; 0|]                                        │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## Arguments                                                                 │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> [[<RequireQualifiedAccess>]]
> type Arguments =
>     | Build_File of string * string
>     | File_Token_Range of string * string
>     | Execute_Command of string
>     | [[<Argu.ArguAttributes.Unique>]] Timeout of int
>     | [[<Argu.ArguAttributes.Unique>]] Port of int
>     | [[<Argu.ArguAttributes.Unique>]] Parallel
>     | [[<Argu.ArguAttributes.Unique>]] Exit_On_Error
> 
>     interface Argu.IArgParserTemplate with
>         member s.Usage =
>             match s with
>             | Build_File _ -> nameof Build_File
>             | File_Token_Range _ -> nameof File_Token_Range
>             | Execute_Command _ -> nameof Execute_Command
>             | Timeout _ -> nameof Timeout
>             | Port _ -> nameof Port
>             | Parallel -> nameof Parallel
>             | Exit_On_Error-> nameof Exit_On_Error
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> Argu.ArgumentParser.Create<Arguments>().PrintUsage ()
> 
> ╭─[ 131.10ms - return value ]──────────────────────────────────────────────────╮
> │ "USAGE: dotnet-repl [--help] [--build-file <string> <string>]                │
> │                    [--file-token-range <string> <string>]                    │
> │                    [--execute-command <string>] [--timeout <int>] [--port    │
> │ <int>]                                                                       │
> │                    [--parallel] [--exit-on-error]                            │
> │                                                                              │
> │ OPTIONS:                                                                     │
> │                                                                              │
> │     --build-file <string> <string>                                           │
> │                           Build_File                                         │
> │     --file-token-range <string> <string>                                     │
> │                           File_Token_Range                                   │
> │     --execute-command <string>                                               │
> │                           Execute_Command                                    │
> │     --timeout <int>       Timeout                                            │
> │     --port <int>          Port                                               │
> │     --parallel            Parallel                                           │
> │     --exit-on-error       Exit_On_Error                                      │
> │     --help                display this list of options.                      │
> │ "                                                                            │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## main                                                                      │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let main args =
>     let argsMap = args |> Runtime.parseArgsMap<Arguments>
> 
>     let buildFileActions =
>         argsMap
>         |> Map.tryFind (nameof Arguments.Build_File)
>         |> Option.defaultValue [[]]
>         |> List.choose (function
>             | Arguments.Build_File (inputPath, outputPath) -> Some (inputPath, 
> outputPath)
>             | _ -> None
>         )
> 
>     let fileTokenRangeActions =
>         argsMap
>         |> Map.tryFind (nameof Arguments.File_Token_Range)
>         |> Option.defaultValue [[]]
>         |> List.choose (function
>             | Arguments.File_Token_Range (inputPath, outputPath) -> Some 
> (inputPath, outputPath)
>             | _ -> None
>         )
> 
>     let executeCommandActions =
>         argsMap
>         |> Map.tryFind (nameof Arguments.Execute_Command)
>         |> Option.defaultValue [[]]
>         |> List.choose (function
>             | Arguments.Execute_Command command -> Some command
>             | _ -> None
>         )
> 
>     let timeout =
>         match argsMap |> Map.tryFind (nameof Arguments.Timeout) with
>         | Some [[ Arguments.Timeout timeout ]] -> timeout
>         | _ -> 60000 * 60
> 
>     let port =
>         match argsMap |> Map.tryFind (nameof Arguments.Port) with
>         | Some [[ Arguments.Port port ]] -> Some port
>         | _ -> None
> 
>     let isParallel = argsMap |> Map.containsKey (nameof Arguments.Parallel)
> 
>     let isExitOnError = argsMap |> Map.containsKey (nameof 
> Arguments.Exit_On_Error)
> 
>     async {
>         let port =
>             port
>             |> Option.defaultWith getCompilerPort
>         let struct (localToken, disposable) = 
> SpiralThreading.new_disposable_token None
>         let! serverPort, _errors, compilerToken, disposable = awaitCompiler port
> (Some localToken)
>         use _ = disposable
> 
>         let buildFileAsync =
>             buildFileActions
>             |> List.map (fun (inputPath, outputPath) -> async {
>                 let! _outputPath, (outputCode, errors) =
>                     let backend =
>                         if outputPath |> SpiralSm.ends_with ".fsx"
>                         then Fsharp
>                         elif outputPath |> SpiralSm.ends_with ".py"
>                         then Cuda
>                         else failwith $"Supervisor.main / invalid backend / 
> outputPath: {outputPath}"
>                     let isReal = inputPath |> SpiralSm.ends_with ".spir"
>                     inputPath |> buildFile backend timeout (Some serverPort) 
> None
> 
>                 errors
>                 |> List.map snd
>                 |> List.iter (fun error ->
>                     trace Critical (fun () -> $"main / error: {error |> 
> serializeObj}") _locals
>                 )
> 
>                 match outputCode with
>                 | Some outputCode ->
>                     do! outputCode |> SpiralFileSystem.write_all_text_exists 
> outputPath
>                     return 0
>                 | None ->
>                     if isExitOnError
>                     then SpiralRuntime.current_process_kill ()
> 
>                     return 1
>             })
> 
>         let fileTokenRangeAsync =
>             fileTokenRangeActions
>             |> List.map (fun (inputPath, outputPath) -> async {
>                 let! tokenRange = inputPath |> getFileTokenRange (Some 
> serverPort) None
>                 match tokenRange with
>                 | Some tokenRange ->
>                     do! tokenRange |> FSharp.Json.Json.serialize |> 
> SpiralFileSystem.write_all_text_exists outputPath
>                     return 0
>                 | None ->
>                     if isExitOnError
>                     then SpiralRuntime.current_process_kill ()
> 
>                     return 1
>             })
> 
>         let executeCommandAsync =
>             executeCommandActions
>             |> List.map (fun command -> async {
>                 let! exitCode, result =
>                     SpiralRuntime.execution_options (fun x ->
>                         { x with
>                             l0 = command
>                             l1 = Some compilerToken
>                         }
>                     )
>                     |> SpiralRuntime.execute_with_options_async
> 
>                 trace Debug (fun () -> $"main / executeCommand / exitCode: 
> {exitCode} / command: {command}") _locals
> 
>                 if isExitOnError && exitCode <> 0
>                 then SpiralRuntime.current_process_kill ()
> 
>                 return exitCode
>             })
> 
>         return!
>             [[| buildFileAsync; fileTokenRangeAsync; executeCommandAsync |]]
>             |> Seq.collect id
>             |> fun x ->
>                 if isParallel
>                 then Async.Parallel (x, float System.Environment.ProcessorCount 
> * 0.51 |> ceil |> int)
>                 else Async.Sequential x
>             |> Async.map Array.sum
>     }
>     |> Async.runWithTimeout timeout
>     |> Option.defaultValue 1
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let args =
>     System.Environment.GetEnvironmentVariable "ARGS"
>     |> SpiralRuntime.split_args
>     |> Result.toArray
>     |> Array.collect id
> 
> match args with
> | [[||]] -> 0
> | args -> if main args = 0 then 0 else failwith "main failed"
> 
> ╭─[ 81.56ms - return value ]───────────────────────────────────────────────────╮
> │ <div class="dni-plaintext"><pre>0                                            │
> │ </pre></div><style>                                                          │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:22 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 213670 }
00:01:22   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/apps/spiral/Supervisor.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/apps/spiral/Supervisor.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:01:24 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/apps/spiral/Supervisor.dib.ipynb to html
00:01:24 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:01:24 verbose #7 !   validate(nb)
00:01:26 verbose #8 ! [NbConvertApp] Writing 558875 bytes to c:\home\git\polyglot\apps\spiral\Supervisor.dib.html
00:01:26 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 653 }
00:01:26   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 653 }
00:01:26   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/apps/spiral/Supervisor.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/apps/spiral/Supervisor.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:01:27 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:01:27   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:01:28   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 214382 }
00:00:00   debug #1 writeDibCode / output: Fs / path: Supervisor.dib
00:00:00   debug #2 parseDibCode / output: Fs / file: Supervisor.dib
00:00:00   debug #1 persistCodeProject / packages: [Argu; FSharp.Control.AsyncSeq; FSharp.Json; ... ] / modules: [lib/spiral/common.fsx; lib/spiral/sm.fsx; lib/spiral/crypto.fsx; ... ] / name: Supervisor / hash:  / code.Length: 27503
00:00:00   debug #2 buildProject / fullPath: C:\home\git\polyglot\target\Builder\Supervisor\Supervisor.fsproj
00:00:00   debug #1 runtime.execute_with_options_async / { options = { command = dotnet publish "C:\home\git\polyglot\target/Builder\Supervisor\Supervisor.fsproj" --configuration Release --output "C:\home\git\polyglot\apps\spiral\dist" --runtime linux-x64; cancellation_token = None; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = Some "C:\home\git\polyglot\target\Builder\Supervisor" } }
00:00:00 verbose #2 > MSBuild version 17.10.0-preview-24101-01+07fd5d51f for .NET
00:00:01 verbose #3 >   Determining projects to restore...
00:00:02 verbose #4 >   Restored C:\home\git\polyglot\target\Builder\Supervisor\Supervisor.fsproj (in 482 ms).
00:00:02 verbose #5 > C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.24101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(313,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\home\git\polyglot\target\Builder\Supervisor\Supervisor.fsproj]
00:00:18 verbose #6 >   Supervisor -> C:\home\git\polyglot\target\Builder\Supervisor\bin\Release\net9.0\linux-x64\Supervisor.dll
00:00:19 verbose #7 >   Supervisor -> C:\home\git\polyglot\apps\spiral\dist\
00:00:19   debug #8 runtime.execute_with_options_async / { exit_code = 0; output_length = 688 }
00:00:19   debug #9 runtime.execute_with_options_async / { options = { command = dotnet publish "C:\home\git\polyglot\target/Builder\Supervisor\Supervisor.fsproj" --configuration Release --output "C:\home\git\polyglot\apps\spiral\dist" --runtime win-x64; cancellation_token = None; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = Some "C:\home\git\polyglot\target\Builder\Supervisor" } }
00:00:20 verbose #10 > MSBuild version 17.10.0-preview-24101-01+07fd5d51f for .NET
00:00:20 verbose #11 >   Determining projects to restore...
00:00:21 verbose #12 >   Restored C:\home\git\polyglot\target\Builder\Supervisor\Supervisor.fsproj (in 451 ms).
00:00:21 verbose #13 > C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.24101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(313,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\home\git\polyglot\target\Builder\Supervisor\Supervisor.fsproj]
00:00:36 verbose #14 >   Supervisor -> C:\home\git\polyglot\target\Builder\Supervisor\bin\Release\net9.0\win-x64\Supervisor.dll
00:00:39 verbose #15 >   Supervisor -> C:\home\git\polyglot\apps\spiral\dist\
00:00:39   debug #16 runtime.execute_with_options_async / { exit_code = 0; output_length = 686 }
00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "Eval.dib", "--retries", "3"])) }
00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/apps/spiral/Eval.dib", "--output-path", "c:/home/git/polyglot/apps/spiral/Eval.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/apps/spiral/Eval.dib" --output-path "c:/home/git/polyglot/apps/spiral/Eval.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ # Eval (Polyglot)                                                            │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> #r 
> @"../../../../../../../.nuget/packages/fsharp.control.asyncseq/3.2.1/lib/netstan
> dard2.1/FSharp.Control.AsyncSeq.dll"
> #r 
> @"../../../../../../../.nuget/packages/system.reactive/6.0.1-preview.1/lib/net6.
> 0/System.Reactive.dll"
> #r 
> @"../../../../../../../.nuget/packages/system.reactive.linq/6.0.1-preview.1/lib/
> netstandard2.0/System.Reactive.Linq.dll"
> #r 
> @"../../../../../../../.nuget/packages/argu/6.2.4/lib/netstandard2.0/Argu.dll"
> #r 
> @"../../../../../../../.nuget/packages/microsoft.aspnetcore.http.connections.com
> mon/7.0.0/lib/net7.0/Microsoft.AspNetCore.Http.Connections.Common.dll"
> #r 
> @"../../../../../../../.nuget/packages/microsoft.aspnetcore.http.connections.cli
> ent/7.0.0/lib/net7.0/Microsoft.AspNetCore.Http.Connections.Client.dll"
> #r 
> @"../../../../../../../.nuget/packages/microsoft.aspnetcore.signalr.common/7.0.0
> /lib/net7.0/Microsoft.AspNetCore.SignalR.Common.dll"
> #r 
> @"../../../../../../../.nuget/packages/microsoft.aspnetcore.signalr.client/7.0.0
> /lib/net7.0/Microsoft.AspNetCore.SignalR.Client.dll"
> #r 
> @"../../../../../../../.nuget/packages/microsoft.aspnetcore.signalr.client.core/
> 7.0.0/lib/net7.0/Microsoft.AspNetCore.SignalR.Client.Core.dll"
> #r 
> @"../../../../../../../.nuget/packages/fsharp.json/0.4.1/lib/netstandard2.0/FSha
> rp.Json.dll"
> #r 
> @"../../../../../../../.nuget/packages/system.management/7.0.0/lib/netstandard2.
> 0/System.Management.dll"
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> #if !INTERACTIVE
> open Lib
> #endif
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> open Common
> open SpiralFileSystem.Operators
> open Microsoft.AspNetCore.SignalR.Client
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> open System
> open System.Collections.Generic
> open System.IO
> open System.Text
> open System.Threading
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## mapErrors                                                                 │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline mapErrors (severity, errors, lastTopLevelIndex) allCode =
>     let allCodeLineLength =
>         allCode |> SpiralSm.split "\n" |> Array.length
> 
>     errors
>     |> List.map (fun (_, error) ->
>         match error with
>         | Supervisor.FatalError message ->
>             (
>                 severity, message, 0, ("", (0, 0), (0, 0))
>             )
>             |> List.singleton
>         | Supervisor.TracedError data ->
>             data.trace
>             |> List.truncate 5
>             |> List.append [[ data.message ]]
>             |> List.map (fun message ->
>                 (
>                     severity, message, 0, ("", (0, 0), (0, 0))
>                 )
>             )
>         | Supervisor.PackageErrors data
>         | Supervisor.TokenizerErrors data
>         | Supervisor.ParserErrors data
>         | Supervisor.TypeErrors data ->
>             data.errors
>             |> List.filter (fun ((rangeStart, _), _) ->
>                 trace Debug (fun () -> $"Eval.mapErrors / rangeStart.line: 
> {rangeStart.line} / lastTopLevelIndex: {lastTopLevelIndex} / allCodeLineLength: 
> {allCodeLineLength} / filtered: {rangeStart.line > allCodeLineLength}") _locals
>                 rangeStart.line > allCodeLineLength
>             )
>             |> List.map (fun ((rangeStart, rangeEnd), message) ->
>                 (
>                     severity,
>                     message,
>                     0,
>                     (
>                         (data.uri |> System.IO.Path.GetFileName),
>                         (
>                             (match lastTopLevelIndex with
>                             | Some i when rangeStart.line >= i + 
> allCodeLineLength + 3 ->
>                                 rangeStart.line - allCodeLineLength - 2
>                             | _ -> rangeStart.line - allCodeLineLength),
>                             (match lastTopLevelIndex with
>                             | Some i when rangeStart.line >= i + 
> allCodeLineLength + 3 ->
>                                 rangeStart.character - 4
>                             | _ -> rangeStart.character)
>                         ),
>                         (
>                             (match lastTopLevelIndex with
>                             | Some i when rangeStart.line >= i + 
> allCodeLineLength + 3 ->
>                                 rangeEnd.line - allCodeLineLength - 2
>                             | _ -> rangeEnd.line - allCodeLineLength),
>                             (match lastTopLevelIndex with
>                             | Some i when rangeStart.line >= i + 
> allCodeLineLength + 3 ->
>                                 rangeEnd.character - 4
>                             | _ -> rangeEnd.character)
>                         )
>                     )
>                 )
>             )
>     )
>     |> List.collect id
>     |> List.toArray
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### workspaceRoot                                                            │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let workspaceRoot = SpiralFileSystem.get_workspace_root ()
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### targetDir                                                                │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let targetDir = workspaceRoot </> "target/spiral_Eval"
> [[ targetDir ]]
> |> List.iter (fun dir -> if Directory.Exists dir |> not then 
> Directory.CreateDirectory dir |> ignore)
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### assemblyName                                                             │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let assemblyName = Reflection.Assembly.GetEntryAssembly().GetName().Name
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## allCode                                                                   │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let mutable allCode = ""
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## allCodeReal                                                               │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let mutable allCodeReal = ""
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## traceToggle                                                               │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let mutable traceToggle = false
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## getParentProcessId                                                        │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let getParentProcessId () =
>     if SpiralPlatform.is_windows () |> not
>     then 0u
>     else
>         let pid = System.Diagnostics.Process.GetCurrentProcess().Id
>         let query = $"SELECT ParentProcessId FROM Win32_Process WHERE ProcessId 
> = {pid}"
>         use searcher = new System.Management.ManagementObjectSearcher (query)
>         use results = searcher.Get ()
>         let data = results |> Seq.cast<System.Management.ManagementObject>
>         if data |> Seq.isEmpty
>         then 0u
>         else data |> Seq.head |> (fun mo -> mo.[["ParentProcessId"]] :?> uint32)
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## startTokenRangeWatcher                                                    │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline startTokenRangeWatcher () =
>     if [[ "dotnet-repl" ]] |> List.contains assemblyName |> not then
>         let tokensDir = targetDir </> "tokens"
> 
>         [[ tokensDir ]]
>         |> List.iter (fun dir -> if Directory.Exists dir |> not then 
> Directory.CreateDirectory dir |> ignore)
> 
>         let stream, disposable = FileSystem.watchDirectory (fun _ -> false) 
> tokensDir
> 
>         try
>             let existingFilesChild =
>                 tokensDir
>                 |> System.IO.Directory.GetDirectories
>                 |> Array.map (fun codeDir -> async {
>                     try
>                         let tokensPath = codeDir </> "tokens.json"
>                         if tokensPath |> File.Exists |> not then
>                             let spiralCodePath = codeDir </> "main.spi"
>                             let spiralRealCodePath = codeDir </> 
> "real_main.spir"
>                             let spiralExists = spiralCodePath |> 
> System.IO.File.Exists
>                             let spiralRealExists = spiralRealCodePath |> 
> System.IO.File.Exists
>                             if spiralExists |> not && spiralRealExists |> not
>                             then do! codeDir |> 
> SpiralFileSystem.delete_directory_async |> Async.Ignore
>                             else
>                                 let! tokens =
>                                     if spiralExists then spiralCodePath else 
> spiralRealCodePath
>                                     |> Supervisor.getFileTokenRange None None
>                                 match tokens with
>                                 | Some tokens ->
>                                     do!
>                                         tokens
>                                         |> FSharp.Json.Json.serialize
>                                         |> SpiralFileSystem.write_all_text_async
> tokensPath
>                                 | None ->
>                                     trace Verbose (fun () -> 
> $"Eval.startTokenRangeWatcher / GetDirectories / tokens: None") _locals
>                     with ex ->
>                         trace Critical (fun () -> $"Eval.startTokenRangeWatcher 
> / GetDirectories / ex: {ex |> SpiralSm.format_exception}") _locals
>                 })
>                 |> Async.Parallel
>                 |> Async.Ignore
> 
>             let streamAsyncChild =
>                 stream
>                 |> FSharp.Control.AsyncSeq.iterAsyncParallel (fun (ticks, event)
> ->
>                         match event with
>                         | FileSystem.FileSystemChange.Changed (codePath, _)
>                             when [[ "main.spi"; "real_main.spir" ]]
>                                 |> List.contains (System.IO.Path.GetFileName 
> codePath)
>                             ->
>                             async {
>                                 let hashDir = codePath |> 
> System.IO.Directory.GetParent
>                                 let hashHex = hashDir.Name
>                                 let codePath = tokensDir </> codePath
>                                 let tokensPath = tokensDir </> hashHex </> 
> "tokens.json"
>                                 do! Async.Sleep 30
>                                 let! tokens = codePath |> 
> Supervisor.getFileTokenRange None None
>                                 match tokens with
>                                 | Some tokens ->
>                                     do!
>                                         tokens
>                                         |> FSharp.Json.Json.serialize
>                                         |> 
> SpiralFileSystem.write_all_text_exists tokensPath
>                                 | None ->
>                                     trace Verbose (fun () -> 
> $"Eval.startTokenRangeWatcher / iterAsyncParallel / tokens: None") _locals
>                             }
>                             |> Async.retryAsync 2
>                             |> Async.map (Result.toOption >> Option.get)
>                         | _ -> () |> Async.init
>                 )
> 
>             let parentAsyncChild = async {
>                 let parentProcessId = getParentProcessId ()
>                 trace Verbose
>                     (fun () -> "Eval.parentAsyncChild")
>                     (fun () -> $"parentProcessId: {parentProcessId} / {_locals 
> ()}")
> 
>                 if parentProcessId > 0u then
>                     let parentProcess = parentProcessId |> int |> 
> System.Diagnostics.Process.GetProcessById
>                     do! parentProcess.WaitForExitAsync () |> Async.AwaitTask
>                     trace Verbose
>                         (fun () -> "Eval.parentAsyncChild / Parent process has 
> exited. Performing cleanup...")
>                         (fun () -> $"{_locals ()}")
>                     System.Threading.Thread.Sleep 1000
>                     System.Environment.Exit 1
>             }
> 
>             async {
>                 do! Async.Sleep 3000
>                 existingFilesChild |> Async.StartImmediate
>                 streamAsyncChild |> Async.Start
>                 parentAsyncChild |> Async.Start
>             }
>             |> Async.Start
>         with ex ->
>             trace Critical (fun () -> $"Eval.startTokenRangeWatcher / ex: {ex |>
> SpiralSm.format_exception}") _locals
> 
>         disposable
>     else new_disposable (fun () -> ())
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## startCommandsWatcher                                                      │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let startCommandsWatcher (uriServer : string) =
>     let commandsDir = targetDir </> "eval_commands"
>     let commandHistoryDir = targetDir </> "eval_command_history"
>     [[ commandsDir; commandHistoryDir ]]
>     |> List.iter (fun dir -> if Directory.Exists dir |> not then 
> Directory.CreateDirectory dir |> ignore)
> 
>     Directory.EnumerateFiles commandsDir |> Seq.iter File.Delete
> 
>     let stream, disposable =
>         commandsDir
>         |> FileSystem.watchDirectory (function
>             | FileSystem.FileSystemChange.Created _ -> true
>             | _ -> false
>         )
> 
>     let connection = HubConnectionBuilder().WithUrl(uriServer).Build()
>     connection.StartAsync() |> Async.AwaitTask |> Async.Start
>     // let _ = connection.On<string>("ServerToClientMsg", fun x ->
>     //     printfn $"ServerToClientMsg: '{x}'"
>     // )
> 
>     stream
>     |> FSharp.Control.AsyncSeq.iterAsyncParallel (fun (ticks, event) -> async {
>         let _locals () = $"ticks: {ticks} / event: {event} / {_locals ()}"
>         trace Verbose (fun () -> "Eval.startCommandsWatcher / 
> iterAsyncParallel") _locals
> 
>         match event with
>         | FileSystem.FileSystemChange.Created (path, Some json) ->
>             try
>                 let fullPath = commandsDir </> path
>                 let! result = 
> connection.InvokeAsync<string>("ClientToServerMsg", json) |> Async.AwaitTask
>                 let commandHistoryPath = commandHistoryDir </> path
>                 do! fullPath |> SpiralFileSystem.move_file_async 
> commandHistoryPath |> Async.Ignore
>                 if result |> SpiralSm.trim |> String.length > 0 then
>                     let resultPath = commandHistoryDir </> 
> $"{Path.GetFileNameWithoutExtension path}_result.json"
>                     do! result |> SpiralFileSystem.write_all_text_async 
> resultPath
>             with ex ->
>                 let _locals () = $"ex: {ex |> SpiralSm.format_exception} / 
> {_locals ()}"
>                 trace Critical (fun () -> "Eval.startCommandsWatcher / 
> iterAsyncParallel") _locals
>         | _ -> ()
>     })
>     |> Async.StartChild
>     |> Async.Ignore
>     |> Async.Start
> 
>     new_disposable (fun () ->
>         disposable.Dispose ()
>     )
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## prepareSpiral                                                             │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let prepareSpiral rawCellCode lines =
>     let lastBlock =
>         lines
>         |> Array.tryFindBack (fun line ->
>             line |> String.length > 0
>             && line.[[0]] <> ' '
>         )
> 
>     let hasMain =
>         lastBlock
>         |> Option.exists (fun line ->
>             line |> SpiralSm.starts_with "inl main "
>             || line |> SpiralSm.starts_with "let main "
>         )
> 
>     if hasMain
>     then rawCellCode, None
>     else
>         let lastTopLevelIndex, _ =
>             (lines |> Array.indexed, (None, false))
>             ||> Array.foldBack (fun (i, line) (lastTopLevelIndex, finished) ->
>                 // trace Verbose (fun () -> $"Eval.prepareSpiral / i: {i} / 
> line: '{line}' / lastTopLevelIndex: {lastTopLevelIndex} / finished: {finished}")
> _locals
>                 match line with
>                 | _ when finished -> lastTopLevelIndex, true
>                 | "" -> lastTopLevelIndex, false
>                 | line when
>                     line |> SpiralSm.starts_with " "
>                     || line |> SpiralSm.starts_with "// " -> lastTopLevelIndex, 
> false
>                 | line when
>                     line |> SpiralSm.starts_with "open "
>                     || line |> SpiralSm.starts_with "prototype "
>                     || line |> SpiralSm.starts_with "instance "
>                     || line |> SpiralSm.starts_with "type "
>                     || line |> SpiralSm.starts_with "union "
>                     || line |> SpiralSm.starts_with "nominal " -> 
> lastTopLevelIndex, true
>                 | line when
>                     line |> SpiralSm.starts_with "inl "
>                     || line |> SpiralSm.starts_with "let " ->
>                     let m =
>                         System.Text.RegularExpressions.Regex.Match (
>                             line,
>                             @"^(inl|let) +([[~\(\w]][[\w\d']]*(?:| 
> *[[~\w]][[\w\d']]*\)|, *[[~\w]][[\w\d']]*)) +[[:=]](?! +function)"
>                         )
>                     trace Verbose (fun () -> $"Eval.prepareSpi / m: '{m}' / 
> m.Groups.Count: {m.Groups.Count}") _locals
>                     if m.Groups.Count = 3
>                     then Some i, false
>                     else lastTopLevelIndex, true
>                 | _ -> Some i, false
>             )
>         let code =
>             match lastTopLevelIndex with
>             | Some lastTopLevelIndex ->
>                 lines
>                 |> Array.mapi (fun i line ->
>                     match i with
>                     | i when i < lastTopLevelIndex -> line
>                     | i when i = lastTopLevelIndex -> $"\nlet main () =\n    
> {line}"
>                     | _ when line |> SpiralSm.trim = "" -> ""
>                     | _ -> $"    {line}"
>                 )
>                 |> SpiralSm.concat "\n"
>             | None -> $"{rawCellCode}\n\ninl main () = ()\n"
>         code, lastTopLevelIndex
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## processSpiralOutput                                                       │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let processSpiralOutput
>     (props : {|
>         printCode: bool
>         traceLevel: TraceLevel
>         builderCommands: string array
>         lastTopLevelIndex: int option
>         backend: Supervisor.Backend
>         cancellationToken: _
>         spiralErrors: _
>         code: string
>         outputPath: string
>         isReal: bool
>     |})
>     = async {
>     let inline _trace (fn : unit -> string) =
>         if props.traceLevel = Verbose
>         then trace Info (fun () -> $"Eval.processSpiralOutput / props: {props |>
> FSharp.Json.Json.serialize |> SpiralSm.ellipsis_end 400} / {fn ()}") _locals
>         else fn () |> System.Console.WriteLine
> 
>     if props.printCode then
>         let ext = props.outputPath |> System.IO.Path.GetExtension
>         _trace (fun () -> if props.builderCommands.Length > 0 then 
> $"{ext}:\n{props.code}\n" else props.code)
> 
>     let workspaceRootExternal =
>         let currentDir =
>             System.IO.Directory.GetCurrentDirectory ()
>             |> SpiralSm.to_lower
>         let workspaceRoot = workspaceRoot |> SpiralSm.to_lower
>         if currentDir |> SpiralSm.starts_with workspaceRoot
>         then None
>         else Some workspaceRoot
> 
>     let! spiralBuilderResults =
>         match props.builderCommands, props.lastTopLevelIndex with
>         | [[||]], _ | _, None -> [[||]] |> Async.init
>         | builderCommands, _ ->
>             builderCommands
>             |> Array.map (fun builderCommand ->
>                 let path =
>                     workspaceRoot </> 
> $@"workspace/target/release/spiral_builder{SpiralPlatform.get_executable_suffix 
> ()}"
>                     |> System.IO.Path.GetFullPath
>                 let commands =
>                     if props.backend = Supervisor.Fsharp
>                         && (
>                             builderCommand |> SpiralSm.starts_with "rust"
>                             || builderCommand |> SpiralSm.starts_with 
> "typescript"
>                             || builderCommand |> SpiralSm.starts_with "python"
>                         )
>                     then [[| $"{path} fable --fs-path \"{props.outputPath}\" 
> --command \"{builderCommand}\"" |]]
>                     elif props.backend = Supervisor.Cuda
>                         && builderCommand |> SpiralSm.starts_with "cuda"
>                     then [[| $"{path} {builderCommand} --py-path 
> \"{props.outputPath}\"" |]]
>                     else [[||]]
>                 builderCommand, commands
>             )
>             |> Array.filter (fun (_, commands) -> commands.Length > 0)
>             |> Array.map (fun (builderCommand, commands) ->
>                 commands
>                 |> Array.map (fun command -> async {
>                     let! exitCode, result =
>                         SpiralRuntime.execution_options (fun x ->
>                             { x with
>                                 l0 = command
>                                 l1 = props.cancellationToken
>                                 l2 = [[|
>                                     "AUTOMATION", assemblyName = "dotnet-repl" 
> |> string
>                                     "TRACE_LEVEL", $"%A{if props.printCode then 
> props.traceLevel else Info}"
>                                 |]]
>                                 l6 = workspaceRootExternal
>                             }
>                         )
>                         |> SpiralRuntime.execute_with_options_async
>                     trace Debug
>                         (fun () -> $"Eval.processSpiralOutput / spiral_builder")
>                         (fun () -> $"exitCode: {exitCode} / result: {result |> 
> SpiralSm.ellipsis_end 400} / {_locals ()}")
>                     return
>                         if exitCode = 0
>                         then (result, false) |> Ok
>                         else result |> Error
>                 })
>             )
>             |> Array.collect id
>             |> Async.Parallel
> 
>     let hasEval =
>         props.backend = Supervisor.Fsharp
>         && props.builderCommands |> Array.exists (fun x -> x |> 
> SpiralSm.starts_with "fsharp")
> 
>     let outputResult =
>         if props.builderCommands.Length > 0 && not hasEval
>         then None
>         else
>             let code =
>                 if props.builderCommands.Length > 1
>                 then
>                     let header = "System.Console.WriteLine \".fsx output:\"\n"
>                     $"{header}{props.code}"
>                 else props.code
>             Some (Ok [[ code, true ]])
> 
>     match outputResult, spiralBuilderResults with
>     | Some outputResult, [[||]] ->
>         return outputResult, [[||]]
>     | None, [[||]] ->
>         return Ok [[ "()", true ]], [[||]]
>     | _, spiralBuilderResults ->
>         try
>             let spiralResults =
>                 match outputResult with
>                 | Some (Ok code) ->
>                     spiralBuilderResults
>                     |> Array.append (code |> List.map Ok |> List.toArray)
>                 | _ -> spiralBuilderResults
>             let codes =
>                 spiralResults
>                 |> Array.map (fun spiralBuilderResult' ->
>                     let spiralBuilderResult'', errors =
>                         match spiralBuilderResult' with
>                         | Ok (x, false) ->
>                             let x = x |> 
> FSharp.Json.Json.deserialize<Map<string,string>>
>                             x, [[||]]
>                         | Ok (x, true) ->
>                             let result =
>                                 [[
>                                     "command_result",
>                                     [[
>                                         "extension", "fsx"
>                                         "code", x
>                                         "output", ""
>                                     ]]
>                                     |> Map.ofList
>                                     |> FSharp.Json.Json.serialize
>                                 ]]
>                                 |> Map.ofList
>                             result, [[||]]
> 
>                         | Error error ->
>                             ([[]] |> Map),
>                             [[|
>                                 (
>                                     TraceLevel.Critical, 
> $"Eval.processSpiralOutput / evalResult error / errors[[0]] / outputPath: 
> {props.outputPath} / builderCommands: %A{props.builderCommands} / 
> spiralBuilderResult': %A{spiralBuilderResult'} / error: %A{error}", 0, ("", (0, 
> 0), (0, 0))
>                                 )
>                             |]]
> 
>                     if errors |> Array.isEmpty |> not
>                         || spiralBuilderResult'' |> Map.containsKey 
> "command_result" |> not
>                     then Error (Exception $"Eval.processSpiralOutput / 
> evalResult errors / Exception / spiralBuilderResult'': 
> %A{spiralBuilderResult''}"), errors
>                     else
>                         let commandResult = 
> spiralBuilderResult''.[["command_result"]] |> 
> FSharp.Json.Json.deserialize<Map<string,string>>
> 
>                         let extension = commandResult.[["extension"]]
>                         let code = commandResult.[["code"]]
>                         let output = commandResult.[["output"]]
> 
>                         let eval = output = "" && extension = "fsx"
> 
>                         if props.printCode && not eval
>                         then _trace (fun () -> $""".{extension}:{'\n'}{code}""")
> 
>                         trace Debug
>                             (fun () -> $"Eval.processSpiralOutput / result")
>                             (fun () -> $"commandResult: {commandResult |> 
> FSharp.Json.Json.serialize |> SpiralSm.ellipsis_end 400}/ {_locals ()}")
> 
>                         let code =
>                             if props.printCode
>                                 || spiralResults.Length > 1
>                                 || props.builderCommands.Length > 1
>                             then
>                                 if eval then
>                                     code
>                                 else
>                                     let header =
>                                         if props.backend = Supervisor.Fsharp
>                                         then $".{extension} output:\n"
>                                         else $".{extension} output 
> ({props.backend}):\n"
>                                     $"""{if output |> SpiralSm.contains "\n" 
> then "\n" else ""}{header}{output}"""
>                             elif eval
>                             then code
>                             else output
>                         Ok (code, eval), [[||]]
>                 )
>             trace Debug
>                 (fun () -> $"Eval.processSpiralOutput / codes")
>                 (fun () ->
>                     let props = {| props with cancellationToken = None |}
>                     $"codes: {codes |> FSharp.Json.Json.serialize |> 
> SpiralSm.ellipsis_end 400} / spiralResults: {spiralResults |> 
> FSharp.Json.Json.serialize |> SpiralSm.ellipsis_end 400} / spiralBuilderResults:
> {spiralBuilderResults |> FSharp.Json.Json.serialize |> SpiralSm.ellipsis_end 
> 400} / props: {props |> FSharp.Json.Json.serialize |> SpiralSm.ellipsis_end 400}
> / {_locals ()}")
>             return
>                 (((Ok [[]]), [[||]]), codes)
>                 ||> Array.fold (fun (acc_code, acc_errors) (code, errors) ->
>                     match code, acc_code with
>                     | Ok code, Ok acc_code ->
>                         let errors =
>                             acc_errors
>                             |> Array.append errors
>                             |> Array.append props.spiralErrors
>                         let errors =
>                             if errors |> Array.isEmpty
>                             then errors
>                             else
>                                 errors
>                                 |> Array.append [[|
>                                     TraceLevel.Critical, 
> $"Eval.processSpiralOutput / errors / errors[[-1]] / outputPath: 
> {props.outputPath} / builderCommands: %A{props.builderCommands} / code: {code |>
> fst |> SpiralSm.ellipsis_end 400}", 0, ("", (0, 0), (0, 0))
>                                 |]]
>                         Ok (code :: acc_code), errors
>                     | Error error, _
>                     | _, Error error ->
>                         Error error,
>                         acc_errors |> Array.append errors
>                 )
>         with ex ->
>             trace Critical (fun () -> $"Eval.processSpiralOutput / try 2 ex / 
> spiralBuilderResults: %A{spiralBuilderResults} / ex: {ex |> 
> SpiralSm.format_exception}") _locals
>             return Error (Exception $"Eval.processSpiralOutput / try 2 ex / 
> Exception / spiralBuilderResults: %A{spiralBuilderResults} / ex: {ex |> 
> SpiralSm.format_exception}"),
>             [[|
>                 (
>                     TraceLevel.Critical, $"Eval.processSpiralOutput / try 2 ex /
> errors[[0]] / spiralBuilderResults: %A{spiralBuilderResults} / ex: {ex |> 
> SpiralSm.format_exception}", 0, ("", (0, 0), (0, 0))
>                 )
>             |]]
> }
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## tryGetPropertyValue                                                       │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let tryGetPropertyValue (propertyName: string) (obj: obj) =
>     let objType = obj.GetType ()
>     let propertyInfo = propertyName |> objType.GetProperty
>     if propertyInfo <> null
>     then propertyInfo.GetValue (obj, null) |> Some
>     else None
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## eval                                                                      │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline eval
>     (fsi_eval:
>         string
>         -> System.Threading.CancellationToken
>         -> Choice<'a, Exception> * (TraceLevel * string * int * (string * (int *
> int) * (int * int))) array)
>     (cancellationToken: Option<System.Threading.CancellationToken>)
>     (code: string)
>     =
>     trace Verbose
>         (fun () -> $"Eval.eval")
>         (fun () -> $"code: {code |> SpiralSm.ellipsis_end 400} / {_locals ()}")
> 
>     let rawCellCode =
>         code |> SpiralSm.replace "\r\n" "\n"
> 
>     let lines = rawCellCode |> SpiralSm.split "\n"
> 
>     if lines |> Array.exists (fun line -> line |> SpiralSm.starts_with "#r " && 
> line |> SpiralSm.ends_with "\"") then
>         let cancellationToken = defaultArg cancellationToken 
> System.Threading.CancellationToken.None
>         let ch, errors = fsi_eval code cancellationToken
>         trace Verbose (fun () -> $"Eval.eval / fsi_eval 1 / ch: %A{ch} / errors:
> {errors}") _locals
>         match ch with
>         | Choice1Of2 v -> Ok(v), errors
>         | Choice2Of2 ex -> Error(ex), errors
>     else
>         let builderCommands =
>             lines
>             |> Array.choose (fun line ->
>                 if line |> SpiralSm.starts_with "///! "
>                 then line |> SpiralSm.split "///! " |> Array.tryItem 1
>                 else None
>             )
> 
>         let timeout =
>             lines
>             |> Array.tryPick (fun line ->
>                 if line |> SpiralSm.starts_with "//// timeout="
>                 then line |> SpiralSm.split "=" |> Array.tryItem 1 |> Option.map
> int
>                 else None
>             )
>             |> Option.defaultValue (60000 * 60)
> 
>         let boolArg def command =
>             lines
>             |> Array.tryPick (fun line ->
>                 let text = $"//// {command}"
>                 match line.[[0..text.Length-1]], line.[[text.Length..]] with
>                 | head, "" when head = text ->
>                     Some true
>                 | head, _ when head = text ->
>                     line |> SpiralSm.split "=" |> Array.tryItem 1 |> Option.map 
> ((<>) "false")
>                 | _ -> None
>             )
>             |> Option.defaultValue def
> 
>         let printCode = "print_code" |> boolArg false
>         let isTraceToggle = "trace_toggle" |> boolArg false
>         let isTrace = "trace" |> boolArg false
>         let isCache = "cache" |> boolArg false
>         let isReal = "real" |> boolArg false
> 
>         if isTraceToggle
>         then traceToggle <- not traceToggle
> 
>         let oldLevel = get_trace_level ()
>         let traceLevel =
>             if isTrace || traceToggle
>             then Verbose
>             else Info
>         traceLevel
>         |> to_trace_level
>         |> set_trace_level
>         use _ = (new_disposable (fun () ->
>             oldLevel |> set_trace_level
>         ))
> 
>         async {
>             try
>                 let cellCode, lastTopLevelIndex = prepareSpiral rawCellCode 
> lines
>                 let newAllCode =
>                     if isReal
>                     then $"{allCodeReal}\n\n{cellCode}"
>                     else $"{allCode}\n\n{cellCode}"
> 
>                 let buildBackends =
>                     if builderCommands.Length = 0
>                     then [[| Supervisor.Fsharp |]]
>                     else
>                         builderCommands
>                         |> Array.map (fun x ->
>                             if x |> SpiralSm.starts_with "cuda"
>                             then Supervisor.Cuda
>                             else Supervisor.Fsharp
>                         )
>                         |> Array.distinct
> 
>                 trace Verbose
>                     (fun () -> $"Eval.eval")
>                     (fun () -> $"lastTopLevelIndex: {lastTopLevelIndex} / 
> builderCommands: %A{builderCommands} / buildBackends: %A{buildBackends} / 
> isReal: {isReal} / {_locals ()}")
> 
>                 let! buildCodeResults =
>                     buildBackends
>                     |> Array.map (fun backend -> async {
>                         let! result =
>                             if isReal
>                             then Supervisor.Spir newAllCode
>                             else
>                                 Supervisor.Spi
>                                     (newAllCode, if allCodeReal = "" then None 
> else Some allCodeReal)
>                             |> Supervisor.buildCode backend isCache timeout 
> cancellationToken
>                         return backend, result
>                     })
>                     |> Async.Parallel
>                     |> Async.catch
>                     |> Async.runWithTimeoutAsync timeout
> 
>                 match buildCodeResults with
>                 | Some (Ok buildCodeResults) ->
>                     let! result, errors =
>                         ((Ok [[]], [[||]]), buildCodeResults)
>                         ||> Async.fold (fun acc buildCodeResult -> async {
>                             match buildCodeResult with
>                             | backend, (_, (outputPath, Some code), 
> spiralErrors) ->
>                                 let spiralErrors =
>                                     mapErrors (Warning, spiralErrors, 
> lastTopLevelIndex) allCode
>                                 let! result =
>                                     processSpiralOutput
>                                         {|
>                                             printCode = printCode
>                                             traceLevel = traceLevel
>                                             builderCommands = builderCommands
>                                             lastTopLevelIndex = 
> lastTopLevelIndex
>                                             backend = backend
>                                             cancellationToken = 
> cancellationToken
>                                             spiralErrors = spiralErrors
>                                             code = code
>                                             outputPath = outputPath
>                                             isReal = isReal
>                                         |}
>                                 match result, acc with
>                                 | (Ok code, errors), (Ok acc_code, acc_errors) 
> ->
>                                     return Ok (acc_code @ code), acc_errors |> 
> Array.append errors
>                                 | (Error ex, errors), _ | _, (Error ex, errors) 
> ->
>                                     return Error ex, errors |> Array.append 
> errors
>                             | _, (_, _, errors) when errors |> List.isEmpty |> 
> not ->
>                                 return errors.[[0]] |> fst |> Exception |> 
> Error,
>                                 mapErrors (TraceLevel.Critical, errors, 
> lastTopLevelIndex) allCode
>                             | _ -> return acc
>                         })
>                     let cancellationToken = defaultArg cancellationToken 
> System.Threading.CancellationToken.None
>                     match result, errors with
>                     | Ok code, [[||]] ->
>                         let code, eval =
>                             code
>                             |> List.map (fun (code, eval) ->
>                                 if eval
>                                 then None, Some code
>                                 else Some code, None
>                             )
>                             |> List.unzip
>                         let code = code |> List.choose id
>                         let eval = eval |> List.choose id
> 
>                         trace Debug
>                             (fun () -> $"Eval.eval")
>                             (fun () -> $"eval: {eval |> 
> FSharp.Json.Json.serialize |> SpiralSm.ellipsis_end 400} / code: {code |> 
> FSharp.Json.Json.serialize |> SpiralSm.ellipsis_end 400} / {_locals ()}")
> 
>                         let ch, errors =
>                             match eval, code with
>                             | [[]], [[]] ->
>                                 Choice2Of2 (Exception $"Eval.eval / eval=[[]] / 
> code=[[]] / buildCodeResults: %A{buildCodeResults} / code: %A{code}"), errors
>                             | [[ eval ]], [[]] ->
>                                 let ch, errors2 = fsi_eval eval 
> cancellationToken
>                                 let errors =
>                                     errors2
>                                     // |> Array.map (fun (e1, e2, e3, _) ->
>                                     //     (e1, e2, e3, ("", (0, 0), (0, 0)))
>                                     // )
>                                     |> Array.append errors
>                                 ch, errors
>                             | [[]], _ ->
>                                 let code = code |> List.rev |> String.concat 
> "\n\n"
>                                 let code =
>                                     if printCode
>                                     then $"\"\"\"{code}\n\n\"\"\""
>                                     else $"\"\"\"{code}\n\"\"\""
>                                 let ch, errors2 = fsi_eval code 
> cancellationToken
>                                 let errors =
>                                     errors2
>                                     // |> Array.map (fun (e1, e2, e3, _) ->
>                                     //     (e1, e2, e3, ("", (0, 0), (0, 0)))
>                                     // )
>                                     |> Array.append errors
>                                 ch, errors
>                             | _ ->
>                                 let code, errors =
>                                     ((Ok (code |> List.rev), [[||]]), eval)
>                                     ||> List.fold (fun (acc, acc_errors) eval ->
>                                         match acc with
>                                         | Error x -> Error x, acc_errors
>                                         | Ok acc ->
>                                             let ch, errors = fsi_eval eval 
> cancellationToken
>                                             let errors =
>                                                 errors
>                                                 // |> Array.map (fun (e1, e2, 
> e3, _) ->
>                                                 //     (e1, e2, e3, ("", (0, 0),
> (0, 0)))
>                                                 // )
>                                                 |> Array.append acc_errors
>                                             match ch with
>                                             | Choice1Of2 v ->
>                                                 let v =
>                                                     v
>                                                     |> tryGetPropertyValue 
> "ReflectionValue"
>                                                     |> Option.map (fun x -> 
> $"%A{x}")
>                                                     |> Option.defaultValue ""
>                                                 Ok (v :: acc), errors
>                                             | Choice2Of2 ex ->
>                                                 trace Critical (fun () -> 
> $"Eval.eval / fsi_eval fold Choice error / buildCodeResults: 
> %A{buildCodeResults} / ex: {ex |> SpiralSm.format_exception}") _locals
>                                                 Error ch, errors
>                                     )
>                                 match code with
>                                 | Error ch -> ch, errors
>                                 | Ok code ->
>                                     let code =
>                                         code
>                                         |> List.filter ((<>) "")
>                                         |> String.concat "\n\n"
> 
>                                     let code =
>                                         if builderCommands.Length > 0 && 
> eval.Length = 0
>                                         then code
>                                         elif code |> SpiralSm.contains "\n\n\n"
>                                         then $"{code}\n\n"
>                                         else $"{code}\n"
> 
>                                     let code =
>                                         if printCode
>                                         then $"\"\"\"{code}\n\n\n\"\"\""
>                                         else $"\"\"\"{code}\n\"\"\""
>                                     let ch, errors2 = fsi_eval code 
> cancellationToken
>                                     let errors =
>                                         errors2
>                                         // |> Array.map (fun (e1, e2, e3, _) ->
>                                         //     (e1, e2, e3, ("", (0, 0), (0, 
> 0)))
>                                         // )
>                                         |> Array.append errors
>                                     ch, errors
>                         match ch with
>                         | Choice1Of2 v ->
>                             if isReal
>                             then allCodeReal <- newAllCode
>                             else allCode <- newAllCode
>                             return Ok(v), errors
>                         | Choice2Of2 ex ->
>                             return Error ex, errors
>                     | Ok code, errors ->
>                         return Error (Exception "Eval.eval / errors / 
> buildCodeResults: %A{buildCodeResults} / code: %A{code}"), errors
>                     | Error error, errors ->
>                         return Error error, errors
>                 | Some (Error ex) ->
>                     trace Critical (fun () -> $"Eval.eval / buildCodeResults 
> Error / buildCodeResults: %A{buildCodeResults} / ex: {ex |> 
> SpiralSm.format_exception}") _locals
>                     return Error (Exception $"Eval.eval / buildCodeResults Error
> / Exception / buildCodeResults: %A{buildCodeResults} / ex: {ex |> 
> SpiralSm.format_exception}"),
>                     [[|
>                         (
>                             TraceLevel.Critical, $"Eval.eval / buildCodeResults 
> Error / errors[[0]] / buildCodeResults: %A{buildCodeResults} / ex: {ex |> 
> SpiralSm.format_exception}", 0, ("", (0, 0), (0, 0))
>                         )
>                     |]]
>                 | _ ->
>                     return Error (Exception $"Eval.eval / buildCodeResults / 
> Exception / buildCodeResults: %A{buildCodeResults}"),
>                     [[|
>                         (
>                             TraceLevel.Critical, $"Eval.eval / buildCodeResults 
> / errors[[0]] / buildCodeResults: %A{buildCodeResults}", 0, ("", (0, 0), (0, 0))
>                         )
>                     |]]
>             with ex ->
>                 trace Critical (fun () -> $"Eval.eval / try 1 ex / lines : 
> %A{lines} / ex: {ex |> SpiralSm.format_exception}") _locals
>                 return Error (Exception $"Eval.eval / try 1 ex / Exception / 
> %A{lines} / ex: {ex |> SpiralSm.format_exception}"),
>                 [[|
>                     (
>                         TraceLevel.Critical, $"Eval.eval / try 1 ex / 
> errors[[0]] / %A{lines} / ex: {ex |> SpiralSm.format_exception}", 0, ("", (0, 
> 0), (0, 0))
>                     )
>                 |]]
>         }
>         |> Async.runWithTimeout timeout
>         |> Option.defaultValue (
>             Error (Exception $"Eval.eval / Async.runWithTimeout / Exception / 
> timeout: {timeout} / %A{lines}"),
>             [[|
>                 (
>                     TraceLevel.Critical, $"Eval.eval / Async.runWithTimeout / 
> errors[[0]] / timeout: {timeout} / %A{lines}", 0, ("", (0, 0), (0, 0))
>                 )
>             |]]
>         )
00:00:44 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 48653 }
00:00:44   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/apps/spiral/Eval.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/apps/spiral/Eval.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:00:46 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/apps/spiral/Eval.dib.ipynb to html
00:00:46 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:00:46 verbose #7 !   validate(nb)
00:00:48 verbose #8 ! [NbConvertApp] Writing 440749 bytes to c:\home\git\polyglot\apps\spiral\Eval.dib.html
00:00:49 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 641 }
00:00:49   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 641 }
00:00:49   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/apps/spiral/Eval.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/apps/spiral/Eval.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:00:49 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:00:49   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:00:50   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 49353 }
00:00:00   debug #1 writeDibCode / output: Fs / path: Eval.dib
00:00:00   debug #2 parseDibCode / output: Fs / file: Eval.dib
In [ ]:
{ pwsh ../apps/spiral/builder/build.ps1 } | Invoke-Block
00:00:00 verbose #1 async.run_with_timeout_async / { timeout = 180 }
00:00:00   debug #1 runtime.execute_with_options_async / { options = { command = dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port 13805 --default-int i32 --default-float f64; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = Some <fun:main@570-7>; stdin = None; trace = true; working_directory = Some "C:\home\git\polyglot" } }
00:00:01 verbose #2 > 00:00:00   debug #1 pwd: C:\home\git\polyglot
00:00:01 verbose #3 > 00:00:00   debug #2 dllPath: C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release
00:00:01 verbose #4 > 00:00:00   debug #3 targetDir: C:\home\git\polyglot\target/spiral_Eval
00:00:01 verbose #2 async.run_with_timeout_async / { timeout = 100 }
00:00:01 verbose #3 networking.wait_for_port_access / { port = 13805; retry = 0; timeout = Some 100; status = true }
00:00:01 verbose #4 async.run_with_timeout_async / { timeout = 100 }
00:00:01 verbose #5 > Starting the Spiral Server. It is bound to: http://localhost:13805
00:00:01 verbose #5 async.run_with_timeout_async / { timeout = 100 }
00:00:01 verbose #1 Supervisor.sendJson / port: 13805 / json: {"Ping":true} / result:
00:00:01 verbose #2 awaitCompiler / Ping / result: 'Some(null)' / port: 13805 / retry: 0
00:00:01 verbose #6 > Server bound to: http://localhost:13805
00:00:01   debug #7 runtime.execute_with_options_async / { options = { command = ../../../workspace/target/release/spiral_builder.exe dib --path spiral_builder.dib; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:00:01 verbose #8 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "spiral_builder.dib"])) }
00:00:01 verbose #9 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/apps/spiral/builder/spiral_builder.dib", "--output-path", "c:/home/git/polyglot/apps/spiral/builder/spiral_builder.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/apps/spiral/builder/spiral_builder.dib" --output-path "c:/home/git/polyglot/apps/spiral/builder/spiral_builder.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:00:04 verbose #10 > >
00:00:04 verbose #11 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:04 verbose #12 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:04 verbose #13 > > │ # spiral_builder                                                             │
00:00:04 verbose #14 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 verbose #15 > >
00:00:08 verbose #16 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:08 verbose #17 > > open file_system_operators
00:00:08 verbose #18 > > open rust_operators
00:00:08 verbose #19 > > open sm'_operators
00:00:09 verbose #20 > 00:00:08   debug #4 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/334788d37a9310c66df6ce94e91bc47bbc93fafb87f719eaf4f0b5e7299dadee/main.spi
00:00:11 verbose #21 > >
00:00:11 verbose #22 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:11 verbose #23 > > //// test
00:00:11 verbose #24 > >
00:00:11 verbose #25 > > open testing
00:00:11 verbose #26 > 00:00:11   debug #5 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d26d3696588afce281a1e5a0ed1d4ba22d942f2c76526c72d75478ef40d8c827/main.spi
00:00:12 verbose #27 > >
00:00:12 verbose #28 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:12 verbose #29 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:12 verbose #30 > > │ ## get_args                                                                  │
00:00:12 verbose #31 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 verbose #32 > >
00:00:12 verbose #33 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 verbose #34 > > inl get_args () =
00:00:12 verbose #35 > >     {
00:00:12 verbose #36 > >         fsharp = "fsharp", {
00:00:12 verbose #37 > >             spi_path = "spi-path", 's'
00:00:12 verbose #38 > >         }
00:00:12 verbose #39 > >         cuda = "cuda", {
00:00:12 verbose #40 > >             py_path = "py-path", 'p'
00:00:12 verbose #41 > >             env = "env", 'e'
00:00:12 verbose #42 > >             deps = "deps", 'd'
00:00:12 verbose #43 > >         }
00:00:12 verbose #44 > >         fable = "fable", {
00:00:12 verbose #45 > >             fs_path = "fs-path", 'f'
00:00:12 verbose #46 > >             command = "command", 'c'
00:00:12 verbose #47 > >         }
00:00:12 verbose #48 > >         rust = "rust", {
00:00:12 verbose #49 > >             fs_path = "fs-path", 'f'
00:00:12 verbose #50 > >             deps = "deps", 'd'
00:00:12 verbose #51 > >         }
00:00:12 verbose #52 > >         typescript = "typescript", {
00:00:12 verbose #53 > >             fs_path = "fs-path", 'f'
00:00:12 verbose #54 > >             deps = "deps", 'd'
00:00:12 verbose #55 > >         }
00:00:12 verbose #56 > >         python = "python", {
00:00:12 verbose #57 > >             fs_path = "fs-path", 'f'
00:00:12 verbose #58 > >             deps = "deps", 'd'
00:00:12 verbose #59 > >         }
00:00:12 verbose #60 > >         dib = "dib", {
00:00:12 verbose #61 > >             path = "path", 'p'
00:00:12 verbose #62 > >             retries = "retries", 'r'
00:00:12 verbose #63 > >             working_directory = "working-directory", 'w'
00:00:12 verbose #64 > >         }
00:00:12 verbose #65 > >     }
00:00:12 verbose #66 > 00:00:11   debug #6 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/31c71df10c45b84a6d755c15808b8cd715efad361d5bd867d6ed0c8edd8aa93d/main.spi
00:00:12 verbose #67 > >
00:00:12 verbose #68 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:12 verbose #69 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:12 verbose #70 > > │ ## cuda_env                                                                  │
00:00:12 verbose #71 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 verbose #72 > >
00:00:12 verbose #73 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 verbose #74 > > union cuda_env =
00:00:12 verbose #75 > >     | Pip
00:00:12 verbose #76 > >     | Poetry
00:00:12 verbose #77 > 00:00:11   debug #7 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ca00af0329ef836024a43e6a8fe0fbd12782cdd2a171309877d4d63781d66bef/main.spi
00:00:12 verbose #78 > >
00:00:12 verbose #79 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:12 verbose #80 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:12 verbose #81 > > │ ## get_command                                                               │
00:00:12 verbose #82 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 verbose #83 > >
00:00:12 verbose #84 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 verbose #85 > > let get_command () =
00:00:12 verbose #86 > >     ##"command"
00:00:12 verbose #87 > >     |> runtime.new_command
00:00:12 verbose #88 > >     |> runtime.command_subcommand_required true
00:00:12 verbose #89 > >     |> runtime.command_subcommand (
00:00:12 verbose #90 > >         ##(get_args () .fsharp |> fst)
00:00:12 verbose #91 > >         |> runtime.new_command
00:00:12 verbose #92 > >         |> runtime.command_init_arg ((get_args () .fsharp |> snd).spi_path) (
00:00:12 verbose #93 > >             runtime.arg_required true
00:00:12 verbose #94 > >         )
00:00:12 verbose #95 > >     )
00:00:12 verbose #96 > >     |> runtime.command_subcommand (
00:00:12 verbose #97 > >         ##(get_args () .cuda |> fst)
00:00:12 verbose #98 > >         |> runtime.new_command
00:00:12 verbose #99 > >         |> runtime.command_init_arg ((get_args () .cuda |> snd).py_path) (
00:00:12 verbose #100 > >             runtime.arg_required true
00:00:12 verbose #101 > >         )
00:00:12 verbose #102 > >         |> runtime.command_init_arg ((get_args () .cuda |> snd).env) (
00:00:12 verbose #103 > >             real runtime.arg_union `cuda_env ignore
00:00:12 verbose #104 > >         )
00:00:12 verbose #105 > >         |> runtime.command_init_arg ((get_args () .cuda |> snd).deps) (
00:00:12 verbose #106 > >             runtime.arg_value_names ;[[ ##"NAME"; ##"VERSION" ]]
00:00:12 verbose #107 > >             >> runtime.arg_num_args_range (
00:00:12 verbose #108 > >                 runtime.new_value_range
00:00:12 verbose #109 > >                     (am'.Start (1i32 |> convert : unativeint))
00:00:12 verbose #110 > >                     (am'.End id)
00:00:12 verbose #111 > >             )
00:00:12 verbose #112 > >             >> runtime.arg_action runtime.Append
00:00:12 verbose #113 > >         )
00:00:12 verbose #114 > >     )
00:00:12 verbose #115 > >     |> runtime.command_subcommand (
00:00:12 verbose #116 > >         ##(get_args () .fable |> fst)
00:00:12 verbose #117 > >         |> runtime.new_command
00:00:12 verbose #118 > >         |> runtime.command_init_arg ((get_args () .fable |> snd).fs_path) (
00:00:12 verbose #119 > >             runtime.arg_required true
00:00:12 verbose #120 > >         )
00:00:12 verbose #121 > >         |> runtime.command_init_arg ((get_args () .fable |> snd).command) (
00:00:12 verbose #122 > >             id
00:00:12 verbose #123 > >         )
00:00:12 verbose #124 > >     )
00:00:12 verbose #125 > >     |> runtime.command_subcommand (
00:00:12 verbose #126 > >         ##(get_args () .rust |> fst)
00:00:12 verbose #127 > >         |> runtime.new_command
00:00:12 verbose #128 > >         |> runtime.command_init_arg ((get_args () .rust |> snd).fs_path) (
00:00:12 verbose #129 > >             runtime.arg_required true
00:00:12 verbose #130 > >         )
00:00:12 verbose #131 > >         |> runtime.command_init_arg ((get_args () .rust |> snd).deps) (
00:00:12 verbose #132 > >             runtime.arg_value_names ;[[ ##"NAME"; ##"VERSION" ]]
00:00:12 verbose #133 > >             >> runtime.arg_num_args_range (
00:00:12 verbose #134 > >                 runtime.new_value_range
00:00:12 verbose #135 > >                     (am'.Start (1i32 |> convert : unativeint))
00:00:12 verbose #136 > >                     (am'.End id)
00:00:12 verbose #137 > >             )
00:00:12 verbose #138 > >             >> runtime.arg_action runtime.Append
00:00:12 verbose #139 > >         )
00:00:12 verbose #140 > >     )
00:00:12 verbose #141 > >     |> runtime.command_subcommand (
00:00:12 verbose #142 > >         ##(get_args () .typescript |> fst)
00:00:12 verbose #143 > >         |> runtime.new_command
00:00:12 verbose #144 > >         |> runtime.command_init_arg ((get_args () .typescript |> snd).fs_path) (
00:00:12 verbose #145 > >             runtime.arg_required true
00:00:12 verbose #146 > >         )
00:00:12 verbose #147 > >         |> runtime.command_init_arg ((get_args () .typescript |> snd).deps) (
00:00:12 verbose #148 > >             runtime.arg_value_names ;[[ ##"NAME"; ##"VERSION" ]]
00:00:12 verbose #149 > >             >> runtime.arg_num_args_range (
00:00:12 verbose #150 > >                 runtime.new_value_range
00:00:12 verbose #151 > >                     (am'.Start (1i32 |> convert : unativeint))
00:00:12 verbose #152 > >                     (am'.End id)
00:00:12 verbose #153 > >             )
00:00:12 verbose #154 > >             >> runtime.arg_action runtime.Append
00:00:12 verbose #155 > >         )
00:00:12 verbose #156 > >     )
00:00:12 verbose #157 > >     |> runtime.command_subcommand (
00:00:12 verbose #158 > >         ##(get_args () .python |> fst)
00:00:12 verbose #159 > >         |> runtime.new_command
00:00:12 verbose #160 > >         |> runtime.command_init_arg ((get_args () .python |> snd).fs_path) (
00:00:12 verbose #161 > >             runtime.arg_required true
00:00:12 verbose #162 > >         )
00:00:12 verbose #163 > >         |> runtime.command_init_arg ((get_args () .python |> snd).deps) (
00:00:12 verbose #164 > >             runtime.arg_value_names ;[[ ##"NAME"; ##"VERSION" ]]
00:00:12 verbose #165 > >             >> runtime.arg_num_args_range (
00:00:12 verbose #166 > >                 runtime.new_value_range
00:00:12 verbose #167 > >                     (am'.Start (1i32 |> convert : unativeint))
00:00:12 verbose #168 > >                     (am'.End id)
00:00:12 verbose #169 > >             )
00:00:12 verbose #170 > >             >> runtime.arg_action runtime.Append
00:00:12 verbose #171 > >         )
00:00:12 verbose #172 > >     )
00:00:12 verbose #173 > >     |> runtime.command_subcommand (
00:00:12 verbose #174 > >         ##(get_args () .dib |> fst)
00:00:12 verbose #175 > >         |> runtime.new_command
00:00:12 verbose #176 > >         |> runtime.command_init_arg ((get_args () .dib |> snd).path) (
00:00:12 verbose #177 > >             runtime.arg_required true
00:00:12 verbose #178 > >             // >> runtime.arg_value_parser (runtime.value_parser_path_buf ())
00:00:12 verbose #179 > >         )
00:00:12 verbose #180 > >         |> runtime.command_init_arg ((get_args () .dib |> snd).retries) (
00:00:12 verbose #181 > >             runtime.arg_value_parser (runtime.value_parser_expr "u8")
00:00:12 verbose #182 > >         )
00:00:12 verbose #183 > >         |> runtime.command_init_arg ((get_args () .dib |>
00:00:12 verbose #184 > > snd).working_directory) (
00:00:12 verbose #185 > >             id
00:00:12 verbose #186 > >         )
00:00:12 verbose #187 > >     )
00:00:13 verbose #188 > 00:00:12   debug #8 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/18dd721e93cfba72c325d1ea537fd5a18029cb195f18253106141b4aeaa38893/main.spi
00:00:13 verbose #189 > >
00:00:13 verbose #190 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:13 verbose #191 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:13 verbose #192 > > │ ## fable                                                                     │
00:00:13 verbose #193 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 verbose #194 > >
00:00:13 verbose #195 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:13 verbose #196 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:13 verbose #197 > > │ ### fable_target                                                             │
00:00:13 verbose #198 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 verbose #199 > >
00:00:13 verbose #200 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:13 verbose #201 > > union fable_target =
00:00:13 verbose #202 > >     | Rust
00:00:13 verbose #203 > >     | TypeScript
00:00:13 verbose #204 > >     | Python
00:00:13 verbose #205 > 00:00:12   debug #9 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/680f932c492a8e38aafcc72c4eea3fd7cd06b56c592de0a07a200dce6322242d/main.spi
00:00:13 verbose #206 > >
00:00:13 verbose #207 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:13 verbose #208 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:13 verbose #209 > > │ ### execute_dotnet_fable                                                     │
00:00:13 verbose #210 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 verbose #211 > >
00:00:13 verbose #212 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:13 verbose #213 > > let execute_dotnet_fable { workspace_root_external fsproj_path extension
00:00:13 verbose #214 > > package_dir } =
00:00:13 verbose #215 > >     runtime.execution_options fun x => { x with
00:00:13 verbose #216 > >         command =
00:00:13 verbose #217 > >             inl platform =
00:00:13 verbose #218 > >                 if platform.is_windows ()
00:00:13 verbose #219 > >                 then "_WINDOWS"
00:00:13 verbose #220 > >                 else "_LINUX"
00:00:13 verbose #221 > >             $'$"dotnet fable \\\"{!fsproj_path}\\\" --optimize --lang
00:00:13 verbose #222 > > {!extension} --extension .{!extension} --outDir \\\"{!package_dir}\\\" --define
00:00:13 verbose #223 > > {!platform}"'
00:00:13 verbose #224 > >         working_directory = workspace_root_external |> resultm.box |>
00:00:13 verbose #225 > > resultm.ok'
00:00:13 verbose #226 > >     }
00:00:13 verbose #227 > >     |> runtime.execute_retry 3u8
00:00:14 verbose #228 > 00:00:13   debug #10 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/24cc1c475b24b3f9f297fd1093e316fe1d1b44ed83b016d31be049a4120b4414/main.spi
00:00:14 verbose #229 > >
00:00:14 verbose #230 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:14 verbose #231 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:14 verbose #232 > > │ ### get_package_dir                                                          │
00:00:14 verbose #233 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 verbose #234 > >
00:00:14 verbose #235 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:14 verbose #236 > > inl get_package_dir { workspace_root target name hash } =
00:00:14 verbose #237 > >     inl dir = workspace_root </> "target/spiral_builder" </> name
00:00:14 verbose #238 > >     match hash, (target : option fable_target) with
00:00:14 verbose #239 > >     | Some hash, Some target => dir </> "packages" </> (target |>
00:00:14 verbose #240 > > reflection.union_to_string) </> hash
00:00:14 verbose #241 > >     | _ => dir
00:00:14 verbose #242 > 00:00:13   debug #11 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/10806331ce546f9a25da4eb85f12777997168b9b8ab605bc48889b682d2797c8/main.spi
00:00:14 verbose #243 > >
00:00:14 verbose #244 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:14 verbose #245 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:14 verbose #246 > > │ ### persist_code_project                                                     │
00:00:14 verbose #247 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 verbose #248 > >
00:00:14 verbose #249 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:14 verbose #250 > > inl persist_code_project { workspace_root package_dir packages modules name code
00:00:14 verbose #251 > > } =
00:00:14 verbose #252 > >     package_dir |> file_system.create_dir |> ignore
00:00:14 verbose #253 > >
00:00:14 verbose #254 > >     inl fs_path = package_dir </> $'$"{!name}.fs"' |> file_system.normalize_path
00:00:14 verbose #255 > >     code |> file_system.write_all_text_exists fs_path
00:00:14 verbose #256 > >
00:00:14 verbose #257 > >     inl modules_code =
00:00:14 verbose #258 > >         modules
00:00:14 verbose #259 > >         |> listm.map fun path =>
00:00:14 verbose #260 > >             inl path = workspace_root </> path
00:00:14 verbose #261 > >             $'$"<Compile Include=\\\"{!path}\\\" />"' : string
00:00:14 verbose #262 > >         |> listm'.box
00:00:14 verbose #263 > >         |> seq.of_list'
00:00:14 verbose #264 > >         |> sm'.concat "\\n        "
00:00:14 verbose #265 > >
00:00:14 verbose #266 > >     inl packages_code =
00:00:14 verbose #267 > >         packages
00:00:14 verbose #268 > >         |> listm.map fun (package : string) =>
00:00:14 verbose #269 > >             $'$"<PackageReference Include=\\\"{!package}\\\" Version=\\\"*\\\"
00:00:14 verbose #270 > > />"' : string
00:00:14 verbose #271 > >         |> listm'.box
00:00:14 verbose #272 > >         |> seq.of_list'
00:00:14 verbose #273 > >         |> sm'.concat "\\n        "
00:00:14 verbose #274 > >
00:00:14 verbose #275 > >     inl fsproj_path = package_dir </> $'$"{!name}.fsproj"' |>
00:00:14 verbose #276 > > file_system.normalize_path
00:00:14 verbose #277 > >     inl fsproj_code : string =
00:00:14 verbose #278 > >         $'$"<Project Sdk=\\\"Microsoft.NET.Sdk\\\">"'
00:00:14 verbose #279 > >         +#. $'$"<PropertyGroup>"'
00:00:14 verbose #280 > >         +#. $'$"    <TargetFramework>net9.0</TargetFramework>"'
00:00:14 verbose #281 > >         +#. $'$"    <LangVersion>preview</LangVersion>"'
00:00:14 verbose #282 > >         +#. $'$"    <RollForward>Major</RollForward>"'
00:00:14 verbose #283 > >         +#. $'$"    <TargetLatestRuntimePatch>true</TargetLatestRuntimePatch>"'
00:00:14 verbose #284 > >         +#. $'$"    <PublishAot>false</PublishAot>"'
00:00:14 verbose #285 > >         +#. $'$"    <PublishTrimmed>false</PublishTrimmed>"'
00:00:14 verbose #286 > >         +#. $'$"    <PublishSingleFile>true</PublishSingleFile>"'
00:00:14 verbose #287 > >         +#. $'$"    <SelfContained>true</SelfContained>"'
00:00:14 verbose #288 > >         +#. $'$"    <Version>0.0.1-alpha.1</Version>"'
00:00:14 verbose #289 > >         +#. $'$"    <OutputType>Exe</OutputType>"'
00:00:14 verbose #290 > >         +#. $'$"</PropertyGroup>"'
00:00:14 verbose #291 > >
00:00:14 verbose #292 > >         +#. $'$"<PropertyGroup
00:00:14 verbose #293 > > Condition=\\\"$([[MSBuild]]::IsOSPlatform(\'FreeBSD\'))\\\">"'
00:00:14 verbose #294 > >         +#. $'$"    <DefineConstants>_FREEBSD</DefineConstants>"'
00:00:14 verbose #295 > >         +#. $'$"</PropertyGroup>"'
00:00:14 verbose #296 > >
00:00:14 verbose #297 > >         +#. $'$"<PropertyGroup
00:00:14 verbose #298 > > Condition=\\\"$([[MSBuild]]::IsOSPlatform(\'Linux\'))\\\">"'
00:00:14 verbose #299 > >         +#. $'$"    <DefineConstants>_LINUX</DefineConstants>"'
00:00:14 verbose #300 > >         +#. $'$"</PropertyGroup>"'
00:00:14 verbose #301 > >
00:00:14 verbose #302 > >         +#. $'$"<PropertyGroup
00:00:14 verbose #303 > > Condition=\\\"$([[MSBuild]]::IsOSPlatform(\'OSX\'))\\\">"'
00:00:14 verbose #304 > >         +#. $'$"    <DefineConstants>_OSX</DefineConstants>"'
00:00:14 verbose #305 > >         +#. $'$"</PropertyGroup>"'
00:00:14 verbose #306 > >
00:00:14 verbose #307 > >         +#. $'$"<PropertyGroup
00:00:14 verbose #308 > > Condition=\\\"$([[MSBuild]]::IsOSPlatform(\'Windows\'))\\\">"'
00:00:14 verbose #309 > >         +#. $'$"    <DefineConstants>_WINDOWS</DefineConstants>"'
00:00:14 verbose #310 > >         +#. $'$"</PropertyGroup>"'
00:00:14 verbose #311 > >
00:00:14 verbose #312 > >         +#. $'$"<ItemGroup>"'
00:00:14 verbose #313 > >         +#. $'$"    {!modules_code}"'
00:00:14 verbose #314 > >         +#. $'$"    <Compile Include=\\\"{!fs_path}\\\" />"'
00:00:14 verbose #315 > >         +#. $'$"</ItemGroup>"'
00:00:14 verbose #316 > >
00:00:14 verbose #317 > >         +#. $'$"<ItemGroup>"'
00:00:14 verbose #318 > >         +#. $'$"    {!packages_code}"'
00:00:14 verbose #319 > >         +#. $'$"</ItemGroup>"'
00:00:14 verbose #320 > >
00:00:14 verbose #321 > >         +#. $'$"</Project>"'
00:00:14 verbose #322 > >
00:00:14 verbose #323 > >     fsproj_code |> file_system.write_all_text_exists fsproj_path
00:00:14 verbose #324 > >
00:00:14 verbose #325 > >     fsproj_path
00:00:14 verbose #326 > 00:00:14   debug #12 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6dd5e92476d65b563e8f780ddda8e9c6b0d0273f0e231e5d364b470b1a95f6bd/main.spi
00:00:15 verbose #327 > >
00:00:15 verbose #328 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:15 verbose #329 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:15 verbose #330 > > │ ### build_project                                                            │
00:00:15 verbose #331 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 verbose #332 > >
00:00:15 verbose #333 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:15 verbose #334 > > inl build_project runtime' output_dir path =
00:00:15 verbose #335 > >     inl full_path = path |> file_system.get_full_path
00:00:15 verbose #336 > >     inl file_dir = full_path |> file_system.get_directory_name
00:00:15 verbose #337 > >     inl extension = full_path |> file_system.get_extension
00:00:15 verbose #338 > >
00:00:15 verbose #339 > >     trace Debug
00:00:15 verbose #340 > >         fun () => "build_project"
00:00:15 verbose #341 > >         fun () => { full_path }
00:00:15 verbose #342 > >
00:00:15 verbose #343 > >     match extension with
00:00:15 verbose #344 > >     | "fsproj" => ()
00:00:15 verbose #345 > >     | _ => failwith $'$"spiral_builder.build_project / Invalid project file
00:00:15 verbose #346 > > extension: {!extension}"'
00:00:15 verbose #347 > >
00:00:15 verbose #348 > >     inl runtimes =
00:00:15 verbose #349 > >         runtime'
00:00:15 verbose #350 > >         |> optionm.map listm.singleton
00:00:15 verbose #351 > >         |> optionm'.default_value [[ "linux-x64"; "win-x64" ]]
00:00:15 verbose #352 > >
00:00:15 verbose #353 > >     inl output_dir = output_dir |> optionm'.default_value "dist"
00:00:15 verbose #354 > >
00:00:15 verbose #355 > >     runtimes
00:00:15 verbose #356 > >     |> listm.map fun runtime' =>
00:00:15 verbose #357 > >         runtime.execution_options fun x => { x with
00:00:15 verbose #358 > >             command = $'$@@"dotnet publish \"\"{!path}\"\" --configuration
00:00:15 verbose #359 > > Release --output \"\"{!output_dir}\"\" --runtime {!runtime'}"'
00:00:15 verbose #360 > >             working_directory = file_dir |> Some |> optionm'.box
00:00:15 verbose #361 > >         }
00:00:15 verbose #362 > >         |> runtime.execute_with_options
00:00:15 verbose #363 > >         |> fst
00:00:15 verbose #364 > >     |> listm'.sum
00:00:15 verbose #365 > 00:00:14   debug #13 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/50a7e7c0570d7140360b1fed03dfdab2b29eee2dd5785906f09137b6f0e7ab80/main.spi
00:00:15 verbose #366 > >
00:00:15 verbose #367 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:15 verbose #368 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:15 verbose #369 > > │ ### build_code                                                               │
00:00:15 verbose #370 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 verbose #371 > >
00:00:15 verbose #372 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:15 verbose #373 > > inl build_code { workspace_root runtime packages modules output_dir name code }
00:00:15 verbose #374 > > =
00:00:15 verbose #375 > >     inl package_dir = get_package_dir { workspace_root name target = None; hash
00:00:15 verbose #376 > > = None }
00:00:15 verbose #377 > >     inl fsproj_path = persist_code_project { workspace_root package_dir packages
00:00:15 verbose #378 > > modules name code }
00:00:15 verbose #379 > >     inl exit_code = fsproj_path |> build_project runtime output_dir
00:00:15 verbose #380 > >     if exit_code <>. 0 then
00:00:15 verbose #381 > >         inl fsproj_text = fsproj_path |> file_system.read_all_text
00:00:15 verbose #382 > >         trace Critical
00:00:15 verbose #383 > >             fun () => "build_code"
00:00:15 verbose #384 > >             fun () => { code = code |> sm'.ellipsis_end 400; fsproj_text }
00:00:15 verbose #385 > >     exit_code
00:00:15 verbose #386 > 00:00:15   debug #14 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a408fec2406698cd36bb7d7fe2eee2d7380d3fc1884c8b7ba52e92643f41b84f/main.spi
00:00:16 verbose #387 > >
00:00:16 verbose #388 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:16 verbose #389 > > //// test
00:00:16 verbose #390 > > ///! rust -d encoding_rs encoding_rs_io regex
00:00:16 verbose #391 > >
00:00:16 verbose #392 > > build_code
00:00:16 verbose #393 > >     {
00:00:16 verbose #394 > >         workspace_root = file_system.get_workspace_root ()
00:00:16 verbose #395 > >         runtime = None
00:00:16 verbose #396 > >         packages = [[]]
00:00:16 verbose #397 > >         modules = [[]]
00:00:16 verbose #398 > >         output_dir = None
00:00:16 verbose #399 > >         name = "test1"
00:00:16 verbose #400 > >         code = "1 + 1 |> ignore"
00:00:16 verbose #401 > >     }
00:00:16 verbose #402 > > |> _assert_eq 0
00:00:16 verbose #403 > 00:00:15   debug #15 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/bd2ff64e6683c8654d0f0cc73107ffa53f158b70720005f1a1fbbcc16bc37d6a/main.spi
00:00:37 verbose #404 > >
00:00:37 verbose #405 > > ╭─[ 21.37s - return value ]────────────────────────────────────────────────────╮
00:00:37 verbose #406 > > │ 00:00:00 verbose #1 file_system.create_dir / { dir =                   │
00:00:37 verbose #407 > > │ c:\home\git\polyglot\target/spiral_builder\test1 }                           │
00:00:37 verbose #408 > > │ 00:00:00   debug #2 build_project / { full_path =                      │
00:00:37 verbose #409 > > │ \\?\C:\home\git\polyglot\target\spiral_builder\test1\test1.fsproj }          │
00:00:37 verbose #410 > > │ 00:00:00   debug #3 runtime.execute_with_options / { file_name =       │
00:00:37 verbose #411 > > │ dotnet; arguments = ["publish",                                              │
00:00:37 verbose #412 > > │ "c:/home/git/polyglot/target/spiral_builder/test1/test1.fsproj",             │
00:00:37 verbose #413 > > │ "--configuration", "Release", "--output", "dist", "--runtime", "win-x64"];   │
00:00:37 verbose #414 > > │ options = { command = dotnet publish                                         │
00:00:37 verbose #415 > > │ "c:/home/git/polyglot/target/spiral_builder/test1/test1.fsproj"              │
00:00:37 verbose #416 > > │ --configuration Release --output "dist" --runtime win-x64;                   │
00:00:37 verbose #417 > > │ cancellation_token = None; environment_variables = Array(MutCell([]));       │
00:00:37 verbose #418 > > │ on_line = None; stdin = None; trace = true; working_directory =              │
00:00:37 verbose #419 > > │ Some("\\?\C:\home\git\polyglot\target\spiral_builder\test1") } }             │
00:00:37 verbose #420 > > │ 00:00:00 verbose #4 > MSBuild version                                  │
00:00:37 verbose #421 > > │ 17.10.0-preview-24101-01+07fd5d51f for .NET                                  │
00:00:37 verbose #422 > > │ 00:00:00 verbose #5 >   Determining projects to restore...             │
00:00:37 verbose #423 > > │ 00:00:01 verbose #6 >   Restored                                       │
00:00:37 verbose #424 > > │ c:\home\git\polyglot\target\spiral_builder\test1\test1.fsproj (in 380 ms).   │
00:00:37 verbose #425 > > │ 00:00:01 verbose #7 >                                                  │
00:00:37 verbose #426 > > │ C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.2 │
00:00:37 verbose #427 > > │ 4101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInferen │
00:00:37 verbose #428 > > │ ce.targets(313,5): message NETSDK1057: You are using a preview version of    │
00:00:37 verbose #429 > > │ .NET. See: https://aka.ms/dotnet-support-policy [                            │
00:00:37 verbose #430 > > │ c:\home\git\polyglot\target\spiral_builder\test1\test1.fsproj]               │
00:00:37 verbose #431 > > │ 0...er/test1/test1.fsproj", "--configuration", "Release", "--output",        │
00:00:37 verbose #432 > > │ "dist", "--runtime", "linux-x64"]; options = { command = dotnet publish      │
00:00:37 verbose #433 > > │ "c:/home/git/polyglot/target/spiral_builder/test1/test1.fsproj"              │
00:00:37 verbose #434 > > │ --configuration Release --output "dist" --runtime linux-x64;                 │
00:00:37 verbose #435 > > │ cancellation_token = None; environment_variables = Array(MutCell([]));       │
00:00:37 verbose #436 > > │ on_line = None; stdin = None; trace = true; working_directory =              │
00:00:37 verbose #437 > > │ Some("\\?\C:\home\git\polyglot\target\spiral_builder\test1") } }             │
00:00:37 verbose #438 > > │ 00:00:05 verbose #12 > MSBuild version                                 │
00:00:37 verbose #439 > > │ 17.10.0-preview-24101-01+07fd5d51f for .NET                                  │
00:00:37 verbose #440 > > │ 00:00:06 verbose #13 >   Determining projects to restore...            │
00:00:37 verbose #441 > > │ 00:00:07 verbose #14 >   Restored                                      │
00:00:37 verbose #442 > > │ c:\home\git\polyglot\target\spiral_builder\test1\test1.fsproj (in 347 ms).   │
00:00:37 verbose #443 > > │ 00:00:07 verbose #15 >                                                 │
00:00:37 verbose #444 > > │ C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.2 │
00:00:37 verbose #445 > > │ 4101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInferen │
00:00:37 verbose #446 > > │ ce.targets(313,5): message NETSDK1057: You are using a preview version of    │
00:00:37 verbose #447 > > │ .NET. See: https://aka.ms/dotnet-support-policy [                            │
00:00:37 verbose #448 > > │ c:\home\git\polyglot\target\spiral_builder\test1\test1.fsproj]               │
00:00:37 verbose #449 > > │ 00:00:08 verbose #16 >   test1 ->                                      │
00:00:37 verbose #450 > > │ c:\home\git\polyglot\target\spiral_builder\test1\bin\Release\net9.0\linux-x6 │
00:00:37 verbose #451 > > │ 4\test1.dll                                                                  │
00:00:37 verbose #452 > > │ 00:00:09 verbose #17 >   test1 ->                                      │
00:00:37 verbose #453 > > │ \\?\C:\home\git\polyglot\target\spiral_builder\test1\dist\                   │
00:00:37 verbose #454 > > │ 00:00:09 verbose #18 runtime.execute_with_options / result / {         │
00:00:37 verbose #455 > > │ exit_code = 0; std_trace_length = 689 }                                      │
00:00:37 verbose #456 > > │ assert_eq / actual: 0 / expected: 0                                          │
00:00:37 verbose #457 > > │                                                                              │
00:00:37 verbose #458 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:37 verbose #459 > >
00:00:37 verbose #460 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:37 verbose #461 > > //// test
00:00:37 verbose #462 > > ///! rust -d encoding_rs encoding_rs_io regex
00:00:37 verbose #463 > >
00:00:37 verbose #464 > > build_code
00:00:37 verbose #465 > >     {
00:00:37 verbose #466 > >         workspace_root = file_system.get_workspace_root ()
00:00:37 verbose #467 > >         runtime = None
00:00:37 verbose #468 > >         packages = [[]]
00:00:37 verbose #469 > >         modules = [[]]
00:00:37 verbose #470 > >         output_dir = None
00:00:37 verbose #471 > >         name = "test2"
00:00:37 verbose #472 > >         code = "1 + a |> ignore"
00:00:37 verbose #473 > >     }
00:00:37 verbose #474 > > |> _assert_eq 2
00:00:37 verbose #475 > 00:00:36   debug #16 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c6b6a639cfdf11777066462ced01b0bd884ded3a8a4eb1120c577d95ee4d9310/main.spi
00:00:52 verbose #476 > >
00:00:52 verbose #477 > > ╭─[ 14.85s - return value ]────────────────────────────────────────────────────╮
00:00:52 verbose #478 > > │ 00:00:00 verbose #1 file_system.create_dir / { dir =                   │
00:00:52 verbose #479 > > │ c:\home\git\polyglot\target/spiral_builder\test2 }                           │
00:00:52 verbose #480 > > │ 00:00:00   debug #2 build_project / { full_path =                      │
00:00:52 verbose #481 > > │ \\?\C:\home\git\polyglot\target\spiral_builder\test2\test2.fsproj }          │
00:00:52 verbose #482 > > │ 00:00:00   debug #3 runtime.execute_with_options / { file_name =       │
00:00:52 verbose #483 > > │ dotnet; arguments = ["publish",                                              │
00:00:52 verbose #484 > > │ "c:/home/git/polyglot/target/spiral_builder/test2/test2.fsproj",             │
00:00:52 verbose #485 > > │ "--configuration", "Release", "--output", "dist", "--runtime", "win-x64"];   │
00:00:52 verbose #486 > > │ options = { command = dotnet publish                                         │
00:00:52 verbose #487 > > │ "c:/home/git/polyglot/target/spiral_builder/test2/test2.fsproj"              │
00:00:52 verbose #488 > > │ --configuration Release --output "dist" --runtime win-x64;                   │
00:00:52 verbose #489 > > │ cancellation_token = None; environment_variables = Array(MutCell([]));       │
00:00:52 verbose #490 > > │ on_line = None; stdin = None; trace = true; working_directory =              │
00:00:52 verbose #491 > > │ Some("\\?\C:\home\git\polyglot\target\spiral_builder\test2") } }             │
00:00:52 verbose #492 > > │ 00:00:00 verbose #4 > MSBuild version                                  │
00:00:52 verbose #493 > > │ 17.10.0-preview-24101-01+07fd5d51f for .NET                                  │
00:00:52 verbose #494 > > │ 00:00:00 verbose #5 >   Determining projects to restore...             │
00:00:52 verbose #495 > > │ 00:00:01 verbose #6 >   Restored                                       │
00:00:52 verbose #496 > > │ c:\home\git\polyglot\target\spiral_builder\test2\test2.fsproj (in 365 ms).   │
00:00:52 verbose #497 > > │ 00:00:01 verbose #7 >                                                  │
00:00:52 verbose #498 > > │ C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.2 │
00:00:52 verbose #499 > > │ 4101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInferen │
00:00:52 verbose #500 > > │ ce.targets(313,5): message NETSDK1057: You are using a preview version of    │
00:00:52 verbose #501 > > │ .NET. See: https://aka.ms/dotnet-support-policy [                            │
00:00:52 verbose #502 > > │ c:\home\git\polyglot\target\spiral_builder\test2\test2.fsproj]               │
00:00:52 verbose #503 > > │ 0... The value or constructor 'a' is not defined. [                          │
00:00:52 verbose #504 > > │ c:\home\git\polyglot\target\spiral_builder\test2\test2.fsproj]               │
00:00:52 verbose #505 > > │ 00:00:06 verbose #16 runtime.execute_with_options / result / {         │
00:00:52 verbose #506 > > │ exit_code = 1; std_trace_length = 707 }                                      │
00:00:52 verbose #507 > > │ 00:00:06 critical #17 build_code / { code = 1 + a |> ignore;           │
00:00:52 verbose #508 > > │ fsproj_text = <Project Sdk="Microsoft.NET.Sdk">                              │
00:00:52 verbose #509 > > │ <PropertyGroup>                                                              │
00:00:52 verbose #510 > > │     <TargetFramework>net9.0</TargetFramework>                                │
00:00:52 verbose #511 > > │     <LangVersion>preview</LangVersion>                                       │
00:00:52 verbose #512 > > │     <RollForward>Major</RollForward>                                         │
00:00:52 verbose #513 > > │     <TargetLatestRuntimePatch>true</TargetLatestRuntimePatch>                │
00:00:52 verbose #514 > > │     <PublishAot>false</PublishAot>                                           │
00:00:52 verbose #515 > > │     <PublishTrimmed>false</PublishTrimmed>                                   │
00:00:52 verbose #516 > > │     <PublishSingleFile>true</PublishSingleFile>                              │
00:00:52 verbose #517 > > │     <SelfContained>true</SelfContained>                                      │
00:00:52 verbose #518 > > │     <Version>0.0.1-alpha.1</Version>                                         │
00:00:52 verbose #519 > > │     <OutputType>Exe</OutputType>                                             │
00:00:52 verbose #520 > > │ </PropertyGroup>                                                             │
00:00:52 verbose #521 > > │ <PropertyGroup Condition="$([MSBuild]::IsOSPlatform('FreeBSD'))">            │
00:00:52 verbose #522 > > │     <DefineConstants>_FREEBSD</DefineConstants>                              │
00:00:52 verbose #523 > > │ </PropertyGroup>                                                             │
00:00:52 verbose #524 > > │ <PropertyGroup Condition="$([MSBuild]::IsOSPlatform('Linux'))">              │
00:00:52 verbose #525 > > │     <DefineConstants>_LINUX</DefineConstants>                                │
00:00:52 verbose #526 > > │ </PropertyGroup>                                                             │
00:00:52 verbose #527 > > │ <PropertyGroup Condition="$([MSBuild]::IsOSPlatform('OSX'))">                │
00:00:52 verbose #528 > > │     <DefineConstants>_OSX</DefineConstants>                                  │
00:00:52 verbose #529 > > │ </PropertyGroup>                                                             │
00:00:52 verbose #530 > > │ <PropertyGroup Condition="$([MSBuild]::IsOSPlatform('Windows'))">            │
00:00:52 verbose #531 > > │     <DefineConstants>_WINDOWS</DefineConstants>                              │
00:00:52 verbose #532 > > │ </PropertyGroup>                                                             │
00:00:52 verbose #533 > > │ <ItemGroup>                                                                  │
00:00:52 verbose #534 > > │                                                                              │
00:00:52 verbose #535 > > │     <Compile                                                                 │
00:00:52 verbose #536 > > │ Include="c:/home/git/polyglot/target/spiral_builder/test2/test2.fs" />       │
00:00:52 verbose #537 > > │ </ItemGroup>                                                                 │
00:00:52 verbose #538 > > │ <ItemGroup>                                                                  │
00:00:52 verbose #539 > > │                                                                              │
00:00:52 verbose #540 > > │ </ItemGroup>                                                                 │
00:00:52 verbose #541 > > │ </Project> }                                                                 │
00:00:52 verbose #542 > > │ assert_eq / actual: 2 / expected: 2                                          │
00:00:52 verbose #543 > > │                                                                              │
00:00:52 verbose #544 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:52 verbose #545 > >
00:00:52 verbose #546 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:52 verbose #547 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:52 verbose #548 > > │ ### read_file                                                                │
00:00:52 verbose #549 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:52 verbose #550 > >
00:00:52 verbose #551 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:52 verbose #552 > > inl read_file path =
00:00:52 verbose #553 > >     inl code =
00:00:52 verbose #554 > >         path
00:00:52 verbose #555 > >         |> file_system.read_all_text
00:00:52 verbose #556 > >         |> sm'.replace_regex $'@@"(?P<a> *)(?P<b>let\\s+main\\s+.*?\\s*=)"'
00:00:52 verbose #557 > > "$a[[<EntryPoint>]]\n$a$b"
00:00:52 verbose #558 > >
00:00:52 verbose #559 > >     inl code_trim = code |> sm'.trim_end [[]]
00:00:52 verbose #560 > >     if code_trim |> sm'.ends_with "\\n()"
00:00:52 verbose #561 > >     then code_trim |> sm'.slice 0i64 ((code_trim |> sm'.length) - 3)
00:00:52 verbose #562 > >     else code
00:00:52 verbose #563 > 00:00:51   debug #17 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/776aefb858b0488c1585c4dc0a4acff154aafdf58465f248473d4af42a7073be/main.spi
00:00:52 verbose #564 > >
00:00:52 verbose #565 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:52 verbose #566 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:52 verbose #567 > > │ ### persist_file                                                             │
00:00:52 verbose #568 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:52 verbose #569 > >
00:00:52 verbose #570 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:52 verbose #571 > > inl persist_file { workspace_root package_dir packages modules path } =
00:00:52 verbose #572 > >     inl full_path = path |> file_system.get_full_path
00:00:52 verbose #573 > >     inl name = full_path |> file_system.get_file_name_without_extension
00:00:52 verbose #574 > >     inl code = full_path |> read_file
00:00:52 verbose #575 > >     persist_code_project { workspace_root package_dir packages modules name code
00:00:52 verbose #576 > > }
00:00:52 verbose #577 > 00:00:52   debug #18 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7e479a36fc5c9f7d07de1efa601ea96859fe0f11e4df779110b56a31259f930c/main.spi
00:00:53 verbose #578 > >
00:00:53 verbose #579 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:53 verbose #580 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:53 verbose #581 > > │ ### build_file                                                               │
00:00:53 verbose #582 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:53 verbose #583 > >
00:00:53 verbose #584 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:53 verbose #585 > > inl build_file { workspace_root runtime packages modules path } =
00:00:53 verbose #586 > >     inl full_path = path |> file_system.get_full_path
00:00:53 verbose #587 > >     inl dir = full_path |> file_system.get_directory_name
00:00:53 verbose #588 > >     build_code
00:00:53 verbose #589 > >         {
00:00:53 verbose #590 > >             workspace_root
00:00:53 verbose #591 > >             runtime
00:00:53 verbose #592 > >             packages
00:00:53 verbose #593 > >             modules
00:00:53 verbose #594 > >             output_dir = dir </> "dist" |> Some
00:00:53 verbose #595 > >             name = full_path |> file_system.get_file_name_without_extension
00:00:53 verbose #596 > >             code = full_path |> read_file
00:00:53 verbose #597 > >         }
00:00:53 verbose #598 > 00:00:52   debug #19 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d37eea9337c11fe2c079f09491bd5f5869da2bc2f786cdebd10f5b86b29a3ba4/main.spi
00:00:53 verbose #599 > >
00:00:53 verbose #600 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:53 verbose #601 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:53 verbose #602 > > │ ## rust                                                                      │
00:00:53 verbose #603 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:53 verbose #604 > >
00:00:53 verbose #605 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:53 verbose #606 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:53 verbose #607 > > │ ### get_workspace_cargo_toml_content                                         │
00:00:53 verbose #608 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:53 verbose #609 > >
00:00:53 verbose #610 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:53 verbose #611 > > inl get_workspace_cargo_toml_content { workspace_root } : string =
00:00:53 verbose #612 > >     inl workspace_root = workspace_root |> file_system.normalize_path
00:00:53 verbose #613 > >     $'$"[[workspace]]"'
00:00:53 verbose #614 > >     +#. $'$"resolver = \\\"2\\\""'
00:00:53 verbose #615 > >     +#. $'$"members = [[\\\"packages/Rust/*\\\"]]"'
00:00:53 verbose #616 > >     +#. $'$""'
00:00:53 verbose #617 > >     +#. $'$"[[workspace.dependencies.fable_library_rust]]"'
00:00:53 verbose #618 > >     +#. $'$"path =
00:00:53 verbose #619 > > \\\"{!workspace_root}/lib/rust/fable/fable_modules/fable-library-rust\\\""'
00:00:53 verbose #620 > >     +#. $'$"default-features = false"'
00:00:53 verbose #621 > >     +#. $'$"features = [[\\\"static_do_bindings\\\", \\\"datetime\\\",
00:00:53 verbose #622 > > \\\"guid\\\", \\\"threaded\\\"]]"'
00:00:53 verbose #623 > >     +#. $'$""'
00:00:53 verbose #624 > >     +#. $'$"[[workspace.dependencies]]"'
00:00:53 verbose #625 > >     +#. $'$"inline_colorization = \\\"~0.1\\\""'
00:00:53 verbose #626 > 00:00:52   debug #20 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2b118d4276f23b10be12fc4e38bcfc2b60a1a148b88010d531f3fb2ae070f023/main.spi
00:00:53 verbose #627 > >
00:00:53 verbose #628 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:53 verbose #629 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:53 verbose #630 > > │ ### get_cargo_toml_content                                                   │
00:00:53 verbose #631 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:53 verbose #632 > >
00:00:53 verbose #633 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:53 verbose #634 > > inl get_cargo_toml_content { hash_hex deps } : string =
00:00:53 verbose #635 > >     $'$"[[package]]"'
00:00:53 verbose #636 > >     +#. $'$"name = \\\"spiral_builder_{!hash_hex}\\\""'
00:00:53 verbose #637 > >     +#. $'$"version = \\\"0.0.1\\\""'
00:00:53 verbose #638 > >     +#. $'$"edition = \\\"2021\\\""'
00:00:53 verbose #639 > >     +#. $'$""'
00:00:53 verbose #640 > >     +#. $'$"[[dependencies]]"'
00:00:53 verbose #641 > >     +#. $'$"fable_library_rust = {{ workspace = true }}"'
00:00:53 verbose #642 > >     +#. $'$"inline_colorization = {{ workspace = true }}"'
00:00:53 verbose #643 > >     +#. $'$"{!deps}"'
00:00:53 verbose #644 > >     +#. $'$""'
00:00:53 verbose #645 > >     +#. $'$"[[[[bin]]]]"'
00:00:53 verbose #646 > >     +#. $'$"name = \\\"spiral_builder_{!hash_hex}\\\""'
00:00:53 verbose #647 > >     +#. $'$"path = \\\"spiral_builder.rs\\\" "'
00:00:54 verbose #648 > 00:00:53   debug #21 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8dfe745eadd8021ea00af5087c77ef3ee691459d8a6e2d9d20efa972a8010568/main.spi
00:00:54 verbose #649 > >
00:00:54 verbose #650 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:54 verbose #651 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:54 verbose #652 > > │ ### get_empty_cargo_toml_content                                             │
00:00:54 verbose #653 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:54 verbose #654 > >
00:00:54 verbose #655 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:54 verbose #656 > > inl get_empty_cargo_toml_content () =
00:00:54 verbose #657 > >     inl guid = date_time.now () |> date_time.new_guid_from_date_time |>
00:00:54 verbose #658 > > sm'.obj_to_string
00:00:54 verbose #659 > >     $'$"[[package]]"'
00:00:54 verbose #660 > >     +#. $'$"name = \\\"spiral_builder_{!guid}\\\""'
00:00:54 verbose #661 > >     +#. $'$"version = \\\"0.0.1\\\""'
00:00:54 verbose #662 > >     +#. $'$"edition = \\\"2021\\\""'
00:00:54 verbose #663 > >     +#. $'$""'
00:00:54 verbose #664 > >     +#. $'$"[[[[bin]]]]"'
00:00:54 verbose #665 > >     +#. $'$"name = \\\"spiral_builder_{!guid}\\\""'
00:00:54 verbose #666 > >     +#. $'$"path = \\\"spiral_builder.rs\\\""'
00:00:54 verbose #667 > 00:00:53   debug #22 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fb0e6eaf0c926ba47c82e82893d430d064ea25d96f1d569ce7a164da2680fe40/main.spi
00:00:54 verbose #668 > >
00:00:54 verbose #669 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:54 verbose #670 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:54 verbose #671 > > │ ### process_rust                                                             │
00:00:54 verbose #672 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:54 verbose #673 > >
00:00:54 verbose #674 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:54 verbose #675 > > inl process_rust { fs_path deps trace_level } =
00:00:54 verbose #676 > >     inl is_trace = trace_level = Verbose
00:00:54 verbose #677 > >     inl _trace (fn : () -> string) =
00:00:54 verbose #678 > >         if is_trace
00:00:54 verbose #679 > >         then trace Info (fun () => $'$"spiral_builder.process_rust / {!fn ()}"')
00:00:54 verbose #680 > > id
00:00:54 verbose #681 > >         else fn () |> console.write_line
00:00:54 verbose #682 > >
00:00:54 verbose #683 > >     inl extension = "rs"
00:00:54 verbose #684 > >     inl code = fs_path |> file_system.read_all_text
00:00:54 verbose #685 > >
00:00:54 verbose #686 > >     inl hash_hex = (extension, code) |> sm'.format_debug |> crypto.hash_text
00:00:54 verbose #687 > >
00:00:54 verbose #688 > >     inl workspace_name = "spiral_builder"
00:00:54 verbose #689 > >
00:00:54 verbose #690 > >     inl workspace_root_external = file_system.get_workspace_root_external ()
00:00:54 verbose #691 > >     inl workspace_root = workspace_root_external |> resultm.box |>
00:00:54 verbose #692 > > resultm.unwrap_or_else id
00:00:54 verbose #693 > >
00:00:54 verbose #694 > >     inl package_dir =
00:00:54 verbose #695 > >         get_package_dir { workspace_root name = workspace_name; target = Some
00:00:54 verbose #696 > > Rust; hash = Some hash_hex }
00:00:54 verbose #697 > >
00:00:54 verbose #698 > >     inl fsproj_path =
00:00:54 verbose #699 > >         persist_code_project
00:00:54 verbose #700 > >             {
00:00:54 verbose #701 > >                 workspace_root
00:00:54 verbose #702 > >                 package_dir
00:00:54 verbose #703 > >                 packages = [[ "Fable.Core" ]]
00:00:54 verbose #704 > >                 modules = [[]]
00:00:54 verbose #705 > >                 name = workspace_name
00:00:54 verbose #706 > >                 code
00:00:54 verbose #707 > >             }
00:00:54 verbose #708 > >
00:00:54 verbose #709 > >     inl workspace_dir = package_dir </> "../../.."
00:00:54 verbose #710 > >     inl workspace_cargo_toml_path = workspace_dir </> "Cargo.toml"
00:00:54 verbose #711 > >
00:00:54 verbose #712 > >     if workspace_cargo_toml_path |> file_system.file_exists |> not
00:00:54 verbose #713 > >     then get_empty_cargo_toml_content () |> file_system.write_all_text
00:00:54 verbose #714 > > workspace_cargo_toml_path
00:00:54 verbose #715 > >
00:00:54 verbose #716 > >     inl cargo_toml_path = package_dir </> "Cargo.toml"
00:00:54 verbose #717 > >
00:00:54 verbose #718 > >     if cargo_toml_path |> file_system.file_exists |> not
00:00:54 verbose #719 > >     then get_empty_cargo_toml_content () |> file_system.write_all_text
00:00:54 verbose #720 > > cargo_toml_path
00:00:54 verbose #721 > >
00:00:54 verbose #722 > >     inl lib_link_target_path = workspace_root </>
00:00:54 verbose #723 > > "lib/rust/fable/fable_modules/fable-library-rust"
00:00:54 verbose #724 > >     inl lib_link_path = package_dir </> "fable_modules/fable-library-rust"
00:00:54 verbose #725 > >
00:00:54 verbose #726 > >     lib_link_path |> file_system.link_directory lib_link_target_path
00:00:54 verbose #727 > >
00:00:54 verbose #728 > >     inl exit_code, dotnet_fable_result =
00:00:54 verbose #729 > >         execute_dotnet_fable { workspace_root_external fsproj_path extension
00:00:54 verbose #730 > > package_dir }
00:00:54 verbose #731 > >
00:00:54 verbose #732 > >     if exit_code <>. 0 then
00:00:54 verbose #733 > >         trace Critical
00:00:54 verbose #734 > >             fun () => "spiral_builder.process_rust / dotnet fable error"
00:00:54 verbose #735 > >             fun () => { exit_code dotnet_fable_result }
00:00:54 verbose #736 > >         { extension = Some extension; code = None; output = Some
00:00:54 verbose #737 > > dotnet_fable_result }
00:00:54 verbose #738 > >     else
00:00:54 verbose #739 > >         inl deps =
00:00:54 verbose #740 > >             deps
00:00:54 verbose #741 > >             |> am'.vec_map fun dep =>
00:00:54 verbose #742 > >                 inl dep = dep |> sm'.from_std_string
00:00:54 verbose #743 > >                 if dep |> sm'.contains "="
00:00:54 verbose #744 > >                 then dep
00:00:54 verbose #745 > >                 elif dep |> sm'.ends_with "]]"
00:00:54 verbose #746 > >                 then dep |> sm'.replace "[[" $'$"={{version=\'*\',features=[["'
00:00:54 verbose #747 > > |> fun x => $'$"{!x}}}"'
00:00:54 verbose #748 > >                 else $'$"{!dep}=\'*\'"'
00:00:54 verbose #749 > >             |> am'.from_vec
00:00:54 verbose #750 > >             |> fun x => x : _ i32 _
00:00:54 verbose #751 > >             |> seq.of_array'
00:00:54 verbose #752 > >             |> sm'.concat "\n"
00:00:54 verbose #753 > >
00:00:54 verbose #754 > >         inl cargo_toml_content = get_cargo_toml_content { hash_hex deps }
00:00:54 verbose #755 > >         inl workspace_cargo_toml_content = get_workspace_cargo_toml_content {
00:00:54 verbose #756 > > workspace_root }
00:00:54 verbose #757 > >
00:00:54 verbose #758 > >         cargo_toml_content |> file_system.write_all_text_exists cargo_toml_path
00:00:54 verbose #759 > >
00:00:54 verbose #760 > >         workspace_cargo_toml_content |> file_system.write_all_text_exists
00:00:54 verbose #761 > > workspace_cargo_toml_path
00:00:54 verbose #762 > >
00:00:54 verbose #763 > >         inl range_rs_path = lib_link_path </> "src/Range.rs"
00:00:54 verbose #764 > >         if range_rs_path |> file_system.file_exists then
00:00:54 verbose #765 > >             inl text = range_rs_path |> file_system.read_all_text
00:00:54 verbose #766 > >             text
00:00:54 verbose #767 > >             |> sm'.replace "use crate::String_::fromCharCode;" "use
00:00:54 verbose #768 > > crate::String_::fromChar;"
00:00:54 verbose #769 > >             |> sm'.replace "fromCharCode(c)" "std::char::from_u32(c).unwrap()"
00:00:54 verbose #770 > >             |> file_system.write_all_text_exists range_rs_path
00:00:54 verbose #771 > >
00:00:54 verbose #772 > >         inl exit_code, cargo_fmt_result =
00:00:54 verbose #773 > >             fun () =>
00:00:54 verbose #774 > >                 inl exit_code, result =
00:00:54 verbose #775 > >                     runtime.execution_options fun x => { x with
00:00:54 verbose #776 > >                         command = $'$"cargo fmt --manifest-path
00:00:54 verbose #777 > > \\\"{!cargo_toml_path}\\\" --"'
00:00:54 verbose #778 > >                         working_directory = workspace_root_external |>
00:00:54 verbose #779 > > resultm.box |> resultm.ok'
00:00:54 verbose #780 > >                     }
00:00:54 verbose #781 > >                     |> runtime.execute_with_options
00:00:54 verbose #782 > >
00:00:54 verbose #783 > >                 inl return () =
00:00:54 verbose #784 > >                     if exit_code = 0
00:00:54 verbose #785 > >                     then Ok (exit_code, result)
00:00:54 verbose #786 > >                     else Error (exit_code, result)
00:00:54 verbose #787 > >
00:00:54 verbose #788 > >                 if result |> sm'.contains "failed to load manifest for workspace
00:00:54 verbose #789 > > member" |> not
00:00:54 verbose #790 > >                 then return ()
00:00:54 verbose #791 > >                 else
00:00:54 verbose #792 > >                     inl missing_toml_path =
00:00:54 verbose #793 > >                         "failed to read `(?<a>.*?Cargo.toml)`"
00:00:54 verbose #794 > >                         |> sm'.new_regex
00:00:54 verbose #795 > >                         |> resultm.unwrap'
00:00:54 verbose #796 > >                         |> sm'.regex_captures result
00:00:54 verbose #797 > >                         |> am'.from_vec
00:00:54 verbose #798 > >                         |> fun x => x : _ i32 _
00:00:54 verbose #799 > >                         |> am'.try_item 0
00:00:54 verbose #800 > >                         |> optionm.map (mapm.get "a" >> optionm'.unbox)
00:00:54 verbose #801 > >                         |> optionm'.flatten
00:00:54 verbose #802 > >
00:00:54 verbose #803 > >                     match missing_toml_path with
00:00:54 verbose #804 > >                     | None => Error (exit_code, result)
00:00:54 verbose #805 > >                     | Some missing_toml_path =>
00:00:54 verbose #806 > >                         if missing_toml_path |> file_system.file_exists |> not
00:00:54 verbose #807 > > then
00:00:54 verbose #808 > >                             missing_toml_path
00:00:54 verbose #809 > >                             |> file_system.get_directory_name
00:00:54 verbose #810 > >                             |> file_system.create_dir
00:00:54 verbose #811 > >                             |> ignore
00:00:54 verbose #812 > >
00:00:54 verbose #813 > >                             get_empty_cargo_toml_content ()
00:00:54 verbose #814 > >                             |> file_system.write_all_text missing_toml_path
00:00:54 verbose #815 > >                         return ()
00:00:54 verbose #816 > >             |> retry_fn' 3u8
00:00:54 verbose #817 > >
00:00:54 verbose #818 > >         if exit_code <>. 0 then
00:00:54 verbose #819 > >             trace Critical
00:00:54 verbose #820 > >                 fun () => "spiral_builder.process_rust / cargo fmt error"
00:00:54 verbose #821 > >                 fun () => { exit_code cargo_fmt_result }
00:00:54 verbose #822 > >
00:00:54 verbose #823 > >         inl new_code_path = package_dir </> $'$"{!workspace_name}.{!extension}"'
00:00:54 verbose #824 > >         inl new_code = new_code_path |> file_system.read_all_text
00:00:54 verbose #825 > >
00:00:54 verbose #826 > >         inl main_code_header =
00:00:54 verbose #827 > >             "pub fn main() -> Result<(), String> " +. !\($'"\\\"{\\\".into()"')
00:00:54 verbose #828 > >         inl main_code = $'$"{!main_code_header} Ok(()) }}"' : string
00:00:54 verbose #829 > >
00:00:54 verbose #830 > >         inl cached = new_code |> sm'.contains main_code_header
00:00:54 verbose #831 > >
00:00:54 verbose #832 > >         inl new_code =
00:00:54 verbose #833 > >             if cached
00:00:54 verbose #834 > >             then new_code
00:00:54 verbose #835 > >             else
00:00:54 verbose #836 > >                 new_code
00:00:54 verbose #837 > >                 |> sm'.replace
00:00:54 verbose #838 > >                     ("),)" +. !\($'"\\\";\\\".into()"'))
00:00:54 verbose #839 > >                     "));"
00:00:54 verbose #840 > >                 |> sm'.replace
00:00:54 verbose #841 > >                     ("},)" +. !\($'"\\\";\\\".into()"'))
00:00:54 verbose #842 > >                     "});"
00:00:54 verbose #843 > >                 |> sm'.replace_regex
00:00:54 verbose #844 > >                     "\\s\\sdefaultOf\\(\\);"
00:00:54 verbose #845 > >                     " defaultOf::<()>();"
00:00:54 verbose #846 > >                 |> sm'.replace
00:00:54 verbose #847 > >                     "::Slice'_"
00:00:54 verbose #848 > >                     "::Slice__"
00:00:54 verbose #849 > >                 |> sm'.replace
00:00:54 verbose #850 > >                     ("defaultOf()" +. !\($'"\\\",\\\".into()"'))
00:00:54 verbose #851 > >                     "defaultOf::<std::sync::Arc<dyn IDisposable>>(),"
00:00:54 verbose #852 > >                 |> sm'.replace
00:00:54 verbose #853 > >                     ("_self" +. !\($'"\\\"_.\\\".into()"'))
00:00:54 verbose #854 > >                     "self."
00:00:54 verbose #855 > >                 |> sm'.replace
00:00:54 verbose #856 > >                     ("get_or_insert_wit" +. !\($'"\\\"h\\\".into()"'))
00:00:54 verbose #857 > >                     "get_or_init"
00:00:54 verbose #858 > >                 |> sm'.replace
00:00:54 verbose #859 > >                     ("use
00:00:54 verbose #860 > > fable_library_rust::System::Collections::Concurrent::ConcurrentStack_1" +.
00:00:54 verbose #861 > > !\($'"\\\";\\\".into()"'))
00:00:54 verbose #862 > >                     "type ConcurrentStack_1<T> = T;"
00:00:54 verbose #863 > >                 |> sm'.replace
00:00:54 verbose #864 > >                     ("use
00:00:54 verbose #865 > > fable_library_rust::System::Threading::CancellationToken" +.
00:00:54 verbose #866 > > !\($'"\\\";\\\".into()"'))
00:00:54 verbose #867 > >                     "type CancellationToken = ();"
00:00:54 verbose #868 > >                 |> sm'.replace
00:00:54 verbose #869 > >                     ("use fable_library_rust::System::TimeZoneInfo" +.
00:00:54 verbose #870 > > !\($'"\\\";\\\".into()"'))
00:00:54 verbose #871 > >                     "type TimeZoneInfo = i64;"
00:00:54 verbose #872 > >                 |> sm'.replace
00:00:54 verbose #873 > >                     ("use
00:00:54 verbose #874 > > fable_library_rust::System::Threading::Tasks::TaskCanceledException" +.
00:00:54 verbose #875 > > !\($'"\\\";\\\".into()"'))
00:00:54 verbose #876 > >                     "type TaskCanceledException = ();"
00:00:54 verbose #877 > >
00:00:54 verbose #878 > >         if not cached
00:00:54 verbose #879 > >         then
00:00:54 verbose #880 > >             $'$"{!new_code}\\n\\n{!main_code}\\n"'
00:00:54 verbose #881 > >             |> file_system.write_all_text_exists new_code_path
00:00:54 verbose #882 > >
00:00:54 verbose #883 > >         inl command = $'$"cargo +nightly run --manifest-path
00:00:54 verbose #884 > > \\\"{!cargo_toml_path}\\\""'
00:00:54 verbose #885 > >         inl environment_variables =
00:00:54 verbose #886 > >             inl fast = false
00:00:54 verbose #887 > >             ;[[
00:00:54 verbose #888 > >                 "TRACE_LEVEL", "Verbose"
00:00:54 verbose #889 > >                 "RUSTC_WRAPPER", "sccache"
00:00:54 verbose #890 > >                 "RUSTFLAGS",
00:00:54 verbose #891 > >                 if fast
00:00:54 verbose #892 > >                 then "-C prefer-dynamic -C strip=symbols -C link-arg=-s -C
00:00:54 verbose #893 > > debuginfo=0"
00:00:54 verbose #894 > >                 else "-C prefer-dynamic"
00:00:54 verbose #895 > >             ]]
00:00:54 verbose #896 > >         inl exit_code, cargo_run_result =
00:00:54 verbose #897 > >             runtime.execution_options fun x => { x with
00:00:54 verbose #898 > >                 command
00:00:54 verbose #899 > >                 environment_variables
00:00:54 verbose #900 > >                 working_directory = workspace_root_external |> resultm.box |>
00:00:54 verbose #901 > > resultm.ok'
00:00:54 verbose #902 > >             }
00:00:54 verbose #903 > >             |> runtime.execute_with_options
00:00:54 verbose #904 > >
00:00:54 verbose #905 > >         inl cleanup =
00:00:54 verbose #906 > >             [[ ".d"; ".exe"; ".pdb"; "" ]]
00:00:54 verbose #907 > >             |> listm.map fun ext => workspace_dir </>
00:00:54 verbose #908 > > $'$"target/debug/spiral_builder_{!hash_hex}{!ext}"'
00:00:54 verbose #909 > >             |> listm.map fun path => path, path |> file_system.file_exists
00:00:54 verbose #910 > >
00:00:54 verbose #911 > >         trace Verbose
00:00:54 verbose #912 > >             fun () => "spiral_builder.process_rust"
00:00:54 verbose #913 > >             fun () => { new_code_path cleanup }
00:00:54 verbose #914 > >
00:00:54 verbose #915 > >         cleanup
00:00:54 verbose #916 > >         |> listm'.filter snd
00:00:54 verbose #917 > >         |> listm.iter (fst >> file_system.file_delete)
00:00:54 verbose #918 > >
00:00:54 verbose #919 > >         inl external_command =
00:00:54 verbose #920 > >             inl vars =
00:00:54 verbose #921 > >                 a environment_variables
00:00:54 verbose #922 > >                 |> am.map fun k, v => $'$"$env:{!k}=\'\'{!v}\'\'"' : string
00:00:54 verbose #923 > >                 |> fun x => x : _ i32 _
00:00:54 verbose #924 > >                 |> seq.of_array
00:00:54 verbose #925 > >                 |> sm'.concat ";"
00:00:54 verbose #926 > >             $'$"pwsh -c \'{!vars}; {!command}\'"' : string
00:00:54 verbose #927 > >         if exit_code = 0 then
00:00:54 verbose #928 > >             inl output =
00:00:54 verbose #929 > >                 try
00:00:54 verbose #930 > >                     fun () =>
00:00:54 verbose #931 > >                         cargo_run_result
00:00:54 verbose #932 > >                         |> sm'.split "\n"
00:00:54 verbose #933 > >                         |> fun x => a x : _ i32 _
00:00:54 verbose #934 > >                         |> am'.skip_while fun line =>
00:00:54 verbose #935 > >                             (line |> sm'.contains "profile [[optimized]] target"
00:00:54 verbose #936 > > |> not)
00:00:54 verbose #937 > >                                 && (line |> sm'.contains "profile
00:00:54 verbose #938 > > [[unoptimized]] target" |> not)
00:00:54 verbose #939 > >                                 && (line |> sm'.contains "profile [[unoptimized
00:00:54 verbose #940 > > + debuginfo]] target" |> not)
00:00:54 verbose #941 > >                         |> am'.skip 2
00:00:54 verbose #942 > >                         |> seq.of_array
00:00:54 verbose #943 > >                         |> sm'.concat "\n"
00:00:54 verbose #944 > >                     fun ex =>
00:00:54 verbose #945 > >                         trace Critical
00:00:54 verbose #946 > >                             fun () => "spiral_builder.process_rust / Exception"
00:00:54 verbose #947 > >                             fun () => { ex cargo_run_result new_code_path
00:00:54 verbose #948 > > external_command }
00:00:54 verbose #949 > >                         None
00:00:54 verbose #950 > >                 |> optionm'.box
00:00:54 verbose #951 > >                 |> optionm'.unwrap
00:00:54 verbose #952 > >
00:00:54 verbose #953 > >             { extension = Some extension; code = Some new_code; output = Some
00:00:54 verbose #954 > > output }
00:00:54 verbose #955 > >         else
00:00:54 verbose #956 > >             trace Critical
00:00:54 verbose #957 > >                 fun () => "spiral_builder.process_rust / error"
00:00:54 verbose #958 > >                 fun () => { exit_code cargo_run_result new_code_path
00:00:54 verbose #959 > > external_command }
00:00:54 verbose #960 > >             { extension = Some extension; code = None; output = None }
00:00:54 verbose #961 > 00:00:54   debug #23 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/00e497b1525b2307f9761b07fc52fe6131be9b3287e93e646fa0ff361a705e3c/main.spi
00:00:55 verbose #962 > >
00:00:55 verbose #963 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:55 verbose #964 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:55 verbose #965 > > │ ## dib                                                                       │
00:00:55 verbose #966 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:55 verbose #967 > >
00:00:55 verbose #968 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:55 verbose #969 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:55 verbose #970 > > │ ### process_dib                                                              │
00:00:55 verbose #971 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:55 verbose #972 > >
00:00:55 verbose #973 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:55 verbose #974 > > inl process_dib { path retries working_directory } =
00:00:55 verbose #975 > >     inl exit_code, repl_result =
00:00:55 verbose #976 > >         let rec loop retry =
00:00:55 verbose #977 > >             inl exit_code, repl_result =
00:00:55 verbose #978 > >                 runtime.execution_options fun x => { x with
00:00:55 verbose #979 > >                     command = $'$"dotnet repl --exit-after-run --run
00:00:55 verbose #980 > > \\\"{!path}\\\" --output-path \\\"{!path}.ipynb\\\""'
00:00:55 verbose #981 > >                     environment_variables = ;[[
00:00:55 verbose #982 > >                         "TRACE_LEVEL", "Verbose"
00:00:55 verbose #983 > >                         "AUTOMATION", "True"
00:00:55 verbose #984 > >                     ]]
00:00:55 verbose #985 > >                     trace = false
00:00:55 verbose #986 > >                     working_directory
00:00:55 verbose #987 > >                 }
00:00:55 verbose #988 > >                 |> runtime.execute_with_options
00:00:55 verbose #989 > >
00:00:55 verbose #990 > >             if exit_code = 0 || retry >= retries
00:00:55 verbose #991 > >             then exit_code, repl_result
00:00:55 verbose #992 > >             else
00:00:55 verbose #993 > >                 trace Debug
00:00:55 verbose #994 > >                     fun () => $'"spiral_builder.run / repl error"'
00:00:55 verbose #995 > >                     fun () => { exit_code repl_result retry =
00:00:55 verbose #996 > > $'$"{!retry}/{!retries}"' : string }
00:00:55 verbose #997 > >                 loop (retry + 1)
00:00:55 verbose #998 > >         loop 1
00:00:55 verbose #999 > >
00:00:55 verbose #1000 > >     inl exit_code, result =
00:00:55 verbose #1001 > >         if exit_code <>. 0
00:00:55 verbose #1002 > >         then exit_code, repl_result
00:00:55 verbose #1003 > >         else
00:00:55 verbose #1004 > >             inl exit_code, jupyter_result =
00:00:55 verbose #1005 > >                 runtime.execution_options fun x => { x with
00:00:55 verbose #1006 > >                     command = $'$"jupyter nbconvert \\\"{!path}.ipynb\\\" --to
00:00:55 verbose #1007 > > html --HTMLExporter.theme=dark"'
00:00:55 verbose #1008 > >                 }
00:00:55 verbose #1009 > >                 |> runtime.execute_with_options
00:00:55 verbose #1010 > >
00:00:55 verbose #1011 > >             trace Debug
00:00:55 verbose #1012 > >                 fun () => $'"spiral_builder.run / dib / jupyter nbconvert"'
00:00:55 verbose #1013 > >                 fun () => { exit_code jupyter_result_length = jupyter_result |>
00:00:55 verbose #1014 > > sm'.length : i32 }
00:00:55 verbose #1015 > >
00:00:55 verbose #1016 > >             if exit_code <>. 0
00:00:55 verbose #1017 > >             then exit_code, $'$"repl_result: {!repl_result}\n\njupyter_result:
00:00:55 verbose #1018 > > {!jupyter_result}"'
00:00:55 verbose #1019 > >             else
00:00:55 verbose #1020 > >                 inl exit_code, pwsh_replace_html_result =
00:00:55 verbose #1021 > >                     inl path = path |> sm'.replace "'" "''"
00:00:55 verbose #1022 > >                     runtime.execution_options fun x => { x with
00:00:55 verbose #1023 > >                         command = $'$"pwsh -c \\\"$counter = 1; $path =
00:00:55 verbose #1024 > > \'{!path}.html\'; (Get-Content $path -Raw) -replace
00:00:55 verbose #1025 > > \'(id=\\\\\\"cell-id=)[[a-fA-F0-9]]{{8}}\', {{ $_.Groups[[1]].Value + $counter++
00:00:55 verbose #1026 > > }} | Set-Content $path\\\""'
00:00:55 verbose #1027 > >                     }
00:00:55 verbose #1028 > >                     |> runtime.execute_with_options
00:00:55 verbose #1029 > >
00:00:55 verbose #1030 > >                 trace Debug
00:00:55 verbose #1031 > >                     fun () => $'"spiral_builder.run / dib / html cell ids"'
00:00:55 verbose #1032 > >                     fun () => { exit_code pwsh_replace_html_result_length =
00:00:55 verbose #1033 > > pwsh_replace_html_result |> sm'.length : i32 }
00:00:55 verbose #1034 > >
00:00:55 verbose #1035 > >                 $'$"{!path}.html"'
00:00:55 verbose #1036 > >                 |> file_system.read_all_text
00:00:55 verbose #1037 > >                 |> sm'.replace "\r\n" "\n"
00:00:55 verbose #1038 > >                 |> file_system.write_all_text $'$"{!path}.html"'
00:00:55 verbose #1039 > >
00:00:55 verbose #1040 > >                 $'$"{!path}.ipynb"'
00:00:55 verbose #1041 > >                 |> file_system.read_all_text
00:00:55 verbose #1042 > >                 |> sm'.replace "\r\n" "\n"
00:00:55 verbose #1043 > >                 |> sm'.replace "\\r\\n" "\\n"
00:00:55 verbose #1044 > >                 |> file_system.write_all_text $'$"{!path}.ipynb"'
00:00:55 verbose #1045 > >
00:00:55 verbose #1046 > >                 exit_code, $'$"repl_result: {!repl_result}\n\njupyter_result:
00:00:55 verbose #1047 > > {!jupyter_result}\n\npwsh_replace_html_result: {!pwsh_replace_html_result}"'
00:00:55 verbose #1048 > >
00:00:55 verbose #1049 > >     trace Debug
00:00:55 verbose #1050 > >         fun () => $'"spiral_builder.run / dib"'
00:00:55 verbose #1051 > >         fun () => { exit_code result_length = result |> sm'.length : i32 }
00:00:55 verbose #1052 > >
00:00:55 verbose #1053 > >     if exit_code <>. 0
00:00:55 verbose #1054 > >     then failwith $'$"spiral_builder.run / dib / exit_code: {!exit_code}
00:00:55 verbose #1055 > > result: {!result}"'
00:00:55 verbose #1056 > >     ;[[
00:00:55 verbose #1057 > >         "stdio",
00:00:55 verbose #1058 > >         result
00:00:55 verbose #1059 > >     ]]
00:00:55 verbose #1060 > 00:00:54   debug #24 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3628bf35d4fa23c104d8700ccb16bad33fbb87f245d4185e08f0e1a9db4a1e93/main.spi
00:00:55 verbose #1061 > >
00:00:55 verbose #1062 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:55 verbose #1063 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:55 verbose #1064 > > │ ## typescript                                                                │
00:00:55 verbose #1065 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:55 verbose #1066 > >
00:00:55 verbose #1067 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:55 verbose #1068 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:55 verbose #1069 > > │ ### process_typescript                                                       │
00:00:55 verbose #1070 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:55 verbose #1071 > >
00:00:55 verbose #1072 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:55 verbose #1073 > > inl process_typescript { fs_path deps trace_level } =
00:00:55 verbose #1074 > >     inl extension = "ts"
00:00:55 verbose #1075 > >     inl is_trace = trace_level = Verbose
00:00:55 verbose #1076 > >     inl _trace (fn : () -> string) =
00:00:55 verbose #1077 > >         if is_trace
00:00:55 verbose #1078 > >         then trace Info (fun () => $'$"spiral_builder.process_typescript / {!fn
00:00:55 verbose #1079 > > ()}"') id
00:00:55 verbose #1080 > >         else fn () |> console.write_line
00:00:55 verbose #1081 > >
00:00:55 verbose #1082 > >     inl code = fs_path |> file_system.read_all_text
00:00:55 verbose #1083 > >
00:00:55 verbose #1084 > >     inl hash_hex = (extension, code) |> sm'.format_debug |> crypto.hash_text
00:00:55 verbose #1085 > >
00:00:55 verbose #1086 > >     inl workspace_name = "spiral_builder"
00:00:55 verbose #1087 > >
00:00:55 verbose #1088 > >     inl workspace_root_external = file_system.get_workspace_root_external ()
00:00:55 verbose #1089 > >     inl workspace_root = workspace_root_external |> resultm.box |>
00:00:55 verbose #1090 > > resultm.unwrap_or_else id
00:00:55 verbose #1091 > >
00:00:55 verbose #1092 > >     inl package_dir =
00:00:55 verbose #1093 > >         get_package_dir
00:00:55 verbose #1094 > >             { workspace_root name = workspace_name; target = Some TypeScript;
00:00:55 verbose #1095 > > hash = Some hash_hex }
00:00:55 verbose #1096 > >
00:00:55 verbose #1097 > >     inl fsproj_path =
00:00:55 verbose #1098 > >         persist_code_project
00:00:55 verbose #1099 > >             {
00:00:55 verbose #1100 > >                 workspace_root
00:00:55 verbose #1101 > >                 package_dir
00:00:55 verbose #1102 > >                 packages = [[ "Fable.Core" ]]
00:00:55 verbose #1103 > >                 modules = [[]]
00:00:55 verbose #1104 > >                 name = workspace_name
00:00:55 verbose #1105 > >                 code
00:00:55 verbose #1106 > >             }
00:00:55 verbose #1107 > >
00:00:55 verbose #1108 > >     inl lib_path = workspace_root </> "lib/typescript/fable/fable_modules"
00:00:55 verbose #1109 > >
00:00:55 verbose #1110 > >     inl versions =
00:00:55 verbose #1111 > >         lib_path
00:00:55 verbose #1112 > >         |> file_system.new_walk_dir
00:00:55 verbose #1113 > >         |> file_system.walk_dir_filter fun entry => async.future_init_send (2,
00:00:55 verbose #1114 > > 1) 1 fun () =>
00:00:55 verbose #1115 > >             entry
00:00:55 verbose #1116 > >             |> file_system.dir_entry_file_type
00:00:55 verbose #1117 > >             |> async.await_send
00:00:55 verbose #1118 > >             |> resultm.map_error' sm'.format'
00:00:55 verbose #1119 > >             |> resultm.unbox
00:00:55 verbose #1120 > >             |> function
00:00:55 verbose #1121 > >                 | Ok file_type when file_type |> file_system.file_type_is_dir |>
00:00:55 verbose #1122 > > not => file_system.Ignore
00:00:55 verbose #1123 > >                 | _ => file_system.Continue
00:00:55 verbose #1124 > >         |> file_system.stream_filter_map fun entry =>
00:00:55 verbose #1125 > >             inl entry = entry |> resultm.map_error' sm'.format' |> resultm.unbox
00:00:55 verbose #1126 > >             match entry with
00:00:55 verbose #1127 > >             | Ok entry =>
00:00:55 verbose #1128 > >                 inl path =
00:00:55 verbose #1129 > >                     entry
00:00:55 verbose #1130 > >                     |> file_system.dir_entry_path
00:00:55 verbose #1131 > >                     |> file_system.path_buf_display
00:00:55 verbose #1132 > >                     |> sm'.format'
00:00:55 verbose #1133 > >                     |> sm'.from_std_string
00:00:55 verbose #1134 > >                 inl version =
00:00:55 verbose #1135 > >                     $'$"fable-library-{!extension}\\.(?<a>[[\\d.]]+)$"'
00:00:55 verbose #1136 > >                     |> sm'.new_regex
00:00:55 verbose #1137 > >                     |> resultm.unwrap'
00:00:55 verbose #1138 > >                     |> sm'.regex_captures path
00:00:55 verbose #1139 > >                     |> am'.from_vec
00:00:55 verbose #1140 > >                     |> fun x => x : _ i32 _
00:00:55 verbose #1141 > >                     |> am'.try_item 0
00:00:55 verbose #1142 > >                     |> optionm.map (mapm.get "a" >> optionm'.unbox)
00:00:55 verbose #1143 > >                     |> optionm'.flatten
00:00:55 verbose #1144 > >                 match version with
00:00:55 verbose #1145 > >                 | None => None
00:00:55 verbose #1146 > >                 | Some version => Some (path, version)
00:00:55 verbose #1147 > >             | Error error =>
00:00:55 verbose #1148 > >                 trace Critical
00:00:55 verbose #1149 > >                     fun () => $'"spiral_builder.process_typescript
00:00:55 verbose #1150 > > stream_filter_map"'
00:00:55 verbose #1151 > >                     fun () => { error }
00:00:55 verbose #1152 > >                 None
00:00:55 verbose #1153 > >             |> optionm'.box
00:00:55 verbose #1154 > >         |> async.into_par_iter
00:00:55 verbose #1155 > >         |> async.par_map fun file =>
00:00:55 verbose #1156 > >             file
00:00:55 verbose #1157 > >         |> async.par_collect
00:00:55 verbose #1158 > >
00:00:55 verbose #1159 > >     inl version =
00:00:55 verbose #1160 > >         versions
00:00:55 verbose #1161 > >         |> am'.from_vec
00:00:55 verbose #1162 > >         |> fun x => x : _ i32 _
00:00:55 verbose #1163 > >         |> am'.try_item 0
00:00:55 verbose #1164 > >
00:00:55 verbose #1165 > >     trace Debug
00:00:55 verbose #1166 > >         fun () => $'"spiral_builder.process_typescript"'
00:00:55 verbose #1167 > >         fun () => { version = version |> sm'.format_pretty' }
00:00:55 verbose #1168 > >
00:00:55 verbose #1169 > >     match version with
00:00:55 verbose #1170 > >     | None => ()
00:00:55 verbose #1171 > >     | Some (_path, version) =>
00:00:55 verbose #1172 > >         inl lib_link_target_path = lib_path </>
00:00:55 verbose #1173 > > $'$"fable-library-{!extension}.{!version}"'
00:00:55 verbose #1174 > >         inl lib_link_path = package_dir </>
00:00:55 verbose #1175 > > $'$"fable_modules/fable-library-{!extension}.{!version}"'
00:00:55 verbose #1176 > >
00:00:55 verbose #1177 > >         lib_link_path |> file_system.link_directory lib_link_target_path
00:00:55 verbose #1178 > >
00:00:55 verbose #1179 > >     inl exit_code, dotnet_fable_result =
00:00:55 verbose #1180 > >         execute_dotnet_fable { workspace_root_external fsproj_path extension
00:00:55 verbose #1181 > > package_dir }
00:00:55 verbose #1182 > >
00:00:55 verbose #1183 > >     if exit_code <>. 0 then
00:00:55 verbose #1184 > >         trace Critical
00:00:55 verbose #1185 > >             fun () => $'$"spiral_builder.process_typescript"'
00:00:55 verbose #1186 > >             fun () => { exit_code dotnet_fable_result }
00:00:55 verbose #1187 > >         { extension = Some extension; code = None; output = Some
00:00:55 verbose #1188 > > dotnet_fable_result }
00:00:55 verbose #1189 > >     else
00:00:55 verbose #1190 > >         inl deps =
00:00:55 verbose #1191 > >             deps
00:00:55 verbose #1192 > >             |> am'.vec_map fun dep =>
00:00:55 verbose #1193 > >                 inl dep = dep |> sm'.from_std_string
00:00:55 verbose #1194 > >                 if dep |> sm'.contains "="
00:00:55 verbose #1195 > >                 then dep
00:00:55 verbose #1196 > >                 else $'$"\\"{!dep}\\":\\"*\\""'
00:00:55 verbose #1197 > >             |> am'.from_vec
00:00:55 verbose #1198 > >             |> fun x => x : _ i32 _
00:00:55 verbose #1199 > >             |> seq.of_array'
00:00:55 verbose #1200 > >             |> sm'.concat ",\n"
00:00:55 verbose #1201 > >
00:00:55 verbose #1202 > >         inl package_json_content =
00:00:55 verbose #1203 > >             $'$"{{"'
00:00:55 verbose #1204 > >             +. $'$"  \\\"name\\\": \\\"spiral_builder_{!hash_hex}\\\","'
00:00:55 verbose #1205 > >             +. $'$"  \\\"dependencies\\\": {{"'
00:00:55 verbose #1206 > >             +. deps
00:00:55 verbose #1207 > >             +. $'$"  }},"'
00:00:55 verbose #1208 > >             +. $'$"    \\\"devDependencies\\\": {{"'
00:00:55 verbose #1209 > >             +. $'$"  }},"'
00:00:55 verbose #1210 > >             +. $'$"}}"'
00:00:55 verbose #1211 > >
00:00:55 verbose #1212 > >         inl workspace_package_json_content =
00:00:55 verbose #1213 > >             ""
00:00:55 verbose #1214 > >
00:00:55 verbose #1215 > >         inl package_json_path = package_dir </> "package.json"
00:00:55 verbose #1216 > >
00:00:55 verbose #1217 > >         inl workspace_dir = package_dir </> "../.."
00:00:55 verbose #1218 > >         inl workspace_package_json_path = workspace_dir </> "package.json"
00:00:55 verbose #1219 > >
00:00:55 verbose #1220 > >         package_json_content |> file_system.write_all_text_exists
00:00:55 verbose #1221 > > package_json_path
00:00:55 verbose #1222 > >
00:00:55 verbose #1223 > >         workspace_package_json_content |> file_system.write_all_text_exists
00:00:55 verbose #1224 > > workspace_package_json_path
00:00:55 verbose #1225 > >
00:00:55 verbose #1226 > >         inl new_code_path = package_dir </> $'$"{!workspace_name}.{!extension}"'
00:00:55 verbose #1227 > >         trace Debug
00:00:55 verbose #1228 > >             fun () => $'"spiral_builder.process_typescript"'
00:00:55 verbose #1229 > >             fun () => { new_code_path }
00:00:55 verbose #1230 > >         inl new_code = new_code_path |> file_system.read_all_text
00:00:55 verbose #1231 > >
00:00:55 verbose #1232 > >         inl main_code_header =
00:00:55 verbose #1233 > >             "// spiral_builder.process_typescript"
00:00:55 verbose #1234 > >         inl main_code = "// spiral_builder.process_typescript"
00:00:55 verbose #1235 > >
00:00:55 verbose #1236 > >         inl cached = new_code |> sm'.contains main_code_header
00:00:55 verbose #1237 > >
00:00:55 verbose #1238 > >         inl new_code =
00:00:55 verbose #1239 > >             if cached
00:00:55 verbose #1240 > >             then new_code
00:00:55 verbose #1241 > >             else
00:00:55 verbose #1242 > >                 new_code
00:00:55 verbose #1243 > >                 |> sm'.replace
00:00:55 verbose #1244 > >                     $'$"\\\"./fable_modules/fable-library-ts.{!version}/"'
00:00:55 verbose #1245 > >
00:00:55 verbose #1246 > > $'$"\\\"{!workspace_root}/lib/typescript/fable/fable_modules/fable-library-ts.{!
00:00:55 verbose #1247 > > version}/"'
00:00:55 verbose #1248 > >                 |> sm'.replace_regex
00:00:55 verbose #1249 > >                     "\\s\\sdefaultOf\\(\\);"
00:00:55 verbose #1250 > >                     " defaultOf::<()>();"
00:00:55 verbose #1251 > >
00:00:55 verbose #1252 > >         if not cached then
00:00:55 verbose #1253 > >             $'$"{!new_code}\\n\\n{!main_code}\\n"'
00:00:55 verbose #1254 > >             |> file_system.write_all_text_exists new_code_path
00:00:55 verbose #1255 > >
00:00:55 verbose #1256 > >         inl command = $'$"bun run \\\"{!new_code_path}\\\""'
00:00:55 verbose #1257 > >         inl environment_variables =
00:00:55 verbose #1258 > >             match "~/.bun/bin" |> env.append_path with
00:00:55 verbose #1259 > >             | Some path => [[ "PATH", path ]]
00:00:55 verbose #1260 > >             | None => [[]]
00:00:55 verbose #1261 > >             ++ [[
00:00:55 verbose #1262 > >                 "TRACE_LEVEL", "Verbose"
00:00:55 verbose #1263 > >             ]]
00:00:55 verbose #1264 > >             |> listm'.box
00:00:55 verbose #1265 > >             |> listm'.to_array'
00:00:55 verbose #1266 > >         inl exit_code, run_result =
00:00:55 verbose #1267 > >             runtime.execution_options fun x => { x with
00:00:55 verbose #1268 > >                 command
00:00:55 verbose #1269 > >                 environment_variables
00:00:55 verbose #1270 > >                 working_directory = workspace_root_external |> resultm.box |>
00:00:55 verbose #1271 > > resultm.ok'
00:00:55 verbose #1272 > >             }
00:00:55 verbose #1273 > >             |> runtime.execute_with_options
00:00:55 verbose #1274 > >
00:00:55 verbose #1275 > >         inl external_command =
00:00:55 verbose #1276 > >             inl vars =
00:00:55 verbose #1277 > >                 a environment_variables
00:00:55 verbose #1278 > >                 |> am.map fun k, v => $'$"$env:{!k}=\'\'{!v}\'\'"' : string
00:00:55 verbose #1279 > >                 |> fun x => x : _ i32 _
00:00:55 verbose #1280 > >                 |> seq.of_array
00:00:55 verbose #1281 > >                 |> sm'.concat ";"
00:00:55 verbose #1282 > >             $'$"pwsh -c \'{!vars}; {!command}\'"' : string
00:00:55 verbose #1283 > >         if exit_code = 0 then
00:00:55 verbose #1284 > >             inl output =
00:00:55 verbose #1285 > >                 try
00:00:55 verbose #1286 > >                     fun () =>
00:00:55 verbose #1287 > >                         run_result
00:00:55 verbose #1288 > >                         |> sm'.split "\n"
00:00:55 verbose #1289 > >                         |> fun x => a x : _ i32 _
00:00:55 verbose #1290 > >                         |> seq.of_array
00:00:55 verbose #1291 > >                         |> sm'.concat "\n"
00:00:55 verbose #1292 > >                     fun ex =>
00:00:55 verbose #1293 > >                         trace Critical
00:00:55 verbose #1294 > >                             fun () => "spiral_builder.process_typescript
00:00:55 verbose #1295 > > Exception"
00:00:55 verbose #1296 > >                             fun () => { ex new_code_path external_command
00:00:55 verbose #1297 > > run_result }
00:00:55 verbose #1298 > >                         None
00:00:55 verbose #1299 > >                 |> optionm'.box
00:00:55 verbose #1300 > >                 |> optionm'.unwrap
00:00:55 verbose #1301 > >
00:00:55 verbose #1302 > >             { extension = Some extension; code = Some new_code; output = Some
00:00:55 verbose #1303 > > output }
00:00:55 verbose #1304 > >         else
00:00:55 verbose #1305 > >             trace Critical
00:00:55 verbose #1306 > >                 fun () => "spiral_builder.process_typescript / error"
00:00:55 verbose #1307 > >                 fun () => { exit_code run_result new_code_path external_command
00:00:55 verbose #1308 > > }
00:00:55 verbose #1309 > >             { extension = Some extension; code = None; output = None }
00:00:55 verbose #1310 > 00:00:55   debug #25 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9b6eca9628ae45f637a8076295be020ec68683ea812025a5ee5a9fb35c5cdb07/main.spi
00:00:55 verbose #1311 > >
00:00:55 verbose #1312 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:55 verbose #1313 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:55 verbose #1314 > > │ ## python                                                                    │
00:00:55 verbose #1315 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:55 verbose #1316 > >
00:00:55 verbose #1317 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:55 verbose #1318 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:55 verbose #1319 > > │ ### process_python                                                           │
00:00:55 verbose #1320 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:55 verbose #1321 > >
00:00:55 verbose #1322 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:56 verbose #1323 > > inl process_python { fs_path deps trace_level } =
00:00:56 verbose #1324 > >     inl extension = "py"
00:00:56 verbose #1325 > >     inl is_trace = trace_level = Verbose
00:00:56 verbose #1326 > >     inl _trace (fn : () -> string) =
00:00:56 verbose #1327 > >         if is_trace
00:00:56 verbose #1328 > >         then trace Info (fun () => $'$"spiral_builder.process_python / {!fn
00:00:56 verbose #1329 > > ()}"') id
00:00:56 verbose #1330 > >         else fn () |> console.write_line
00:00:56 verbose #1331 > >
00:00:56 verbose #1332 > >     inl code = fs_path |> file_system.read_all_text
00:00:56 verbose #1333 > >
00:00:56 verbose #1334 > >     inl hash_hex = (extension, code) |> sm'.format_debug |> crypto.hash_text
00:00:56 verbose #1335 > >
00:00:56 verbose #1336 > >     inl workspace_name = "spiral_builder"
00:00:56 verbose #1337 > >
00:00:56 verbose #1338 > >     inl workspace_root_external = file_system.get_workspace_root_external ()
00:00:56 verbose #1339 > >     inl workspace_root = workspace_root_external |> resultm.box |>
00:00:56 verbose #1340 > > resultm.unwrap_or_else id
00:00:56 verbose #1341 > >
00:00:56 verbose #1342 > >     inl package_dir =
00:00:56 verbose #1343 > >         get_package_dir { workspace_root name = workspace_name; target = Some
00:00:56 verbose #1344 > > Python; hash = Some hash_hex }
00:00:56 verbose #1345 > >
00:00:56 verbose #1346 > >     inl fsproj_path =
00:00:56 verbose #1347 > >         persist_code_project
00:00:56 verbose #1348 > >             {
00:00:56 verbose #1349 > >                 workspace_root
00:00:56 verbose #1350 > >                 package_dir
00:00:56 verbose #1351 > >                 packages = [[ "Fable.Core" ]]
00:00:56 verbose #1352 > >                 modules = [[]]
00:00:56 verbose #1353 > >                 name = workspace_name
00:00:56 verbose #1354 > >                 code
00:00:56 verbose #1355 > >             }
00:00:56 verbose #1356 > >
00:00:56 verbose #1357 > >     inl lib_path = workspace_root </> "lib/python/fable/fable_modules"
00:00:56 verbose #1358 > >
00:00:56 verbose #1359 > >     inl lib_link_target_path = lib_path </> $'$"fable_library"'
00:00:56 verbose #1360 > >     inl lib_link_path = package_dir </> $'$"fable_modules/fable_library"'
00:00:56 verbose #1361 > >
00:00:56 verbose #1362 > >     lib_link_path |> file_system.link_directory lib_link_target_path
00:00:56 verbose #1363 > >
00:00:56 verbose #1364 > >     inl exit_code, dotnet_fable_result =
00:00:56 verbose #1365 > >         execute_dotnet_fable { workspace_root_external fsproj_path extension
00:00:56 verbose #1366 > > package_dir }
00:00:56 verbose #1367 > >
00:00:56 verbose #1368 > >     if exit_code <>. 0 then
00:00:56 verbose #1369 > >         trace Critical
00:00:56 verbose #1370 > >             fun () => $'$"spiral_builder.process_python"'
00:00:56 verbose #1371 > >             fun () => { exit_code dotnet_fable_result }
00:00:56 verbose #1372 > >         { extension = Some extension; code = None; output = Some
00:00:56 verbose #1373 > > dotnet_fable_result }
00:00:56 verbose #1374 > >     else
00:00:56 verbose #1375 > >         inl deps =
00:00:56 verbose #1376 > >             deps
00:00:56 verbose #1377 > >             |> am'.vec_map fun dep =>
00:00:56 verbose #1378 > >                 inl dep = dep |> sm'.from_std_string
00:00:56 verbose #1379 > >                 if dep |> sm'.contains "="
00:00:56 verbose #1380 > >                 then dep
00:00:56 verbose #1381 > >                 else $'$"\\"{!dep}\\":\\"*\\""'
00:00:56 verbose #1382 > >             |> am'.from_vec
00:00:56 verbose #1383 > >             |> fun x => x : _ i32 _
00:00:56 verbose #1384 > >             |> seq.of_array'
00:00:56 verbose #1385 > >             |> sm'.concat ",\n"
00:00:56 verbose #1386 > >
00:00:56 verbose #1387 > >         inl package_json_content =
00:00:56 verbose #1388 > >             $'$"{{"'
00:00:56 verbose #1389 > >             +. $'$"  \\\"name\\\": \\\"spiral_builder_{!hash_hex}\\\","'
00:00:56 verbose #1390 > >             +. $'$"  \\\"dependencies\\\": {{"'
00:00:56 verbose #1391 > >             +. deps
00:00:56 verbose #1392 > >             +. $'$"  }},"'
00:00:56 verbose #1393 > >             +. $'$"    \\\"devDependencies\\\": {{"'
00:00:56 verbose #1394 > >             +. $'$"  }},"'
00:00:56 verbose #1395 > >             +. $'$"}}"'
00:00:56 verbose #1396 > >
00:00:56 verbose #1397 > >         inl workspace_package_json_content =
00:00:56 verbose #1398 > >             ""
00:00:56 verbose #1399 > >
00:00:56 verbose #1400 > >         inl package_json_path = package_dir </> "package.json"
00:00:56 verbose #1401 > >
00:00:56 verbose #1402 > >         inl workspace_dir = package_dir </> "../.."
00:00:56 verbose #1403 > >         inl workspace_package_json_path = workspace_dir </> "package.json"
00:00:56 verbose #1404 > >
00:00:56 verbose #1405 > >         package_json_content |> file_system.write_all_text_exists
00:00:56 verbose #1406 > > package_json_path
00:00:56 verbose #1407 > >
00:00:56 verbose #1408 > >         workspace_package_json_content |> file_system.write_all_text_exists
00:00:56 verbose #1409 > > workspace_package_json_path
00:00:56 verbose #1410 > >
00:00:56 verbose #1411 > >         inl new_code_path = package_dir </> $'$"{!workspace_name}.{!extension}"'
00:00:56 verbose #1412 > >         trace Debug
00:00:56 verbose #1413 > >             fun () => $'"spiral_builder.process_python"'
00:00:56 verbose #1414 > >             fun () => { new_code_path }
00:00:56 verbose #1415 > >         inl new_code = new_code_path |> file_system.read_all_text
00:00:56 verbose #1416 > >
00:00:56 verbose #1417 > >         inl main_code_header =
00:00:56 verbose #1418 > >             "# spiral_builder.process_python"
00:00:56 verbose #1419 > >         inl main_code = "# spiral_builder.process_python"
00:00:56 verbose #1420 > >
00:00:56 verbose #1421 > >         inl cached = new_code |> sm'.contains main_code_header
00:00:56 verbose #1422 > >
00:00:56 verbose #1423 > >         inl new_code =
00:00:56 verbose #1424 > >             if cached
00:00:56 verbose #1425 > >             then new_code
00:00:56 verbose #1426 > >             else
00:00:56 verbose #1427 > >                 new_code
00:00:56 verbose #1428 > >                 |> sm'.replace
00:00:56 verbose #1429 > >                     ("),)" +. !\($'"\\\";\\\".into()"'))
00:00:56 verbose #1430 > >                     "));"
00:00:56 verbose #1431 > >                 |> sm'.replace_regex
00:00:56 verbose #1432 > >                     "\\s\\sdefaultOf\\(\\);"
00:00:56 verbose #1433 > >                     " defaultOf::<()>();"
00:00:56 verbose #1434 > >
00:00:56 verbose #1435 > >         if not cached
00:00:56 verbose #1436 > >         then
00:00:56 verbose #1437 > >             $'$"{!new_code}\\n\\n{!main_code}\\n"'
00:00:56 verbose #1438 > >             |> file_system.write_all_text_exists new_code_path
00:00:56 verbose #1439 > >
00:00:56 verbose #1440 > >         inl command = $'$"python \\\"{!new_code_path}\\\""'
00:00:56 verbose #1441 > >         inl environment_variables =
00:00:56 verbose #1442 > >             ;[[
00:00:56 verbose #1443 > >                 "TRACE_LEVEL", "Verbose"
00:00:56 verbose #1444 > >             ]]
00:00:56 verbose #1445 > >         inl exit_code, run_result =
00:00:56 verbose #1446 > >             runtime.execution_options fun x => { x with
00:00:56 verbose #1447 > >                 command
00:00:56 verbose #1448 > >                 environment_variables
00:00:56 verbose #1449 > >                 working_directory = workspace_root_external |> resultm.box |>
00:00:56 verbose #1450 > > resultm.ok'
00:00:56 verbose #1451 > >             }
00:00:56 verbose #1452 > >             |> runtime.execute_with_options
00:00:56 verbose #1453 > >
00:00:56 verbose #1454 > >         inl external_command =
00:00:56 verbose #1455 > >             inl vars =
00:00:56 verbose #1456 > >                 a environment_variables
00:00:56 verbose #1457 > >                 |> am.map fun k, v => $'$"$env:{!k}=\'\'{!v}\'\'"' : string
00:00:56 verbose #1458 > >                 |> fun x => x : _ i32 _
00:00:56 verbose #1459 > >                 |> seq.of_array
00:00:56 verbose #1460 > >                 |> sm'.concat ";"
00:00:56 verbose #1461 > >             $'$"pwsh -c \'{!vars}; {!command}\'"' : string
00:00:56 verbose #1462 > >         if exit_code = 0 then
00:00:56 verbose #1463 > >             inl output =
00:00:56 verbose #1464 > >                 try
00:00:56 verbose #1465 > >                     fun () =>
00:00:56 verbose #1466 > >                         run_result
00:00:56 verbose #1467 > >                         |> sm'.split "\n"
00:00:56 verbose #1468 > >                         |> fun x => a x : _ i32 _
00:00:56 verbose #1469 > >                         |> seq.of_array
00:00:56 verbose #1470 > >                         |> sm'.concat "\n"
00:00:56 verbose #1471 > >                     fun ex =>
00:00:56 verbose #1472 > >                         trace Critical
00:00:56 verbose #1473 > >                             fun () => "spiral_builder.process_python
00:00:56 verbose #1474 > > Exception"
00:00:56 verbose #1475 > >                             fun () => { ex run_result new_code_path
00:00:56 verbose #1476 > > external_command }
00:00:56 verbose #1477 > >                         None
00:00:56 verbose #1478 > >                 |> optionm'.box
00:00:56 verbose #1479 > >                 |> optionm'.unwrap
00:00:56 verbose #1480 > >
00:00:56 verbose #1481 > >             { extension = Some extension; code = Some new_code; output = Some
00:00:56 verbose #1482 > > output }
00:00:56 verbose #1483 > >         else
00:00:56 verbose #1484 > >             trace Critical
00:00:56 verbose #1485 > >                 fun () => "spiral_builder.process_python / error"
00:00:56 verbose #1486 > >                 fun () => { exit_code run_result new_code_path external_command
00:00:56 verbose #1487 > > }
00:00:56 verbose #1488 > >             { extension = Some extension; code = None; output = None }
00:00:56 verbose #1489 > 00:00:55   debug #26 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5fff1535d264cf20928ac5f36aee0d96667ee36c217ac8c25a30261fe2801a59/main.spi
00:00:56 verbose #1490 > >
00:00:56 verbose #1491 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:56 verbose #1492 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:56 verbose #1493 > > │ ## cuda                                                                      │
00:00:56 verbose #1494 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:56 verbose #1495 > >
00:00:56 verbose #1496 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:56 verbose #1497 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:56 verbose #1498 > > │ ### process_cuda                                                             │
00:00:56 verbose #1499 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:56 verbose #1500 > >
00:00:56 verbose #1501 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:56 verbose #1502 > > inl process_cuda { py_path env deps } =
00:00:56 verbose #1503 > >     inl extension = "py"
00:00:56 verbose #1504 > >
00:00:56 verbose #1505 > >     inl new_code_path = py_path
00:00:56 verbose #1506 > >     inl new_code = new_code_path |> file_system.read_all_text
00:00:56 verbose #1507 > >
00:00:56 verbose #1508 > >     inl workspace_root_external = file_system.get_workspace_root_external ()
00:00:56 verbose #1509 > >     inl workspace_root = workspace_root_external |> resultm.box |>
00:00:56 verbose #1510 > > resultm.unwrap_or_else id
00:00:56 verbose #1511 > >
00:00:56 verbose #1512 > >     inl package_dir = new_code_path |> file_system.get_directory_name
00:00:56 verbose #1513 > >
00:00:56 verbose #1514 > >     inl manifest_path =
00:00:56 verbose #1515 > >         match env with
00:00:56 verbose #1516 > >         | Pip => package_dir </> "requirements.txt"
00:00:56 verbose #1517 > >         | Poetry => package_dir </> "pyproject.toml"
00:00:56 verbose #1518 > >
00:00:56 verbose #1519 > >     inl deps =
00:00:56 verbose #1520 > >         deps
00:00:56 verbose #1521 > >         |> am'.vec_map fun dep =>
00:00:56 verbose #1522 > >             inl dep = dep |> sm'.from_std_string
00:00:56 verbose #1523 > >             if dep |> sm'.contains "="
00:00:56 verbose #1524 > >             then dep
00:00:56 verbose #1525 > >             elif dep |> sm'.ends_with "]]"
00:00:56 verbose #1526 > >             then dep |> sm'.replace "[[" $'$"={{version=\'*\',features=[["' |>
00:00:56 verbose #1527 > > fun x => $'$"{!x}}}"'
00:00:56 verbose #1528 > >             else $'$"{!dep}=\'*\'"'
00:00:56 verbose #1529 > >         |> am'.from_vec
00:00:56 verbose #1530 > >         |> fun x => x : _ i32 _
00:00:56 verbose #1531 > >         |> seq.of_array'
00:00:56 verbose #1532 > >         |> sm'.concat "\n"
00:00:56 verbose #1533 > >
00:00:56 verbose #1534 > >     inl exit_code, run_result =
00:00:56 verbose #1535 > >         if deps = ""
00:00:56 verbose #1536 > >         then 0, ""
00:00:56 verbose #1537 > >         else
00:00:56 verbose #1538 > >             inl manifest =
00:00:56 verbose #1539 > >                 match env with
00:00:56 verbose #1540 > >                 | Pip =>
00:00:56 verbose #1541 > >                     deps
00:00:56 verbose #1542 > >                 | Poetry =>
00:00:56 verbose #1543 > >                     $'$"[[tool.poetry]]"'
00:00:56 verbose #1544 > >                     +#. $'$"name = \\\"test\\\""'
00:00:56 verbose #1545 > >                     +#. $'$"version = \\\"0.0.1\\\""'
00:00:56 verbose #1546 > >                     +#. $'$"description = \\\"\\\""'
00:00:56 verbose #1547 > >                     +#. $'$"authors = [[]]"'
00:00:56 verbose #1548 > >                     +#. $'$""'
00:00:56 verbose #1549 > >                     +#. $'$"[[tool.poetry.dependencies]]"'
00:00:56 verbose #1550 > >                     +#. $'$"python=\\\"~3.12\\\""'
00:00:56 verbose #1551 > >                     +#. $'$"{!deps}"'
00:00:56 verbose #1552 > >                     +#. $'$""'
00:00:56 verbose #1553 > >                     +#. $'$"[[build-system]]"'
00:00:56 verbose #1554 > >                     +#. $'$"requires = [[\\\"poetry-core\\\"]]"'
00:00:56 verbose #1555 > >                     +#. $'$"build-backend = \\\"poetry.core.masonry.api\\\""'
00:00:56 verbose #1556 > >
00:00:56 verbose #1557 > >             manifest |> file_system.write_all_text_exists manifest_path
00:00:56 verbose #1558 > >
00:00:56 verbose #1559 > >             runtime.execution_options fun x => { x with
00:00:56 verbose #1560 > >                 command =
00:00:56 verbose #1561 > >                     match env with
00:00:56 verbose #1562 > >                     | Pip => $'$"pip install -r requirements.txt"'
00:00:56 verbose #1563 > >                     | Poetry => $'$"poetry install"'
00:00:56 verbose #1564 > >                 working_directory = package_dir |> optionm'.some'
00:00:56 verbose #1565 > >             }
00:00:56 verbose #1566 > >             |> runtime.execute_with_options
00:00:56 verbose #1567 > >
00:00:56 verbose #1568 > >     if exit_code <>. 0 then
00:00:56 verbose #1569 > >         trace Critical
00:00:56 verbose #1570 > >             fun () => "spiral_builder.process_cuda / env install error"
00:00:56 verbose #1571 > >             fun () => { env exit_code run_result new_code_path }
00:00:56 verbose #1572 > >         { extension = Some extension; code = None; output = None }
00:00:56 verbose #1573 > >     else
00:00:56 verbose #1574 > >         inl command =
00:00:56 verbose #1575 > >             match env with
00:00:56 verbose #1576 > >             | Pip => $'$"python \\\"{!new_code_path}\\\""'
00:00:56 verbose #1577 > >             | Poetry => $'$"poetry run python \\\"{!new_code_path}\\\""'
00:00:56 verbose #1578 > >         inl environment_variables =
00:00:56 verbose #1579 > >             ;[[
00:00:56 verbose #1580 > >                 "TRACE_LEVEL", "Verbose"
00:00:56 verbose #1581 > >             ]]
00:00:56 verbose #1582 > >         inl exit_code, run_result =
00:00:56 verbose #1583 > >             runtime.execution_options fun x => { x with
00:00:56 verbose #1584 > >                 command
00:00:56 verbose #1585 > >                 environment_variables
00:00:56 verbose #1586 > >                 working_directory = package_dir |> optionm'.some'
00:00:56 verbose #1587 > >             }
00:00:56 verbose #1588 > >             |> runtime.execute_with_options
00:00:56 verbose #1589 > >
00:00:56 verbose #1590 > >         inl external_command =
00:00:56 verbose #1591 > >             inl vars =
00:00:56 verbose #1592 > >                 a environment_variables
00:00:56 verbose #1593 > >                 |> am.map fun k, v => $'$"$env:{!k}=\'\'{!v}\'\'"' : string
00:00:56 verbose #1594 > >                 |> fun x => x : _ i32 _
00:00:56 verbose #1595 > >                 |> seq.of_array
00:00:56 verbose #1596 > >                 |> sm'.concat ";"
00:00:56 verbose #1597 > >             $'$"pwsh -c \'{!vars}; {!command}\'"' : string
00:00:56 verbose #1598 > >         if exit_code = 0
00:00:56 verbose #1599 > >             || (run_result |> sm'.contains
00:00:56 verbose #1600 > > "cupy_backends.cuda.api.runtime.CUDARuntimeError: cudaErrorInsufficientDriver")
00:00:56 verbose #1601 > > then
00:00:56 verbose #1602 > >             inl output =
00:00:56 verbose #1603 > >                 try
00:00:56 verbose #1604 > >                     fun () =>
00:00:56 verbose #1605 > >                         run_result
00:00:56 verbose #1606 > >                         |> sm'.split "\n"
00:00:56 verbose #1607 > >                         |> fun x => a x : _ i32 _
00:00:56 verbose #1608 > >                         |> seq.of_array
00:00:56 verbose #1609 > >                         |> sm'.concat "\n"
00:00:56 verbose #1610 > >                     fun ex =>
00:00:56 verbose #1611 > >                         trace Critical
00:00:56 verbose #1612 > >                             fun () => "spiral_builder.process_cuda / Exception"
00:00:56 verbose #1613 > >                             fun () => { ex run_result new_code_path
00:00:56 verbose #1614 > > external_command }
00:00:56 verbose #1615 > >                         None
00:00:56 verbose #1616 > >                 |> optionm'.box
00:00:56 verbose #1617 > >                 |> optionm'.unwrap
00:00:56 verbose #1618 > >
00:00:56 verbose #1619 > >             { extension = Some extension; code = Some new_code; output = Some
00:00:56 verbose #1620 > > output }
00:00:56 verbose #1621 > >         else
00:00:56 verbose #1622 > >             trace Critical
00:00:56 verbose #1623 > >                 fun () => "spiral_builder.process_cuda / error"
00:00:56 verbose #1624 > >                 fun () => { exit_code run_result new_code_path external_command
00:00:56 verbose #1625 > > }
00:00:56 verbose #1626 > >             { extension = Some extension; code = None; output = None }
00:00:56 verbose #1627 > 00:00:55   debug #27 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/cc111dad2ab7acdfb34a575d52547d57b3e27fcdb02a5c136fcf633b9119efd8/main.spi
00:00:56 verbose #1628 > >
00:00:56 verbose #1629 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:56 verbose #1630 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:56 verbose #1631 > > │ ## fsharp                                                                    │
00:00:56 verbose #1632 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:56 verbose #1633 > >
00:00:56 verbose #1634 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:56 verbose #1635 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:56 verbose #1636 > > │ ### process_fsharp                                                           │
00:00:56 verbose #1637 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:56 verbose #1638 > >
00:00:56 verbose #1639 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:56 verbose #1640 > > inl process_fsharp { spi_path } =
00:00:56 verbose #1641 > >     inl extension = "fsx"
00:00:56 verbose #1642 > >
00:00:56 verbose #1643 > >     inl new_code_path = spi_path
00:00:56 verbose #1644 > >     inl new_code = new_code_path |> file_system.read_all_text
00:00:56 verbose #1645 > >
00:00:56 verbose #1646 > >     inl workspace_root_external = file_system.get_workspace_root_external ()
00:00:56 verbose #1647 > >     inl workspace_root = workspace_root_external |> resultm.box |>
00:00:56 verbose #1648 > > resultm.unwrap_or_else id
00:00:56 verbose #1649 > >
00:00:56 verbose #1650 > >     inl supervisor_path = workspace_root </>
00:00:56 verbose #1651 > > $"apps/spiral/dist/Supervisor!(platform.get_executable_suffix ())"
00:00:56 verbose #1652 > >     inl code_dir = new_code_path |> file_system.get_directory_name
00:00:56 verbose #1653 > >     inl file_name = new_code_path |> file_system.get_file_name_without_extension
00:00:56 verbose #1654 > >     inl output_path = code_dir </> $'$"{!file_name}.{!extension}"'
00:00:56 verbose #1655 > >     inl command = $'$"{!supervisor_path} --build-file \\\"{!new_code_path}\\\"
00:00:56 verbose #1656 > > \\\"{!output_path}\\\""'
00:00:56 verbose #1657 > >     inl environment_variables =
00:00:56 verbose #1658 > >         ;[[
00:00:56 verbose #1659 > >             "TRACE_LEVEL", "Verbose"
00:00:56 verbose #1660 > >         ]]
00:00:56 verbose #1661 > >     inl exit_code, run_result =
00:00:56 verbose #1662 > >         runtime.execution_options fun x => { x with
00:00:56 verbose #1663 > >             command
00:00:56 verbose #1664 > >             environment_variables
00:00:56 verbose #1665 > >             working_directory = workspace_root_external |> resultm.box |>
00:00:56 verbose #1666 > > resultm.ok'
00:00:56 verbose #1667 > >         }
00:00:56 verbose #1668 > >         |> runtime.execute_with_options
00:00:56 verbose #1669 > >
00:00:56 verbose #1670 > >     inl external_command =
00:00:56 verbose #1671 > >         inl vars =
00:00:56 verbose #1672 > >             a environment_variables
00:00:56 verbose #1673 > >             |> am.map fun k, v => $'$"$env:{!k}=\'\'{!v}\'\'"' : string
00:00:56 verbose #1674 > >             |> fun x => x : _ i32 _
00:00:56 verbose #1675 > >             |> seq.of_array
00:00:56 verbose #1676 > >             |> sm'.concat ";"
00:00:56 verbose #1677 > >         $'$"pwsh -c \'{!vars}; {!command}\'"' : string
00:00:56 verbose #1678 > >     if exit_code = 0 then
00:00:56 verbose #1679 > >         inl output =
00:00:56 verbose #1680 > >             try
00:00:56 verbose #1681 > >                 fun () =>
00:00:56 verbose #1682 > >                     run_result
00:00:56 verbose #1683 > >                     |> sm'.split "\n"
00:00:56 verbose #1684 > >                     |> fun x => a x : _ i32 _
00:00:56 verbose #1685 > >                     |> seq.of_array
00:00:56 verbose #1686 > >                     |> sm'.concat "\n"
00:00:56 verbose #1687 > >                 fun ex =>
00:00:56 verbose #1688 > >                     trace Critical
00:00:56 verbose #1689 > >                         fun () => "spiral_builder.process_fsharp / Exception"
00:00:56 verbose #1690 > >                         fun () => { ex run_result new_code_path external_command
00:00:56 verbose #1691 > > }
00:00:56 verbose #1692 > >                     None
00:00:56 verbose #1693 > >             |> optionm'.box
00:00:56 verbose #1694 > >             |> optionm'.unwrap
00:00:56 verbose #1695 > >
00:00:56 verbose #1696 > >         { extension = Some extension; code = Some new_code; output = Some output
00:00:56 verbose #1697 > > }
00:00:56 verbose #1698 > >     else
00:00:56 verbose #1699 > >         trace Critical
00:00:56 verbose #1700 > >             fun () => "spiral_builder.process_fsharp / error"
00:00:56 verbose #1701 > >             fun () => { exit_code run_result new_code_path external_command }
00:00:56 verbose #1702 > >         { extension = Some extension; code = None; output = None }
00:00:57 verbose #1703 > 00:00:56   debug #28 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5af2807536983b4aa23416a426b00d75bc82c51b40c10a60e887be6334a094eb/main.spi
00:00:57 verbose #1704 > >
00:00:57 verbose #1705 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:57 verbose #1706 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:57 verbose #1707 > > │ ## run                                                                       │
00:00:57 verbose #1708 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:57 verbose #1709 > >
00:00:57 verbose #1710 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:57 verbose #1711 > > let rec run trace_level (matches : runtime.arg_matches) : async.future_pin
00:00:57 verbose #1712 > > (resultm.result' string string) =
00:00:57 verbose #1713 > >     fun () =>
00:00:57 verbose #1714 > >         match matches |> runtime.matches_subcommand |> optionm'.unbox with
00:00:57 verbose #1715 > >         | Some (subcommand, arg_matches)
00:00:57 verbose #1716 > >                 when (subcommand |> sm'.from_std_string) = (get_args () .cuda |>
00:00:57 verbose #1717 > > fst) =>
00:00:57 verbose #1718 > >
00:00:57 verbose #1719 > >             inl py_path =
00:00:57 verbose #1720 > >                 arg_matches
00:00:57 verbose #1721 > >                 |> runtime.matches_get_one ((get_args () .cuda |> snd).py_path
00:00:57 verbose #1722 > > |> fst)
00:00:57 verbose #1723 > >                 |> optionm'.unbox
00:00:57 verbose #1724 > >                 |> optionm.value
00:00:57 verbose #1725 > >                 |> sm'.from_std_string
00:00:57 verbose #1726 > >
00:00:57 verbose #1727 > >             inl env =
00:00:57 verbose #1728 > >                 arg_matches
00:00:57 verbose #1729 > >                 |> runtime.matches_get_one ((get_args () .cuda |> snd).env |>
00:00:57 verbose #1730 > > fst)
00:00:57 verbose #1731 > >                 |> optionm'.unbox
00:00:57 verbose #1732 > >                 |> optionm.map (
00:00:57 verbose #1733 > >                     sm'.from_std_string
00:00:57 verbose #1734 > >                     >> reflection.union_try_pick
00:00:57 verbose #1735 > >                 )
00:00:57 verbose #1736 > >                 |> optionm'.flatten
00:00:57 verbose #1737 > >                 |> optionm'.default_value Pip
00:00:57 verbose #1738 > >
00:00:57 verbose #1739 > >             inl deps : am'.vec sm'.std_string =
00:00:57 verbose #1740 > >                 arg_matches
00:00:57 verbose #1741 > >                 |> runtime.matches_get_many ((get_args () .cuda |> snd).deps |>
00:00:57 verbose #1742 > > fst)
00:00:57 verbose #1743 > >                 |> optionm'.unbox
00:00:57 verbose #1744 > >                 |> optionm'.default_value (;[[]] |> am'.to_vec)
00:00:57 verbose #1745 > >
00:00:57 verbose #1746 > >             inl command_result =
00:00:57 verbose #1747 > >                 process_cuda { py_path env deps }
00:00:57 verbose #1748 > >                 |> fun { extension code output } =>
00:00:57 verbose #1749 > >                     ;[[
00:00:57 verbose #1750 > >                         "extension", extension |> optionm'.default_value ""
00:00:57 verbose #1751 > >                         "code", code |> optionm'.default_value ""
00:00:57 verbose #1752 > >                         "output", output |> optionm'.default_value ""
00:00:57 verbose #1753 > >                     ]]
00:00:57 verbose #1754 > >
00:00:57 verbose #1755 > >             ;[[
00:00:57 verbose #1756 > >                 "command_result",
00:00:57 verbose #1757 > >                 command_result
00:00:57 verbose #1758 > >                 |> am'.to_vec
00:00:57 verbose #1759 > >                 |> am'.vec_map' fun k, v =>
00:00:57 verbose #1760 > >                     new_pair (sm'.to_std_string k) (sm'.to_std_string v)
00:00:57 verbose #1761 > >                 |> mapm.b_tree_map_from_vec_pairs
00:00:57 verbose #1762 > >                 |> sm'.serialize
00:00:57 verbose #1763 > >                 |> resultm.unwrap'
00:00:57 verbose #1764 > >                 |> sm'.from_std_string
00:00:57 verbose #1765 > >             ]]
00:00:57 verbose #1766 > >
00:00:57 verbose #1767 > >         | Some (subcommand, arg_matches)
00:00:57 verbose #1768 > >                 when (subcommand |> sm'.from_std_string) = (get_args () .fable
00:00:57 verbose #1769 > > |> fst) =>
00:00:57 verbose #1770 > >
00:00:57 verbose #1771 > >             inl fs_path =
00:00:57 verbose #1772 > >                 arg_matches
00:00:57 verbose #1773 > >                 |> runtime.matches_get_one ((get_args () .fable |> snd).fs_path
00:00:57 verbose #1774 > > |> fst)
00:00:57 verbose #1775 > >                 |> optionm'.unbox
00:00:57 verbose #1776 > >                 |> optionm.value
00:00:57 verbose #1777 > >                 |> sm'.from_std_string
00:00:57 verbose #1778 > >
00:00:57 verbose #1779 > >             inl command =
00:00:57 verbose #1780 > >                 arg_matches
00:00:57 verbose #1781 > >                 |> runtime.matches_get_one ((get_args () .fable |> snd).command
00:00:57 verbose #1782 > > |> fst)
00:00:57 verbose #1783 > >                 |> optionm'.unbox
00:00:57 verbose #1784 > >                 |> optionm.map sm'.from_std_string
00:00:57 verbose #1785 > >
00:00:57 verbose #1786 > >             inl command_result =
00:00:57 verbose #1787 > >                 match command with
00:00:57 verbose #1788 > >                 | Some command =>
00:00:57 verbose #1789 > >                     get_command ()
00:00:57 verbose #1790 > >                     |> runtime.command_get_matches_from (
00:00:57 verbose #1791 > >                         $'$"_ {!command} --fs-path \\\"{!fs_path}\\\""' |>
00:00:57 verbose #1792 > > runtime.split_args |> resultm.get
00:00:57 verbose #1793 > >                     )
00:00:57 verbose #1794 > >                     |> run trace_level
00:00:57 verbose #1795 > >                     |> async.await
00:00:57 verbose #1796 > >                     |> resultm.unwrap'
00:00:57 verbose #1797 > >                 | None => "{}"
00:00:57 verbose #1798 > >
00:00:57 verbose #1799 > >             ;[[
00:00:57 verbose #1800 > >                 "command_result",
00:00:57 verbose #1801 > >                 command_result
00:00:57 verbose #1802 > >             ]]
00:00:57 verbose #1803 > >
00:00:57 verbose #1804 > >         | Some (subcommand, arg_matches)
00:00:57 verbose #1805 > >             when (subcommand |> sm'.from_std_string) = (get_args () .dib |> fst)
00:00:57 verbose #1806 > > =>
00:00:57 verbose #1807 > >
00:00:57 verbose #1808 > >             inl path =
00:00:57 verbose #1809 > >                 arg_matches
00:00:57 verbose #1810 > >                 |> runtime.matches_get_one ((get_args () .dib |> snd).path |>
00:00:57 verbose #1811 > > fst)
00:00:57 verbose #1812 > >                 |> optionm'.map'' (
00:00:57 verbose #1813 > >                     sm'.from_std_string
00:00:57 verbose #1814 > >                     >> file_system.absolute_path
00:00:57 verbose #1815 > >                 )
00:00:57 verbose #1816 > >                 |> optionm'.unwrap
00:00:57 verbose #1817 > >
00:00:57 verbose #1818 > >             inl retries =
00:00:57 verbose #1819 > >                 arg_matches
00:00:57 verbose #1820 > >                 |> runtime.matches_get_one ((get_args () .dib |> snd).retries |>
00:00:57 verbose #1821 > > fst)
00:00:57 verbose #1822 > >                 |> optionm'.default_value' 1u8
00:00:57 verbose #1823 > >
00:00:57 verbose #1824 > >             inl working_directory : optionm'.option' string =
00:00:57 verbose #1825 > >                 arg_matches
00:00:57 verbose #1826 > >                 |> runtime.matches_get_one ((get_args () .dib |>
00:00:57 verbose #1827 > > snd).working_directory |> fst)
00:00:57 verbose #1828 > >
00:00:57 verbose #1829 > >             process_dib { path retries working_directory }
00:00:57 verbose #1830 > >
00:00:57 verbose #1831 > >         | matches =>
00:00:57 verbose #1832 > >             match matches with
00:00:57 verbose #1833 > >             | Some (subcommand, arg_matches)
00:00:57 verbose #1834 > >                     when (subcommand |> sm'.from_std_string) = (get_args ()
00:00:57 verbose #1835 > > .rust |> fst) =>
00:00:57 verbose #1836 > >
00:00:57 verbose #1837 > >                 inl fs_path =
00:00:57 verbose #1838 > >                     arg_matches
00:00:57 verbose #1839 > >                     |> runtime.matches_get_one ((get_args () .rust |>
00:00:57 verbose #1840 > > snd).fs_path |> fst)
00:00:57 verbose #1841 > >                     |> optionm'.unbox
00:00:57 verbose #1842 > >                     |> optionm.value
00:00:57 verbose #1843 > >                     |> sm'.from_std_string
00:00:57 verbose #1844 > >
00:00:57 verbose #1845 > >                 inl deps : am'.vec sm'.std_string =
00:00:57 verbose #1846 > >                     arg_matches
00:00:57 verbose #1847 > >                     |> runtime.matches_get_many ((get_args () .rust |> snd).deps
00:00:57 verbose #1848 > > |> fst)
00:00:57 verbose #1849 > >                     |> optionm'.unbox
00:00:57 verbose #1850 > >                     |> optionm'.default_value (;[[]] |> am'.to_vec)
00:00:57 verbose #1851 > >
00:00:57 verbose #1852 > >                 process_rust { fs_path deps trace_level }
00:00:57 verbose #1853 > >
00:00:57 verbose #1854 > >             | Some (subcommand, arg_matches)
00:00:57 verbose #1855 > >                     when (subcommand |> sm'.from_std_string) = (get_args ()
00:00:57 verbose #1856 > > .typescript |> fst) =>
00:00:57 verbose #1857 > >
00:00:57 verbose #1858 > >                 inl fs_path =
00:00:57 verbose #1859 > >                     arg_matches
00:00:57 verbose #1860 > >                     |> runtime.matches_get_one ((get_args () .typescript |>
00:00:57 verbose #1861 > > snd).fs_path |> fst)
00:00:57 verbose #1862 > >                     |> optionm'.unbox
00:00:57 verbose #1863 > >                     |> optionm.value
00:00:57 verbose #1864 > >                     |> sm'.from_std_string
00:00:57 verbose #1865 > >
00:00:57 verbose #1866 > >                 inl deps : am'.vec sm'.std_string =
00:00:57 verbose #1867 > >                     arg_matches
00:00:57 verbose #1868 > >                     |> runtime.matches_get_many ((get_args () .typescript |>
00:00:57 verbose #1869 > > snd).deps |> fst)
00:00:57 verbose #1870 > >                     |> optionm'.unbox
00:00:57 verbose #1871 > >                     |> optionm'.default_value (;[[]] |> am'.to_vec)
00:00:57 verbose #1872 > >
00:00:57 verbose #1873 > >                 process_typescript { fs_path deps trace_level }
00:00:57 verbose #1874 > >
00:00:57 verbose #1875 > >             | Some (subcommand, arg_matches)
00:00:57 verbose #1876 > >                     when (subcommand |> sm'.from_std_string) = (get_args ()
00:00:57 verbose #1877 > > .python |> fst) =>
00:00:57 verbose #1878 > >                 inl fs_path =
00:00:57 verbose #1879 > >                     arg_matches
00:00:57 verbose #1880 > >                     |> runtime.matches_get_one ((get_args () .python |>
00:00:57 verbose #1881 > > snd).fs_path |> fst)
00:00:57 verbose #1882 > >                     |> optionm'.unbox
00:00:57 verbose #1883 > >                     |> optionm.value
00:00:57 verbose #1884 > >                     |> sm'.from_std_string
00:00:57 verbose #1885 > >
00:00:57 verbose #1886 > >                 inl deps : am'.vec sm'.std_string =
00:00:57 verbose #1887 > >                     arg_matches
00:00:57 verbose #1888 > >                     |> runtime.matches_get_many ((get_args () .python |>
00:00:57 verbose #1889 > > snd).deps |> fst)
00:00:57 verbose #1890 > >                     |> optionm'.unbox
00:00:57 verbose #1891 > >                     |> optionm'.default_value (;[[]] |> am'.to_vec)
00:00:57 verbose #1892 > >
00:00:57 verbose #1893 > >                 process_python { fs_path deps trace_level }
00:00:57 verbose #1894 > >
00:00:57 verbose #1895 > >             | Some (subcommand, arg_matches) =>
00:00:57 verbose #1896 > >                 trace Debug
00:00:57 verbose #1897 > >                     fun () => $'"spiral_builder.run / invalid subcommand"'
00:00:57 verbose #1898 > >                     fun () => { subcommand arg_matches }
00:00:57 verbose #1899 > >
00:00:57 verbose #1900 > >                 { extension = None; code = None; output = None }
00:00:57 verbose #1901 > >             | _ =>
00:00:57 verbose #1902 > >                 { extension = None; code = None; output = None }
00:00:57 verbose #1903 > >             |> fun { extension code output } =>
00:00:57 verbose #1904 > >                 ;[[
00:00:57 verbose #1905 > >                     "extension", extension |> optionm'.default_value ""
00:00:57 verbose #1906 > >                     "code", code |> optionm'.default_value ""
00:00:57 verbose #1907 > >                     "output", output |> optionm'.default_value ""
00:00:57 verbose #1908 > >                 ]]
00:00:57 verbose #1909 > >         |> am'.to_vec
00:00:57 verbose #1910 > >         |> am'.vec_map' fun k, v =>
00:00:57 verbose #1911 > >             new_pair (sm'.to_std_string k) (sm'.to_std_string v)
00:00:57 verbose #1912 > >         |> mapm.b_tree_map_from_vec_pairs
00:00:57 verbose #1913 > >         |> sm'.serialize
00:00:57 verbose #1914 > >         |> resultm.map_error' (sm'.format' >> sm'.from_std_string)
00:00:57 verbose #1915 > >         |> resultm.map' sm'.from_std_string
00:00:57 verbose #1916 > >     |> async.future_init (3, 2) 1
00:00:57 verbose #1917 > 00:00:57   debug #29 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a0f71b7792427e037d0e3f91743c3dbf3a34d4bf990c8e361b2f0e80e5f14a43/main.spi
00:00:58 verbose #1918 > >
00:00:58 verbose #1919 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:58 verbose #1920 > > //// test
00:00:58 verbose #1921 > > ///! rust -d async-walkdir chrono clap encoding_rs encoding_rs_io futures rand
00:00:58 verbose #1922 > > rayon regex serde_json sha2 tokio[['rt-multi-thread']] tokio-stream
00:00:58 verbose #1923 > >
00:00:58 verbose #1924 > > inl file_name = "main.fs"
00:00:58 verbose #1925 > > inl code = "3 - 6 |> System.Console.WriteLine\n"
00:00:58 verbose #1926 > >
00:00:58 verbose #1927 > > inl temp_dir, disposable =
00:00:58 verbose #1928 > >     (file_name, code)
00:00:58 verbose #1929 > >     |> sm'.format_debug
00:00:58 verbose #1930 > >     |> crypto.hash_text
00:00:58 verbose #1931 > >     |> file_system.create_temp_dir'
00:00:58 verbose #1932 > > inl fs_path = temp_dir </> file_name
00:00:58 verbose #1933 > >
00:00:58 verbose #1934 > > code |> file_system.write_all_text fs_path
00:00:58 verbose #1935 > >
00:00:58 verbose #1936 > > get_command ()
00:00:58 verbose #1937 > > |> runtime.command_get_matches_from ($'$"_ fable -f \\\"{!fs_path}\\\" -c
00:00:58 verbose #1938 > > \\\"rust -d regex=\'*\'\\\""' |> runtime.split_args |> resultm.get)
00:00:58 verbose #1939 > > |> run Verbose
00:00:58 verbose #1940 > > |> async.block_on
00:00:58 verbose #1941 > > |> resultm.unwrap'
00:00:58 verbose #1942 > > |> sm'.deserialize
00:00:58 verbose #1943 > > |> resultm.unwrap'
00:00:58 verbose #1944 > > |> mapm.get ("command_result" |> sm'.to_std_string)
00:00:58 verbose #1945 > > |> optionm'.unwrap
00:00:58 verbose #1946 > > |> sm'.from_std_string
00:00:58 verbose #1947 > > |> sm'.deserialize
00:00:58 verbose #1948 > > |> resultm.unwrap'
00:00:58 verbose #1949 > > |> fun result =>
00:00:58 verbose #1950 > >     result
00:00:58 verbose #1951 > >     |> mapm.get ("extension" |> sm'.to_std_string)
00:00:58 verbose #1952 > >     |> optionm'.unwrap
00:00:58 verbose #1953 > >     |> sm'.from_std_string
00:00:58 verbose #1954 > >     |> _assert_eq "rs"
00:00:58 verbose #1955 > >     result
00:00:58 verbose #1956 > >     |> mapm.get ("output" |> sm'.to_std_string)
00:00:58 verbose #1957 > >     |> optionm'.unwrap
00:00:58 verbose #1958 > >     |> sm'.from_std_string
00:00:58 verbose #1959 > >     |> _assert_eq "-3"
00:00:58 verbose #1960 > >
00:00:58 verbose #1961 > > disposable |> use |> ignore
00:00:58 verbose #1962 > 00:00:57   debug #30 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/91ae168a0fa4e84229a7782e6b668ac9ff86995e8672b447142c6cb1605838fc/main.spi
00:01:17 verbose #1963 > >
00:01:17 verbose #1964 > > ╭─[ 19.14s - return value ]────────────────────────────────────────────────────╮
00:01:17 verbose #1965 > > │ 00:00:00 verbose #1 file_system.create_dir / { dir =                   │
00:01:17 verbose #1966 > > │ C:\Users\i574n\AppData\Local\Temp\!create_temp_path_\spiral_builder_8f9515f5 │
00:01:17 verbose #1967 > > │ a5f9f4f93a7eac284f68f2f5221de22953735f801364365234f1c7d0\c6422374-71e4-07d4- │
00:01:17 verbose #1968 > > │ 0ba4-c3084b24fbba }                                                          │
00:01:17 verbose #1969 > > │ 00:00:00 verbose #2 file_system.create_dir / { dir =                   │
00:01:17 verbose #1970 > > │ c:\home\git\polyglot\target/spiral_builder\spiral_builder\packages\Rust\bbba │
00:01:17 verbose #1971 > > │ 338a47ca28119f39303b7763a976cf95da9c277df176e65d83bd5db52892 }               │
00:01:17 verbose #1972 > > │ 00:00:00   debug #3 runtime.execute_with_options / { file_name =       │
00:01:17 verbose #1973 > > │ dotnet; arguments = ["fable",                                                │
00:01:17 verbose #1974 > > │ "c:/home/git/polyglot/target/spiral_builder/spiral_builder/packages/Rust/bbb │
00:01:17 verbose #1975 > > │ a338a47ca28119f39303b7763a976cf95da9c277df176e65d83bd5db52892/spiral_builder │
00:01:17 verbose #1976 > > │ .fsproj", "--optimize", "--lang", "rs", "--extension", ".rs", "--outDir",    │
00:01:17 verbose #1977 > > │ "c:\\home\\git\\polyglot\\target/spiral_builder\\spiral_builder\\packages\\R │
00:01:17 verbose #1978 > > │ ust\\bbba338a47ca28119f39303b7763a976cf95da9c277df176e65d83bd5db52892",      │
00:01:17 verbose #1979 > > │ "--define", "_WINDOWS"]; options = { command = dotnet fable                  │
00:01:17 verbose #1980 > > │ "c:/home/git/polyglot/target/spiral_builder/spiral_builder/packages/Rust/bbb │
00:01:17 verbose #1981 > > │ a338a47ca28119f39303b7763a976cf95da9c277df176e65d83bd5db52892/spiral_builder │
00:01:17 verbose #1982 > > │ .fsproj" --optimize --lang rs --extension .rs --outDir                       │
00:01:17 verbose #1983 > > │ "c:\home\git\polyglot\target/spiral_builder\spiral_builder\packages\Rust\bbb │
00:01:17 verbose #1984 > > │ a338a47ca28119f39303b7763a976cf95da9c277df176e65d83bd5db52892" --define      │
00:01:17 verbose #1985 > > │ _WINDOWS; cancellation_token = None; environment_variables = Array(MutCell([ │
00:01:17 verbose #1986 > > │ ])); on_line = None; stdin = None; trace = true; working_directory = None }  │
00:01:17 verbose #1987 > > │ }                                                                            │
00:01:17 verbose #1988 > > │ 00:00:00 ...bose #21 > -3                                              │
00:01:17 verbose #1989 > > │ 00:00:02 verbose #22 runtime.execute_with_options / result / {         │
00:01:17 verbose #1990 > > │ exit_code = 0; std_trace_length = 513 }                                      │
00:01:17 verbose #1991 > > │ 00:00:02 verbose #23 spiral_builder.process_rust / { new_code_path =   │
00:01:17 verbose #1992 > > │ c:\home\git\polyglot\target/spiral_builder\spiral_builder\packages\Rust\bbba │
00:01:17 verbose #1993 > > │ 338a47ca28119f39303b7763a976cf95da9c277df176e65d83bd5db52892\spiral_builder. │
00:01:17 verbose #1994 > > │ rs; cleanup =                                                                │
00:01:17 verbose #1995 > > │ UH4_1("c:\home\git\polyglot\target/spiral_builder\spiral_builder\packages\Ru │
00:01:17 verbose #1996 > > │ st\bbba338a47ca28119f39303b7763a976cf95da9c277df176e65d83bd5db52892\../../.. │
00:01:17 verbose #1997 > > │ \target/debug/spiral_builder_bbba338a47ca28119f39303b7763a976cf95da9c277df17 │
00:01:17 verbose #1998 > > │ 6e65d83bd5db52892.d", true,                                                  │
00:01:17 verbose #1999 > > │ UH4_1("c:\home\git\polyglot\target/spiral_builder\spiral_builder\packages\Ru │
00:01:17 verbose #2000 > > │ st\bbba338a47ca28119f39303b7763a976cf95da9c277df176e65d83bd5db52892\../../.. │
00:01:17 verbose #2001 > > │ \target/debug/spiral_builder_bbba338a47ca28119f39303b7763a976cf95da9c277df17 │
00:01:17 verbose #2002 > > │ 6e65d83bd5db52892.exe", true,                                                │
00:01:17 verbose #2003 > > │ UH4_1("c:\home\git\polyglot\target/spiral_builder\spiral_builder\packages\Ru │
00:01:17 verbose #2004 > > │ st\bbba338a47ca28119f39303b7763a976cf95da9c277df176e65d83bd5db52892\../../.. │
00:01:17 verbose #2005 > > │ \target/debug/spiral_builder_bbba338a47ca28119f39303b7763a976cf95da9c277df17 │
00:01:17 verbose #2006 > > │ 6e65d83bd5db52892.pdb", true,                                                │
00:01:17 verbose #2007 > > │ UH4_1("c:\home\git\polyglot\target/spiral_builder\spiral_builder\packages\Ru │
00:01:17 verbose #2008 > > │ st\bbba338a47ca28119f39303b7763a976cf95da9c277df176e65d83bd5db52892\../../.. │
00:01:17 verbose #2009 > > │ \target/debug/spiral_builder_bbba338a47ca28119f39303b7763a976cf95da9c277df17 │
00:01:17 verbose #2010 > > │ 6e65d83bd5db52892", false, UH4_0)))) }                                       │
00:01:17 verbose #2011 > > │ assert_eq / actual: "rs" / expected: "rs"                                    │
00:01:17 verbose #2012 > > │ assert_eq / actual: "-3" / expected: "-3"                                    │
00:01:17 verbose #2013 > > │                                                                              │
00:01:17 verbose #2014 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:17 verbose #2015 > >
00:01:17 verbose #2016 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:17 verbose #2017 > > //// test
00:01:17 verbose #2018 > > ///! rust -d async-walkdir chrono clap encoding_rs encoding_rs_io futures rand
00:01:17 verbose #2019 > > rayon regex serde_json sha2 tokio[['rt-multi-thread']] tokio-stream
00:01:17 verbose #2020 > >
00:01:17 verbose #2021 > > inl code = "3 - 6 |> System.Console.WriteLine\n"
00:01:17 verbose #2022 > > inl file_name = "main.fs"
00:01:17 verbose #2023 > >
00:01:17 verbose #2024 > > inl temp_dir, disposable =
00:01:17 verbose #2025 > >     (file_name, code)
00:01:17 verbose #2026 > >     |> sm'.format_debug
00:01:17 verbose #2027 > >     |> crypto.hash_text
00:01:17 verbose #2028 > >     |> file_system.create_temp_dir'
00:01:17 verbose #2029 > > inl fs_path = temp_dir </> file_name
00:01:17 verbose #2030 > >
00:01:17 verbose #2031 > > code |> file_system.write_all_text fs_path
00:01:17 verbose #2032 > >
00:01:17 verbose #2033 > > get_command ()
00:01:17 verbose #2034 > > |> runtime.command_get_matches_from ($'$"_ fable -f \\\"{!fs_path}\\\" -c
00:01:17 verbose #2035 > > \\\"typescript\\\""' |> runtime.split_args |> resultm.get)
00:01:17 verbose #2036 > > |> run Verbose
00:01:17 verbose #2037 > > |> async.block_on
00:01:17 verbose #2038 > > |> resultm.unwrap'
00:01:17 verbose #2039 > > |> sm'.deserialize
00:01:17 verbose #2040 > > |> resultm.unwrap'
00:01:17 verbose #2041 > > |> mapm.get ("command_result" |> sm'.to_std_string)
00:01:17 verbose #2042 > > |> optionm'.unwrap
00:01:17 verbose #2043 > > |> sm'.from_std_string
00:01:17 verbose #2044 > > |> sm'.deserialize
00:01:17 verbose #2045 > > |> resultm.unwrap'
00:01:17 verbose #2046 > > |> fun result =>
00:01:17 verbose #2047 > >     result
00:01:17 verbose #2048 > >     |> mapm.get ("extension" |> sm'.to_std_string)
00:01:17 verbose #2049 > >     |> optionm'.unwrap
00:01:17 verbose #2050 > >     |> sm'.from_std_string
00:01:17 verbose #2051 > >     |> _assert_eq "ts"
00:01:17 verbose #2052 > >     result
00:01:17 verbose #2053 > >     |> mapm.get ("output" |> sm'.to_std_string)
00:01:17 verbose #2054 > >     |> optionm'.unwrap
00:01:17 verbose #2055 > >     |> sm'.from_std_string
00:01:17 verbose #2056 > >     |> _assert_eq "-3"
00:01:17 verbose #2057 > >
00:01:17 verbose #2058 > > disposable |> use |> ignore
00:01:17 verbose #2059 > 00:01:16   debug #31 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3e1d2f6630d361c3e2079560059f012a6c4578601bd6c43e4b6b3ba90cff2eb3/main.spi
00:01:36 verbose #2060 > >
00:01:36 verbose #2061 > > ╭─[ 19.18s - return value ]────────────────────────────────────────────────────╮
00:01:36 verbose #2062 > > │ 00:00:00 verbose #1 file_system.create_dir / { dir =                   │
00:01:36 verbose #2063 > > │ C:\Users\i574n\AppData\Local\Temp\!create_temp_path_\spiral_builder_e16193eb │
00:01:36 verbose #2064 > > │ cad3625e884ec61930b878aa264f72081d7671e220261aec1440f89d\c6422374-71e4-07d4- │
00:01:36 verbose #2065 > > │ 0ba4-c3084b24fbba }                                                          │
00:01:36 verbose #2066 > > │ 00:00:00 verbose #2 file_system.create_dir / { dir =                   │
00:01:36 verbose #2067 > > │ c:\home\git\polyglot\target/spiral_builder\spiral_builder\packages\TypeScrip │
00:01:36 verbose #2068 > > │ t\702335b0756baa7db0d02dbbeaf9fc04cf2c3b7dbb45866c578c5109aaa8c4a8 }         │
00:01:36 verbose #2069 > > │ 00:00:00   debug #3 spiral_builder.process_typescript / { version =    │
00:01:36 verbose #2070 > > │ "US40_0(\n                                                                   │
00:01:36 verbose #2071 > > │ \"c:\\home\\git\\polyglot\\lib/typescript/fable/fable_modules\\fable-library │
00:01:36 verbose #2072 > > │ -ts.4.19.3\",\n    \"4.19.3\",\n)" }                                         │
00:01:36 verbose #2073 > > │ 00:00:00   debug #4 runtime.execute_with_options / { file_name =       │
00:01:36 verbose #2074 > > │ dotnet; arguments = ["fable",                                                │
00:01:36 verbose #2075 > > │ "c:/home/git/polyglot/target/spiral_builder/spiral_builder/packages/TypeScri │
00:01:36 verbose #2076 > > │ pt/702335b0756baa7db0d02dbbeaf9fc04cf2c3b7dbb45866c578c5109aaa8c4a8/spiral_b │
00:01:36 verbose #2077 > > │ uilder.fsproj", "--optimize", "--lang", "ts", "--extension", ".ts",          │
00:01:36 verbose #2078 > > │ "--outDir",                                                                  │
00:01:36 verbose #2079 > > │ "c:\\home\\git\\polyglot\\target/spiral_builder\\spiral_builder\\packages\\T │
00:01:36 verbose #2080 > > │ ypeScript\\702335b0756baa7db0d02dbbeaf9fc04cf2c3b7dbb45866c578c5109aaa8c4a8" │
00:01:36 verbose #2081 > > │ , "--define", "_WINDOWS"]; options = { command = dotnet fable                │
00:01:36 verbose #2082 > > │ "c:/home/git/polyglot/target/spiral_builder/spiral_builder/packages/TypeScri │
00:01:36 verbose #2083 > > │ pt/702335b0756baa7db0d02dbbeaf9fc04cf2c3b7dbb45866c578c5109aaa8c4a8/spiral_b │
00:01:36 verbose #2084 > > │ uilder.fsproj" --optimize --lang ts --extension .ts --outDir                 │
00:01:36 verbose #2085 > > │ "c:\home\git\polyglot\target/spiral_builder\spiral_builder\packages\TypeScri │
00:01:36 verbose #2086 > > │ pt\702335b0... Files\Intel\WirelessCommon\;C:\Program                        │
00:01:36 verbose #2087 > > │ Files\Perforce;C:\Users\i574n\scoop\apps\vscode-insiders\current\bin;C:\User │
00:01:36 verbose #2088 > > │ s\i574n\scoop\apps\elixir\current\bin;C:\Users\i574n\scoop\apps\python\curre │
00:01:36 verbose #2089 > > │ nt\Scripts;C:\Users\i574n\scoop\apps\rustup\current\.cargo\bin;C:\Users\i574 │
00:01:36 verbose #2090 > > │ n\scoop\apps\latex\current\texmfs\install\miktex\bin\x64;C:\Users\i574n\scoo │
00:01:36 verbose #2091 > > │ p\apps\dotnet-sdk-preview\current;C:\Users\i574n\scoop\apps\dotnet-sdk\curre │
00:01:36 verbose #2092 > > │ nt;C:\Users\i574n\scoop\apps\gsudo\current;C:\Users\i574n\scoop\apps\python\ │
00:01:36 verbose #2093 > > │ current;C:\Users\i574n\scoop\apps\nircmd\current;C:\Users\i574n\AppData\Loca │
00:01:36 verbose #2094 > > │ l\Microsoft\WindowsApps;C:\Users\i574n/scoop/buckets/mold/home/windows/path; │
00:01:36 verbose #2095 > > │ C:\Users\i574n/scoop/persist/rustup/.cargo/bin;C:\Users\i574n/scoop/apps/nvm │
00:01:36 verbose #2096 > > │ /current/nodejs/nodejs;C:\Users\i574n/scoop/apps/cygwin/current/root/bin;C:\ │
00:01:36 verbose #2097 > > │ Users\i574n\AppData\Local\Programs\Microsoft VS                              │
00:01:36 verbose #2098 > > │ Code\bin;C:\Users\i574n\AppData\Local\Microsoft\WindowsApps;C:\Users\i574n\. │
00:01:36 verbose #2099 > > │ bun\bin;C:\Users\i574n\.dotnet\tools;C:\Users\i574n\scoop\shims;C:\Users\i57 │
00:01:36 verbose #2100 > > │ 4n\.fly\bin;C:\Users\i574n/.cargo/bin;C:\Users\i574n/.bun/bin;C:\Users\i574n │
00:01:36 verbose #2101 > > │ /.cargo/bin;C:\Users\i574n/.bun/bin;C:\Users\i574n/.cargo/bin;C:\Users\i574n │
00:01:36 verbose #2102 > > │ /.bun/bin"), ("TRACE_LEVEL", "Verbose")])); on_line = None; stdin = None;    │
00:01:36 verbose #2103 > > │ trace = true; working_directory = None } }                                   │
00:01:36 verbose #2104 > > │ 00:00:01 verbose #19 > -3                                              │
00:01:36 verbose #2105 > > │ 00:00:01 verbose #20 runtime.execute_with_options / result / {         │
00:01:36 verbose #2106 > > │ exit_code = 0; std_trace_length = 2 }                                        │
00:01:36 verbose #2107 > > │ assert_eq / actual: "ts" / expected: "ts"                                    │
00:01:36 verbose #2108 > > │ assert_eq / actual: "-3" / expected: "-3"                                    │
00:01:36 verbose #2109 > > │                                                                              │
00:01:36 verbose #2110 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:36 verbose #2111 > >
00:01:36 verbose #2112 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:36 verbose #2113 > > //// test
00:01:36 verbose #2114 > > ///! rust -d async-walkdir chrono clap encoding_rs encoding_rs_io futures rand
00:01:36 verbose #2115 > > rayon regex serde_json sha2 tokio[['rt-multi-thread']] tokio-stream
00:01:36 verbose #2116 > >
00:01:36 verbose #2117 > > inl file_name = "main.fs"
00:01:36 verbose #2118 > > inl code = "3 - 6 |> System.Console.WriteLine\n"
00:01:36 verbose #2119 > >
00:01:36 verbose #2120 > > inl temp_dir, disposable =
00:01:36 verbose #2121 > >     (file_name, code)
00:01:36 verbose #2122 > >     |> sm'.format_debug
00:01:36 verbose #2123 > >     |> crypto.hash_text
00:01:36 verbose #2124 > >     |> file_system.create_temp_dir'
00:01:36 verbose #2125 > > inl fs_path = temp_dir </> file_name
00:01:36 verbose #2126 > >
00:01:36 verbose #2127 > > code |> file_system.write_all_text fs_path
00:01:36 verbose #2128 > >
00:01:36 verbose #2129 > > get_command ()
00:01:36 verbose #2130 > > |> runtime.command_get_matches_from ($'$"_ fable -f \\\"{!fs_path}\\\" -c
00:01:36 verbose #2131 > > \\\"python\\\""' |> runtime.split_args |> resultm.get)
00:01:36 verbose #2132 > > |> run Verbose
00:01:36 verbose #2133 > > |> async.block_on
00:01:36 verbose #2134 > > |> resultm.unwrap'
00:01:36 verbose #2135 > > |> sm'.deserialize
00:01:36 verbose #2136 > > |> resultm.unwrap'
00:01:36 verbose #2137 > > |> mapm.get ("command_result" |> sm'.to_std_string)
00:01:36 verbose #2138 > > |> optionm'.unwrap
00:01:36 verbose #2139 > > |> sm'.from_std_string
00:01:36 verbose #2140 > > |> sm'.deserialize
00:01:36 verbose #2141 > > |> resultm.unwrap'
00:01:36 verbose #2142 > > |> fun result =>
00:01:36 verbose #2143 > >     result
00:01:36 verbose #2144 > >     |> mapm.get ("extension" |> sm'.to_std_string)
00:01:36 verbose #2145 > >     |> optionm'.unwrap
00:01:36 verbose #2146 > >     |> sm'.from_std_string
00:01:36 verbose #2147 > >     |> _assert_eq "py"
00:01:36 verbose #2148 > >     result
00:01:36 verbose #2149 > >     |> mapm.get ("output" |> sm'.to_std_string)
00:01:36 verbose #2150 > >     |> optionm'.unwrap
00:01:36 verbose #2151 > >     |> sm'.from_std_string
00:01:36 verbose #2152 > >     |> _assert_eq "-3"
00:01:36 verbose #2153 > >
00:01:36 verbose #2154 > > disposable |> use |> ignore
00:01:36 verbose #2155 > 00:01:35   debug #32 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/cffa91a5e9ba8c4cccd3d58acffc59203d8d0fb13ba47e0ac5802731cd94bfe9/main.spi
00:01:55 verbose #2156 > >
00:01:55 verbose #2157 > > ╭─[ 18.98s - return value ]────────────────────────────────────────────────────╮
00:01:55 verbose #2158 > > │ 00:00:00 verbose #1 file_system.create_dir / { dir =                   │
00:01:55 verbose #2159 > > │ C:\Users\i574n\AppData\Local\Temp\!create_temp_path_\spiral_builder_db71559f │
00:01:55 verbose #2160 > > │ 805a1ee0f5a2693e95537d3960174271bf3a98ac630088614e9dde67\c6422374-71e4-07d4- │
00:01:55 verbose #2161 > > │ 0ba4-c3084b24fbba }                                                          │
00:01:55 verbose #2162 > > │ 00:00:00 verbose #2 file_system.create_dir / { dir =                   │
00:01:55 verbose #2163 > > │ c:\home\git\polyglot\target/spiral_builder\spiral_builder\packages\Python\cb │
00:01:55 verbose #2164 > > │ 8f3dd33197bb0bc95f09b3f3057a6844a0b70d75477350491883d14d8680ce }             │
00:01:55 verbose #2165 > > │ 00:00:00   debug #3 runtime.execute_with_options / { file_name =       │
00:01:55 verbose #2166 > > │ dotnet; arguments = ["fable",                                                │
00:01:55 verbose #2167 > > │ "c:/home/git/polyglot/target/spiral_builder/spiral_builder/packages/Python/c │
00:01:55 verbose #2168 > > │ b8f3dd33197bb0bc95f09b3f3057a6844a0b70d75477350491883d14d8680ce/spiral_build │
00:01:55 verbose #2169 > > │ er.fsproj", "--optimize", "--lang", "py", "--extension", ".py", "--outDir",  │
00:01:55 verbose #2170 > > │ "c:\\home\\git\\polyglot\\target/spiral_builder\\spiral_builder\\packages\\P │
00:01:55 verbose #2171 > > │ ython\\cb8f3dd33197bb0bc95f09b3f3057a6844a0b70d75477350491883d14d8680ce",    │
00:01:55 verbose #2172 > > │ "--define", "_WINDOWS"]; options = { command = dotnet fable                  │
00:01:55 verbose #2173 > > │ "c:/home/git/polyglot/target/spiral_builder/spiral_builder/packages/Python/c │
00:01:55 verbose #2174 > > │ b8f3dd33197bb0bc95f09b3f3057a6844a0b70d75477350491883d14d8680ce/spiral_build │
00:01:55 verbose #2175 > > │ er.fsproj" --optimize --lang py --extension .py --outDir                     │
00:01:55 verbose #2176 > > │ "c:\home\git\polyglot\target/spiral_builder\spiral_builder\packages\Python\c │
00:01:55 verbose #2177 > > │ b8f3dd33197bb0bc95f09b3f3057a6844a0b70d75477350491883d14d8680ce" --define    │
00:01:55 verbose #2178 > > │ _WINDOWS; cancellation_token = None; environment_variables = Array(MutCell([ │
00:01:55 verbose #2179 > > │ ])); on_line = None; stdin = None; trace = true; working_directory = None }  │
00:01:55 verbose #2180 > > │ }                                                                            │
00:01:55 verbose #2181 > > │ 00:0... in case of issues run `dotnet fable clean` or try `--noCache`        │
00:01:55 verbose #2182 > > │ option.                                                                      │
00:01:55 verbose #2183 > > │ 00:00:00 verbose #11 > Project and references (1 source files) parsed  │
00:01:55 verbose #2184 > > │ in 203ms                                                                     │
00:01:55 verbose #2185 > > │ 00:00:00 verbose #12 >                                                 │
00:01:55 verbose #2186 > > │ 00:00:00 verbose #13 > Skipped compilation because all generated files │
00:01:55 verbose #2187 > > │ are up-to-date!                                                              │
00:01:55 verbose #2188 > > │ 00:00:01 verbose #14 runtime.execute_with_options / result / {         │
00:01:55 verbose #2189 > > │ exit_code = 0; std_trace_length = 538 }                                      │
00:01:55 verbose #2190 > > │ 00:00:01   debug #15 spiral_builder.process_python / { new_code_path = │
00:01:55 verbose #2191 > > │ c:\home\git\polyglot\target/spiral_builder\spiral_builder\packages\Python\cb │
00:01:55 verbose #2192 > > │ 8f3dd33197bb0bc95f09b3f3057a6844a0b70d75477350491883d14d8680ce\spiral_builde │
00:01:55 verbose #2193 > > │ r.py }                                                                       │
00:01:55 verbose #2194 > > │ 00:00:01   debug #16 runtime.execute_with_options / { file_name =      │
00:01:55 verbose #2195 > > │ python; arguments = [                                                        │
00:01:55 verbose #2196 > > │ "c:\\home\\git\\polyglot\\target/spiral_builder\\spiral_builder\\packages\\P │
00:01:55 verbose #2197 > > │ ython\\cb8f3dd33197bb0bc95f09b3f3057a6844a0b70d75477350491883d14d8680ce\\spi │
00:01:55 verbose #2198 > > │ ral_builder.py"]; options = { command = python                               │
00:01:55 verbose #2199 > > │ "c:\home\git\polyglot\target/spiral_builder\spiral_builder\packages\Python\c │
00:01:55 verbose #2200 > > │ b8f3dd33197bb0bc95f09b3f3057a6844a0b70d75477350491883d14d8680ce\spiral_build │
00:01:55 verbose #2201 > > │ er.py"; cancellation_token = None; environment_variables = Array(MutCell([   │
00:01:55 verbose #2202 > > │ ("TRACE_LEVEL", "Verbose")])); on_line = None; stdin = None; trace = true;   │
00:01:55 verbose #2203 > > │ working_directory = None } }                                                 │
00:01:55 verbose #2204 > > │ 00:00:01 verbose #17 > -3                                              │
00:01:55 verbose #2205 > > │ 00:00:01 verbose #18 runtime.execute_with_options / result / {         │
00:01:55 verbose #2206 > > │ exit_code = 0; std_trace_length = 2 }                                        │
00:01:55 verbose #2207 > > │ assert_eq / actual: "py" / expected: "py"                                    │
00:01:55 verbose #2208 > > │ assert_eq / actual: "-3" / expected: "-3"                                    │
00:01:55 verbose #2209 > > │                                                                              │
00:01:55 verbose #2210 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:55 verbose #2211 > >
00:01:55 verbose #2212 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:55 verbose #2213 > > //// test
00:01:55 verbose #2214 > > ///! rust -d async-walkdir chrono clap encoding_rs encoding_rs_io rand rayon
00:01:55 verbose #2215 > > regex serde_json sha2 tokio[['rt-multi-thread']] tokio-stream
00:01:55 verbose #2216 > >
00:01:55 verbose #2217 > > inl file_name = "test.dib"
00:01:55 verbose #2218 > > inl code =
00:01:55 verbose #2219 > >
00:01:55 verbose #2220 > > "#!meta\n\n{\"kernelInfo\":{\"defaultKernelName\":\"fsharp\",\"items\":[[]]}}\n\
00:01:55 verbose #2221 > > n#!fsharp\n\n3 - 6\n"
00:01:55 verbose #2222 > >
00:01:55 verbose #2223 > > inl temp_dir, disposable =
00:01:55 verbose #2224 > >     (file_name, code)
00:01:55 verbose #2225 > >     |> sm'.format_debug
00:01:55 verbose #2226 > >     |> crypto.hash_text
00:01:55 verbose #2227 > >     |> file_system.create_temp_dir'
00:01:55 verbose #2228 > > inl path = temp_dir </> file_name |> file_system.normalize_path
00:01:55 verbose #2229 > >
00:01:55 verbose #2230 > > code
00:01:55 verbose #2231 > > |> file_system.write_all_text path
00:01:55 verbose #2232 > >
00:01:55 verbose #2233 > > get_command ()
00:01:55 verbose #2234 > > |> runtime.command_get_matches_from ($'$"_ dib -p {!path}"' |>
00:01:55 verbose #2235 > > runtime.split_args |> resultm.get)
00:01:55 verbose #2236 > > |> run Verbose
00:01:55 verbose #2237 > > |> async.block_on
00:01:55 verbose #2238 > > |> resultm.unwrap'
00:01:55 verbose #2239 > > |> __assert_string_contains false "<pre>-3 "
00:01:55 verbose #2240 > >
00:01:55 verbose #2241 > > $'$"{!path}.html"'
00:01:55 verbose #2242 > > |> file_system.read_all_text
00:01:55 verbose #2243 > > |> __assert_string_contains false "\"cell-id=1\""
00:01:55 verbose #2244 > >
00:01:55 verbose #2245 > > disposable |> use |> ignore
00:01:55 verbose #2246 > 00:01:55   debug #33 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2fa05b2946db757b64078ea157330e572bcf75b29688acfcc9d5a80b900a81e6/main.spi
00:02:27 verbose #2247 > >
00:02:27 verbose #2248 > > ╭─[ 32.11s - return value ]────────────────────────────────────────────────────╮
00:02:27 verbose #2249 > > │ 00:00:00 verbose #1 file_system.create_dir / { dir =                   │
00:02:27 verbose #2250 > > │ C:\Users\i574n\AppData\Local\Temp\!create_temp_path_\spiral_builder_8fecdcd1 │
00:02:27 verbose #2251 > > │ b877d64fe145ad5a2616338a5ba4e642b06c407a78da58b13611fe27\af524e22-8e9a-5d18- │
00:02:27 verbose #2252 > > │ 99ed-bd86e1b74623 }                                                          │
00:02:27 verbose #2253 > > │ 00:00:00   debug #2 runtime.execute_with_options / { file_name =       │
00:02:27 verbose #2254 > > │ dotnet; arguments = ["repl", "--exit-after-run", "--run",                    │
00:02:27 verbose #2255 > > │ "c:/Users/i574n/AppData/Local/Temp/!create_temp_path_/spiral_builder_8fecdcd │
00:02:27 verbose #2256 > > │ 1b877d64fe145ad5a2616338a5ba4e642b06c407a78da58b13611fe27/af524e22-8e9a-5d18 │
00:02:27 verbose #2257 > > │ -99ed-bd86e1b74623/test.dib", "--output-path",                               │
00:02:27 verbose #2258 > > │ "c:/Users/i574n/AppData/Local/Temp/!create_temp_path_/spiral_builder_8fecdcd │
00:02:27 verbose #2259 > > │ 1b877d64fe145ad5a2616338a5ba4e642b06c407a78da58b13611fe27/af524e22-8e9a-5d18 │
00:02:27 verbose #2260 > > │ -99ed-bd86e1b74623/test.dib.ipynb"]; options = { command = dotnet repl       │
00:02:27 verbose #2261 > > │ --exit-after-run --run                                                       │
00:02:27 verbose #2262 > > │ "c:/Users/i574n/AppData/Local/Temp/!create_temp_path_/spiral_builder_8fecdcd │
00:02:27 verbose #2263 > > │ 1b877d64fe145ad5a2616338a5ba4e642b06c407a78da58b13611fe27/af524e22-8e9a-5d18 │
00:02:27 verbose #2264 > > │ -99ed-bd86e1b74623/test.dib" --output-path                                   │
00:02:27 verbose #2265 > > │ "c:/Users/i574n/AppData/Local/Temp/!create_temp_path_/spiral_builder_8fecdcd │
00:02:27 verbose #2266 > > │ 1b877d64fe145ad5a2616338a5ba4e642b06c407a78da58b13611fe27/af524e22-8e9a-5d18 │
00:02:27 verbose #2267 > > │ -99ed-bd86e1b74623/test.dib.ipynb"; cancellation_token = None;               │
00:02:27 verbose #2268 > > │ environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"),           │
00:02:27 verbose #2269 > > │ ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false;      │
00:02:27 verbose #2270 > > │ working_directory = None } }                                                 │
00:02:27 verbose #2271 > > │ >                                                                            │
00:02:27 verbose #2272 > > │ > ── fsharp                                                                  │
00:02:27 verbose #2273 > > │ ──────────────────────────────────────────────────────────────────────       │
00:02:27 verbose #2274 > > │ > 3 - 6                                                                      │
00:02:27 verbose #2275 > > │ >                                                                            │
00:02:27 verbose #2276 > > │ > ╭─[ 5.31s...39m #9 runtime.execute_with_options / result / { exit_code =   │
00:02:27 verbose #2277 > > │ 0; std_trace_length = 915 }                                                  │
00:02:27 verbose #2278 > > │ 00:00:11   debug #10 spiral_builder.run / dib / jupyter nbconvert / {  │
00:02:27 verbose #2279 > > │ exit_code = 0; jupyter_result_length = 915 }                                 │
00:02:27 verbose #2280 > > │ 00:00:11   debug #11 runtime.execute_with_options / { file_name =      │
00:02:27 verbose #2281 > > │ pwsh; arguments = ["-c", "$counter = 1; $path =                              │
00:02:27 verbose #2282 > > │ 'c:/Users/i574n/AppData/Local/Temp/!create_temp_path_/spiral_builder_8fecdcd │
00:02:27 verbose #2283 > > │ 1b877d64fe145ad5a2616338a5ba4e642b06c407a78da58b13611fe27/af524e22-8e9a-5d18 │
00:02:27 verbose #2284 > > │ -99ed-bd86e1b74623/test.dib.html'; (Get-Content $path -Raw) -replace         │
00:02:27 verbose #2285 > > │ '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } |     │
00:02:27 verbose #2286 > > │ Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path =    │
00:02:27 verbose #2287 > > │ 'c:/Users/i574n/AppData/Local/Temp/!create_temp_path_/spiral_builder_8fecdcd │
00:02:27 verbose #2288 > > │ 1b877d64fe145ad5a2616338a5ba4e642b06c407a78da58b13611fe27/af524e22-8e9a-5d18 │
00:02:27 verbose #2289 > > │ -99ed-bd86e1b74623/test.dib.html'; (Get-Content $path -Raw) -replace         │
00:02:27 verbose #2290 > > │ '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } |       │
00:02:27 verbose #2291 > > │ Set-Content $path"; cancellation_token = None; environment_variables =       │
00:02:27 verbose #2292 > > │ Array(MutCell([])); on_line = None; stdin = None; trace = true;              │
00:02:27 verbose #2293 > > │ working_directory = None } }                                                 │
00:02:27 verbose #2294 > > │ 00:00:13 verbose #12 runtime.execute_with_options / result / {         │
00:02:27 verbose #2295 > > │ exit_code = 0; std_trace_length = 0 }                                        │
00:02:27 verbose #2296 > > │ 00:00:13   debug #13 spiral_builder.run / dib / html cell ids / {      │
00:02:27 verbose #2297 > > │ exit_code = 0; pwsh_replace_html_result_length = 0 }                         │
00:02:27 verbose #2298 > > │ 00:00:13   debug #14 spiral_builder.run / dib / { exit_code = 0;       │
00:02:27 verbose #2299 > > │ result_length = 3897 }                                                       │
00:02:27 verbose #2300 > > │                                                                              │
00:02:27 verbose #2301 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:27 verbose #2302 > >
00:02:27 verbose #2303 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:27 verbose #2304 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:27 verbose #2305 > > │ ## tests                                                                     │
00:02:27 verbose #2306 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:27 verbose #2307 > >
00:02:27 verbose #2308 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:27 verbose #2309 > > inl tests () =
00:02:27 verbose #2310 > >     rust.run_tests [[
00:02:27 verbose #2311 > >         "verify_app", fun _ =>
00:02:27 verbose #2312 > >             get_command () |> runtime.command_debug_assert
00:02:27 verbose #2313 > >     ]]
00:02:27 verbose #2314 > 00:02:26   debug #34 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/416f8783061af921702367120be0a48ceec28dd05e5e2a599d67fbc2dfb8e030/main.spi
00:02:28 verbose #2315 > >
00:02:28 verbose #2316 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:28 verbose #2317 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:28 verbose #2318 > > │ ## main                                                                      │
00:02:28 verbose #2319 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:28 verbose #2320 > >
00:02:28 verbose #2321 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:28 verbose #2322 > > ///!
00:02:28 verbose #2323 > >
00:02:28 verbose #2324 > > inl main (args : array_base string) =
00:02:28 verbose #2325 > >     inl trace_state = get_trace_state_or_init None
00:02:28 verbose #2326 > >
00:02:28 verbose #2327 > >     trace Debug
00:02:28 verbose #2328 > >         fun () => $'$"spiral_builder.main"'
00:02:28 verbose #2329 > >         fun () => { args }
00:02:28 verbose #2330 > >
00:02:28 verbose #2331 > >     inl command = get_command ()
00:02:28 verbose #2332 > >     inl arg_matches = command |> runtime.command_get_matches
00:02:28 verbose #2333 > >
00:02:28 verbose #2334 > >     inl trace_state_level = trace_state.level
00:02:28 verbose #2335 > >
00:02:28 verbose #2336 > >     inl result =
00:02:28 verbose #2337 > >         arg_matches
00:02:28 verbose #2338 > >         |> run *trace_state_level
00:02:28 verbose #2339 > >         |> async.block_on
00:02:28 verbose #2340 > >         |> resultm.unwrap'
00:02:28 verbose #2341 > >
00:02:28 verbose #2342 > >     if *trace_state_level = Info
00:02:28 verbose #2343 > >     then result |> console.write_line
00:02:28 verbose #2344 > >
00:02:28 verbose #2345 > >     0i32
00:02:28 verbose #2346 > >
00:02:28 verbose #2347 > > inl main () =
00:02:28 verbose #2348 > >     $'let tests () = !tests ()' : ()
00:02:28 verbose #2349 > >     $'let main args = !main args' : ()
00:02:28 verbose #2350 > 00:02:27   debug #35 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/81aec5df9cafdf4111abbf5b1b2c69da9f2f8881152f5dff9bf33195da4ab5a6/main.spi
00:02:33 verbose #2351 > 00:02:32 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 101178 }
00:02:33 verbose #2352 > 00:02:32   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/apps/spiral/builder/spiral_builder.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/apps/spiral/builder/spiral_builder.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:02:36 verbose #2353 > 00:02:34 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/apps/spiral/builder/spiral_builder.dib.ipynb to html
00:02:36 verbose #2354 > 00:02:34 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:02:36 verbose #2355 > 00:02:34 verbose #7 !   validate(nb)
00:02:39 verbose #2356 > 00:02:37 verbose #8 ! [NbConvertApp] Writing 565229 bytes to c:\home\git\polyglot\apps\spiral\builder\spiral_builder.dib.html
00:02:39 verbose #2357 > 00:02:37 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 677 }
00:02:39 verbose #2358 > 00:02:37   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 677 }
00:02:39 verbose #2359 > 00:02:37   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/apps/spiral/builder/spiral_builder.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/apps/spiral/builder/spiral_builder.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:02:40 verbose #2360 > 00:02:38 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:02:40 verbose #2361 > 00:02:38   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:02:41 verbose #2362 > 00:02:39   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 101914 }
00:02:41   debug #2363 runtime.execute_with_options_async / { exit_code = 0; output_length = 109277 }
00:02:41   debug #3 main / executeCommand / exitCode: 0 / command: ../../../workspace/target/release/spiral_builder.exe dib --path spiral_builder.dib
00:02:41 verbose #6 networking.wait_for_port_access / { port = 13805; retry = 0; timeout = Some 100; status = false }
00:02:41 verbose #7 async.run_with_timeout_async / { timeout = 100 }
00:00:00   debug #1 writeDibCode / output: Spi / path: spiral_builder.dib
00:00:00   debug #2 parseDibCode / output: Spi / file: spiral_builder.dib
00:00:00 verbose #1 async.run_with_timeout_async / { timeout = 180 }
00:00:00   debug #1 runtime.execute_with_options_async / { options = { command = dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port 13805 --default-int i32 --default-float f64; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = Some <fun:main@570-7>; stdin = None; trace = true; working_directory = Some "C:\home\git\polyglot" } }
00:00:01 verbose #2 > 00:00:00   debug #1 pwd: C:\home\git\polyglot
00:00:01 verbose #3 > 00:00:00   debug #2 dllPath: C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release
00:00:01 verbose #4 > 00:00:00   debug #3 targetDir: C:\home\git\polyglot\target/spiral_Eval
00:00:01 verbose #2 async.run_with_timeout_async / { timeout = 100 }
00:00:01 verbose #3 networking.wait_for_port_access / { port = 13805; retry = 0; timeout = Some 100; status = true }
00:00:01 verbose #4 async.run_with_timeout_async / { timeout = 100 }
00:00:01 verbose #5 > Starting the Spiral Server. It is bound to: http://localhost:13805
00:00:01 verbose #5 async.run_with_timeout_async / { timeout = 100 }
00:00:01 verbose #1 Supervisor.sendJson / port: 13805 / json: {"Ping":true} / result:
00:00:01 verbose #2 awaitCompiler / Ping / result: 'Some(null)' / port: 13805 / retry: 0
00:00:01 verbose #6 > Server bound to: http://localhost:13805
00:00:02 verbose #6 async.run_with_timeout_async / { timeout = 180 }
00:00:02   debug #3 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_builder.spi
00:00:02   debug #4 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_builder.spi
00:00:02   debug #5 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_builder.spi
00:00:02 verbose #6 Supervisor.sendJson / port: 13805 / json: {"FileOpen":{"spiText":"/// # spiral_builder\nopen file_system_operators\nopen rust_operators\nopen ...ain args\u0027 : ()\n","uri":"file:///c:/home/git/polyglot/apps/spiral/builder/spiral_builder.spi"}} / result:
00:00:02 verbose #7 Supervisor.sendJson / port: 13805 / json: {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/apps/spiral/builder/spiral_builder.spi"}} / result:
00:00:02 verbose #7 > 00:00:01   debug #4 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/apps/spiral/builder/spiral_builder.spi
00:00:02   debug #8 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_builder.spi
00:00:02   debug #9 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_builder.spi
00:00:03   debug #10 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_builder.spi
00:00:03   debug #11 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_builder.spi
00:00:03   debug #12 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_builder.spi
00:00:03   debug #13 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_builder.spi
00:00:04   debug #14 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_builder.spi
00:00:04   debug #15 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_builder.spi
00:00:04   debug #16 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_builder.spi
00:00:04   debug #17 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_builder.spi
00:00:05   debug #18 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_builder.spi
00:00:05   debug #19 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_builder.spi
00:00:05   debug #20 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_builder.spi
00:00:05   debug #21 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_builder.spi
00:00:06   debug #22 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_builder.spi
00:00:06   debug #23 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_builder.spi
00:00:06   debug #24 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_builder.spi
00:00:06   debug #25 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_builder.spi
00:00:07   debug #26 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_builder.spi
00:00:07   debug #27 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_builder.spi
00:00:07   debug #28 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_builder.spi
00:00:07   debug #29 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_builder.spi
00:00:08   debug #30 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_builder.spi
00:00:08   debug #31 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_builder.spi
00:00:08   debug #32 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_builder.spi
00:00:08   debug #33 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_builder.spi
00:00:09   debug #34 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_builder.spi
00:00:09   debug #35 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_builder.spi
00:00:09   debug #36 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_builder.spi
00:00:09   debug #37 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_builder.spi
00:00:10   debug #38 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_builder.spi
00:00:10   debug #39 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_builder.spi
00:00:10   debug #40 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_builder.spi
00:00:10   debug #41 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_builder.spi
00:00:10   debug #42 Supervisor.buildFile / AsyncSeq.scan / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("&$0")>]
#endif
type Ref<'T> = class end
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit...      v50 v44
    0
let v0 : (unit -> unit) = closure0()
let tests () = v0 ()
let v1 : ((string []) -> int32) = closure1()
let main args = v1 args
()
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_builder.spi
00:00:10   debug #43 Supervisor.buildFile / takeWhileInclusive / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("&$0")>]
#endif
type Ref<'T> = class end
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit...      v50 v44
    0
let v0 : (unit -> unit) = closure0()
let tests () = v0 ()
let v1 : ((string []) -> int32) = closure1()
let main args = v1 args
()
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_builder.spi
00:00:10   debug #44 FileSystem.watchWithFilter / Disposing watch stream / filter: FileName, LastWrite
00:00:10 verbose #7 networking.wait_for_port_access / { port = 13805; retry = 0; timeout = Some 100; status = false }
00:00:11 verbose #8 async.run_with_timeout_async / { timeout = 100 }
00:00:00   debug #1 persistCodeProject / packages: [Fable.Core] / modules: [lib/spiral/common.fsx; lib/spiral/sm.fsx; lib/spiral/crypto.fsx; ... ] / name: spiral_builder / hash:  / code.Length: 1263682
targetDir: C:\home\git\polyglot\target\Builder\spiral_builder
Fable 4.19.3: F# to Rust compiler (status: alpha)

Thanks to the contributor! @anchann
Stand with Ukraine! https://standwithukraine.com.ua/

Parsing target\Builder\spiral_builder\spiral_builder.fsproj...
Retrieving project options from cache, in case of issues run `dotnet fable clean` or try `--noCache` option.
Project and references (14 source files) parsed in 184ms

Skipped compilation because all generated files are up-to-date!
   Compiling spiral_builder v0.0.1 (C:\home\git\polyglot\apps\spiral\builder)
    Finished `release` profile [optimized] target(s) in 21.25s
     Running unittests spiral_builder.rs (C:\home\git\polyglot\workspace\target\release\deps\spiral_builder-f43d88b7a5b1c176.exe)

running 1 test
test module_7e2cd9e0::Spiral_builder::verify_app ... ok

successes:

successes:
    module_7e2cd9e0::Spiral_builder::verify_app

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

   Compiling spiral_builder v0.0.1 (C:\home\git\polyglot\apps\spiral\builder)
error: failed to remove file `C:\home\git\polyglot\workspace\target\release\spiral_builder.exe`

Caused by:
  Access is denied. (os error 5)

# Invoke-Block / $retry: 1/1 / $Location:  / Get-Location: C:\home\git\polyglot\apps\spiral\builder / $OnError: Continue / $exitcode: 101 / $EnvVars: {
  "PATH": "C:\\Users\\i574n\\scoop\\apps\\pwsh\\current;C:\\Program Files\\NVIDIA\\CUDNN\\v9.1\\bin;C:\\ProgramData\\scoop\\shims;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\ProgramData\\chocolatey\\bin;C:\\Program Files\\dotnet\\;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\Intel\\WiFi\\bin\\;C:\\Program Files\\Common Files\\Intel\\WirelessCommon\\;C:\\Program Files\\Perforce;C:\\Users\\i574n\\scoop\\apps\\vscode-insiders\\current\\bin;C:\\Users\\i574n\\scoop\\apps\\elixir\\current\\bin;C:\\Users\\i574n\\scoop\\apps\\python\\current\\Scripts;C:\\Users\\i574n\\scoop\\apps\\rustup\\current\\.cargo\\bin;C:\\Users\\i574n\\scoop\\apps\\latex\\current\\texmfs\\install\\miktex\\bin\\x64;C:\\Users\\i574n\\scoop\\apps\\dotnet-sdk-preview\\current;C:\\Users\\i574n\\scoop\\apps\\dotnet-sdk\\current;C:\\Users\\i574n\\scoop\\apps\\gsudo\\current;C:\\Users\\i574n\\scoop\\apps\\python\\current;C:\\Users\\i574n\\scoop\\apps\\nircmd\\current;C:\\Users\\i574n\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\i574n/scoop/buckets/mold/home/windows/path;C:\\Users\\i574n/scoop/persist/rustup/.cargo/bin;C:\\Users\\i574n/scoop/apps/nvm/current/nodejs/nodejs;C:\\Users\\i574n/scoop/apps/cygwin/current/root/bin;C:\\Users\\i574n\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\i574n\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\i574n\\.bun\\bin;C:\\Users\\i574n\\.dotnet\\tools;C:\\Users\\i574n\\scoop\\shims;C:\\Users\\i574n\\.fly\\bin;C:\\Users\\i574n/.cargo/bin;C:\\Users\\i574n/.bun/bin;C:\\Users\\i574n/.cargo/bin;C:\\Users\\i574n/.bun/bin;C:\\Users\\i574n/.cargo/bin;C:\\Users\\i574n/.bun/bin"
} / $Error: '' / $ScriptBlock:
'cargo +nightly build --release'

In [ ]:
{ pwsh ../lib/fsharp/build.ps1 -sequential 1 } | Invoke-Block
00:00:00 verbose #1 async.run_with_timeout_async / { timeout = 180 }
00:00:00   debug #1 runtime.execute_with_options_async / { options = { command = dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port 13805 --default-int i32 --default-float f64; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = Some <fun:main@570-7>; stdin = None; trace = true; working_directory = Some "C:\home\git\polyglot" } }
00:00:01 verbose #2 > 00:00:00   debug #1 pwd: C:\home\git\polyglot
00:00:01 verbose #3 > 00:00:00   debug #2 dllPath: C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release
00:00:01 verbose #4 > 00:00:00   debug #3 targetDir: C:\home\git\polyglot\target/spiral_Eval
00:00:01 verbose #2 async.run_with_timeout_async / { timeout = 100 }
00:00:01 verbose #3 networking.wait_for_port_access / { port = 13805; retry = 0; timeout = Some 100; status = true }
00:00:01 verbose #4 async.run_with_timeout_async / { timeout = 100 }
00:00:01 verbose #5 > Starting the Spiral Server. It is bound to: http://localhost:13805
00:00:01 verbose #5 async.run_with_timeout_async / { timeout = 100 }
00:00:01 verbose #6 async.run_with_timeout_async / { timeout = 100 }
00:00:01   debug #1 runWithTimeoutAsync / timeout: 500
00:00:02 verbose #2 Supervisor.sendJson / port: 13805 / json: {"Ping":true} / result:
00:00:02 verbose #3 awaitCompiler / Ping / result: 'Some(null)' / port: 13805 / retry: 0
00:00:02 verbose #6 > Server bound to: http://localhost:13805
00:00:02   debug #7 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path Async.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:00:02 verbose #8 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "Async.dib", "--retries", "3"])) }
00:00:02 verbose #9 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/fsharp/Async.dib", "--output-path", "c:/home/git/polyglot/lib/fsharp/Async.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/fsharp/Async.dib" --output-path "c:/home/git/polyglot/lib/fsharp/Async.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:00:05 verbose #10 > >
00:00:05 verbose #11 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:05 verbose #12 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:05 verbose #13 > > │ # Async (Polyglot)                                                           │
00:00:05 verbose #14 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:21 verbose #15 > >
00:00:21 verbose #16 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:21 verbose #17 > > #if !INTERACTIVE
00:00:21 verbose #18 > > open Lib
00:00:21 verbose #19 > > #endif
00:00:21 verbose #20 > >
00:00:21 verbose #21 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:21 verbose #22 > > open Common
00:00:21 verbose #23 > >
00:00:21 verbose #24 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:21 verbose #25 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:21 verbose #26 > > │ ## choice                                                                    │
00:00:21 verbose #27 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:21 verbose #28 > >
00:00:21 verbose #29 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:21 verbose #30 > > let inline choice asyncs = async {
00:00:21 verbose #31 > >     let e = Event<_> ()
00:00:21 verbose #32 > >     use cts = new System.Threading.CancellationTokenSource ()
00:00:21 verbose #33 > >     let fn =
00:00:21 verbose #34 > >         asyncs
00:00:21 verbose #35 > >         |> Seq.map (fun a -> async {
00:00:21 verbose #36 > >             let! x = a
00:00:21 verbose #37 > >             e.Trigger x
00:00:21 verbose #38 > >         })
00:00:21 verbose #39 > >         |> Async.Parallel
00:00:21 verbose #40 > >         |> Async.Ignore
00:00:21 verbose #41 > >     Async.Start (fn, cts.Token)
00:00:21 verbose #42 > >     let! result = Async.AwaitEvent e.Publish
00:00:21 verbose #43 > >     cts.Cancel ()
00:00:21 verbose #44 > >     return result
00:00:21 verbose #45 > > }
00:00:21 verbose #46 > >
00:00:21 verbose #47 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:21 verbose #48 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:21 verbose #49 > > │ ## map                                                                       │
00:00:21 verbose #50 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:21 verbose #51 > >
00:00:21 verbose #52 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:21 verbose #53 > > let inline map fn a = async {
00:00:21 verbose #54 > >     let! x = a
00:00:21 verbose #55 > >     return fn x
00:00:21 verbose #56 > > }
00:00:21 verbose #57 > >
00:00:21 verbose #58 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:21 verbose #59 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:21 verbose #60 > > │ ## catch                                                                     │
00:00:21 verbose #61 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:21 verbose #62 > >
00:00:21 verbose #63 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:21 verbose #64 > > let inline catch a =
00:00:21 verbose #65 > >     a
00:00:21 verbose #66 > >     |> Async.Catch
00:00:21 verbose #67 > >     |> map (function
00:00:21 verbose #68 > >         | Choice1Of2 result -> Ok result
00:00:21 verbose #69 > >         | Choice2Of2 ex -> Error ex
00:00:21 verbose #70 > >     )
00:00:21 verbose #71 > >
00:00:21 verbose #72 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:21 verbose #73 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:21 verbose #74 > > │ ## runWithTimeoutChoiceAsync                                                 │
00:00:21 verbose #75 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:21 verbose #76 > >
00:00:21 verbose #77 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:21 verbose #78 > > let inline runWithTimeoutChoiceAsync (timeout : int) fn =
00:00:21 verbose #79 > >     let _locals () = $"timeout: {timeout} / {_locals ()}"
00:00:21 verbose #80 > >
00:00:21 verbose #81 > >     let timeoutTask = async {
00:00:21 verbose #82 > >         do! Async.Sleep timeout
00:00:21 verbose #83 > >         trace Debug (fun () -> "runWithTimeoutChoiceAsync") _locals
00:00:21 verbose #84 > >         return None
00:00:21 verbose #85 > >     }
00:00:21 verbose #86 > >
00:00:21 verbose #87 > >     let task = async {
00:00:21 verbose #88 > >         try
00:00:21 verbose #89 > >             let! result = fn
00:00:21 verbose #90 > >             return Some result
00:00:21 verbose #91 > >         with
00:00:21 verbose #92 > >         | :? System.AggregateException as ex when
00:00:21 verbose #93 > >             ex.InnerExceptions
00:00:21 verbose #94 > >             |> Seq.exists (function :?
00:00:21 verbose #95 > > System.Threading.Tasks.TaskCanceledException -> true | _ -> false)
00:00:21 verbose #96 > >             ->
00:00:21 verbose #97 > >             trace Warning
00:00:21 verbose #98 > >                 (fun () -> "runWithTimeoutChoiceAsync")
00:00:21 verbose #99 > >                 (fun () -> $"ex: {ex |> SpiralSm.format_exception} / {_locals
00:00:21 verbose #100 > > ()}")
00:00:21 verbose #101 > >             return None
00:00:21 verbose #102 > >         | ex ->
00:00:21 verbose #103 > >             trace Critical
00:00:21 verbose #104 > >                 (fun () -> "runWithTimeoutChoiceAsync")
00:00:21 verbose #105 > >                 (fun () -> $"ex: {ex |> SpiralSm.format_exception} / {_locals
00:00:21 verbose #106 > > ()}")
00:00:21 verbose #107 > >             return None
00:00:21 verbose #108 > >     }
00:00:21 verbose #109 > >
00:00:21 verbose #110 > >     [[ timeoutTask; task ]]
00:00:21 verbose #111 > >     |> choice
00:00:21 verbose #112 > >
00:00:21 verbose #113 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:21 verbose #114 > > let inline runWithTimeoutChoice timeout fn =
00:00:21 verbose #115 > >     fn
00:00:21 verbose #116 > >     |> runWithTimeoutChoiceAsync timeout
00:00:21 verbose #117 > >     |> Async.RunSynchronously
00:00:21 verbose #118 > >
00:00:21 verbose #119 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:21 verbose #120 > > //// test
00:00:21 verbose #121 > >
00:00:21 verbose #122 > > Async.Sleep 120
00:00:21 verbose #123 > > |> runWithTimeoutChoice 10
00:00:21 verbose #124 > > |> _assertEqual None
00:00:21 verbose #125 > >
00:00:22 verbose #126 > > ╭─[ 185.15ms - stdout ]────────────────────────────────────────────────────────╮
00:00:22 verbose #127 > > │ 00:00:00   debug #1 runWithTimeoutChoiceAsync / timeout: 10             │
00:00:22 verbose #128 > > │ <null>                                                                       │
00:00:22 verbose #129 > > │                                                                              │
00:00:22 verbose #130 > > │                                                                              │
00:00:22 verbose #131 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:22 verbose #132 > >
00:00:22 verbose #133 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:22 verbose #134 > > //// test
00:00:22 verbose #135 > >
00:00:22 verbose #136 > > Async.Sleep 10
00:00:22 verbose #137 > > |> runWithTimeoutChoice 60
00:00:22 verbose #138 > > |> _assertEqual (Some ())
00:00:22 verbose #139 > >
00:00:22 verbose #140 > > ╭─[ 151.70ms - stdout ]────────────────────────────────────────────────────────╮
00:00:22 verbose #141 > > │ Some ()                                                                      │
00:00:22 verbose #142 > > │                                                                              │
00:00:22 verbose #143 > > │                                                                              │
00:00:22 verbose #144 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:22 verbose #145 > >
00:00:22 verbose #146 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:22 verbose #147 > > //// test
00:00:22 verbose #148 > >
00:00:22 verbose #149 > > async {
00:00:22 verbose #150 > >     raise (exn "error")
00:00:22 verbose #151 > > }
00:00:22 verbose #152 > > |> runWithTimeoutChoice 60
00:00:22 verbose #153 > > |> _assertEqual None
00:00:22 verbose #154 > >
00:00:22 verbose #155 > > ╭─[ 157.70ms - stdout ]────────────────────────────────────────────────────────╮
00:00:22 verbose #156 > > │ 00:00:01 critical #2 runWithTimeoutChoiceAsync / ex: System.Exception:  │
00:00:22 verbose #157 > > │ error / timeout: 60                                                          │
00:00:22 verbose #158 > > │ <null>                                                                       │
00:00:22 verbose #159 > > │                                                                              │
00:00:22 verbose #160 > > │                                                                              │
00:00:22 verbose #161 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:22 verbose #162 > >
00:00:22 verbose #163 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:22 verbose #164 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:22 verbose #165 > > │ ## runWithTimeoutAsync                                                       │
00:00:22 verbose #166 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:22 verbose #167 > >
00:00:22 verbose #168 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:22 verbose #169 > > let inline runWithTimeoutAsync (timeout : int) fn = async {
00:00:22 verbose #170 > >     let _locals () = $"timeout: {timeout} / {_locals ()}"
00:00:22 verbose #171 > >     let! child = Async.StartChild (fn, timeout)
00:00:22 verbose #172 > >     return!
00:00:22 verbose #173 > >         child
00:00:22 verbose #174 > >         |> catch
00:00:22 verbose #175 > >         |> map (function
00:00:22 verbose #176 > >             | Ok result -> Some result
00:00:22 verbose #177 > >             | Error (:? System.TimeoutException as ex) ->
00:00:22 verbose #178 > >                 trace Debug (fun () -> $"runWithTimeoutAsync") _locals
00:00:22 verbose #179 > >                 None
00:00:22 verbose #180 > >             | Error ex ->
00:00:22 verbose #181 > >                 trace Critical (fun () -> $"runWithTimeoutAsync** / ex: %A{ex}")
00:00:22 verbose #182 > > _locals
00:00:22 verbose #183 > >                 None
00:00:22 verbose #184 > >         )
00:00:22 verbose #185 > > }
00:00:22 verbose #186 > >
00:00:22 verbose #187 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:22 verbose #188 > > let inline runWithTimeout timeout fn =
00:00:22 verbose #189 > >     fn
00:00:22 verbose #190 > >     |> runWithTimeoutAsync timeout
00:00:22 verbose #191 > >     |> Async.RunSynchronously
00:00:22 verbose #192 > >
00:00:22 verbose #193 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:22 verbose #194 > > //// test
00:00:22 verbose #195 > >
00:00:22 verbose #196 > > Async.Sleep 60
00:00:22 verbose #197 > > |> runWithTimeout 10
00:00:22 verbose #198 > > |> _assertEqual None
00:00:22 verbose #199 > >
00:00:22 verbose #200 > > ╭─[ 97.77ms - stdout ]─────────────────────────────────────────────────────────╮
00:00:22 verbose #201 > > │ 00:00:01   debug #3 runWithTimeoutAsync / timeout: 10                   │
00:00:22 verbose #202 > > │ <null>                                                                       │
00:00:22 verbose #203 > > │                                                                              │
00:00:22 verbose #204 > > │                                                                              │
00:00:22 verbose #205 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:22 verbose #206 > >
00:00:22 verbose #207 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:22 verbose #208 > > //// test
00:00:22 verbose #209 > >
00:00:22 verbose #210 > > Async.Sleep 10
00:00:22 verbose #211 > > |> runWithTimeout 60
00:00:22 verbose #212 > > |> _assertEqual (Some ())
00:00:22 verbose #213 > >
00:00:22 verbose #214 > > ╭─[ 88.90ms - stdout ]─────────────────────────────────────────────────────────╮
00:00:22 verbose #215 > > │ Some ()                                                                      │
00:00:22 verbose #216 > > │                                                                              │
00:00:22 verbose #217 > > │                                                                              │
00:00:22 verbose #218 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:22 verbose #219 > >
00:00:22 verbose #220 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:22 verbose #221 > > //// test
00:00:22 verbose #222 > >
00:00:22 verbose #223 > > async {
00:00:22 verbose #224 > >     raise (exn "error")
00:00:22 verbose #225 > > }
00:00:22 verbose #226 > > |> runWithTimeout 60
00:00:22 verbose #227 > > |> _assertEqual None
00:00:22 verbose #228 > >
00:00:22 verbose #229 > > ╭─[ 95.05ms - stdout ]─────────────────────────────────────────────────────────╮
00:00:22 verbose #230 > > │ 00:00:01 critical #4 runWithTimeoutAsync** / ex: System.Exception:      │
00:00:22 verbose #231 > > │ error                                                                        │
00:00:22 verbose #232 > > │    at FSI_0036.it@4-119.Invoke(Unit unitVar)                                 │
00:00:22 verbose #233 > > │    at Microsoft.FSharp.Control.AsyncPrimitives.CallThenInvoke[               │
00:00:22 verbose #234 > > │ T,TResult](AsyncActivation`1 ctxt, TResult result1, FSharpFunc`2 part2) in   │
00:00:22 verbose #235 > > │ D:\a\_work\1\s\src\FSharp.Core\async.fs:line 510                             │
00:00:22 verbose #236 > > │    at Microsoft.FSharp.Control.Trampoline.Execute(FSharpFunc`2 firstAction)  │
00:00:22 verbose #237 > > │ in D:\a\_work\1\s\src\FSharp.Core\async.fs:line 112                          │
00:00:22 verbose #238 > > │ --- End of stack trace from previous location ---                            │
00:00:22 verbose #239 > > │    at Microsoft.FSharp.Control.AsyncResult`1.Commit() in                     │
00:00:22 verbose #240 > > │ D:\a\_work\1\s\src\FSharp.Core\async.fs:line 454                             │
00:00:22 verbose #241 > > │    at                                                                        │
00:00:22 verbose #242 > > │ <StartupCode$FSharp-Core>.$Async.AwaitAndBindChildResult@1962-4.Invoke(Unit  │
00:00:22 verbose #243 > > │ unitVar) in D:\a\_work\1\s\src\FSharp.Core\async.fs:line 1964                │
00:00:22 verbose #244 > > │    at Microsoft.FSharp.Control.AsyncPrimitives.CallThenInvoke[               │
00:00:22 verbose #245 > > │ T,TResult](AsyncActivation`1 ctxt, TResult result1, FSharpFunc`2 part2) in   │
00:00:22 verbose #246 > > │ D:\a\_work\1\s\src\FSharp.Core\async.fs:line 510                             │
00:00:22 verbose #247 > > │    at Microsoft.FSharp.Control.Trampoline.Execute(FSharpFunc`2 firstAction)  │
00:00:22 verbose #248 > > │ in D:\a\_work\1\s\src\FSharp.Core\async.fs:line 112 / timeout: 60            │
00:00:22 verbose #249 > > │ <null>                                                                       │
00:00:22 verbose #250 > > │                                                                              │
00:00:22 verbose #251 > > │                                                                              │
00:00:22 verbose #252 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:22 verbose #253 > >
00:00:22 verbose #254 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:22 verbose #255 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:22 verbose #256 > > │ ## runWithTimeoutStrict                                                      │
00:00:22 verbose #257 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:22 verbose #258 > >
00:00:22 verbose #259 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:22 verbose #260 > > let inline runWithTimeoutStrict (timeout : int) fn =
00:00:22 verbose #261 > >     let _locals () = $"timeout: {timeout} / {_locals ()}"
00:00:22 verbose #262 > >
00:00:22 verbose #263 > >     let timeoutTask = async {
00:00:22 verbose #264 > >         do! Async.Sleep timeout
00:00:22 verbose #265 > >         return None, _locals
00:00:22 verbose #266 > >     }
00:00:22 verbose #267 > >
00:00:22 verbose #268 > >     let task = async {
00:00:22 verbose #269 > >         try
00:00:22 verbose #270 > >             return Async.RunSynchronously (fn, timeout) |> Some, _locals
00:00:22 verbose #271 > >         with
00:00:22 verbose #272 > >         | :? System.TimeoutException as ex ->
00:00:22 verbose #273 > >             let _locals () = $"ex: {ex |> SpiralSm.format_exception} / {_locals
00:00:22 verbose #274 > > ()}"
00:00:22 verbose #275 > >             return None, _locals
00:00:22 verbose #276 > >         | ex ->
00:00:22 verbose #277 > >             trace Critical
00:00:22 verbose #278 > >                 (fun () -> "runWithTimeoutStrict / async error")
00:00:22 verbose #279 > >                 (fun () -> $"ex: {ex |> SpiralSm.format_exception} / {_locals
00:00:22 verbose #280 > > ()}")
00:00:22 verbose #281 > >             return raise ex
00:00:22 verbose #282 > >     }
00:00:22 verbose #283 > >
00:00:22 verbose #284 > >     try
00:00:22 verbose #285 > >         [[| timeoutTask; task |]]
00:00:22 verbose #286 > >         |> Array.map Async.StartAsTask
00:00:22 verbose #287 > >         |> System.Threading.Tasks.Task.WhenAny
00:00:22 verbose #288 > >         |> fun task ->
00:00:22 verbose #289 > >             match task.Result.Result with
00:00:22 verbose #290 > >             | None, _locals ->
00:00:22 verbose #291 > >                 trace Debug (fun () -> "runWithTimeoutStrict") _locals
00:00:22 verbose #292 > >                 None
00:00:22 verbose #293 > >             | result, _ -> result
00:00:22 verbose #294 > >     with
00:00:22 verbose #295 > >     | :? System.AggregateException as ex when
00:00:22 verbose #296 > >         ex.InnerExceptions
00:00:22 verbose #297 > >         |> Seq.exists (function :? System.Threading.Tasks.TaskCanceledException
00:00:22 verbose #298 > > -> true | _ -> false)
00:00:22 verbose #299 > >         ->
00:00:22 verbose #300 > >         trace Warning
00:00:22 verbose #301 > >             (fun () -> "runWithTimeoutStrict")
00:00:22 verbose #302 > >             (fun () -> $"ex: {ex |> SpiralSm.format_exception} / {_locals ()}")
00:00:22 verbose #303 > >         None
00:00:22 verbose #304 > >     | ex ->
00:00:22 verbose #305 > >         trace Critical
00:00:22 verbose #306 > >             (fun () -> "runWithTimeoutStrict / task error")
00:00:22 verbose #307 > >             (fun () -> $"ex: {ex |> SpiralSm.format_exception} / {_locals ()}")
00:00:22 verbose #308 > >         None
00:00:22 verbose #309 > >
00:00:22 verbose #310 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:22 verbose #311 > > //// test
00:00:22 verbose #312 > >
00:00:22 verbose #313 > > Async.Sleep 60
00:00:22 verbose #314 > > |> runWithTimeoutStrict 10
00:00:22 verbose #315 > > |> _assertEqual None
00:00:23 verbose #316 > >
00:00:23 verbose #317 > > ╭─[ 129.39ms - stdout ]────────────────────────────────────────────────────────╮
00:00:23 verbose #318 > > │ 00:00:02   debug #5 runWithTimeoutStrict / timeout: 10                  │
00:00:23 verbose #319 > > │ <null>                                                                       │
00:00:23 verbose #320 > > │                                                                              │
00:00:23 verbose #321 > > │                                                                              │
00:00:23 verbose #322 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:23 verbose #323 > >
00:00:23 verbose #324 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:23 verbose #325 > > //// test
00:00:23 verbose #326 > >
00:00:23 verbose #327 > > Async.Sleep 10
00:00:23 verbose #328 > > |> runWithTimeoutStrict 60
00:00:23 verbose #329 > > |> _assertEqual (Some ())
00:00:23 verbose #330 > >
00:00:23 verbose #331 > > ╭─[ 123.72ms - stdout ]────────────────────────────────────────────────────────╮
00:00:23 verbose #332 > > │ Some ()                                                                      │
00:00:23 verbose #333 > > │                                                                              │
00:00:23 verbose #334 > > │                                                                              │
00:00:23 verbose #335 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:23 verbose #336 > >
00:00:23 verbose #337 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:23 verbose #338 > > //// test
00:00:23 verbose #339 > >
00:00:23 verbose #340 > > async {
00:00:23 verbose #341 > >     raise (exn "error")
00:00:23 verbose #342 > > }
00:00:23 verbose #343 > > |> runWithTimeoutStrict 60
00:00:23 verbose #344 > > |> _assertEqual None
00:00:23 verbose #345 > >
00:00:23 verbose #346 > > ╭─[ 132.83ms - stdout ]────────────────────────────────────────────────────────╮
00:00:23 verbose #347 > > │ 00:00:02 critical #6 runWithTimeoutStrict / async error / ex:           │
00:00:23 verbose #348 > > │ System.Exception: error / timeout: 60                                        │
00:00:23 verbose #349 > > │ 00:00:02 critical #7 runWithTimeoutStrict / task error / ex:            │
00:00:23 verbose #350 > > │ System.AggregateException: One or more errors occurred. (error) / timeout:   │
00:00:23 verbose #351 > > │ 60                                                                           │
00:00:23 verbose #352 > > │ <null>                                                                       │
00:00:23 verbose #353 > > │                                                                              │
00:00:23 verbose #354 > > │                                                                              │
00:00:23 verbose #355 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:23 verbose #356 > >
00:00:23 verbose #357 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:23 verbose #358 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:23 verbose #359 > > │ ## awaitValueTask                                                            │
00:00:23 verbose #360 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:23 verbose #361 > >
00:00:23 verbose #362 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:23 verbose #363 > > let inline awaitValueTaskUnit (task : System.Threading.Tasks.ValueTask) =
00:00:23 verbose #364 > >     task.AsTask () |> Async.AwaitTask
00:00:23 verbose #365 > >
00:00:23 verbose #366 > > let inline awaitValueTask (task : System.Threading.Tasks.ValueTask<_>) =
00:00:23 verbose #367 > >     task.AsTask () |> Async.AwaitTask
00:00:23 verbose #368 > >
00:00:23 verbose #369 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:23 verbose #370 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:23 verbose #371 > > │ ## init                                                                      │
00:00:23 verbose #372 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:23 verbose #373 > >
00:00:23 verbose #374 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:23 verbose #375 > > let inline init x = async {
00:00:23 verbose #376 > >     return x
00:00:23 verbose #377 > > }
00:00:23 verbose #378 > >
00:00:23 verbose #379 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:23 verbose #380 > > //// test
00:00:23 verbose #381 > >
00:00:23 verbose #382 > > init 1
00:00:23 verbose #383 > > |> Async.RunSynchronously
00:00:23 verbose #384 > > |> _assertEqual 1
00:00:23 verbose #385 > >
00:00:23 verbose #386 > > ╭─[ 32.45ms - stdout ]─────────────────────────────────────────────────────────╮
00:00:23 verbose #387 > > │ 1                                                                            │
00:00:23 verbose #388 > > │                                                                              │
00:00:23 verbose #389 > > │                                                                              │
00:00:23 verbose #390 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:23 verbose #391 > >
00:00:23 verbose #392 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:23 verbose #393 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:23 verbose #394 > > │ ## withCancellationToken                                                     │
00:00:23 verbose #395 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:23 verbose #396 > >
00:00:23 verbose #397 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:23 verbose #398 > > let inline withCancellationToken (ct : System.Threading.CancellationToken) fn =
00:00:23 verbose #399 > >     Async.StartImmediateAsTask (fn, ct)
00:00:23 verbose #400 > >     |> Async.AwaitTask
00:00:23 verbose #401 > >
00:00:23 verbose #402 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:23 verbose #403 > > //// test
00:00:23 verbose #404 > >
00:00:23 verbose #405 > > let cts = new System.Threading.CancellationTokenSource ()
00:00:23 verbose #406 > >
00:00:23 verbose #407 > > async {
00:00:23 verbose #408 > >     let run = async {
00:00:23 verbose #409 > >         do! Async.Sleep 100
00:00:23 verbose #410 > >         return 1
00:00:23 verbose #411 > >     }
00:00:23 verbose #412 > >
00:00:23 verbose #413 > >     let! child =
00:00:23 verbose #414 > >         run
00:00:23 verbose #415 > >         |> withCancellationToken cts.Token
00:00:23 verbose #416 > >         |> catch
00:00:23 verbose #417 > >         |> Async.StartChild
00:00:23 verbose #418 > >
00:00:23 verbose #419 > >     do! Async.Sleep 50
00:00:23 verbose #420 > >     cts.Cancel ()
00:00:23 verbose #421 > >     return! child
00:00:23 verbose #422 > > }
00:00:23 verbose #423 > > |> Async.RunSynchronously
00:00:23 verbose #424 > > |> Result.mapError _.Message
00:00:23 verbose #425 > > |> _assertEqual (Error ("A task was canceled."))
00:00:23 verbose #426 > >
00:00:23 verbose #427 > > ╭─[ 200.42ms - stdout ]────────────────────────────────────────────────────────╮
00:00:23 verbose #428 > > │ Error "A task was canceled."                                                 │
00:00:23 verbose #429 > > │                                                                              │
00:00:23 verbose #430 > > │                                                                              │
00:00:23 verbose #431 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:23 verbose #432 > >
00:00:23 verbose #433 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:23 verbose #434 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:23 verbose #435 > > │ ## retryAsync                                                                │
00:00:23 verbose #436 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:23 verbose #437 > >
00:00:23 verbose #438 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:23 verbose #439 > > let inline retryAsync retries fn =
00:00:23 verbose #440 > >     let rec loop retry lastError = async {
00:00:23 verbose #441 > >         try
00:00:23 verbose #442 > >             return!
00:00:23 verbose #443 > >                 if retry <= retries
00:00:23 verbose #444 > >                 then fn |> map Ok
00:00:23 verbose #445 > >                 else lastError |> Error |> init
00:00:23 verbose #446 > >         with ex ->
00:00:23 verbose #447 > >             trace Debug (fun () -> $"Async.retryAsync / retry: {retry}/{retries}
00:00:23 verbose #448 > > / ex: {ex |> SpiralSm.format_exception}") _locals
00:00:23 verbose #449 > >             do! Async.Sleep 1
00:00:23 verbose #450 > >             return! loop (retry + 1) (ex |> SpiralSm.format_exception)
00:00:23 verbose #451 > >     }
00:00:23 verbose #452 > >     loop 1 "Async.retryAsync / invalid retries / retries: {retries}"
00:00:23 verbose #453 > >
00:00:23 verbose #454 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:23 verbose #455 > > //// test
00:00:23 verbose #456 > >
00:00:23 verbose #457 > > let retry_fn_test = ref 0
00:00:23 verbose #458 > > async {
00:00:23 verbose #459 > >     retry_fn_test.Value <- retry_fn_test.Value + 1
00:00:23 verbose #460 > >     return retry_fn_test.Value
00:00:23 verbose #461 > > }
00:00:23 verbose #462 > > |> retryAsync 3
00:00:23 verbose #463 > > |> Async.RunSynchronously
00:00:23 verbose #464 > > |> _assertEqual (Ok 1)
00:00:23 verbose #465 > >
00:00:23 verbose #466 > > ╭─[ 90.42ms - stdout ]─────────────────────────────────────────────────────────╮
00:00:23 verbose #467 > > │ Ok 1                                                                         │
00:00:23 verbose #468 > > │                                                                              │
00:00:23 verbose #469 > > │                                                                              │
00:00:23 verbose #470 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:23 verbose #471 > >
00:00:23 verbose #472 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:23 verbose #473 > > //// test
00:00:23 verbose #474 > >
00:00:23 verbose #475 > > let retry_fn_test = ref 0
00:00:23 verbose #476 > > async {
00:00:23 verbose #477 > >     return
00:00:23 verbose #478 > >         if retry_fn_test.Value >= 2
00:00:23 verbose #479 > >         then retry_fn_test.Value
00:00:23 verbose #480 > >         else
00:00:23 verbose #481 > >             retry_fn_test.Value <- retry_fn_test.Value + 1
00:00:23 verbose #482 > >             failwith "test"
00:00:23 verbose #483 > > }
00:00:23 verbose #484 > > |> retryAsync 3
00:00:23 verbose #485 > > |> Async.RunSynchronously
00:00:23 verbose #486 > > |> _assertEqual (Ok 2)
00:00:23 verbose #487 > >
00:00:23 verbose #488 > > ╭─[ 128.74ms - stdout ]────────────────────────────────────────────────────────╮
00:00:23 verbose #489 > > │ 00:00:02   debug #8 Async.retryAsync / retry: 1/3 / ex:                 │
00:00:23 verbose #490 > > │ System.Exception: test                                                       │
00:00:23 verbose #491 > > │ 00:00:02   debug #9 Async.retryAsync / retry: 2/3 / ex:                 │
00:00:23 verbose #492 > > │ System.Exception: test                                                       │
00:00:23 verbose #493 > > │ Ok 2                                                                         │
00:00:23 verbose #494 > > │                                                                              │
00:00:23 verbose #495 > > │                                                                              │
00:00:23 verbose #496 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:23 verbose #497 > >
00:00:23 verbose #498 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:23 verbose #499 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:23 verbose #500 > > │ ## fold                                                                      │
00:00:23 verbose #501 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:23 verbose #502 > >
00:00:23 verbose #503 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:23 verbose #504 > > let fold folder state array =
00:00:23 verbose #505 > >     let rec loop acc i =
00:00:23 verbose #506 > >         async {
00:00:23 verbose #507 > >             if i < Array.length array then
00:00:23 verbose #508 > >                 let! newAcc = folder acc array.[[i]]
00:00:23 verbose #509 > >                 return! loop newAcc (i + 1)
00:00:23 verbose #510 > >             else
00:00:23 verbose #511 > >                 return acc
00:00:23 verbose #512 > >         }
00:00:23 verbose #513 > >     loop state 0
00:00:24 verbose #514 > 00:00:21 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 21257 }
00:00:24 verbose #515 > 00:00:21   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/fsharp/Async.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/fsharp/Async.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:00:26 verbose #516 > 00:00:23 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/fsharp/Async.dib.ipynb to html
00:00:26 verbose #517 > 00:00:23 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:00:26 verbose #518 > 00:00:23 verbose #7 !   validate(nb)
00:00:27 verbose #519 > 00:00:25 verbose #8 ! [NbConvertApp] Writing 332760 bytes to c:\home\git\polyglot\lib\fsharp\Async.dib.html
00:00:27 verbose #520 > 00:00:25 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 641 }
00:00:27 verbose #521 > 00:00:25   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 641 }
00:00:27 verbose #522 > 00:00:25   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/fsharp/Async.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/fsharp/Async.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:00:28 verbose #523 > 00:00:26 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:00:28 verbose #524 > 00:00:26   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:00:29 verbose #525 > 00:00:26   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 21957 }
00:00:29   debug #526 runtime.execute_with_options_async / { exit_code = 0; output_length = 25573 }
00:00:29   debug #4 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path Async.dib --retries 3
00:00:29   debug #527 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path AsyncSeq.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:00:29 verbose #528 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "AsyncSeq.dib", "--retries", "3"])) }
00:00:29 verbose #529 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/fsharp/AsyncSeq.dib", "--output-path", "c:/home/git/polyglot/lib/fsharp/AsyncSeq.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/fsharp/AsyncSeq.dib" --output-path "c:/home/git/polyglot/lib/fsharp/AsyncSeq.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:00:31 verbose #530 > >
00:00:31 verbose #531 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:31 verbose #532 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:31 verbose #533 > > │ # AsyncSeq (Polyglot)                                                        │
00:00:31 verbose #534 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:47 verbose #535 > >
00:00:47 verbose #536 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:47 verbose #537 > > #r
00:00:47 verbose #538 > > @"../../../../../../../.nuget/packages/fsharp.control.asyncseq/3.2.1/lib/netstan
00:00:47 verbose #539 > > dard2.1/FSharp.Control.AsyncSeq.dll"
00:00:47 verbose #540 > > #r
00:00:47 verbose #541 > > @"../../../../../../../.nuget/packages/system.reactive/6.0.1-preview.1/lib/net6.
00:00:47 verbose #542 > > 0/System.Reactive.dll"
00:00:47 verbose #543 > > #r
00:00:47 verbose #544 > > @"../../../../../../../.nuget/packages/system.reactive.linq/6.0.1-preview.1/lib
00:00:47 verbose #545 > > netstandard2.0/System.Reactive.Linq.dll"
00:00:48 verbose #546 > >
00:00:48 verbose #547 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:48 verbose #548 > > #if !INTERACTIVE
00:00:48 verbose #549 > > open Lib
00:00:48 verbose #550 > > #endif
00:00:48 verbose #551 > >
00:00:48 verbose #552 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:48 verbose #553 > > open Common
00:00:48 verbose #554 > >
00:00:48 verbose #555 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:48 verbose #556 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:48 verbose #557 > > │ ## subscribeEvent                                                            │
00:00:48 verbose #558 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:48 verbose #559 > >
00:00:48 verbose #560 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:48 verbose #561 > > let inline subscribeEvent (event: IEvent<'H, 'A>) map =
00:00:48 verbose #562 > >     let observable = System.Reactive.Linq.Observable.FromEventPattern<'H,
00:00:48 verbose #563 > > 'A>(event.AddHandler, event.RemoveHandler)
00:00:48 verbose #564 > >     System.Reactive.Linq.Observable.Select (observable, fun event -> map
00:00:48 verbose #565 > > event.EventArgs)
00:00:48 verbose #566 > >     |> FSharp.Control.AsyncSeq.ofObservableBuffered
00:00:48 verbose #567 > >
00:00:48 verbose #568 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:48 verbose #569 > > //// test
00:00:48 verbose #570 > >
00:00:48 verbose #571 > > type TestEvent () as self =
00:00:48 verbose #572 > >     member val Calls = [[]] with get, set
00:00:48 verbose #573 > >     member val Event = Event<ErrorEventHandler, ErrorEventArgs> () with get
00:00:48 verbose #574 > >
00:00:48 verbose #575 > >     member _.AddCall text =
00:00:48 verbose #576 > >         self.Calls <- self.Calls @ [[ text ]]
00:00:48 verbose #577 > >
00:00:48 verbose #578 > >     member _.EventInterface =
00:00:48 verbose #579 > >         { new IEvent<ErrorEventHandler, ErrorEventArgs> with
00:00:48 verbose #580 > >             member _.AddHandler handler =
00:00:48 verbose #581 > >                 self.AddCall "AddHandler"
00:00:48 verbose #582 > >                 self.Event.Publish.AddHandler handler
00:00:48 verbose #583 > >
00:00:48 verbose #584 > >             member _.RemoveHandler handler =
00:00:48 verbose #585 > >                 self.AddCall "RemoveHandler"
00:00:48 verbose #586 > >                 self.Event.Publish.RemoveHandler handler
00:00:48 verbose #587 > >
00:00:48 verbose #588 > >             member _.Subscribe observer =
00:00:48 verbose #589 > >                 self.AddCall "IObservable.Subscribe"
00:00:48 verbose #590 > >                 let disposable = self.Event.Publish.Subscribe observer
00:00:48 verbose #591 > >                 new_disposable (fun () ->
00:00:48 verbose #592 > >                     self.AddCall "IObservable.Dispose"
00:00:48 verbose #593 > >                     disposable.Dispose ()
00:00:48 verbose #594 > >                 )
00:00:48 verbose #595 > >         }
00:00:48 verbose #596 > >
00:00:48 verbose #597 > >     member _.Subscribe () =
00:00:48 verbose #598 > >         subscribeEvent
00:00:48 verbose #599 > >             self.EventInterface
00:00:48 verbose #600 > >             (fun args ->
00:00:48 verbose #601 > >                 let result = args.GetException () |> SpiralSm.format_exception
00:00:48 verbose #602 > >                 self.AddCall $"TestEvent.Subscribe({result})"
00:00:48 verbose #603 > >                 result
00:00:48 verbose #604 > >             )
00:00:48 verbose #605 > >
00:00:48 verbose #606 > >     member _.Iter subscription =
00:00:48 verbose #607 > >         subscription
00:00:48 verbose #608 > >         |> FSharp.Control.AsyncSeq.iteriAsync (fun i error -> async {
00:00:48 verbose #609 > >             self.AddCall $"TestEvent.Iter({i}: {error})"
00:00:48 verbose #610 > >         })
00:00:48 verbose #611 > >
00:00:48 verbose #612 > >     member _.WaitCall text = async {
00:00:48 verbose #613 > >         while self.Calls |> List.last <> text do
00:00:48 verbose #614 > >             do! Async.SwitchToThreadPool ()
00:00:48 verbose #615 > >     }
00:00:48 verbose #616 > >
00:00:48 verbose #617 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:48 verbose #618 > > //// test
00:00:48 verbose #619 > >
00:00:48 verbose #620 > > let testEvent = TestEvent ()
00:00:48 verbose #621 > >
00:00:48 verbose #622 > > async {
00:00:48 verbose #623 > >     testEvent.AddCall "1"
00:00:48 verbose #624 > >     let! child = testEvent.Subscribe () |> testEvent.Iter |> Async.StartChild
00:00:48 verbose #625 > >     do! testEvent.WaitCall "AddHandler"
00:00:48 verbose #626 > >     testEvent.AddCall "2"
00:00:48 verbose #627 > >     do! child
00:00:48 verbose #628 > >     testEvent.AddCall "3"
00:00:48 verbose #629 > > }
00:00:48 verbose #630 > > |> Async.runWithTimeout 300
00:00:48 verbose #631 > > |> _assertEqual None
00:00:48 verbose #632 > >
00:00:48 verbose #633 > > testEvent.Calls
00:00:48 verbose #634 > > |> Seq.toList
00:00:48 verbose #635 > > |> _assertEqual [[ "1"; "AddHandler"; "2"; "RemoveHandler" ]]
00:00:49 verbose #636 > >
00:00:49 verbose #637 > > ╭─[ 513.82ms - stdout ]────────────────────────────────────────────────────────╮
00:00:49 verbose #638 > > │ 00:00:01   debug #1 runWithTimeoutAsync / timeout: 300                  │
00:00:49 verbose #639 > > │ <null>                                                                       │
00:00:49 verbose #640 > > │                                                                              │
00:00:49 verbose #641 > > │ ["1"; "AddHandler"; "2"; "RemoveHandler"]                                    │
00:00:49 verbose #642 > > │                                                                              │
00:00:49 verbose #643 > > │                                                                              │
00:00:49 verbose #644 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:49 verbose #645 > >
00:00:49 verbose #646 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:49 verbose #647 > > //// test
00:00:49 verbose #648 > >
00:00:49 verbose #649 > > let testEvent = TestEvent ()
00:00:49 verbose #650 > >
00:00:49 verbose #651 > > async {
00:00:49 verbose #652 > >     testEvent.AddCall "1"
00:00:49 verbose #653 > >     let! child = testEvent.Subscribe () |> testEvent.Iter |> Async.StartChild
00:00:49 verbose #654 > >     do! testEvent.WaitCall "AddHandler"
00:00:49 verbose #655 > >     testEvent.AddCall "2"
00:00:49 verbose #656 > >     use _ = testEvent.EventInterface.Subscribe (fun args ->
00:00:49 verbose #657 > >         testEvent.AddCall $"testEvent.EventInterface.Subscribe({args})"
00:00:49 verbose #658 > >     )
00:00:49 verbose #659 > >     testEvent.AddCall "3"
00:00:49 verbose #660 > >     do! child
00:00:49 verbose #661 > >     testEvent.AddCall "4"
00:00:49 verbose #662 > > }
00:00:49 verbose #663 > > |> Async.runWithTimeout 300
00:00:49 verbose #664 > > |> _assertEqual None
00:00:49 verbose #665 > >
00:00:49 verbose #666 > > testEvent.Calls
00:00:49 verbose #667 > > |> _assertEqual [[ "1"; "AddHandler"; "2"; "IObservable.Subscribe"; "3";
00:00:49 verbose #668 > > "RemoveHandler"; "IObservable.Dispose" ]]
00:00:49 verbose #669 > >
00:00:49 verbose #670 > > ╭─[ 432.09ms - stdout ]────────────────────────────────────────────────────────╮
00:00:49 verbose #671 > > │ 00:00:02   debug #2 runWithTimeoutAsync / timeout: 300                  │
00:00:49 verbose #672 > > │ <null>                                                                       │
00:00:49 verbose #673 > > │                                                                              │
00:00:49 verbose #674 > > │ ["1"; "AddHandler"; "2"; "IObservable.Subscribe"; "3"; "RemoveHandler";      │
00:00:49 verbose #675 > > │ "IObservable.Dispose"]                                                       │
00:00:49 verbose #676 > > │                                                                              │
00:00:49 verbose #677 > > │                                                                              │
00:00:49 verbose #678 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:49 verbose #679 > >
00:00:49 verbose #680 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:49 verbose #681 > > //// test
00:00:49 verbose #682 > >
00:00:49 verbose #683 > > let testEvent = TestEvent ()
00:00:49 verbose #684 > >
00:00:49 verbose #685 > > async {
00:00:49 verbose #686 > >     testEvent.AddCall "1"
00:00:49 verbose #687 > >     let! child = testEvent.Subscribe () |> testEvent.Iter |> Async.StartChild
00:00:49 verbose #688 > >     do! testEvent.WaitCall "AddHandler"
00:00:49 verbose #689 > >     testEvent.AddCall "2"
00:00:49 verbose #690 > >     use _ = testEvent.EventInterface.Subscribe (fun args ->
00:00:49 verbose #691 > >         async {
00:00:49 verbose #692 > >             do! testEvent.WaitCall "TestEvent.Iter(0: System.Exception: error)"
00:00:49 verbose #693 > >             testEvent.AddCall
00:00:49 verbose #694 > > $"testEvent.EventInterface.Subscribe({args.GetException () |>
00:00:49 verbose #695 > > SpiralSm.format_exception})"
00:00:49 verbose #696 > >         }
00:00:49 verbose #697 > >         |> Async.RunSynchronously
00:00:49 verbose #698 > >     )
00:00:49 verbose #699 > >     testEvent.AddCall "3"
00:00:49 verbose #700 > >     testEvent.Event.Trigger (null, ErrorEventArgs (Exception "error"))
00:00:49 verbose #701 > >     testEvent.AddCall "4"
00:00:49 verbose #702 > >     do! child
00:00:49 verbose #703 > >     testEvent.AddCall "5"
00:00:49 verbose #704 > > }
00:00:49 verbose #705 > > |> Async.runWithTimeout 300
00:00:49 verbose #706 > > |> _assertEqual None
00:00:49 verbose #707 > >
00:00:49 verbose #708 > > testEvent.Calls
00:00:49 verbose #709 > > |> _assertEqual [[
00:00:49 verbose #710 > >     "1"
00:00:49 verbose #711 > >     "AddHandler"
00:00:49 verbose #712 > >     "2"
00:00:49 verbose #713 > >     "IObservable.Subscribe"
00:00:49 verbose #714 > >     "3"
00:00:49 verbose #715 > >     "TestEvent.Subscribe(System.Exception: error)"
00:00:49 verbose #716 > >     "TestEvent.Iter(0: System.Exception: error)"
00:00:49 verbose #717 > >     "testEvent.EventInterface.Subscribe(System.Exception: error)"
00:00:49 verbose #718 > >     "4"
00:00:49 verbose #719 > >     "RemoveHandler"
00:00:49 verbose #720 > >     "IObservable.Dispose"
00:00:49 verbose #721 > > ]]
00:00:50 verbose #722 > >
00:00:50 verbose #723 > > ╭─[ 445.17ms - stdout ]────────────────────────────────────────────────────────╮
00:00:50 verbose #724 > > │ 00:00:02   debug #3 runWithTimeoutAsync / timeout: 300                  │
00:00:50 verbose #725 > > │ <null>                                                                       │
00:00:50 verbose #726 > > │                                                                              │
00:00:50 verbose #727 > > │ ["1"; "AddHandler"; "2"; "IObservable.Subscribe"; "3";                       │
00:00:50 verbose #728 > > │ "TestEvent.Subscribe(System.Exception: error)";                              │
00:00:50 verbose #729 > > │  "TestEvent.Iter(0: System.Exception: error)";                               │
00:00:50 verbose #730 > > │ "testEvent.EventInterface.Subscribe(System.Exception: error)"; "4";          │
00:00:50 verbose #731 > > │  "RemoveHandler"; "IObservable.Dispose"]                                     │
00:00:50 verbose #732 > > │                                                                              │
00:00:50 verbose #733 > > │                                                                              │
00:00:50 verbose #734 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:50 verbose #735 > >
00:00:50 verbose #736 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:50 verbose #737 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:50 verbose #738 > > │ ## subscribeToken                                                            │
00:00:50 verbose #739 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:50 verbose #740 > >
00:00:50 verbose #741 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:50 verbose #742 > > let subscribeToken (token : System.Threading.CancellationToken) =
00:00:50 verbose #743 > >     let tcs = new System.Threading.Tasks.TaskCompletionSource ()
00:00:50 verbose #744 > >     System.Action tcs.SetResult |> token.Register |> ignore
00:00:50 verbose #745 > >     let start = System.DateTime.Now.Ticks
00:00:50 verbose #746 > >     FSharp.Control.AsyncSeq.unfoldAsync
00:00:50 verbose #747 > >         (fun () -> async {
00:00:50 verbose #748 > >             do! tcs.Task |> Async.AwaitTask
00:00:50 verbose #749 > >             return Some (System.DateTime.Now.Ticks - start, ())
00:00:50 verbose #750 > >         })
00:00:50 verbose #751 > >         ()
00:00:50 verbose #752 > >
00:00:50 verbose #753 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:50 verbose #754 > > //// test
00:00:50 verbose #755 > >
00:00:50 verbose #756 > > let cts = new System.Threading.CancellationTokenSource ()
00:00:50 verbose #757 > >
00:00:50 verbose #758 > > async {
00:00:50 verbose #759 > >     let! child =
00:00:50 verbose #760 > >         cts.Token
00:00:50 verbose #761 > >         |> subscribeToken
00:00:50 verbose #762 > >         |> FSharp.Control.AsyncSeq.tryFirst
00:00:50 verbose #763 > >         |> Async.StartChild
00:00:50 verbose #764 > >
00:00:50 verbose #765 > >     do! Async.Sleep 100
00:00:50 verbose #766 > >     cts.Cancel ()
00:00:50 verbose #767 > >     return! child
00:00:50 verbose #768 > > }
00:00:50 verbose #769 > > |> Async.RunSynchronously
00:00:50 verbose #770 > > |> Option.get
00:00:50 verbose #771 > > |> fun x -> x > 900000
00:00:50 verbose #772 > > |> _assertEqual true
00:00:50 verbose #773 > >
00:00:50 verbose #774 > > ╭─[ 184.91ms - stdout ]────────────────────────────────────────────────────────╮
00:00:50 verbose #775 > > │ true                                                                         │
00:00:50 verbose #776 > > │                                                                              │
00:00:50 verbose #777 > > │                                                                              │
00:00:50 verbose #778 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:50 verbose #779 > 00:00:21 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 9731 }
00:00:50 verbose #780 > 00:00:21   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/fsharp/AsyncSeq.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/fsharp/AsyncSeq.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:00:52 verbose #781 > 00:00:23 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/fsharp/AsyncSeq.dib.ipynb to html
00:00:52 verbose #782 > 00:00:23 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:00:52 verbose #783 > 00:00:23 verbose #7 !   validate(nb)
00:00:53 verbose #784 > 00:00:24 verbose #8 ! [NbConvertApp] Writing 302872 bytes to c:\home\git\polyglot\lib\fsharp\AsyncSeq.dib.html
00:00:54 verbose #785 > 00:00:24 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 647 }
00:00:54 verbose #786 > 00:00:24   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 647 }
00:00:54 verbose #787 > 00:00:24   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/fsharp/AsyncSeq.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/fsharp/AsyncSeq.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:00:55 verbose #788 > 00:00:25 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:00:55 verbose #789 > 00:00:25   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:00:55 verbose #790 > 00:00:26   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 10437 }
00:00:55   debug #791 runtime.execute_with_options_async / { exit_code = 0; output_length = 13569 }
00:00:55   debug #5 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path AsyncSeq.dib --retries 3
00:00:55   debug #792 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path Common.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:00:55 verbose #793 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "Common.dib", "--retries", "3"])) }
00:00:55 verbose #794 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/fsharp/Common.dib", "--output-path", "c:/home/git/polyglot/lib/fsharp/Common.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/fsharp/Common.dib" --output-path "c:/home/git/polyglot/lib/fsharp/Common.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:00:57 verbose #795 > >
00:00:57 verbose #796 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:57 verbose #797 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:57 verbose #798 > > │ # Common (Polyglot)                                                          │
00:00:57 verbose #799 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:14 verbose #800 > >
00:01:14 verbose #801 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:01:14 verbose #802 > > #if !INTERACTIVE
00:01:14 verbose #803 > > open Lib
00:01:14 verbose #804 > > #endif
00:01:14 verbose #805 > >
00:01:14 verbose #806 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:01:14 verbose #807 > > let nl = System.Environment.NewLine
00:01:14 verbose #808 > > let q = @""""
00:01:14 verbose #809 > >
00:01:14 verbose #810 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:01:14 verbose #811 > > let inline cons head tail = head :: tail
00:01:14 verbose #812 > >
00:01:14 verbose #813 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:14 verbose #814 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:14 verbose #815 > > │ ## memoize                                                                   │
00:01:14 verbose #816 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:14 verbose #817 > >
00:01:14 verbose #818 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:01:14 verbose #819 > > let inline memoize fn =
00:01:14 verbose #820 > >     let result = lazy fn ()
00:01:14 verbose #821 > >     fun () -> result.Value
00:01:14 verbose #822 > >
00:01:14 verbose #823 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:14 verbose #824 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:14 verbose #825 > > │ ## TraceLevel                                                                │
00:01:14 verbose #826 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:14 verbose #827 > >
00:01:14 verbose #828 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:01:14 verbose #829 > > type TraceLevel =
00:01:14 verbose #830 > >     | Verbose
00:01:14 verbose #831 > >     | Debug
00:01:14 verbose #832 > >     | Info
00:01:14 verbose #833 > >     | Warning
00:01:14 verbose #834 > >     | Critical
00:01:14 verbose #835 > >
00:01:14 verbose #836 > > let inline _locals () = ""
00:01:14 verbose #837 > >
00:01:14 verbose #838 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:14 verbose #839 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:14 verbose #840 > > │ ## trace                                                                     │
00:01:14 verbose #841 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:14 verbose #842 > >
00:01:14 verbose #843 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:01:14 verbose #844 > > let to_trace_level = function
00:01:14 verbose #845 > >     | Verbose -> SpiralTrace.TraceLevel.US0_0
00:01:14 verbose #846 > >     | Debug -> SpiralTrace.TraceLevel.US0_1
00:01:14 verbose #847 > >     | Info -> SpiralTrace.TraceLevel.US0_2
00:01:14 verbose #848 > >     | Warning -> SpiralTrace.TraceLevel.US0_3
00:01:14 verbose #849 > >     | Critical -> SpiralTrace.TraceLevel.US0_4
00:01:14 verbose #850 > >
00:01:14 verbose #851 > > let trace level fn locals =
00:01:14 verbose #852 > >     let level = level |> to_trace_level
00:01:14 verbose #853 > >     SpiralTrace.trace level fn locals
00:01:14 verbose #854 > >
00:01:14 verbose #855 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:01:14 verbose #856 > > //// test
00:01:14 verbose #857 > >
00:01:14 verbose #858 > > trace Debug (fun () -> "test") _locals
00:01:14 verbose #859 > >
00:01:14 verbose #860 > > ╭─[ 35.75ms - stdout ]─────────────────────────────────────────────────────────╮
00:01:14 verbose #861 > > │ 00:00:00   debug #1 test                                                │
00:01:14 verbose #862 > > │                                                                              │
00:01:14 verbose #863 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:14 verbose #864 > 00:00:19 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 2930 }
00:01:14 verbose #865 > 00:00:19   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/fsharp/Common.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/fsharp/Common.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:01:16 verbose #866 > 00:00:21 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/fsharp/Common.dib.ipynb to html
00:01:16 verbose #867 > 00:00:21 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:01:16 verbose #868 > 00:00:21 verbose #7 !   validate(nb)
00:01:17 verbose #869 > 00:00:22 verbose #8 ! [NbConvertApp] Writing 280734 bytes to c:\home\git\polyglot\lib\fsharp\Common.dib.html
00:01:18 verbose #870 > 00:00:22 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 643 }
00:01:18 verbose #871 > 00:00:22   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 643 }
00:01:18 verbose #872 > 00:00:22   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/fsharp/Common.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/fsharp/Common.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:01:19 verbose #873 > 00:00:23 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:01:19 verbose #874 > 00:00:23   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:01:19 verbose #875 > 00:00:24   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 3632 }
00:01:19   debug #876 runtime.execute_with_options_async / { exit_code = 0; output_length = 6385 }
00:01:19   debug #6 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path Common.dib --retries 3
00:01:19   debug #877 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path CommonFSharp.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:01:19 verbose #878 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "CommonFSharp.dib", "--retries", "3"])) }
00:01:19 verbose #879 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/fsharp/CommonFSharp.dib", "--output-path", "c:/home/git/polyglot/lib/fsharp/CommonFSharp.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/fsharp/CommonFSharp.dib" --output-path "c:/home/git/polyglot/lib/fsharp/CommonFSharp.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:01:21 verbose #880 > >
00:01:21 verbose #881 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:21 verbose #882 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:21 verbose #883 > > │ # CommonFSharp (Polyglot)                                                    │
00:01:21 verbose #884 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:37 verbose #885 > >
00:01:37 verbose #886 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:01:37 verbose #887 > > open Common
00:01:37 verbose #888 > >
00:01:37 verbose #889 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:37 verbose #890 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:37 verbose #891 > > │ ## getUnionCaseName                                                          │
00:01:37 verbose #892 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:37 verbose #893 > >
00:01:37 verbose #894 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:01:37 verbose #895 > > let inline getUnionCaseName<'T> (x: 'T) =
00:01:37 verbose #896 > >     match Reflection.FSharpValue.GetUnionFields(x, typeof<'T>) with
00:01:37 verbose #897 > >     | case, _ -> case.Name
00:01:37 verbose #898 > >
00:01:37 verbose #899 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:01:37 verbose #900 > > //// test
00:01:37 verbose #901 > >
00:01:37 verbose #902 > > TraceLevel.Critical
00:01:37 verbose #903 > > |> getUnionCaseName
00:01:37 verbose #904 > > |> _assertEqual (nameof TraceLevel.Critical)
00:01:37 verbose #905 > >
00:01:37 verbose #906 > > ╭─[ 72.69ms - stdout ]─────────────────────────────────────────────────────────╮
00:01:37 verbose #907 > > │ "Critical"                                                                   │
00:01:37 verbose #908 > > │                                                                              │
00:01:37 verbose #909 > > │                                                                              │
00:01:37 verbose #910 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:38 verbose #911 > 00:00:18 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 1546 }
00:01:38 verbose #912 > 00:00:18   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/fsharp/CommonFSharp.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/fsharp/CommonFSharp.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:01:40 verbose #913 > 00:00:20 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/fsharp/CommonFSharp.dib.ipynb to html
00:01:40 verbose #914 > 00:00:20 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:01:40 verbose #915 > 00:00:20 verbose #7 !   validate(nb)
00:01:41 verbose #916 > 00:00:21 verbose #8 ! [NbConvertApp] Writing 275592 bytes to c:\home\git\polyglot\lib\fsharp\CommonFSharp.dib.html
00:01:41 verbose #917 > 00:00:21 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 655 }
00:01:41 verbose #918 > 00:00:21   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 655 }
00:01:41 verbose #919 > 00:00:21   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/fsharp/CommonFSharp.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/fsharp/CommonFSharp.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:01:42 verbose #920 > 00:00:22 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:01:42 verbose #921 > 00:00:22   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:01:42 verbose #922 > 00:00:23   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 2260 }
00:01:42   debug #923 runtime.execute_with_options_async / { exit_code = 0; output_length = 4991 }
00:01:42   debug #7 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path CommonFSharp.dib --retries 3
00:01:42   debug #924 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path FileSystem.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:01:42 verbose #925 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "FileSystem.dib", "--retries", "3"])) }
00:01:42 verbose #926 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/fsharp/FileSystem.dib", "--output-path", "c:/home/git/polyglot/lib/fsharp/FileSystem.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/fsharp/FileSystem.dib" --output-path "c:/home/git/polyglot/lib/fsharp/FileSystem.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:01:45 verbose #927 > >
00:01:45 verbose #928 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:45 verbose #929 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:45 verbose #930 > > │ # FileSystem (Polyglot)                                                      │
00:01:45 verbose #931 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:49 verbose #932 > >
00:01:49 verbose #933 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:01:49 verbose #934 > > #r
00:01:49 verbose #935 > > @"../../../../../../../.nuget/packages/fsharp.control.asyncseq/3.2.1/lib/netstan
00:01:49 verbose #936 > > dard2.1/FSharp.Control.AsyncSeq.dll"
00:01:49 verbose #937 > > #r
00:01:49 verbose #938 > > @"../../../../../../../.nuget/packages/system.reactive/6.0.1-preview.1/lib/net6.
00:01:49 verbose #939 > > 0/System.Reactive.dll"
00:01:49 verbose #940 > > #r
00:01:49 verbose #941 > > @"../../../../../../../.nuget/packages/system.reactive.linq/6.0.1-preview.1/lib
00:01:49 verbose #942 > > netstandard2.0/System.Reactive.Linq.dll"
00:01:49 verbose #943 > > #r
00:01:49 verbose #944 > > @"../../../../../../../.nuget/packages/argu/6.2.4/lib/netstandard2.0/Argu.dll"
00:02:02 verbose #945 > >
00:02:02 verbose #946 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:02:02 verbose #947 > > #if !INTERACTIVE
00:02:02 verbose #948 > > open Lib
00:02:02 verbose #949 > > #endif
00:02:02 verbose #950 > >
00:02:02 verbose #951 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:02:02 verbose #952 > > open Common
00:02:02 verbose #953 > > open SpiralFileSystem.Operators
00:02:02 verbose #954 > >
00:02:02 verbose #955 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:02 verbose #956 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:02 verbose #957 > > │ ## watchDirectory                                                            │
00:02:02 verbose #958 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:02 verbose #959 > >
00:02:02 verbose #960 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:02:02 verbose #961 > > [[<RequireQualifiedAccess>]]
00:02:02 verbose #962 > > type FileSystemChangeType =
00:02:02 verbose #963 > >     | Failure
00:02:02 verbose #964 > >     | Changed
00:02:02 verbose #965 > >     | Created
00:02:02 verbose #966 > >     | Deleted
00:02:02 verbose #967 > >     | Renamed
00:02:02 verbose #968 > >
00:02:02 verbose #969 > > [[<RequireQualifiedAccess>]]
00:02:02 verbose #970 > > type FileSystemChange =
00:02:02 verbose #971 > >     | Failure of exn: exn
00:02:02 verbose #972 > >     | Changed of path: string * content: string option
00:02:02 verbose #973 > >     | Created of path: string * content: string option
00:02:02 verbose #974 > >     | Deleted of path: string
00:02:02 verbose #975 > >     | Renamed of oldPath: string * (string * string option)
00:02:02 verbose #976 > >
00:02:02 verbose #977 > >
00:02:02 verbose #978 > > let inline watchDirectoryWithFilter filter shouldReadContent path =
00:02:02 verbose #979 > >     let fullPath = path |> System.IO.Path.GetFullPath
00:02:02 verbose #980 > >     let _locals () = $"filter: {filter} / {_locals ()}"
00:02:02 verbose #981 > >
00:02:02 verbose #982 > >     let watcher =
00:02:02 verbose #983 > >         new System.IO.FileSystemWatcher (
00:02:02 verbose #984 > >             Path = fullPath,
00:02:02 verbose #985 > >             NotifyFilter = filter,
00:02:02 verbose #986 > >             EnableRaisingEvents = true,
00:02:02 verbose #987 > >             IncludeSubdirectories = true
00:02:02 verbose #988 > >         )
00:02:02 verbose #989 > >
00:02:02 verbose #990 > >     let inline getEventPath (path : string) =
00:02:02 verbose #991 > >         path |> SpiralSm.trim |> SpiralSm.replace fullPath "" |>
00:02:02 verbose #992 > > SpiralSm.trim_start [[| '/'; '\\' |]]
00:02:02 verbose #993 > >
00:02:02 verbose #994 > >     let inline ticks () =
00:02:02 verbose #995 > >         System.DateTime.UtcNow.Ticks
00:02:02 verbose #996 > >
00:02:02 verbose #997 > >     let changedStream =
00:02:02 verbose #998 > >         AsyncSeq.subscribeEvent
00:02:02 verbose #999 > >             watcher.Changed
00:02:02 verbose #1000 > >             (fun event ->
00:02:02 verbose #1001 > >                 ticks (),
00:02:02 verbose #1002 > >                 [[ FileSystemChange.Changed (getEventPath event.FullPath, None)
00:02:02 verbose #1003 > > ]]
00:02:02 verbose #1004 > >             )
00:02:02 verbose #1005 > >
00:02:02 verbose #1006 > >     let deletedStream =
00:02:02 verbose #1007 > >         AsyncSeq.subscribeEvent
00:02:02 verbose #1008 > >             watcher.Deleted
00:02:02 verbose #1009 > >             (fun event ->
00:02:02 verbose #1010 > >                 ticks (),
00:02:02 verbose #1011 > >                 [[ FileSystemChange.Deleted (getEventPath event.FullPath) ]]
00:02:02 verbose #1012 > >             )
00:02:02 verbose #1013 > >
00:02:02 verbose #1014 > >     let createdStream =
00:02:02 verbose #1015 > >         AsyncSeq.subscribeEvent
00:02:02 verbose #1016 > >             watcher.Created
00:02:02 verbose #1017 > >             (fun event ->
00:02:02 verbose #1018 > >                 let path = getEventPath event.FullPath
00:02:02 verbose #1019 > >                 ticks (), [[
00:02:02 verbose #1020 > >                     FileSystemChange.Created (path, None)
00:02:02 verbose #1021 > >                     if SpiralPlatform.is_windows () then
00:02:02 verbose #1022 > >                         FileSystemChange.Changed (path, None)
00:02:02 verbose #1023 > >                 ]])
00:02:02 verbose #1024 > >
00:02:02 verbose #1025 > >     let renamedStream =
00:02:02 verbose #1026 > >         AsyncSeq.subscribeEvent
00:02:02 verbose #1027 > >             watcher.Renamed
00:02:02 verbose #1028 > >             (fun event ->
00:02:02 verbose #1029 > >                 ticks (), [[
00:02:02 verbose #1030 > >                     FileSystemChange.Renamed (
00:02:02 verbose #1031 > >                         getEventPath event.OldFullPath,
00:02:02 verbose #1032 > >                         (getEventPath event.FullPath, None)
00:02:02 verbose #1033 > >                     )
00:02:02 verbose #1034 > >                 ]]
00:02:02 verbose #1035 > >             )
00:02:02 verbose #1036 > >
00:02:02 verbose #1037 > >     let failureStream =
00:02:02 verbose #1038 > >         AsyncSeq.subscribeEvent
00:02:02 verbose #1039 > >             watcher.Error
00:02:02 verbose #1040 > >             (fun event -> ticks (), [[ FileSystemChange.Failure
00:02:02 verbose #1041 > > (event.GetException ()) ]])
00:02:02 verbose #1042 > >
00:02:02 verbose #1043 > >     let stream =
00:02:02 verbose #1044 > >         [[
00:02:02 verbose #1045 > >             changedStream
00:02:02 verbose #1046 > >             deletedStream
00:02:02 verbose #1047 > >             createdStream
00:02:02 verbose #1048 > >             renamedStream
00:02:02 verbose #1049 > >             failureStream
00:02:02 verbose #1050 > >         ]]
00:02:02 verbose #1051 > >         |> FSharp.Control.AsyncSeq.mergeAll
00:02:02 verbose #1052 > >         |> FSharp.Control.AsyncSeq.map (fun (t, events) ->
00:02:02 verbose #1053 > >             events
00:02:02 verbose #1054 > >             |> List.fold
00:02:02 verbose #1055 > >                 (fun (i, events) event ->
00:02:02 verbose #1056 > >                     i + 1L,
00:02:02 verbose #1057 > >                     (t + i, event) :: events)
00:02:02 verbose #1058 > >                 (0L, [[]])
00:02:02 verbose #1059 > >             |> snd
00:02:02 verbose #1060 > >             |> List.rev
00:02:02 verbose #1061 > >         )
00:02:02 verbose #1062 > >         |> FSharp.Control.AsyncSeq.concatSeq
00:02:02 verbose #1063 > >         |> FSharp.Control.AsyncSeq.mapAsyncParallel (fun (t, event) -> async {
00:02:02 verbose #1064 > >             match shouldReadContent event, event with
00:02:02 verbose #1065 > >             | true, FileSystemChange.Changed (path, _) ->
00:02:02 verbose #1066 > >                 do! Async.Sleep 5
00:02:02 verbose #1067 > >                 let! content = fullPath </> path |>
00:02:02 verbose #1068 > > SpiralFileSystem.read_all_text_retry_async
00:02:02 verbose #1069 > >                 return t, FileSystemChange.Changed (path, content)
00:02:02 verbose #1070 > >             | true, FileSystemChange.Created (path, _) ->
00:02:02 verbose #1071 > >                 do! Async.Sleep 5
00:02:02 verbose #1072 > >                 let! content = fullPath </> path |>
00:02:02 verbose #1073 > > SpiralFileSystem.read_all_text_retry_async
00:02:02 verbose #1074 > >                 return t, FileSystemChange.Created (path, content)
00:02:02 verbose #1075 > >             | true, FileSystemChange.Renamed (oldPath, (newPath, _)) ->
00:02:02 verbose #1076 > >                 let! content = fullPath </> newPath |>
00:02:02 verbose #1077 > > SpiralFileSystem.read_all_text_retry_async
00:02:02 verbose #1078 > >                 return t, FileSystemChange.Renamed (oldPath, (newPath, content))
00:02:02 verbose #1079 > >             | _ -> return t, event
00:02:02 verbose #1080 > >         })
00:02:02 verbose #1081 > >
00:02:02 verbose #1082 > >     let disposable =
00:02:02 verbose #1083 > >         new_disposable (fun () ->
00:02:02 verbose #1084 > >             trace Debug (fun () -> "FileSystem.watchWithFilter / Disposing watch
00:02:02 verbose #1085 > > stream") _locals
00:02:02 verbose #1086 > >             watcher.EnableRaisingEvents <- false
00:02:02 verbose #1087 > >             watcher.Dispose ()
00:02:02 verbose #1088 > >         )
00:02:02 verbose #1089 > >
00:02:02 verbose #1090 > >     stream, disposable
00:02:02 verbose #1091 > >
00:02:02 verbose #1092 > > let inline watchDirectory path =
00:02:02 verbose #1093 > >     watchDirectoryWithFilter
00:02:02 verbose #1094 > >         (System.IO.NotifyFilters.FileName
00:02:02 verbose #1095 > >         // ||| System.IO.NotifyFilters.DirectoryName
00:02:02 verbose #1096 > >         // ||| System.IO.NotifyFilters.Attributes
00:02:02 verbose #1097 > >         //// ||| System.IO.NotifyFilters.Size
00:02:02 verbose #1098 > >         ||| System.IO.NotifyFilters.LastWrite
00:02:02 verbose #1099 > >         //// ||| System.IO.NotifyFilters.LastAccess
00:02:02 verbose #1100 > >         // ||| System.IO.NotifyFilters.CreationTime
00:02:02 verbose #1101 > >         // ||| System.IO.NotifyFilters.Security
00:02:02 verbose #1102 > >         )
00:02:02 verbose #1103 > >         path
00:02:03 verbose #1104 > >
00:02:03 verbose #1105 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:03 verbose #1106 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:03 verbose #1107 > > │ ### testEventsRaw (test)                                                     │
00:02:03 verbose #1108 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:03 verbose #1109 > >
00:02:03 verbose #1110 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:02:03 verbose #1111 > > //// test
00:02:03 verbose #1112 > >
00:02:03 verbose #1113 > > let inline testEventsRaw
00:02:03 verbose #1114 > >     (watchFn : (_ -> bool) -> string -> FSharp.Control.AsyncSeq<int64 *
00:02:03 verbose #1115 > > FileSystemChange> * IDisposable)
00:02:03 verbose #1116 > >     write
00:02:03 verbose #1117 > >     =
00:02:03 verbose #1118 > >     let struct (tempDir, tempDisposable) =
00:02:03 verbose #1119 > >         "FileSystem.testEventsRaw"
00:02:03 verbose #1120 > >         |> SpiralCrypto.hash_text
00:02:03 verbose #1121 > >         |> SpiralFileSystem.create_temp_dir'
00:02:03 verbose #1122 > >     let stream, disposable = watchFn (fun _ -> true) tempDir
00:02:03 verbose #1123 > >
00:02:03 verbose #1124 > >     let events = System.Collections.Concurrent.ConcurrentBag ()
00:02:03 verbose #1125 > >
00:02:03 verbose #1126 > >     let inline iter () =
00:02:03 verbose #1127 > >         stream
00:02:03 verbose #1128 > >         |> FSharp.Control.AsyncSeq.iterAsyncParallel (fun event -> async {
00:02:03 verbose #1129 > > events.Add event })
00:02:03 verbose #1130 > >
00:02:03 verbose #1131 > >     let run = async {
00:02:03 verbose #1132 > >         let! _ = iter () |> Async.StartChild
00:02:03 verbose #1133 > >         do! Async.Sleep 250
00:02:03 verbose #1134 > >         return! write tempDir
00:02:03 verbose #1135 > >     }
00:02:03 verbose #1136 > >
00:02:03 verbose #1137 > >     try
00:02:03 verbose #1138 > >         run
00:02:03 verbose #1139 > >         |> Async.runWithTimeout 60000
00:02:03 verbose #1140 > >         |> _assertEqual (Some ())
00:02:03 verbose #1141 > >     finally
00:02:03 verbose #1142 > >         disposable.Dispose ()
00:02:03 verbose #1143 > >         tempDisposable.Dispose ()
00:02:03 verbose #1144 > >
00:02:03 verbose #1145 > >     let eventsLog =
00:02:03 verbose #1146 > >         events
00:02:03 verbose #1147 > >         |> Seq.toList
00:02:03 verbose #1148 > >         |> List.sortBy fst
00:02:03 verbose #1149 > >         |> List.fold
00:02:03 verbose #1150 > >             (fun (prev, acc) (ticks, event) ->
00:02:03 verbose #1151 > >                 ticks, (ticks, (if prev = 0L then 0L else ticks - prev), event)
00:02:03 verbose #1152 > > :: acc
00:02:03 verbose #1153 > >             )
00:02:03 verbose #1154 > >             (0L, [[]])
00:02:03 verbose #1155 > >         |> snd
00:02:03 verbose #1156 > >         |> List.rev
00:02:03 verbose #1157 > >         |> List.map (fun (diff, n, event) -> $"{n} / {diff} / {event}" |>
00:02:03 verbose #1158 > > SpiralSm.ellipsis_end 100L)
00:02:03 verbose #1159 > >         |> SpiralSm.concat "\n"
00:02:03 verbose #1160 > >     let _locals () = $"eventsLog: \n{eventsLog} / {_locals ()}"
00:02:03 verbose #1161 > >     trace Debug (fun () -> "FileSystem.testEventsRaw") _locals
00:02:03 verbose #1162 > >
00:02:03 verbose #1163 > >     events
00:02:03 verbose #1164 > >     |> Seq.toList
00:02:03 verbose #1165 > >     |> List.sortBy fst
00:02:03 verbose #1166 > >     |> List.map snd
00:02:03 verbose #1167 > >     |> List.fold
00:02:03 verbose #1168 > >         (fun acc event ->
00:02:03 verbose #1169 > >             match acc, event with
00:02:03 verbose #1170 > >             | FileSystemChange.Changed (lastPath, Some lastContent) as lastEvent
00:02:03 verbose #1171 > > :: acc,
00:02:03 verbose #1172 > >                 FileSystemChange.Changed (path, Some content)
00:02:03 verbose #1173 > >                 when lastPath = path && content |> SpiralSm.starts_with
00:02:03 verbose #1174 > > lastContent
00:02:03 verbose #1175 > >                 ->
00:02:03 verbose #1176 > >                 event :: acc
00:02:03 verbose #1177 > >             | _ -> event :: acc
00:02:03 verbose #1178 > >         )
00:02:03 verbose #1179 > >         [[]]
00:02:03 verbose #1180 > >     |> List.rev
00:02:03 verbose #1181 > >
00:02:03 verbose #1182 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:03 verbose #1183 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:03 verbose #1184 > > │ #### fast (test)                                                             │
00:02:03 verbose #1185 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:03 verbose #1186 > >
00:02:03 verbose #1187 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:02:03 verbose #1188 > > //// test
00:02:03 verbose #1189 > >
00:02:03 verbose #1190 > > let inline write path = async {
00:02:03 verbose #1191 > >     let n = 2
00:02:03 verbose #1192 > >
00:02:03 verbose #1193 > >     for i = 1 to n do
00:02:03 verbose #1194 > >         do! $"a{i}" |> SpiralFileSystem.write_all_text_async (path </>
00:02:03 verbose #1195 > > $"file{i}.txt")
00:02:03 verbose #1196 > >
00:02:03 verbose #1197 > >     do! Async.Sleep 250
00:02:03 verbose #1198 > >
00:02:03 verbose #1199 > >     for i = 1 to n do
00:02:03 verbose #1200 > >         do! $"b{i}" |> SpiralFileSystem.write_all_text_async (path </>
00:02:03 verbose #1201 > > $"file{i}.txt")
00:02:03 verbose #1202 > >
00:02:03 verbose #1203 > >     do! Async.Sleep 250
00:02:03 verbose #1204 > >
00:02:03 verbose #1205 > >     for i = 1 to n do
00:02:03 verbose #1206 > >         do! path </> $"file{i}.txt" |> SpiralFileSystem.move_file_async (path
00:02:03 verbose #1207 > > </> $"file_{i}.txt") |> Async.Ignore
00:02:03 verbose #1208 > >
00:02:03 verbose #1209 > >     do! Async.Sleep 250
00:02:03 verbose #1210 > >
00:02:03 verbose #1211 > >     for i = 1 to n do
00:02:03 verbose #1212 > >         do! $"c{i}" |> SpiralFileSystem.write_all_text_async (path </>
00:02:03 verbose #1213 > > $"file_{i}.txt")
00:02:03 verbose #1214 > >
00:02:03 verbose #1215 > >     do! Async.Sleep 250
00:02:03 verbose #1216 > >
00:02:03 verbose #1217 > >     for i = 1 to n do
00:02:03 verbose #1218 > >         do! SpiralFileSystem.delete_file_async (path </> $"file_{i}.txt") |>
00:02:03 verbose #1219 > > Async.Ignore
00:02:03 verbose #1220 > >
00:02:03 verbose #1221 > >     do! Async.Sleep 250
00:02:03 verbose #1222 > > }
00:02:03 verbose #1223 > >
00:02:03 verbose #1224 > > let inline run () =
00:02:03 verbose #1225 > >     let events = testEventsRaw watchDirectory write
00:02:03 verbose #1226 > >
00:02:03 verbose #1227 > >     events
00:02:03 verbose #1228 > >     |> _sequenceEqual [[
00:02:03 verbose #1229 > >         FileSystemChange.Created ("file1.txt", Some "a1")
00:02:03 verbose #1230 > >         FileSystemChange.Changed ("file1.txt", Some "a1")
00:02:03 verbose #1231 > >         FileSystemChange.Created ("file2.txt", Some "a2")
00:02:03 verbose #1232 > >         FileSystemChange.Changed ("file2.txt", Some "a2")
00:02:03 verbose #1233 > >
00:02:03 verbose #1234 > >         FileSystemChange.Changed ("file1.txt", Some "b1")
00:02:03 verbose #1235 > >         FileSystemChange.Changed ("file2.txt", Some "b2")
00:02:03 verbose #1236 > >
00:02:03 verbose #1237 > >         FileSystemChange.Renamed ("file1.txt", ("file_1.txt", Some "b1"))
00:02:03 verbose #1238 > >         FileSystemChange.Renamed ("file2.txt", ("file_2.txt", Some "b2"))
00:02:03 verbose #1239 > >
00:02:03 verbose #1240 > >         FileSystemChange.Changed ("file_1.txt", Some "c1")
00:02:03 verbose #1241 > >         FileSystemChange.Changed ("file_2.txt", Some "c2")
00:02:03 verbose #1242 > >
00:02:03 verbose #1243 > >         FileSystemChange.Deleted "file_1.txt"
00:02:03 verbose #1244 > >         FileSystemChange.Deleted "file_2.txt"
00:02:03 verbose #1245 > >     ]]
00:02:03 verbose #1246 > >
00:02:03 verbose #1247 > > run
00:02:03 verbose #1248 > > |> retry_fn 3
00:02:03 verbose #1249 > > |> _assertEqual (Some ())
00:02:06 verbose #1250 > >
00:02:06 verbose #1251 > > ╭─[ 3.26s - stdout ]───────────────────────────────────────────────────────────╮
00:02:06 verbose #1252 > > │ Some ()                                                                      │
00:02:06 verbose #1253 > > │                                                                              │
00:02:06 verbose #1254 > > │ 00:00:05   debug #1 FileSystem.watchWithFilter / Disposing watch stream │
00:02:06 verbose #1255 > > │ / filter: FileName, LastWrite                                                │
00:02:06 verbose #1256 > > │ 00:00:05   debug #2 FileSystem.testEventsRaw / eventsLog:               │
00:02:06 verbose #1257 > > │ 0 / 638562037512041813 / Created ("file1.txt", Some "a1")                    │
00:02:06 verbose #1258 > > │ 1 / 638562037512041814 / Changed ("file1.txt", Some "a1")                    │
00:02:06 verbose #1259 > > │ 64927 / 638562037512106741 / Changed ("file1.txt", Some "a1")                │
00:02:06 verbose #1260 > > │ 2651 / 638562037512109392 / Created ("file2.txt", Some "a2")                 │
00:02:06 verbose #1261 > > │ 1 / 638562037512109393 / Changed ("file2.txt", Some "a2")                    │
00:02:06 verbose #1262 > > │ 212 / 638562037512109605 / Changed ("file2.txt", Some "a2")                  │
00:02:06 verbose #1263 > > │ 2459670 / 638562037514569275 / Changed ("file1.txt", Some "b1")              │
00:02:06 verbose #1264 > > │ 1553 / 638562037514570828 / Changed ("file1.txt", Some "b1")                 │
00:02:06 verbose #1265 > > │ 31921 / 638562037514602749 / Changed ("file2.txt", Some "b2")                │
00:02:06 verbose #1266 > > │ 2209 / 638562037514604958 / Changed ("file2.txt", Some "b2")                 │
00:02:06 verbose #1267 > > │ 2622616 / 638562037517227574 / Renamed ("file1.txt", ("file_1.txt", Some     │
00:02:06 verbose #1268 > > │ "b1"))                                                                       │
00:02:06 verbose #1269 > > │ 37127 / 638562037517264701 / Renamed ("file2.txt", ("file_2.txt", Some       │
00:02:06 verbose #1270 > > │ "b2"))                                                                       │
00:02:06 verbose #1271 > > │ 2501973 / 638562037519766674 / Changed ("file_1.txt", Some "c1")             │
00:02:06 verbose #1272 > > │ 2521 / 638562037519769195 / Changed ("file_1.txt", Some "c1")                │
00:02:06 verbose #1273 > > │ 11196 / 638562037519780391 / Changed ("file_2.txt", Some "c2")               │
00:02:06 verbose #1274 > > │ 2318 / 638562037519782709 / Changed ("file_2.txt", Some "c2")                │
00:02:06 verbose #1275 > > │ 2522207 / 638562037522304916 / Deleted "file_1.txt"                          │
00:02:06 verbose #1276 > > │ 10677 / 638562037522315593 / Deleted "file_2.txt"                            │
00:02:06 verbose #1277 > > │ [Created ("file1.txt", Some "a1"); Changed ("file1.txt", Some "a1"); Created │
00:02:06 verbose #1278 > > │ ("file2.txt", Some "a2");                                                    │
00:02:06 verbose #1279 > > │  Changed ("file2.txt", Some "a2"); Changed ("file1.txt", Some "b1"); Changed │
00:02:06 verbose #1280 > > │ ("file2.txt", Some "b2");                                                    │
00:02:06 verbose #1281 > > │  Renamed ("file1.txt", ("file_1.txt", Some "b1")); Renamed ("file2.txt",     │
00:02:06 verbose #1282 > > │ ("file_2.txt", Some "b2"));                                                  │
00:02:06 verbose #1283 > > │  Changed ("file_1.txt", Some "c1"); Changed ("file_2.txt", Some "c2");       │
00:02:06 verbose #1284 > > │ Deleted "file_1.txt"; Deleted "file_2.txt"]                                  │
00:02:06 verbose #1285 > > │                                                                              │
00:02:06 verbose #1286 > > │ Some ()                                                                      │
00:02:06 verbose #1287 > > │                                                                              │
00:02:06 verbose #1288 > > │                                                                              │
00:02:06 verbose #1289 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:06 verbose #1290 > >
00:02:06 verbose #1291 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:06 verbose #1292 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:06 verbose #1293 > > │ #### slow (test)                                                             │
00:02:06 verbose #1294 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:06 verbose #1295 > >
00:02:06 verbose #1296 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:02:06 verbose #1297 > > //// test
00:02:06 verbose #1298 > >
00:02:06 verbose #1299 > > let inline write path = async {
00:02:06 verbose #1300 > >     let n = 2
00:02:06 verbose #1301 > >
00:02:06 verbose #1302 > >     let contents =
00:02:06 verbose #1303 > >         [[ 1 .. n ]]
00:02:06 verbose #1304 > >         |> List.map (string >> String.replicate 1_000_000)
00:02:06 verbose #1305 > >
00:02:06 verbose #1306 > >     for i = 1 to n do
00:02:06 verbose #1307 > >         do! $"{contents.[[i - 1]]}a" |> SpiralFileSystem.write_all_text_async
00:02:06 verbose #1308 > > (path </> $"file{i}.txt")
00:02:06 verbose #1309 > >
00:02:06 verbose #1310 > >     do! Async.Sleep 1500
00:02:06 verbose #1311 > >
00:02:06 verbose #1312 > >     for i = 1 to n do
00:02:06 verbose #1313 > >         do! $"{contents.[[i - 1]]}b" |> SpiralFileSystem.write_all_text_async
00:02:06 verbose #1314 > > (path </> $"file{i}.txt")
00:02:06 verbose #1315 > >
00:02:06 verbose #1316 > >     do! Async.Sleep 1500
00:02:06 verbose #1317 > >
00:02:06 verbose #1318 > >     for i = 1 to n do
00:02:06 verbose #1319 > >         do! path </> $"file{i}.txt" |> SpiralFileSystem.move_file_async (path
00:02:06 verbose #1320 > > </> $"file_{i}.txt") |> Async.Ignore
00:02:06 verbose #1321 > >
00:02:06 verbose #1322 > >     do! Async.Sleep 1500
00:02:06 verbose #1323 > >
00:02:06 verbose #1324 > >     for i = 1 to n do
00:02:06 verbose #1325 > >         do! $"{contents.[[i - 1]]}c" |> SpiralFileSystem.write_all_text_async
00:02:06 verbose #1326 > > (path </> $"file_{i}.txt")
00:02:06 verbose #1327 > >
00:02:06 verbose #1328 > >     do! Async.Sleep 1500
00:02:06 verbose #1329 > >
00:02:06 verbose #1330 > >     for i = 1 to n do
00:02:06 verbose #1331 > >         do! SpiralFileSystem.delete_file_async (path </> $"file_{i}.txt") |>
00:02:06 verbose #1332 > > Async.Ignore
00:02:06 verbose #1333 > >
00:02:06 verbose #1334 > >     do! Async.Sleep 1500
00:02:06 verbose #1335 > > }
00:02:06 verbose #1336 > >
00:02:06 verbose #1337 > > let inline run () =
00:02:06 verbose #1338 > >     let events =
00:02:06 verbose #1339 > >         testEventsRaw watchDirectory write
00:02:06 verbose #1340 > >         |> List.map (function
00:02:06 verbose #1341 > >             | FileSystemChange.Changed (path, Some content) ->
00:02:06 verbose #1342 > >                 FileSystemChange.Changed (path, content |> Seq.distinct |>
00:02:06 verbose #1343 > > Seq.map string |> SpiralSm.concat "" |> Some)
00:02:06 verbose #1344 > >             | FileSystemChange.Created (path, Some content) ->
00:02:06 verbose #1345 > >                 FileSystemChange.Created (path, content |> Seq.distinct |>
00:02:06 verbose #1346 > > Seq.map string |> SpiralSm.concat "" |> Some)
00:02:06 verbose #1347 > >             | FileSystemChange.Renamed (oldPath, (newPath, Some content)) ->
00:02:06 verbose #1348 > >                 FileSystemChange.Renamed (
00:02:06 verbose #1349 > >                     oldPath,
00:02:06 verbose #1350 > >                     (newPath, content |> Seq.distinct |> Seq.map string |>
00:02:06 verbose #1351 > > SpiralSm.concat "" |> Some)
00:02:06 verbose #1352 > >                 )
00:02:06 verbose #1353 > >             | event -> event
00:02:06 verbose #1354 > >         )
00:02:06 verbose #1355 > >
00:02:06 verbose #1356 > >     events
00:02:06 verbose #1357 > >     |> _sequenceEqual [[
00:02:06 verbose #1358 > >         FileSystemChange.Created ("file1.txt", Some "1a")
00:02:06 verbose #1359 > >         FileSystemChange.Changed ("file1.txt", Some "1a")
00:02:06 verbose #1360 > >         FileSystemChange.Created ("file2.txt", Some "2a")
00:02:06 verbose #1361 > >         FileSystemChange.Changed ("file2.txt", Some "2a")
00:02:06 verbose #1362 > >
00:02:06 verbose #1363 > >         FileSystemChange.Changed ("file1.txt", Some "1b")
00:02:06 verbose #1364 > >         FileSystemChange.Changed ("file2.txt", Some "2b")
00:02:06 verbose #1365 > >
00:02:06 verbose #1366 > >         FileSystemChange.Renamed ("file1.txt", ("file_1.txt", Some "1b"))
00:02:06 verbose #1367 > >         FileSystemChange.Renamed ("file2.txt", ("file_2.txt", Some "2b"))
00:02:06 verbose #1368 > >
00:02:06 verbose #1369 > >         FileSystemChange.Changed ("file_1.txt", Some "1c")
00:02:06 verbose #1370 > >         FileSystemChange.Changed ("file_2.txt", Some "2c")
00:02:06 verbose #1371 > >
00:02:06 verbose #1372 > >         FileSystemChange.Deleted "file_1.txt"
00:02:06 verbose #1373 > >         FileSystemChange.Deleted "file_2.txt"
00:02:06 verbose #1374 > >     ]]
00:02:06 verbose #1375 > >
00:02:06 verbose #1376 > > run
00:02:06 verbose #1377 > > |> retry_fn 5
00:02:06 verbose #1378 > > |> _assertEqual (Some ())
00:02:16 verbose #1379 > >
00:02:16 verbose #1380 > > ╭─[ 9.99s - stdout ]───────────────────────────────────────────────────────────╮
00:02:16 verbose #1381 > > │ Some ()                                                                      │
00:02:16 verbose #1382 > > │                                                                              │
00:02:16 verbose #1383 > > │ 00:00:15   debug #3 FileSystem.watchWithFilter / Disposing watch stream │
00:02:16 verbose #1384 > > │ / filter: FileName, LastWrite                                                │
00:02:16 verbose #1385 > > │ 00:00:15   debug #4 FileSystem.testEventsRaw / eventsLog:               │
00:02:16 verbose #1386 > > │ 0 / 638562037545435169 / Created                                             │
00:02:16 verbose #1387 > > │   ("file1.txt",                                                              │
00:02:16 verbose #1388 > > │  ...11111111111111111111111111111111111111111111111a")                       │
00:02:16 verbose #1389 > > │ 1 / 638562037545435170 / Changed                                             │
00:02:16 verbose #1390 > > │   ("file1.txt",                                                              │
00:02:16 verbose #1391 > > │  ...11111111111111111111111111111111111111111111111a")                       │
00:02:16 verbose #1392 > > │ 79397 / 638562037545514567 / Changed                                         │
00:02:16 verbose #1393 > > │   ("file1.txt...11111111111111111111111111111111111111111111111a")           │
00:02:16 verbose #1394 > > │ 15381 / 638562037545529948 / Created                                         │
00:02:16 verbose #1395 > > │   ("file2.txt...22222222222222222222222222222222222222222222222a")           │
00:02:16 verbose #1396 > > │ 1 / 638562037545529949 / Changed                                             │
00:02:16 verbose #1397 > > │   ("file2.txt",                                                              │
00:02:16 verbose #1398 > > │  ...22222222222222222222222222222222222222222222222a")                       │
00:02:16 verbose #1399 > > │ 192241 / 638562037545722190 / Changed                                        │
00:02:16 verbose #1400 > > │   ("file2.tx...22222222222222222222222222222222222222222222222a")            │
00:02:16 verbose #1401 > > │ 15090997 / 638562037560813187 / Changed                                      │
00:02:16 verbose #1402 > > │   ("file1....11111111111111111111111111111111111111111111111b")              │
00:02:16 verbose #1403 > > │ 230038 / 638562037561043225 / Changed                                        │
00:02:16 verbose #1404 > > │   ("file1.tx...11111111111111111111111111111111111111111111111b")            │
00:02:16 verbose #1405 > > │ 46583 / 638562037561089808 / Changed                                         │
00:02:16 verbose #1406 > > │   ("file2.txt...22222222222222222222222222222222222222222222222b")           │
00:02:16 verbose #1407 > > │ 151172 / 638562037561240980 / Changed                                        │
00:02:16 verbose #1408 > > │   ("file2.tx...22222222222222222222222222222222222222222222222b")            │
00:02:16 verbose #1409 > > │ 15146962 / 638562037576387942 / Renamed                                      │
00:02:16 verbose #1410 > > │   ("file1....1111111111111111111111111111111111111111111111b"))              │
00:02:16 verbose #1411 > > │ 9829 / 638562037576397771 / Renamed                                          │
00:02:16 verbose #1412 > > │   ("file2.txt"...2222222222222222222222222222222222222222222222b"))          │
00:02:16 verbose #1413 > > │ 15261104 / 638562037591658875 / Changed                                      │
00:02:16 verbose #1414 > > │   ("file_1...11111111111111111111111111111111111111111111111c")              │
00:02:16 verbose #1415 > > │ 236054 / 638562037591894929 / Changed                                        │
00:02:16 verbose #1416 > > │   ("file_1.t...11111111111111111111111111111111111111111111111c")            │
00:02:16 verbose #1417 > > │ 63448 / 638562037591958377 / Changed                                         │
00:02:16 verbose #1418 > > │   ("file_2.tx...22222222222222222222222222222222222222222222222c")           │
00:02:16 verbose #1419 > > │ 165399 / 638562037592123776 / Changed                                        │
00:02:16 verbose #1420 > > │   ("file_2.t...22222222222222222222222222222222222222222222222c")            │
00:02:16 verbose #1421 > > │ 15075542 / 638562037607199318 / Deleted "file_1.txt"                         │
00:02:16 verbose #1422 > > │ 11511 / 638562037607210829 / Deleted "file_2.txt"                            │
00:02:16 verbose #1423 > > │ [Created ("file1.txt", Some "1a"); Changed ("file1.txt", Some "1a"); Created │
00:02:16 verbose #1424 > > │ ("file2.txt", Some "2a");                                                    │
00:02:16 verbose #1425 > > │  Changed ("file2.txt", Some "2a"); Changed ("file1.txt", Some "1b"); Changed │
00:02:16 verbose #1426 > > │ ("file2.txt", Some "2b");                                                    │
00:02:16 verbose #1427 > > │  Renamed ("file1.txt", ("file_1.txt", Some "1b")); Renamed ("file2.txt",     │
00:02:16 verbose #1428 > > │ ("file_2.txt", Some "2b"));                                                  │
00:02:16 verbose #1429 > > │  Changed ("file_1.txt", Some "1c"); Changed ("file_2.txt", Some "2c");       │
00:02:16 verbose #1430 > > │ Deleted "file_1.txt"; Deleted "file_2.txt"]                                  │
00:02:16 verbose #1431 > > │                                                                              │
00:02:16 verbose #1432 > > │ Some ()                                                                      │
00:02:16 verbose #1433 > > │                                                                              │
00:02:16 verbose #1434 > > │                                                                              │
00:02:16 verbose #1435 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:16 verbose #1436 > >
00:02:16 verbose #1437 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:16 verbose #1438 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:16 verbose #1439 > > │ ### testEventsSorted (test)                                                  │
00:02:16 verbose #1440 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:16 verbose #1441 > >
00:02:16 verbose #1442 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:02:16 verbose #1443 > > //// test
00:02:16 verbose #1444 > >
00:02:16 verbose #1445 > > let inline sortEvent event =
00:02:16 verbose #1446 > >     match event with
00:02:16 verbose #1447 > >     | FileSystemChange.Failure _ -> 0
00:02:16 verbose #1448 > >     | FileSystemChange.Created _ -> 1
00:02:16 verbose #1449 > >     | FileSystemChange.Changed _ -> 2
00:02:16 verbose #1450 > >     | FileSystemChange.Renamed (_oldPath, _) -> 3
00:02:16 verbose #1451 > >     | FileSystemChange.Deleted _ -> 4
00:02:16 verbose #1452 > >
00:02:16 verbose #1453 > > let inline formatEvents events =
00:02:16 verbose #1454 > >     events
00:02:16 verbose #1455 > >     |> Seq.toList
00:02:16 verbose #1456 > >     |> List.sortBy (snd >> sortEvent)
00:02:16 verbose #1457 > >     |> List.choose (fun (ticks, event) ->
00:02:16 verbose #1458 > >         match event with
00:02:16 verbose #1459 > >         | FileSystemChange.Failure _ ->
00:02:16 verbose #1460 > >             None
00:02:16 verbose #1461 > >         | FileSystemChange.Changed (path, _) ->
00:02:16 verbose #1462 > >             Some (ticks, System.IO.Path.GetFileName path, nameof
00:02:16 verbose #1463 > > FileSystemChangeType.Changed)
00:02:16 verbose #1464 > >         | FileSystemChange.Created (path, _) ->
00:02:16 verbose #1465 > >             Some (ticks, System.IO.Path.GetFileName path, nameof
00:02:16 verbose #1466 > > FileSystemChangeType.Created)
00:02:16 verbose #1467 > >         | FileSystemChange.Deleted path ->
00:02:16 verbose #1468 > >             Some (ticks, System.IO.Path.GetFileName path, nameof
00:02:16 verbose #1469 > > FileSystemChangeType.Deleted)
00:02:16 verbose #1470 > >         | FileSystemChange.Renamed (_oldPath, (path, _)) ->
00:02:16 verbose #1471 > >             Some (ticks, System.IO.Path.GetFileName path, nameof
00:02:16 verbose #1472 > > FileSystemChangeType.Renamed)
00:02:16 verbose #1473 > >     )
00:02:16 verbose #1474 > >     |> List.sortBy (fun (_, path, _) -> path)
00:02:16 verbose #1475 > >     |> List.distinctBy (fun (_, path, event) -> path, event)
00:02:16 verbose #1476 > >
00:02:16 verbose #1477 > > let inline testEventsSorted
00:02:16 verbose #1478 > >     (watchFn : string -> FSharp.Control.AsyncSeq<int64 * FileSystemChange> *
00:02:16 verbose #1479 > > IDisposable)
00:02:16 verbose #1480 > >     write
00:02:16 verbose #1481 > >     =
00:02:16 verbose #1482 > >     let struct (tempDir, tempDisposable) =
00:02:16 verbose #1483 > >         "FileSystem.testEventsSorted"
00:02:16 verbose #1484 > >         |> SpiralCrypto.hash_text
00:02:16 verbose #1485 > >         |> SpiralFileSystem.create_temp_dir'
00:02:16 verbose #1486 > >     let stream, disposable = watchFn tempDir
00:02:16 verbose #1487 > >
00:02:16 verbose #1488 > >     let events = System.Collections.Concurrent.ConcurrentBag ()
00:02:16 verbose #1489 > >
00:02:16 verbose #1490 > >     let inline iter () =
00:02:16 verbose #1491 > >         stream
00:02:16 verbose #1492 > >         |> FSharp.Control.AsyncSeq.iterAsyncParallel (fun event -> async {
00:02:16 verbose #1493 > > events.Add event })
00:02:16 verbose #1494 > >
00:02:16 verbose #1495 > >     let run = async {
00:02:16 verbose #1496 > >         let! _ = iter () |> Async.StartChild
00:02:16 verbose #1497 > >         do! Async.Sleep 250
00:02:16 verbose #1498 > >         return! write tempDir
00:02:16 verbose #1499 > >     }
00:02:16 verbose #1500 > >
00:02:16 verbose #1501 > >     try
00:02:16 verbose #1502 > >         run
00:02:16 verbose #1503 > >         |> Async.runWithTimeout 5000
00:02:16 verbose #1504 > >         |> _assertEqual (Some ())
00:02:16 verbose #1505 > >     finally
00:02:16 verbose #1506 > >         disposable.Dispose ()
00:02:16 verbose #1507 > >         tempDisposable.Dispose ()
00:02:16 verbose #1508 > >
00:02:16 verbose #1509 > >     let events = formatEvents events
00:02:16 verbose #1510 > >
00:02:16 verbose #1511 > >     let eventMap =
00:02:16 verbose #1512 > >         events
00:02:16 verbose #1513 > >         |> List.map (fun (ticks, path, event) -> path, (event, ticks))
00:02:16 verbose #1514 > >         |> List.groupBy fst
00:02:16 verbose #1515 > >         |> List.map (fun (path, events) ->
00:02:16 verbose #1516 > >             let event, _ticks =
00:02:16 verbose #1517 > >                 events
00:02:16 verbose #1518 > >                 |> List.map snd
00:02:16 verbose #1519 > >                 |> List.sortByDescending snd
00:02:16 verbose #1520 > >                 |> List.head
00:02:16 verbose #1521 > >
00:02:16 verbose #1522 > >             path, event
00:02:16 verbose #1523 > >         )
00:02:16 verbose #1524 > >         |> Map.ofList
00:02:16 verbose #1525 > >
00:02:16 verbose #1526 > >     let eventList =
00:02:16 verbose #1527 > >         events
00:02:16 verbose #1528 > >         |> List.map (fun (_ticks, path, event) -> path, event)
00:02:16 verbose #1529 > >
00:02:16 verbose #1530 > >     eventMap, eventList
00:02:16 verbose #1531 > >
00:02:16 verbose #1532 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:16 verbose #1533 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:16 verbose #1534 > > │ #### create and delete (test)                                                │
00:02:16 verbose #1535 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:16 verbose #1536 > >
00:02:16 verbose #1537 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:02:16 verbose #1538 > > //// test
00:02:16 verbose #1539 > >
00:02:16 verbose #1540 > > let inline write path = async {
00:02:16 verbose #1541 > >     let n = 3
00:02:16 verbose #1542 > >
00:02:16 verbose #1543 > >     for i = 1 to n do
00:02:16 verbose #1544 > >         do! $"{i}" |> SpiralFileSystem.write_all_text_async (path </>
00:02:16 verbose #1545 > > $"file{i}.txt")
00:02:16 verbose #1546 > >
00:02:16 verbose #1547 > >     for i = 1 to n do
00:02:16 verbose #1548 > >         do! SpiralFileSystem.delete_file_async (path </> $"file{i}.txt") |>
00:02:16 verbose #1549 > > Async.Ignore
00:02:16 verbose #1550 > >
00:02:16 verbose #1551 > >     do! Async.Sleep 150
00:02:16 verbose #1552 > > }
00:02:16 verbose #1553 > >
00:02:16 verbose #1554 > > let inline run () =
00:02:16 verbose #1555 > >     let eventMap, eventList = testEventsSorted (watchDirectory (fun _ -> false))
00:02:16 verbose #1556 > > write
00:02:16 verbose #1557 > >
00:02:16 verbose #1558 > >     [[
00:02:16 verbose #1559 > >         "file1.txt", nameof FileSystemChangeType.Created
00:02:16 verbose #1560 > >         "file1.txt", nameof FileSystemChangeType.Changed
00:02:16 verbose #1561 > >         "file1.txt", nameof FileSystemChangeType.Deleted
00:02:16 verbose #1562 > >
00:02:16 verbose #1563 > >         "file2.txt", nameof FileSystemChangeType.Created
00:02:16 verbose #1564 > >         "file2.txt", nameof FileSystemChangeType.Changed
00:02:16 verbose #1565 > >         "file2.txt", nameof FileSystemChangeType.Deleted
00:02:16 verbose #1566 > >
00:02:16 verbose #1567 > >         "file3.txt", nameof FileSystemChangeType.Created
00:02:16 verbose #1568 > >         "file3.txt", nameof FileSystemChangeType.Changed
00:02:16 verbose #1569 > >         "file3.txt", nameof FileSystemChangeType.Deleted
00:02:16 verbose #1570 > >     ]]
00:02:16 verbose #1571 > >     |> _sequenceEqual eventList
00:02:16 verbose #1572 > >
00:02:16 verbose #1573 > >     [[
00:02:16 verbose #1574 > >         "file1.txt", nameof FileSystemChangeType.Deleted
00:02:16 verbose #1575 > >         "file2.txt", nameof FileSystemChangeType.Deleted
00:02:16 verbose #1576 > >         "file3.txt", nameof FileSystemChangeType.Deleted
00:02:16 verbose #1577 > >     ]]
00:02:16 verbose #1578 > >     |> Map.ofList
00:02:16 verbose #1579 > >     |> _sequenceEqual eventMap
00:02:16 verbose #1580 > >
00:02:16 verbose #1581 > > run
00:02:16 verbose #1582 > > |> retry_fn 3
00:02:16 verbose #1583 > > |> _assertEqual (Some ())
00:02:18 verbose #1584 > >
00:02:18 verbose #1585 > > ╭─[ 1.62s - stdout ]───────────────────────────────────────────────────────────╮
00:02:18 verbose #1586 > > │ Some ()                                                                      │
00:02:18 verbose #1587 > > │                                                                              │
00:02:18 verbose #1588 > > │ 00:00:17   debug #5 FileSystem.watchWithFilter / Disposing watch stream │
00:02:18 verbose #1589 > > │ / filter: FileName, LastWrite                                                │
00:02:18 verbose #1590 > > │ [("file1.txt", "Created"); ("file1.txt", "Changed"); ("file1.txt",           │
00:02:18 verbose #1591 > > │ "Deleted"); ("file2.txt", "Created");                                        │
00:02:18 verbose #1592 > > │  ("file2.txt", "Changed"); ("file2.txt", "Deleted"); ("file3.txt",           │
00:02:18 verbose #1593 > > │ "Created"); ("file3.txt", "Changed");                                        │
00:02:18 verbose #1594 > > │  ("file3.txt", "Deleted")]                                                   │
00:02:18 verbose #1595 > > │                                                                              │
00:02:18 verbose #1596 > > │ map [("file1.txt", "Deleted"); ("file2.txt", "Deleted"); ("file3.txt",       │
00:02:18 verbose #1597 > > │ "Deleted")]                                                                  │
00:02:18 verbose #1598 > > │                                                                              │
00:02:18 verbose #1599 > > │ Some ()                                                                      │
00:02:18 verbose #1600 > > │                                                                              │
00:02:18 verbose #1601 > > │                                                                              │
00:02:18 verbose #1602 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:18 verbose #1603 > >
00:02:18 verbose #1604 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:18 verbose #1605 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:18 verbose #1606 > > │ #### change (test)                                                           │
00:02:18 verbose #1607 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:18 verbose #1608 > >
00:02:18 verbose #1609 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:02:18 verbose #1610 > > //// test
00:02:18 verbose #1611 > >
00:02:18 verbose #1612 > > let inline write path = async {
00:02:18 verbose #1613 > >     let n = 2
00:02:18 verbose #1614 > >
00:02:18 verbose #1615 > >     for i = 1 to n do
00:02:18 verbose #1616 > >         do! $"{i}" |> SpiralFileSystem.write_all_text_async (path </>
00:02:18 verbose #1617 > > $"file{i}.txt")
00:02:18 verbose #1618 > >
00:02:18 verbose #1619 > >     for i = 1 to n do
00:02:18 verbose #1620 > >         do! "" |> SpiralFileSystem.write_all_text_async (path </>
00:02:18 verbose #1621 > > $"file{i}.txt")
00:02:18 verbose #1622 > >
00:02:18 verbose #1623 > >     for i = 1 to n do
00:02:18 verbose #1624 > >         do! SpiralFileSystem.delete_file_async (path </> $"file{i}.txt") |>
00:02:18 verbose #1625 > > Async.Ignore
00:02:18 verbose #1626 > >
00:02:18 verbose #1627 > >     do! Async.Sleep 150
00:02:18 verbose #1628 > > }
00:02:18 verbose #1629 > >
00:02:18 verbose #1630 > > let inline run () =
00:02:18 verbose #1631 > >     let eventMap, eventList = testEventsSorted (watchDirectory (fun _ -> false))
00:02:18 verbose #1632 > > write
00:02:18 verbose #1633 > >
00:02:18 verbose #1634 > >     [[
00:02:18 verbose #1635 > >         "file1.txt", nameof FileSystemChangeType.Created
00:02:18 verbose #1636 > >         "file1.txt", nameof FileSystemChangeType.Changed
00:02:18 verbose #1637 > >         "file1.txt", nameof FileSystemChangeType.Deleted
00:02:18 verbose #1638 > >
00:02:18 verbose #1639 > >         "file2.txt", nameof FileSystemChangeType.Created
00:02:18 verbose #1640 > >         "file2.txt", nameof FileSystemChangeType.Changed
00:02:18 verbose #1641 > >         "file2.txt", nameof FileSystemChangeType.Deleted
00:02:18 verbose #1642 > >     ]]
00:02:18 verbose #1643 > >     |> _sequenceEqual eventList
00:02:18 verbose #1644 > >
00:02:18 verbose #1645 > >     [[
00:02:18 verbose #1646 > >         "file1.txt", nameof FileSystemChangeType.Deleted
00:02:18 verbose #1647 > >         "file2.txt", nameof FileSystemChangeType.Deleted
00:02:18 verbose #1648 > >     ]]
00:02:18 verbose #1649 > >     |> Map.ofList
00:02:18 verbose #1650 > >     |> _sequenceEqual eventMap
00:02:18 verbose #1651 > >
00:02:18 verbose #1652 > > run
00:02:18 verbose #1653 > > |> retry_fn 3
00:02:18 verbose #1654 > > |> _assertEqual (Some ())
00:02:20 verbose #1655 > >
00:02:20 verbose #1656 > > ╭─[ 1.74s - stdout ]───────────────────────────────────────────────────────────╮
00:02:20 verbose #1657 > > │ Some ()                                                                      │
00:02:20 verbose #1658 > > │                                                                              │
00:02:20 verbose #1659 > > │ 00:00:19   debug #6 FileSystem.watchWithFilter / Disposing watch stream │
00:02:20 verbose #1660 > > │ / filter: FileName, LastWrite                                                │
00:02:20 verbose #1661 > > │ [("file1.txt", "Created"); ("file1.txt", "Changed"); ("file1.txt",           │
00:02:20 verbose #1662 > > │ "Deleted"); ("file2.txt", "Created");                                        │
00:02:20 verbose #1663 > > │  ("file2.txt", "Changed"); ("file2.txt", "Deleted")]                         │
00:02:20 verbose #1664 > > │                                                                              │
00:02:20 verbose #1665 > > │ map [("file1.txt", "Deleted"); ("file2.txt", "Deleted")]                     │
00:02:20 verbose #1666 > > │                                                                              │
00:02:20 verbose #1667 > > │ Some ()                                                                      │
00:02:20 verbose #1668 > > │                                                                              │
00:02:20 verbose #1669 > > │                                                                              │
00:02:20 verbose #1670 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:20 verbose #1671 > >
00:02:20 verbose #1672 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:20 verbose #1673 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:20 verbose #1674 > > │ #### rename (test)                                                           │
00:02:20 verbose #1675 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:20 verbose #1676 > >
00:02:20 verbose #1677 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:02:20 verbose #1678 > > //// test
00:02:20 verbose #1679 > >
00:02:20 verbose #1680 > > let inline write path = async {
00:02:20 verbose #1681 > >     let n = 2
00:02:20 verbose #1682 > >
00:02:20 verbose #1683 > >     for i = 1 to n do
00:02:20 verbose #1684 > >         do! $"{i}" |> SpiralFileSystem.write_all_text_async (path </>
00:02:20 verbose #1685 > > $"file{i}.txt")
00:02:20 verbose #1686 > >
00:02:20 verbose #1687 > >     for i = 1 to n do
00:02:20 verbose #1688 > >         do! path </> $"file{i}.txt" |> SpiralFileSystem.move_file_async (path
00:02:20 verbose #1689 > > </> $"file_{i}.txt") |> Async.Ignore
00:02:20 verbose #1690 > >
00:02:20 verbose #1691 > >     for i = 1 to n do
00:02:20 verbose #1692 > >         do! SpiralFileSystem.delete_file_async (path </> $"file_{i}.txt") |>
00:02:20 verbose #1693 > > Async.Ignore
00:02:20 verbose #1694 > >
00:02:20 verbose #1695 > >     do! Async.Sleep 150
00:02:20 verbose #1696 > > }
00:02:20 verbose #1697 > >
00:02:20 verbose #1698 > > let inline run () =
00:02:20 verbose #1699 > >     let eventMap, eventList = testEventsSorted (watchDirectory (fun _ -> false))
00:02:20 verbose #1700 > > write
00:02:20 verbose #1701 > >
00:02:20 verbose #1702 > >     [[
00:02:20 verbose #1703 > >         "file1.txt", nameof FileSystemChangeType.Created
00:02:20 verbose #1704 > >         "file1.txt", nameof FileSystemChangeType.Changed
00:02:20 verbose #1705 > >         "file2.txt", nameof FileSystemChangeType.Created
00:02:20 verbose #1706 > >         "file2.txt", nameof FileSystemChangeType.Changed
00:02:20 verbose #1707 > >
00:02:20 verbose #1708 > >         "file_1.txt", nameof FileSystemChangeType.Renamed
00:02:20 verbose #1709 > >         "file_1.txt", nameof FileSystemChangeType.Deleted
00:02:20 verbose #1710 > >
00:02:20 verbose #1711 > >         "file_2.txt", nameof FileSystemChangeType.Renamed
00:02:20 verbose #1712 > >         "file_2.txt", nameof FileSystemChangeType.Deleted
00:02:20 verbose #1713 > >     ]]
00:02:20 verbose #1714 > >     |> _sequenceEqual eventList
00:02:20 verbose #1715 > >
00:02:20 verbose #1716 > >     [[
00:02:20 verbose #1717 > >         "file1.txt", nameof FileSystemChangeType.Changed
00:02:20 verbose #1718 > >         "file2.txt", nameof FileSystemChangeType.Changed
00:02:20 verbose #1719 > >         "file_1.txt", nameof FileSystemChangeType.Deleted
00:02:20 verbose #1720 > >         "file_2.txt", nameof FileSystemChangeType.Deleted
00:02:20 verbose #1721 > >     ]]
00:02:20 verbose #1722 > >     |> Map.ofList
00:02:20 verbose #1723 > >     |> _sequenceEqual eventMap
00:02:20 verbose #1724 > >
00:02:20 verbose #1725 > > run
00:02:20 verbose #1726 > > |> retry_fn 3
00:02:20 verbose #1727 > > |> _assertEqual (Some ())
00:02:22 verbose #1728 > >
00:02:22 verbose #1729 > > ╭─[ 1.86s - stdout ]───────────────────────────────────────────────────────────╮
00:02:22 verbose #1730 > > │ Some ()                                                                      │
00:02:22 verbose #1731 > > │                                                                              │
00:02:22 verbose #1732 > > │ 00:00:20   debug #7 FileSystem.watchWithFilter / Disposing watch stream │
00:02:22 verbose #1733 > > │ / filter: FileName, LastWrite                                                │
00:02:22 verbose #1734 > > │ [("file1.txt", "Created"); ("file1.txt", "Changed"); ("file2.txt",           │
00:02:22 verbose #1735 > > │ "Created"); ("file2.txt", "Changed");                                        │
00:02:22 verbose #1736 > > │  ("file_1.txt", "Renamed"); ("file_1.txt", "Deleted"); ("file_2.txt",        │
00:02:22 verbose #1737 > > │ "Renamed"); ("file_2.txt", "Deleted")]                                       │
00:02:22 verbose #1738 > > │                                                                              │
00:02:22 verbose #1739 > > │ map [("file1.txt", "Changed"); ("file2.txt", "Changed"); ("file_1.txt",      │
00:02:22 verbose #1740 > > │ "Deleted"); ("file_2.txt", "Deleted")]                                       │
00:02:22 verbose #1741 > > │                                                                              │
00:02:22 verbose #1742 > > │ Some ()                                                                      │
00:02:22 verbose #1743 > > │                                                                              │
00:02:22 verbose #1744 > > │                                                                              │
00:02:22 verbose #1745 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:22 verbose #1746 > >
00:02:22 verbose #1747 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:22 verbose #1748 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:22 verbose #1749 > > │ #### full (test)                                                             │
00:02:22 verbose #1750 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:22 verbose #1751 > >
00:02:22 verbose #1752 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:02:22 verbose #1753 > > //// test
00:02:22 verbose #1754 > >
00:02:22 verbose #1755 > > let inline write path = async {
00:02:22 verbose #1756 > >     let n = 2
00:02:22 verbose #1757 > >
00:02:22 verbose #1758 > >     for i = 1 to n do
00:02:22 verbose #1759 > >         do! $"{i}" |> SpiralFileSystem.write_all_text_async (path </>
00:02:22 verbose #1760 > > $"file{i}.txt")
00:02:22 verbose #1761 > >
00:02:22 verbose #1762 > >     for i = 1 to n do
00:02:22 verbose #1763 > >         do! "" |> SpiralFileSystem.write_all_text_async (path </>
00:02:22 verbose #1764 > > $"file{i}.txt")
00:02:22 verbose #1765 > >
00:02:22 verbose #1766 > >     for i = 1 to n do
00:02:22 verbose #1767 > >         do! path </> $"file{i}.txt" |> SpiralFileSystem.move_file_async (path
00:02:22 verbose #1768 > > </> $"file_{i}.txt") |> Async.Ignore
00:02:22 verbose #1769 > >
00:02:22 verbose #1770 > >     for i = 1 to n do
00:02:22 verbose #1771 > >         do! $"{i}" |> SpiralFileSystem.write_all_text_async (path </>
00:02:22 verbose #1772 > > $"file_{i}.txt")
00:02:22 verbose #1773 > >
00:02:22 verbose #1774 > >     for i = 1 to n do
00:02:22 verbose #1775 > >         do! SpiralFileSystem.delete_file_async (path </> $"file_{i}.txt") |>
00:02:22 verbose #1776 > > Async.Ignore
00:02:22 verbose #1777 > >
00:02:22 verbose #1778 > >     do! Async.Sleep 150
00:02:22 verbose #1779 > > }
00:02:22 verbose #1780 > >
00:02:22 verbose #1781 > > let inline run () =
00:02:22 verbose #1782 > >     let eventMap, eventList = testEventsSorted (watchDirectory (fun _ -> false))
00:02:22 verbose #1783 > > write
00:02:22 verbose #1784 > >
00:02:22 verbose #1785 > >     [[
00:02:22 verbose #1786 > >         "file1.txt", nameof FileSystemChangeType.Created
00:02:22 verbose #1787 > >         "file1.txt", nameof FileSystemChangeType.Changed
00:02:22 verbose #1788 > >         "file2.txt", nameof FileSystemChangeType.Created
00:02:22 verbose #1789 > >         "file2.txt", nameof FileSystemChangeType.Changed
00:02:22 verbose #1790 > >
00:02:22 verbose #1791 > >         "file_1.txt", nameof FileSystemChangeType.Changed
00:02:22 verbose #1792 > >         "file_1.txt", nameof FileSystemChangeType.Renamed
00:02:22 verbose #1793 > >         "file_1.txt", nameof FileSystemChangeType.Deleted
00:02:22 verbose #1794 > >
00:02:22 verbose #1795 > >         "file_2.txt", nameof FileSystemChangeType.Changed
00:02:22 verbose #1796 > >         "file_2.txt", nameof FileSystemChangeType.Renamed
00:02:22 verbose #1797 > >         "file_2.txt", nameof FileSystemChangeType.Deleted
00:02:22 verbose #1798 > >     ]]
00:02:22 verbose #1799 > >     |> _sequenceEqual eventList
00:02:22 verbose #1800 > >
00:02:22 verbose #1801 > >     [[
00:02:22 verbose #1802 > >         "file1.txt", nameof FileSystemChangeType.Changed
00:02:22 verbose #1803 > >         "file2.txt", nameof FileSystemChangeType.Changed
00:02:22 verbose #1804 > >         "file_1.txt", nameof FileSystemChangeType.Deleted
00:02:22 verbose #1805 > >         "file_2.txt", nameof FileSystemChangeType.Deleted
00:02:22 verbose #1806 > >     ]]
00:02:22 verbose #1807 > >     |> Map.ofList
00:02:22 verbose #1808 > >     |> _sequenceEqual eventMap
00:02:22 verbose #1809 > >
00:02:22 verbose #1810 > > run
00:02:22 verbose #1811 > > |> retry_fn 3
00:02:22 verbose #1812 > > |> _assertEqual (Some ())
00:02:24 verbose #1813 > >
00:02:24 verbose #1814 > > ╭─[ 2.19s - stdout ]───────────────────────────────────────────────────────────╮
00:02:24 verbose #1815 > > │ Some ()                                                                      │
00:02:24 verbose #1816 > > │                                                                              │
00:02:24 verbose #1817 > > │ 00:00:23   debug #8 FileSystem.watchWithFilter / Disposing watch stream │
00:02:24 verbose #1818 > > │ / filter: FileName, LastWrite                                                │
00:02:24 verbose #1819 > > │ [("file1.txt", "Created"); ("file1.txt", "Changed"); ("file2.txt",           │
00:02:24 verbose #1820 > > │ "Created"); ("file2.txt", "Changed");                                        │
00:02:24 verbose #1821 > > │  ("file_1.txt", "Changed"); ("file_1.txt", "Renamed"); ("file_1.txt",        │
00:02:24 verbose #1822 > > │ "Deleted"); ("file_2.txt", "Changed");                                       │
00:02:24 verbose #1823 > > │  ("file_2.txt", "Renamed"); ("file_2.txt", "Deleted")]                       │
00:02:24 verbose #1824 > > │                                                                              │
00:02:24 verbose #1825 > > │ map [("file1.txt", "Changed"); ("file2.txt", "Changed"); ("file_1.txt",      │
00:02:24 verbose #1826 > > │ "Deleted"); ("file_2.txt", "Deleted")]                                       │
00:02:24 verbose #1827 > > │                                                                              │
00:02:24 verbose #1828 > > │ Some ()                                                                      │
00:02:24 verbose #1829 > > │                                                                              │
00:02:24 verbose #1830 > > │                                                                              │
00:02:24 verbose #1831 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:24 verbose #1832 > 00:00:41 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 36872 }
00:02:24 verbose #1833 > 00:00:41   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/fsharp/FileSystem.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/fsharp/FileSystem.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:02:26 verbose #1834 > 00:00:43 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/fsharp/FileSystem.dib.ipynb to html
00:02:26 verbose #1835 > 00:00:43 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:02:26 verbose #1836 > 00:00:43 verbose #7 !   validate(nb)
00:02:28 verbose #1837 > 00:00:45 verbose #8 ! [NbConvertApp] Writing 380529 bytes to c:\home\git\polyglot\lib\fsharp\FileSystem.dib.html
00:02:28 verbose #1838 > 00:00:45 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 651 }
00:02:28 verbose #1839 > 00:00:45   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 651 }
00:02:28 verbose #1840 > 00:00:45   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/fsharp/FileSystem.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/fsharp/FileSystem.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:02:29 verbose #1841 > 00:00:46 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:02:29 verbose #1842 > 00:00:46   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:02:29 verbose #1843 > 00:00:46   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 37582 }
00:02:29   debug #1844 runtime.execute_with_options_async / { exit_code = 0; output_length = 42045 }
00:02:29   debug #8 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path FileSystem.dib --retries 3
00:02:29   debug #1845 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path Runtime.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:02:29 verbose #1846 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "Runtime.dib", "--retries", "3"])) }
00:02:29 verbose #1847 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/fsharp/Runtime.dib", "--output-path", "c:/home/git/polyglot/lib/fsharp/Runtime.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/fsharp/Runtime.dib" --output-path "c:/home/git/polyglot/lib/fsharp/Runtime.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:02:31 verbose #1848 > >
00:02:31 verbose #1849 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:31 verbose #1850 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:31 verbose #1851 > > │ # Runtime (Polyglot)                                                         │
00:02:31 verbose #1852 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:35 verbose #1853 > >
00:02:35 verbose #1854 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:02:35 verbose #1855 > > #r
00:02:35 verbose #1856 > > @"../../../../../../../.nuget/packages/fsharp.control.asyncseq/3.2.1/lib/netstan
00:02:35 verbose #1857 > > dard2.1/FSharp.Control.AsyncSeq.dll"
00:02:35 verbose #1858 > > #r
00:02:35 verbose #1859 > > @"../../../../../../../.nuget/packages/system.reactive/6.0.1-preview.1/lib/net6.
00:02:35 verbose #1860 > > 0/System.Reactive.dll"
00:02:35 verbose #1861 > > #r
00:02:35 verbose #1862 > > @"../../../../../../../.nuget/packages/system.reactive.linq/6.0.1-preview.1/lib
00:02:35 verbose #1863 > > netstandard2.0/System.Reactive.Linq.dll"
00:02:35 verbose #1864 > > #r
00:02:35 verbose #1865 > > @"../../../../../../../.nuget/packages/argu/6.2.4/lib/netstandard2.0/Argu.dll"
00:02:49 verbose #1866 > >
00:02:49 verbose #1867 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:02:49 verbose #1868 > > #if !INTERACTIVE
00:02:49 verbose #1869 > > open Lib
00:02:49 verbose #1870 > > #endif
00:02:49 verbose #1871 > >
00:02:49 verbose #1872 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:02:49 verbose #1873 > > open Common
00:02:49 verbose #1874 > >
00:02:49 verbose #1875 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:02:49 verbose #1876 > > //// test
00:02:49 verbose #1877 > >
00:02:49 verbose #1878 > > open SpiralFileSystem.Operators
00:02:49 verbose #1879 > >
00:02:49 verbose #1880 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:49 verbose #1881 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:49 verbose #1882 > > │ ## parseArgs                                                                 │
00:02:49 verbose #1883 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:49 verbose #1884 > >
00:02:49 verbose #1885 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:02:49 verbose #1886 > > let inline parseArgs<'T when 'T :> Argu.IArgParserTemplate> args =
00:02:49 verbose #1887 > >     let assemblyName =
00:02:49 verbose #1888 > > System.Reflection.Assembly.GetEntryAssembly().GetName().Name
00:02:49 verbose #1889 > >     let errorHandler : Argu.IExiter =
00:02:49 verbose #1890 > >         if [[ "Microsoft.DotNet.Interactive.App"; "dotnet-repl" ]] |>
00:02:49 verbose #1891 > > List.contains assemblyName
00:02:49 verbose #1892 > >         then Argu.ExceptionExiter ()
00:02:49 verbose #1893 > >         else Argu.ProcessExiter (function Argu.ErrorCode.HelpText -> None | _ ->
00:02:49 verbose #1894 > > Some System.ConsoleColor.Red)
00:02:49 verbose #1895 > >
00:02:49 verbose #1896 > >     let parser =
00:02:49 verbose #1897 > >         Argu.ArgumentParser.Create<'T> (
00:02:49 verbose #1898 > >             programName = $"{assemblyName}{SpiralPlatform.get_executable_suffix
00:02:49 verbose #1899 > > ()}",
00:02:49 verbose #1900 > >             errorHandler = errorHandler
00:02:49 verbose #1901 > >         )
00:02:49 verbose #1902 > >
00:02:49 verbose #1903 > >     parser.ParseCommandLine args
00:02:49 verbose #1904 > >
00:02:49 verbose #1905 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:02:49 verbose #1906 > > //// test
00:02:49 verbose #1907 > >
00:02:49 verbose #1908 > > [[<RequireQualifiedAccess>]]
00:02:49 verbose #1909 > > type Arguments =
00:02:49 verbose #1910 > >     | [[<Argu.ArguAttributes.MainCommand; Argu.ArguAttributes.ExactlyOnce;
00:02:49 verbose #1911 > > Argu.ArguAttributes.Last>]]
00:02:49 verbose #1912 > >         Paths of paths : string list
00:02:49 verbose #1913 > >
00:02:49 verbose #1914 > >     interface Argu.IArgParserTemplate with
00:02:49 verbose #1915 > >         member s.Usage =
00:02:49 verbose #1916 > >             match s with
00:02:49 verbose #1917 > >             | Paths _ -> nameof Paths
00:02:49 verbose #1918 > >
00:02:49 verbose #1919 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:02:49 verbose #1920 > > //// test
00:02:49 verbose #1921 > >
00:02:49 verbose #1922 > > Argu.ArgumentParser.Create<Arguments>().PrintUsage ()
00:02:50 verbose #1923 > >
00:02:50 verbose #1924 > > ╭─[ 133.51ms - return value ]──────────────────────────────────────────────────╮
00:02:50 verbose #1925 > > │ "USAGE: dotnet-repl [--help] <paths>...                                      │
00:02:50 verbose #1926 > > │                                                                              │
00:02:50 verbose #1927 > > │ PATHS:                                                                       │
00:02:50 verbose #1928 > > │                                                                              │
00:02:50 verbose #1929 > > │     <paths>...            Paths                                              │
00:02:50 verbose #1930 > > │                                                                              │
00:02:50 verbose #1931 > > │ OPTIONS:                                                                     │
00:02:50 verbose #1932 > > │                                                                              │
00:02:50 verbose #1933 > > │     --help                display this list of options.                      │
00:02:50 verbose #1934 > > │ "                                                                            │
00:02:50 verbose #1935 > > │                                                                              │
00:02:50 verbose #1936 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:50 verbose #1937 > >
00:02:50 verbose #1938 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:02:50 verbose #1939 > > //// test
00:02:50 verbose #1940 > >
00:02:50 verbose #1941 > > fun () -> parseArgs<Arguments> [[||]] |> ignore
00:02:50 verbose #1942 > > |> _throwsC (fun ex _ ->
00:02:50 verbose #1943 > >     SpiralSm.format_exception ex
00:02:50 verbose #1944 > >     |> _stringContains "Argu.ArguParseException: ERROR: missing parameter
00:02:50 verbose #1945 > > '<paths>...'."
00:02:50 verbose #1946 > > )
00:02:50 verbose #1947 > >
00:02:50 verbose #1948 > > ╭─[ 72.32ms - stdout ]─────────────────────────────────────────────────────────╮
00:02:50 verbose #1949 > > │ <fun:it@3-3>                                                                 │
00:02:50 verbose #1950 > > │                                                                              │
00:02:50 verbose #1951 > > │ "Argu.ArguParseException: ERROR: missing parameter '<paths>...'.             │
00:02:50 verbose #1952 > > │ USAGE: dotnet-repl.exe [--help] <paths>...                                   │
00:02:50 verbose #1953 > > │                                                                              │
00:02:50 verbose #1954 > > │ PATHS:                                                                       │
00:02:50 verbose #1955 > > │                                                                              │
00:02:50 verbose #1956 > > │     <paths>...            Paths                                              │
00:02:50 verbose #1957 > > │                                                                              │
00:02:50 verbose #1958 > > │ OPTIONS:                                                                     │
00:02:50 verbose #1959 > > │                                                                              │
00:02:50 verbose #1960 > > │     --help                display this list of options.                      │
00:02:50 verbose #1961 > > │ "                                                                            │
00:02:50 verbose #1962 > > │                                                                              │
00:02:50 verbose #1963 > > │                                                                              │
00:02:50 verbose #1964 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:50 verbose #1965 > >
00:02:50 verbose #1966 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:02:50 verbose #1967 > > let inline parseAllArgs<'T when 'T :> Argu.IArgParserTemplate> args =
00:02:50 verbose #1968 > >     args
00:02:50 verbose #1969 > >     |> parseArgs<'T>
00:02:50 verbose #1970 > >     |> fun results -> results.GetAllResults ()
00:02:50 verbose #1971 > >
00:02:50 verbose #1972 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:02:50 verbose #1973 > > //// test
00:02:50 verbose #1974 > >
00:02:50 verbose #1975 > > [[<RequireQualifiedAccess>]]
00:02:50 verbose #1976 > > type Arguments =
00:02:50 verbose #1977 > >     | [[<Argu.ArguAttributes.MainCommand; Argu.ArguAttributes.ExactlyOnce;
00:02:50 verbose #1978 > > Argu.ArguAttributes.Last>]]
00:02:50 verbose #1979 > >         Paths of paths : string list
00:02:50 verbose #1980 > >
00:02:50 verbose #1981 > >     interface Argu.IArgParserTemplate with
00:02:50 verbose #1982 > >         member s.Usage =
00:02:50 verbose #1983 > >             match s with
00:02:50 verbose #1984 > >             | Paths _ -> nameof Paths
00:02:50 verbose #1985 > >
00:02:50 verbose #1986 > > parseAllArgs<Arguments> [[| "a b"; "c" |]]
00:02:50 verbose #1987 > > |> _assertEqual [[ Arguments.Paths [[ "a b"; "c" ]] ]]
00:02:50 verbose #1988 > >
00:02:50 verbose #1989 > > ╭─[ 90.75ms - stdout ]─────────────────────────────────────────────────────────╮
00:02:50 verbose #1990 > > │ [Paths ["a b"; "c"]]                                                         │
00:02:50 verbose #1991 > > │                                                                              │
00:02:50 verbose #1992 > > │                                                                              │
00:02:50 verbose #1993 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:50 verbose #1994 > >
00:02:50 verbose #1995 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:02:50 verbose #1996 > > let inline parseArgsMap<'T when 'T :> Argu.IArgParserTemplate> args =
00:02:50 verbose #1997 > >     args
00:02:50 verbose #1998 > >     |> parseAllArgs<'T>
00:02:50 verbose #1999 > >     |> List.groupBy CommonFSharp.getUnionCaseName<'T>
00:02:50 verbose #2000 > >     |> Map.ofList
00:02:50 verbose #2001 > >
00:02:50 verbose #2002 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:02:50 verbose #2003 > > //// test
00:02:50 verbose #2004 > >
00:02:50 verbose #2005 > > parseArgsMap<Arguments> [[| "a b"; "c" |]]
00:02:50 verbose #2006 > > |> _assertEqual (
00:02:50 verbose #2007 > >     [[ nameof Arguments.Paths, [[ Arguments.Paths [[ "a b"; "c" ]] ]] ]]
00:02:50 verbose #2008 > >     |> Map.ofList
00:02:50 verbose #2009 > > )
00:02:50 verbose #2010 > >
00:02:50 verbose #2011 > > ╭─[ 54.61ms - stdout ]─────────────────────────────────────────────────────────╮
00:02:50 verbose #2012 > > │ map [("Paths", [Paths ["a b"; "c"]])]                                        │
00:02:50 verbose #2013 > > │                                                                              │
00:02:50 verbose #2014 > > │                                                                              │
00:02:50 verbose #2015 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:50 verbose #2016 > 00:00:20 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 7590 }
00:02:50 verbose #2017 > 00:00:20   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/fsharp/Runtime.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/fsharp/Runtime.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:02:52 verbose #2018 > 00:00:22 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/fsharp/Runtime.dib.ipynb to html
00:02:52 verbose #2019 > 00:00:22 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:02:52 verbose #2020 > 00:00:22 verbose #7 !   validate(nb)
00:02:53 verbose #2021 > 00:00:24 verbose #8 ! [NbConvertApp] Writing 292946 bytes to c:\home\git\polyglot\lib\fsharp\Runtime.dib.html
00:02:53 verbose #2022 > 00:00:24 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 645 }
00:02:53 verbose #2023 > 00:00:24   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 645 }
00:02:53 verbose #2024 > 00:00:24   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/fsharp/Runtime.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/fsharp/Runtime.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:02:56 verbose #2025 > 00:00:26 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:02:56 verbose #2026 > 00:00:26   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:02:56 verbose #2027 > 00:00:26   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 8294 }
00:02:56   debug #2028 runtime.execute_with_options_async / { exit_code = 0; output_length = 11254 }
00:02:56   debug #9 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path Runtime.dib --retries 3
00:02:56 verbose #7 networking.wait_for_port_access / { port = 13805; retry = 0; timeout = Some 100; status = false }
00:02:56 verbose #8 async.run_with_timeout_async / { timeout = 100 }
00:00:00   debug #2 writeDibCode / output: Fs / path: CommonFSharp.dib
00:00:00   debug #2 writeDibCode / output: Fs / path: Runtime.dib
00:00:00   debug #2 writeDibCode / output: Fs / path: FileSystem.dib
00:00:00   debug #2 writeDibCode / output: Fs / path: AsyncSeq.dib
00:00:00   debug #2 writeDibCode / output: Fs / path: Async.dib
00:00:00   debug #2 writeDibCode / output: Fs / path: Common.dib
00:00:00   debug #6 parseDibCode / output: Fs / file: AsyncSeq.dib
00:00:00   debug #5 parseDibCode / output: Fs / file: FileSystem.dib
00:00:00   debug #5 parseDibCode / output: Fs / file: Runtime.dib
00:00:00   debug #3 parseDibCode / output: Fs / file: CommonFSharp.dib
00:00:00   debug #7 parseDibCode / output: Fs / file: Async.dib
00:00:00   debug #8 parseDibCode / output: Fs / file: Common.dib
In [ ]:
{ pwsh ../lib/math/build.ps1 } | Invoke-Block
00:00:00 verbose #1 async.run_with_timeout_async / { timeout = 180 }
00:00:00   debug #1 runtime.execute_with_options_async / { options = { command = dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port 13805 --default-int i32 --default-float f64; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = Some <fun:main@570-7>; stdin = None; trace = true; working_directory = Some "C:\home\git\polyglot" } }
00:00:01 verbose #2 > 00:00:00   debug #1 pwd: C:\home\git\polyglot
00:00:01 verbose #3 > 00:00:00   debug #2 dllPath: C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release
00:00:01 verbose #4 > 00:00:00   debug #3 targetDir: C:\home\git\polyglot\target/spiral_Eval
00:00:01 verbose #2 async.run_with_timeout_async / { timeout = 100 }
00:00:01 verbose #3 networking.wait_for_port_access / { port = 13805; retry = 0; timeout = Some 100; status = true }
00:00:01 verbose #4 async.run_with_timeout_async / { timeout = 100 }
00:00:01 verbose #5 > Starting the Spiral Server. It is bound to: http://localhost:13805
00:00:01 verbose #5 async.run_with_timeout_async / { timeout = 100 }
00:00:01 verbose #1 Supervisor.sendJson / port: 13805 / json: {"Ping":true} / result:
00:00:01 verbose #2 awaitCompiler / Ping / result: 'Some(null)' / port: 13805 / retry: 0
00:00:01 verbose #6 > Server bound to: http://localhost:13805
00:00:01   debug #7 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path math.dib --retries 1; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:00:01 verbose #8 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "math.dib", "--retries", "1"])) }
00:00:01 verbose #9 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/math/math.dib", "--output-path", "c:/home/git/polyglot/lib/math/math.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/math/math.dib" --output-path "c:/home/git/polyglot/lib/math/math.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:00:04 verbose #10 > >
00:00:04 verbose #11 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:04 verbose #12 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:04 verbose #13 > > │ # math                                                                       │
00:00:04 verbose #14 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 verbose #15 > >
00:00:07 verbose #16 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:07 verbose #17 > > open testing
00:00:07 verbose #18 > > open rust_operators
00:00:08 verbose #19 > 00:00:08   debug #4 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b90fee451a768d1722d376785f2e3ed5ef1cb939ef30191f05ac5df1268e6e2b/main.spi
00:00:11 verbose #20 > >
00:00:11 verbose #21 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:11 verbose #22 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:11 verbose #23 > > │ ## complex                                                                   │
00:00:11 verbose #24 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 verbose #25 > >
00:00:11 verbose #26 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:11 verbose #27 > > nominal complex t =
00:00:11 verbose #28 > >     `(
00:00:11 verbose #29 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:00:11 verbose #30 > > Fable.Core.Emit(\"num_complex::Complex<$0>\")>]]\n#endif\ntype
00:00:11 verbose #31 > > num_complex_Complex<'T> = class end"
00:00:11 verbose #32 > >         $'' : $'num_complex_Complex<`t>'
00:00:11 verbose #33 > >     )
00:00:11 verbose #34 > >
00:00:11 verbose #35 > > inl complex forall t. ((re : t), (im : t)) : complex t =
00:00:11 verbose #36 > >     !\\((re, im), $'"num_complex::Complex::new($0, $1)"')
00:00:11 verbose #37 > 00:00:11   debug #5 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1907492804a6f83422a8075f99fbf5f171112a6da24d86b5a1136bad45758166/main.spi
00:00:12 verbose #38 > >
00:00:12 verbose #39 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 verbose #40 > > //// test
00:00:12 verbose #41 > > ///! rust -d num-complex
00:00:12 verbose #42 > >
00:00:12 verbose #43 > > complex (0f64, 0f64)
00:00:12 verbose #44 > > |> sm'.format'
00:00:12 verbose #45 > > |> sm'.from_std_string
00:00:12 verbose #46 > > |> _assert_eq "0+0i"
00:00:12 verbose #47 > 00:00:11   debug #6 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3364e22659e3d6c0da8bd57399215db7b1bd401b1c728ab6453f7cd9e0ad3bbf/main.spi
00:00:14 verbose #48 > >
00:00:14 verbose #49 > > ╭─[ 2.75s - return value ]─────────────────────────────────────────────────────╮
00:00:14 verbose #50 > > │ assert_eq / actual: "0+0i" / expected: "0+0i"                                │
00:00:14 verbose #51 > > │                                                                              │
00:00:14 verbose #52 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 verbose #53 > >
00:00:14 verbose #54 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:14 verbose #55 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:14 verbose #56 > > │ ## re                                                                        │
00:00:14 verbose #57 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 verbose #58 > >
00:00:14 verbose #59 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:14 verbose #60 > > inl re forall t. (c : complex t) : t =
00:00:14 verbose #61 > >     !\\(c, $'"$0.re"')
00:00:14 verbose #62 > 00:00:14   debug #7 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2088a80e028c8ef09421bd94a395ab77e8e966a5d9da17b28b89a4c46657a476/main.spi
00:00:15 verbose #63 > >
00:00:15 verbose #64 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:15 verbose #65 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:15 verbose #66 > > │ ## im                                                                        │
00:00:15 verbose #67 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 verbose #68 > >
00:00:15 verbose #69 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:15 verbose #70 > > inl im forall t. (c : complex t) : t =
00:00:15 verbose #71 > >     !\\(c, $'"$0.im"')
00:00:15 verbose #72 > 00:00:14   debug #8 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/850a338176caa244958bcafa8e24dccf9f4a5cae33c617b2f78f058847dd4bd0/main.spi
00:00:15 verbose #73 > >
00:00:15 verbose #74 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:15 verbose #75 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:15 verbose #76 > > │ ## complex_unbox                                                             │
00:00:15 verbose #77 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 verbose #78 > >
00:00:15 verbose #79 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:15 verbose #80 > > inl complex_unbox forall t. (c : complex t) =
00:00:15 verbose #81 > >     re c, im c
00:00:15 verbose #82 > 00:00:15   debug #9 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6ae203bd76edae1cf52778aaef8cad607fc2434ef96600fc8b2743b189861399/main.spi
00:00:16 verbose #83 > >
00:00:16 verbose #84 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:16 verbose #85 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:16 verbose #86 > > │ ## (~.^)                                                                     │
00:00:16 verbose #87 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:16 verbose #88 > >
00:00:16 verbose #89 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:16 verbose #90 > > inl (~.^) c = complex c
00:00:16 verbose #91 > 00:00:15   debug #10 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d815ef25106ec5f84566201969b4a310b07a4e042a34ec8280135865c3e34e28/main.spi
00:00:16 verbose #92 > >
00:00:16 verbose #93 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:16 verbose #94 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:16 verbose #95 > > │ ## complex_eq                                                                │
00:00:16 verbose #96 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:16 verbose #97 > >
00:00:16 verbose #98 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:16 verbose #99 > > inl complex_eq forall t. (a : complex t) (b : complex t) : bool =
00:00:16 verbose #100 > >     !\\((a, b), $'"$0 == $1"')
00:00:16 verbose #101 > 00:00:15   debug #11 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a02331d0655d3fb4e4854d68c77fcc694429195ef1d80c4b3bfd7f24e259aa1c/main.spi
00:00:16 verbose #102 > >
00:00:16 verbose #103 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:16 verbose #104 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:16 verbose #105 > > │ ## (.=)                                                                      │
00:00:16 verbose #106 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:16 verbose #107 > >
00:00:16 verbose #108 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:16 verbose #109 > > inl (.=) a b = complex_eq a b
00:00:16 verbose #110 > 00:00:16   debug #12 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c8187ec359f99758c087b071d7b4750c0db0f8069b3fd5c6f9872456c98a4a1d/main.spi
00:00:17 verbose #111 > >
00:00:17 verbose #112 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:17 verbose #113 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:17 verbose #114 > > │ ## equable complex                                                           │
00:00:17 verbose #115 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:17 verbose #116 > >
00:00:17 verbose #117 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:17 verbose #118 > > instance equable complex t = complex_eq
00:00:17 verbose #119 > 00:00:16   debug #13 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4302a705bdafe5fd12b257035ed0a65a374bb9b4b19bd61a09f3283209075431/main.spi
00:00:17 verbose #120 > >
00:00:17 verbose #121 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:17 verbose #122 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:17 verbose #123 > > │ ## complex_add                                                               │
00:00:17 verbose #124 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:17 verbose #125 > >
00:00:17 verbose #126 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:17 verbose #127 > > inl complex_add forall t. (a : complex t) (b : complex t) : complex t =
00:00:17 verbose #128 > >     !\\((a, b), $'"$0 + $1"')
00:00:17 verbose #129 > 00:00:16   debug #14 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/27d453d381b1f3a95cac5d52dc231cf950b9a2a84a8d05583946d48b820e33b1/main.spi
00:00:17 verbose #130 > >
00:00:17 verbose #131 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:17 verbose #132 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:17 verbose #133 > > │ ## (.+)                                                                      │
00:00:17 verbose #134 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:17 verbose #135 > >
00:00:17 verbose #136 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:17 verbose #137 > > inl (.+) a b = complex_add a b
00:00:17 verbose #138 > 00:00:17   debug #15 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4a293ab9f4e14ddf7bd25ff560adad4e2cfff6425a06a8aaeb66419fb5368b28/main.spi
00:00:18 verbose #139 > >
00:00:18 verbose #140 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:18 verbose #141 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:18 verbose #142 > > │ ## complex_sub                                                               │
00:00:18 verbose #143 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:18 verbose #144 > >
00:00:18 verbose #145 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:18 verbose #146 > > inl complex_sub forall t. (a : complex t) (b : complex t) : complex t =
00:00:18 verbose #147 > >     !\\((a, b), $'"$0 - $1"')
00:00:18 verbose #148 > 00:00:17   debug #16 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/cf8687be476321ad86527df3e60120bfdb9ba46a7a6c4de5dd78b95bb1e9cbdc/main.spi
00:00:18 verbose #149 > >
00:00:18 verbose #150 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:18 verbose #151 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:18 verbose #152 > > │ ## (.-)                                                                      │
00:00:18 verbose #153 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:18 verbose #154 > >
00:00:18 verbose #155 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:18 verbose #156 > > inl (.-) a b = complex_sub a b
00:00:18 verbose #157 > 00:00:17   debug #17 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ef66fdb2fefd176d0bd3e164d6862e0788fba1a810265bdf57a12464ef6d9dca/main.spi
00:00:18 verbose #158 > >
00:00:18 verbose #159 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:18 verbose #160 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:18 verbose #161 > > │ ## complex_mult                                                              │
00:00:18 verbose #162 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:18 verbose #163 > >
00:00:18 verbose #164 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:18 verbose #165 > > inl complex_mult forall t. (a : complex t) (b : complex t) : complex t =
00:00:18 verbose #166 > >     !\\((a, b), $'"$0 * $1"')
00:00:18 verbose #167 > 00:00:18   debug #18 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4b0454d437fcfde31097fbb9ac440a4e4ee9a3f83b237e6a7a5af2c78f9dcfd9/main.spi
00:00:19 verbose #168 > >
00:00:19 verbose #169 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:19 verbose #170 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:19 verbose #171 > > │ ## (.*)                                                                      │
00:00:19 verbose #172 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:19 verbose #173 > >
00:00:19 verbose #174 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:19 verbose #175 > > inl (.*) a b = complex_mult a b
00:00:19 verbose #176 > 00:00:18   debug #19 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/42014632eb4d027903752a48b3c8c0f48261af0c24f04ab438d687c50566e121/main.spi
00:00:19 verbose #177 > >
00:00:19 verbose #178 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:19 verbose #179 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:19 verbose #180 > > │ ## complex_div                                                               │
00:00:19 verbose #181 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:19 verbose #182 > >
00:00:19 verbose #183 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:19 verbose #184 > > inl complex_div forall t. (a : complex t) (b : complex t) : complex t =
00:00:19 verbose #185 > >     !\\((a, b), $'"$0 / $1"')
00:00:19 verbose #186 > 00:00:18   debug #20 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/622d933f1909df5b7c43fab90fd7ae72cd6849e8b21e5be0f61e3aeb952424d0/main.spi
00:00:19 verbose #187 > >
00:00:19 verbose #188 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:19 verbose #189 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:19 verbose #190 > > │ ## (./)                                                                      │
00:00:19 verbose #191 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:19 verbose #192 > >
00:00:19 verbose #193 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:19 verbose #194 > > inl (./) a b = complex_div a b
00:00:20 verbose #195 > 00:00:19   debug #21 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/26a23eab0e01d3eb0aecd8f1987ffd4f157570f3b999e0f1576e3874dd15abd4/main.spi
00:00:20 verbose #196 > >
00:00:20 verbose #197 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:20 verbose #198 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:20 verbose #199 > > │ ## powc                                                                      │
00:00:20 verbose #200 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:20 verbose #201 > >
00:00:20 verbose #202 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:20 verbose #203 > > inl powc forall t. (s : complex t) (c : complex t) : complex t =
00:00:20 verbose #204 > >     !\\((c, s), $'"num_complex::Complex::powc($0, $1)"')
00:00:20 verbose #205 > 00:00:19   debug #22 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fca32c2e1776b3a7305e24d9da8622b4cfe835f7164b4fa551550b3d49d8183f/main.spi
00:00:20 verbose #206 > >
00:00:20 verbose #207 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:20 verbose #208 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:20 verbose #209 > > │ ## (.**)                                                                     │
00:00:20 verbose #210 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:20 verbose #211 > >
00:00:20 verbose #212 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:20 verbose #213 > > inl (.**) a b = powc b a
00:00:20 verbose #214 > 00:00:19   debug #23 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/03dfd53ef16adf0f497a53308827ac43eaa5a1e666a02087a203ba8b2cef7c68/main.spi
00:00:20 verbose #215 > >
00:00:20 verbose #216 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:20 verbose #217 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:20 verbose #218 > > │ ## complex_sin                                                               │
00:00:20 verbose #219 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:20 verbose #220 > >
00:00:20 verbose #221 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:20 verbose #222 > > inl complex_sin forall t. (c : complex t) : complex t =
00:00:20 verbose #223 > >     !\\(c, $'"$0.sin()"')
00:00:20 verbose #224 > 00:00:20   debug #24 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/426931223234ff9ece724b367d0cf4b00c6b064093886582b23f714855a82231/main.spi
00:00:21 verbose #225 > >
00:00:21 verbose #226 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:21 verbose #227 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:21 verbose #228 > > │ ## conj                                                                      │
00:00:21 verbose #229 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:21 verbose #230 > >
00:00:21 verbose #231 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:21 verbose #232 > > inl conj forall t. (c : complex t) : complex t =
00:00:21 verbose #233 > >     !\\(c, $'"$0.conj()"')
00:00:21 verbose #234 > 00:00:20   debug #25 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b7c6a93c1aabd7895e2d4da35dca122a2e251ee5a24bbc73cf24e5d3a2d8961f/main.spi
00:00:21 verbose #235 > >
00:00:21 verbose #236 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:21 verbose #237 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:21 verbose #238 > > │ ## zeta                                                                      │
00:00:21 verbose #239 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:21 verbose #240 > >
00:00:21 verbose #241 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:21 verbose #242 > > inl zeta log (gamma : complex f64 -> complex f64) (s : complex f64) : complex
00:00:21 verbose #243 > > f64 =
00:00:21 verbose #244 > >     inl rec zeta count gamma s =
00:00:21 verbose #245 > >         if log then
00:00:21 verbose #246 > >             !\\((count, s), $'"println\!(\\\"zeta / count: {:?} / s: {:?}\\\",
00:00:21 verbose #247 > > $0, $1)"')
00:00:21 verbose #248 > >         if re s > 1 then
00:00:21 verbose #249 > >             (.^(0, 0), (am.init 10000i32 id : a i32 _))
00:00:21 verbose #250 > >             ||> am.fold fun acc n =>
00:00:21 verbose #251 > >                 acc .+ (.^(1, 0) ./ (.^(f64 n, 0) .** s))
00:00:21 verbose #252 > >         else
00:00:21 verbose #253 > >             inl gamma_term = gamma (.^(1, 0) .- s)
00:00:21 verbose #254 > >             inl sin_term = .^(pi, 0) .* s ./ .^(2, 0) |> complex_sin
00:00:21 verbose #255 > >             inl one_minus_s = .^(1 - re s, -(im s))
00:00:21 verbose #256 > >             inl mirror_term =
00:00:21 verbose #257 > >                 if re one_minus_s <= 1
00:00:21 verbose #258 > >                 then .^(0, 0)
00:00:21 verbose #259 > >                 else
00:00:21 verbose #260 > >                     if count <= 3
00:00:21 verbose #261 > >                     then zeta (count + 1) gamma one_minus_s
00:00:21 verbose #262 > >                     else one_minus_s
00:00:21 verbose #263 > >             inl reflection_formula =
00:00:21 verbose #264 > >                 .^(2, 0) .* (.^(pi, 0) .** s) .* sin_term .* gamma_term .*
00:00:21 verbose #265 > > mirror_term
00:00:21 verbose #266 > >             reflection_formula
00:00:21 verbose #267 > >     join zeta 0i32 gamma s
00:00:21 verbose #268 > 00:00:20   debug #26 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d7e4babbe6d02014eaf714d2f4a6d38e725f357959f3014ad2d11e966dbf0f74/main.spi
00:00:21 verbose #269 > >
00:00:21 verbose #270 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:21 verbose #271 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:21 verbose #272 > > │ ## bound                                                                     │
00:00:21 verbose #273 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:21 verbose #274 > >
00:00:21 verbose #275 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:21 verbose #276 > > nominal bound t =
00:00:21 verbose #277 > >     `(
00:00:21 verbose #278 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:00:21 verbose #279 > > Fable.Core.Emit(\"pyo3::Bound<$0>\")>]]\n#endif\ntype pyo3_Bound<'T> = class
00:00:21 verbose #280 > > end"
00:00:21 verbose #281 > >         $'' : $'pyo3_Bound<`t>'
00:00:21 verbose #282 > >     )
00:00:21 verbose #283 > 00:00:21   debug #27 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/cabd684a3d1542d7b9a1bcc51c602582540af87a06d86676c1b03ca77cd252d6/main.spi
00:00:22 verbose #284 > >
00:00:22 verbose #285 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:22 verbose #286 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:22 verbose #287 > > │ ## python                                                                    │
00:00:22 verbose #288 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:22 verbose #289 > >
00:00:22 verbose #290 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:22 verbose #291 > > nominal python =
00:00:22 verbose #292 > >     `(
00:00:22 verbose #293 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:00:22 verbose #294 > > Fable.Core.Emit(\"pyo3::Python\")>]]\n#endif\ntype pyo3_Python = class end"
00:00:22 verbose #295 > >         $'' : $'pyo3_Python'
00:00:22 verbose #296 > >     )
00:00:22 verbose #297 > 00:00:21   debug #28 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d2860ddd567813f31cb570c81629ce34e22f5e0bebcdaefdde3856de5dd1c8a6/main.spi
00:00:22 verbose #298 > >
00:00:22 verbose #299 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:22 verbose #300 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:22 verbose #301 > > │ ## pymodule                                                                  │
00:00:22 verbose #302 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:22 verbose #303 > >
00:00:22 verbose #304 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:22 verbose #305 > > nominal pymodule =
00:00:22 verbose #306 > >     `(
00:00:22 verbose #307 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:00:22 verbose #308 > > Fable.Core.Emit(\"pyo3::types::PyModule\")>]]\n#endif\ntype pyo3_types_PyModule
00:00:22 verbose #309 > > = class end"
00:00:22 verbose #310 > >         $'' : $'pyo3_types_PyModule'
00:00:22 verbose #311 > >     )
00:00:22 verbose #312 > 00:00:22   debug #29 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fae68a49243870f2c3bd98e75ebb9bb8e193bc5587b54aa045890f2a9c8c0005/main.spi
00:00:22 verbose #313 > >
00:00:22 verbose #314 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:22 verbose #315 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:22 verbose #316 > > │ ## pyany                                                                     │
00:00:22 verbose #317 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:22 verbose #318 > >
00:00:22 verbose #319 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:22 verbose #320 > > nominal pyany =
00:00:22 verbose #321 > >     `(
00:00:22 verbose #322 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:00:22 verbose #323 > > Fable.Core.Emit(\"pyo3::PyAny\")>]]\n#endif\ntype pyo3_PyAny = class end"
00:00:22 verbose #324 > >         $'' : $'pyo3_PyAny'
00:00:22 verbose #325 > >     )
00:00:23 verbose #326 > 00:00:22   debug #30 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ac1942e6eed80d68efd68489cf8f5c00f25b368d7a2f8fd294329d9f68b70652/main.spi
00:00:23 verbose #327 > >
00:00:23 verbose #328 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:23 verbose #329 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:23 verbose #330 > > │ ## pyerr                                                                     │
00:00:23 verbose #331 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:23 verbose #332 > >
00:00:23 verbose #333 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:23 verbose #334 > > nominal pyerr =
00:00:23 verbose #335 > >     `(
00:00:23 verbose #336 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:00:23 verbose #337 > > Fable.Core.Emit(\"pyo3::PyErr\")>]]\n#endif\ntype pyo3_PyErr = class end"
00:00:23 verbose #338 > >         $'' : $'pyo3_PyErr'
00:00:23 verbose #339 > >     )
00:00:23 verbose #340 > 00:00:22   debug #31 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3e0d2b36e75ac9609a583c25266bbc8439b6f4a0753f9ab74945a46ccb0fc173/main.spi
00:00:23 verbose #341 > >
00:00:23 verbose #342 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:23 verbose #343 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:23 verbose #344 > > │ ## eval                                                                      │
00:00:23 verbose #345 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:23 verbose #346 > >
00:00:23 verbose #347 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:23 verbose #348 > > inl module_from_code (py : python) (code : string) : _ (bound pymodule) _ =
00:00:23 verbose #349 > >     inl py = join py
00:00:23 verbose #350 > >     inl code = code |> sm'.as_str
00:00:23 verbose #351 > >     !\($'"pyo3::types::PyModule::from_code_bound(!py, !code, \\"\\", \\"\\")"')
00:00:23 verbose #352 > >     |> resultm.map_error' fun (x : pyerr) => x |> sm'.format'
00:00:23 verbose #353 > >
00:00:23 verbose #354 > > inl use_pyanymethods () =
00:00:23 verbose #355 > >     global "Fable.Core.RustInterop.emitRustExpr () \");\nuse
00:00:23 verbose #356 > > pyo3::prelude::PyAnyMethods;\n//\""
00:00:23 verbose #357 > >
00:00:23 verbose #358 > > inl getattr (attr : string) (module : bound pymodule) : _ (bound pyany) _ =
00:00:23 verbose #359 > >     inl attr = join attr
00:00:23 verbose #360 > >     inl attr = attr |> sm'.as_str
00:00:23 verbose #361 > >     inl module = join module
00:00:23 verbose #362 > >     use_pyanymethods ()
00:00:23 verbose #363 > >     !\($'"!module.getattr(!attr)"')
00:00:23 verbose #364 > >     |> resultm.map_error' fun (x : pyerr) => x |> sm'.format'
00:00:23 verbose #365 > >
00:00:23 verbose #366 > > inl call forall t. (args : t) (module : bound pyany) : _ (bound pyany) _ =
00:00:23 verbose #367 > >     inl args = join args
00:00:23 verbose #368 > >     inl module = join module
00:00:23 verbose #369 > >     !\($'"pyo3::prelude::PyAnyMethods::call(&!module, ((*!args).0, *(*!args).1),
00:00:23 verbose #370 > > None)"')
00:00:23 verbose #371 > >     |> resultm.map_error' fun (x : pyerr) => x |> sm'.format'
00:00:23 verbose #372 > >
00:00:23 verbose #373 > > inl extract forall t. (result : bound pyany) : _ t _ =
00:00:23 verbose #374 > >     inl result = join result
00:00:23 verbose #375 > >     use_pyanymethods ()
00:00:23 verbose #376 > >     !\($'"!result.extract()"')
00:00:23 verbose #377 > >     |> resultm.map_error' fun (x : pyerr) => x |> sm'.format'
00:00:23 verbose #378 > >
00:00:23 verbose #379 > > inl eval py code (args : pair bool (pair f64 f64)) : _ (_ f64) sm'.std_string =
00:00:23 verbose #380 > >     inl code =
00:00:23 verbose #381 > >         code
00:00:23 verbose #382 > >         |> module_from_code py
00:00:23 verbose #383 > >         |> resultm.unwrap'
00:00:23 verbose #384 > >     inl fn =
00:00:23 verbose #385 > >         code
00:00:23 verbose #386 > >         |> getattr "fn"
00:00:23 verbose #387 > >         |> resultm.unwrap'
00:00:23 verbose #388 > >
00:00:23 verbose #389 > >     fn
00:00:23 verbose #390 > >     |> call args
00:00:23 verbose #391 > >     |> resultm.try'
00:00:23 verbose #392 > >     |> extract
00:00:23 verbose #393 > >     |> resultm.try'
00:00:23 verbose #394 > >     |> complex
00:00:23 verbose #395 > >     |> Ok
00:00:23 verbose #396 > >     |> resultm.box
00:00:23 verbose #397 > >
00:00:23 verbose #398 > > inl call1_ log py s code =
00:00:23 verbose #399 > >     inl code = join (a code : _ i32 _) |> sm'.concat_array_trailing "\n"
00:00:23 verbose #400 > >
00:00:23 verbose #401 > >     inl s = new_pair (re s) (im s)
00:00:23 verbose #402 > >     inl args = new_pair log s
00:00:23 verbose #403 > >
00:00:23 verbose #404 > >     eval py code args
00:00:23 verbose #405 > >
00:00:23 verbose #406 > > inl call1_ log name py s line =
00:00:23 verbose #407 > >     inl s = join s
00:00:23 verbose #408 > >     join
00:00:23 verbose #409 > >         ;[[
00:00:23 verbose #410 > >             $'$"import sys"'
00:00:23 verbose #411 > >             $'$"import traceback"'
00:00:23 verbose #412 > >             $'$"import re"'
00:00:23 verbose #413 > >             $'$"count = 0"'
00:00:23 verbose #414 > >             $'$"memory_address_pattern = re.compile(r\' at 0x[[0-9a-fA-F]]+\')"'
00:00:23 verbose #415 > >             $'$"def trace_calls(frame, event, arg):"'
00:00:23 verbose #416 > >             $'$"    global count"'
00:00:23 verbose #417 > >             $'$"    count += 1"'
00:00:23 verbose #418 > >             $'$"    if count < 200:"'
00:00:23 verbose #419 > >             $'$"        try:"'
00:00:23 verbose #420 > >             $'$"            args = {{ k: v for k, v in frame.f_locals.items() if
00:00:23 verbose #421 > > frame.f_code.co_name \!= \'make_mpc\' and k not in [[\'ctx\']] and not
00:00:23 verbose #422 > > callable(v) }}"'
00:00:23 verbose #423 > >             $'$"            args_str = \', \'.join([[
00:00:23 verbose #424 > > f\\\"{{k}}={{re.sub(memory_address_pattern, \' at 0x<?>\', repr(v))}}\\\" for k,
00:00:23 verbose #425 > > v in args.items() ]])"'
00:00:23 verbose #426 > >             $'$"            print(f\\\"{{event}}({!name}) / f_code.co_name:
00:00:23 verbose #427 > > {{frame.f_code.co_name}} / f_locals: {{args_str}} / f_lineno: {{frame.f_lineno}}
00:00:23 verbose #428 > > / f_code.co_filename:
00:00:23 verbose #429 > > {{frame.f_code.co_filename.split(\'site-packages\')[[-1]]}} / f_back.f_lineno:
00:00:23 verbose #430 > > {{ \'\' if frame.f_back is None else frame.f_back.f_lineno }}
00:00:23 verbose #431 > > f_back.f_code.co_filename: {{ \'\' if frame.f_back is None else
00:00:23 verbose #432 > > frame.f_back.f_code.co_filename.split(\'site-packages\')[[-1]] }} / arg:
00:00:23 verbose #433 > > {{re.sub(memory_address_pattern, \' at 0x<?>\', repr(arg))}}\\\", flush=True)"'
00:00:23 verbose #434 > >             $'$"        except ValueError as e:"'
00:00:23 verbose #435 > >             $'$"            print(f\'{!name} / e: {{e}}\', flush=True)"'
00:00:23 verbose #436 > >             $'$"        return trace_calls"'
00:00:23 verbose #437 > >             $'$"import mpmath"'
00:00:23 verbose #438 > >             $'$"def fn(log, s):"'
00:00:23 verbose #439 > >             $'$"    global count"'
00:00:23 verbose #440 > >             $'$"    if log:"'
00:00:23 verbose #441 > >             $'$"        print(f\'{!name} / s: {{s}} / count: {{count}}\',
00:00:23 verbose #442 > > flush=True)"'
00:00:23 verbose #443 > >             $'$"    s = complex(*s)"'
00:00:23 verbose #444 > >             $'$"    try:"'
00:00:23 verbose #445 > >             $'$"        if log: sys.settrace(trace_calls)"'
00:00:23 verbose #446 > >             line
00:00:23 verbose #447 > >             $'$"        if log:"'
00:00:23 verbose #448 > >             $'$"            sys.settrace(None)"'
00:00:23 verbose #449 > >             $'$"            print(f\'{!name} / result: {{s}} / count:
00:00:23 verbose #450 > > {{count}}\', flush=True)"'
00:00:23 verbose #451 > >             $'$"    except ValueError as e:"'
00:00:23 verbose #452 > >             $'$"        if s.real == 1:"'
00:00:23 verbose #453 > >             $'$"            s = complex(float(\'inf\'), 0)"'
00:00:23 verbose #454 > >             $'$"    return (s.real, s.imag)"'
00:00:23 verbose #455 > >         ]]
00:00:23 verbose #456 > >         |> call1_ log py s
00:00:23 verbose #457 > >
00:00:23 verbose #458 > > inl gamma_ log py s =
00:00:23 verbose #459 > >     call1_ log "gamma_" py s $'$"        s = mpmath.gamma(s)"'
00:00:23 verbose #460 > >
00:00:23 verbose #461 > > inl zeta_ log py s =
00:00:23 verbose #462 > >     call1_ log "zeta_" py s $'$"        s = mpmath.zeta(s)"'
00:00:23 verbose #463 > 00:00:23   debug #32 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a4ba8d64a1bb8476945e92e1cff78cc7b650466755546948149b641bdc7f51f8/main.spi
00:00:23 verbose #464 > >
00:00:23 verbose #465 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:23 verbose #466 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:23 verbose #467 > > │ ## run_test                                                                  │
00:00:23 verbose #468 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:23 verbose #469 > >
00:00:23 verbose #470 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:23 verbose #471 > > inl run_test log closure_fix (fn : (complex f64 -> complex f64) * (complex f64
00:00:23 verbose #472 > > -> complex f64) -> ()) =
00:00:23 verbose #473 > >     inl fn_ (py : python) : resultm.result' () pyerr =
00:00:23 verbose #474 > >         inl nan () =
00:00:23 verbose #475 > >             !\($'"f64::NAN"')
00:00:23 verbose #476 > >         inl gamma__ = fun (s : complex f64) =>
00:00:23 verbose #477 > >             inl result = gamma_ log py s
00:00:23 verbose #478 > >             if log then
00:00:23 verbose #479 > >                 inl s = join s
00:00:23 verbose #480 > >                 !\($'"println\!(\\\"gamma__ / s: {:?} / result: {:?}\\\", !s,
00:00:23 verbose #481 > > !result)"')
00:00:23 verbose #482 > >             result |> resultm.ok' |> optionm'.unbox |> optionm'.default_value
00:00:23 verbose #483 > > .^(nan (), nan ())
00:00:23 verbose #484 > >         inl zeta__ = fun (s : complex f64) =>
00:00:23 verbose #485 > >             inl result = zeta_ log py s
00:00:23 verbose #486 > >
00:00:23 verbose #487 > >             inl z = zeta true gamma__ s
00:00:23 verbose #488 > >
00:00:23 verbose #489 > >             if log then
00:00:23 verbose #490 > >                 inl s = join s
00:00:23 verbose #491 > >                 !\($'"println\!(\\\"zeta__ / s: {:?} / result: {:?} / z:
00:00:23 verbose #492 > > {:?}\\\", !s, !result, !z)"')
00:00:23 verbose #493 > >
00:00:23 verbose #494 > >     //             re result - re x |> abs
00:00:23 verbose #495 > >     //             |> _assert_lt 0.001
00:00:23 verbose #496 > >
00:00:23 verbose #497 > >     //             im result - im x |> abs
00:00:23 verbose #498 > >     //             |> _assert_lt 0.001
00:00:23 verbose #499 > >
00:00:23 verbose #500 > >             result |> resultm.ok' |> optionm'.unbox |> optionm'.default_value
00:00:23 verbose #501 > > .^(nan (), nan ())
00:00:23 verbose #502 > >         join fn (zeta__, gamma__)
00:00:23 verbose #503 > >
00:00:23 verbose #504 > >         Ok ()
00:00:23 verbose #505 > >         |> resultm.box
00:00:23 verbose #506 > >
00:00:23 verbose #507 > >     join
00:00:23 verbose #508 > >         !\($'"pyo3::prepare_freethreaded_python()"') : ()
00:00:23 verbose #509 > >
00:00:23 verbose #510 > >         !\($'"let __result = pyo3::Python::with_gil(|py| -> pyo3::PyResult<()> {
00:00:23 verbose #511 > > //"')
00:00:23 verbose #512 > >
00:00:23 verbose #513 > >         let x' = fn_ (!\($'"py"') : python)
00:00:23 verbose #514 > >         inl x' = join x'
00:00:23 verbose #515 > >
00:00:23 verbose #516 > >         inl closure_fix = 2u8, 1u8
00:00:23 verbose #517 > >         x' |> rust.fix_closure closure_fix
00:00:23 verbose #518 > >
00:00:23 verbose #519 > >         (!\($'"__result"') : _ () pyerr)
00:00:23 verbose #520 > >         |> resultm.unwrap'
00:00:24 verbose #521 > 00:00:23   debug #33 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c72f6b089ca7a36fb1dca1559ec71b57699cd601851184cedec5227960d4b61f/main.spi
00:00:24 verbose #522 > >
00:00:24 verbose #523 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:24 verbose #524 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:24 verbose #525 > > │ ## test_zeta_at_known_values_                                                │
00:00:24 verbose #526 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:24 verbose #527 > >
00:00:24 verbose #528 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:24 verbose #529 > > inl test_zeta_at_known_values_ log = run_test log (3u8, 2u8) fun zeta, gamma =>
00:00:24 verbose #530 > >     ;[[
00:00:24 verbose #531 > >         .^(2, 0), pi ** 2 / 6
00:00:24 verbose #532 > >         .^(-1, 0), -1 / 12
00:00:24 verbose #533 > >     ]]
00:00:24 verbose #534 > >     |> fun x => a x : _ i32 _
00:00:24 verbose #535 > >     |> am.iter fun s, e =>
00:00:24 verbose #536 > >         inl result = zeta s
00:00:24 verbose #537 > >
00:00:24 verbose #538 > >         result |> im |> _assert_eq 0
00:00:24 verbose #539 > >         re result - e |> abs |> _assert_lt 0.0001
00:00:24 verbose #540 > 00:00:23   debug #34 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3c7cc3d3e49710f53349496914753e4d60beb9b0bf5b740cbc72d97e237a98fa/main.spi
00:00:24 verbose #541 > >
00:00:24 verbose #542 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:24 verbose #543 > > //// test
00:00:24 verbose #544 > > ///! rust -d num-complex pyo3
00:00:24 verbose #545 > >
00:00:24 verbose #546 > > test_zeta_at_known_values_ true
00:00:24 verbose #547 > 00:00:24   debug #35 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/54f1254a38fc72f6d38362d18e7a41164be4e92344c8ca9237695417fc1e5130/main.spi
00:00:27 verbose #548 > >
00:00:27 verbose #549 > > ╭─[ 2.98s - return value ]─────────────────────────────────────────────────────╮
00:00:27 verbose #550 > > │ zeta_ / s: (2.0, 0.0) / count: 0                                             │
00:00:27 verbose #551 > > │ call(zeta_) / f_code.co_name: zeta / f_locals: s=(2+0j), a=1, derivative=0,  │
00:00:27 verbose #552 > > │ method=None, kwargs={} / f_lineno: 530 / f_code.co_filename:                 │
00:00:27 verbose #553 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:00:27 verbose #554 > > │ / arg: None                                                                  │
00:00:27 verbose #555 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2+0j), a=1, derivative=0,  │
00:00:27 verbose #556 > > │ method=None, kwargs={} / f_lineno: 532 / f_code.co_filename:                 │
00:00:27 verbose #557 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:00:27 verbose #558 > > │ / arg: None                                                                  │
00:00:27 verbose #559 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2+0j), a=1, derivative=0,  │
00:00:27 verbose #560 > > │ method=None, kwargs={}, d=0 / f_lineno: 533 / f_code.co_filename:            │
00:00:27 verbose #561 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:00:27 verbose #562 > > │ / arg: None                                                                  │
00:00:27 verbose #563 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2+0j), a=1, derivative=0,  │
00:00:27 verbose #564 > > │ method=None, kwargs={}, d=0 / f_lineno: 534 / f_code.co_filename:            │
00:00:27 verbose #565 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:00:27 verbose #566 > > │ / arg: None                                                                  │
00:00:27 verbose #567 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2+0j), a=1, derivative=0,  │
00:00:27 verbose #568 > > │ method=None, kwargs={}, d=0 / f_lineno: 535 / f_code.co_filename:            │
00:00:27 verbose #569 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:00:27 verbose #570 > > │ / arg: None                                                                  │
00:00:27 verbose #571 > > │ call(zeta_) / f_code.co_name: f / f_locals: x=(2+0j), kwargs={}, name='zeta' │
00:00:27 verbose #572 > > │ / f_lineno: 1113 / f_code.co_filename: \mpmath\ctx_mp_python.py /            │
00:00:27 verbose #573 > > │ f_back.f_lineno: 535 / f_back.f_code.co_filename: \mpmath\functions\zeta.py  │
00:00:27 verbose #574 > > │ / arg: None                                                                  │
00:00:27 verbose #575 > > │ line(zeta_) / f_code.co_name: f / f_locals: x=(2+0j), kwargs={}, name='zeta' │
00:00:27 verbose #576 > > │ / f_line...o_name: make_mpc / f_locals:  / f_lineno: 768 /                   │
00:00:27 verbose #577 > > │ f_code.co_filename: \mpmath\ctx_mp_python.py / f_back.f_lineno: 1131 /       │
00:00:27 verbose #578 > > │ f_back.f_code.co_filename: \mpmath\ctx_mp_python.py / arg: None              │
00:00:27 verbose #579 > > │ line(gamma_) / f_code.co_name: make_mpc / f_locals:  / f_lineno: 769 /       │
00:00:27 verbose #580 > > │ f_code.co_filename: \mpmath\ctx_mp_python.py / f_back.f_lineno: 1131 /       │
00:00:27 verbose #581 > > │ f_back.f_code.co_filename: \mpmath\ctx_mp_python.py / arg: None              │
00:00:27 verbose #582 > > │ line(gamma_) / f_code.co_name: make_mpc / f_locals:  / f_lineno: 770 /       │
00:00:27 verbose #583 > > │ f_code.co_filename: \mpmath\ctx_mp_python.py / f_back.f_lineno: 1131 /       │
00:00:27 verbose #584 > > │ f_back.f_code.co_filename: \mpmath\ctx_mp_python.py / arg: None              │
00:00:27 verbose #585 > > │ return(gamma_) / f_code.co_name: make_mpc / f_locals:  / f_lineno: 770 /     │
00:00:27 verbose #586 > > │ f_code.co_filename: \mpmath\ctx_mp_python.py / f_back.f_lineno: 1131 /       │
00:00:27 verbose #587 > > │ f_back.f_code.co_filename: \mpmath\ctx_mp_python.py / arg: mpc(real='1.0',   │
00:00:27 verbose #588 > > │ imag='0.0')                                                                  │
00:00:27 verbose #589 > > │ return(gamma_) / f_code.co_name: f / f_locals: x=mpc(real='2.0',             │
00:00:27 verbose #590 > > │ imag='0.0'), kwargs={}, name='gamma', prec=53, rounding='n' / f_lineno: 1131 │
00:00:27 verbose #591 > > │ / f_code.co_filename: \mpmath\ctx_mp_python.py / f_back.f_lineno: 25 /       │
00:00:27 verbose #592 > > │ f_back.f_code.co_filename:  / arg: mpc(real='1.0', imag='0.0')               │
00:00:27 verbose #593 > > │ gamma_ / result: (1.0 + 0.0j) / count: 161                                   │
00:00:27 verbose #594 > > │ gamma__ / s: Complex { re: 2.0, im: 0.0 } / result: Ok(Complex { re: 1.0,    │
00:00:27 verbose #595 > > │ im: 0.0 })                                                                   │
00:00:27 verbose #596 > > │ zeta / count: 1 / s: Complex { re: 2.0, im: -0.0 }                           │
00:00:27 verbose #597 > > │ zeta__ / s: Complex { re: -1.0, im: 0.0 } / result: Ok(Complex { re:         │
00:00:27 verbose #598 > > │ -0.08333333333333333, im: 0.0 }) / z: Complex { re: NaN, im: NaN }           │
00:00:27 verbose #599 > > │ assert_eq / actual: 0.0 / expected: 0.0                                      │
00:00:27 verbose #600 > > │ assert_lt / actual: 0.0 / expected: 0.0001                                   │
00:00:27 verbose #601 > > │                                                                              │
00:00:27 verbose #602 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:27 verbose #603 > >
00:00:27 verbose #604 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:27 verbose #605 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:27 verbose #606 > > │ ## test_zeta_at_2_minus2                                                     │
00:00:27 verbose #607 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:27 verbose #608 > >
00:00:27 verbose #609 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:27 verbose #610 > > inl test_zeta_at_2_minus2 log = run_test log (6u8, 5u8) fun zeta, gamma =>
00:00:27 verbose #611 > >     inl s = .^(2, -2)
00:00:27 verbose #612 > >     inl result = zeta s
00:00:27 verbose #613 > >
00:00:27 verbose #614 > >     (re result - 0.8673) |> abs |> _assert_lt 0.001
00:00:27 verbose #615 > >     (im result - 0.2750) |> abs |> _assert_lt 0.001
00:00:27 verbose #616 > 00:00:27   debug #36 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4a592c2618fe51c42ec60ac13ea2e372108a02fe89918e4d348a8613406f954d/main.spi
00:00:27 verbose #617 > >
00:00:27 verbose #618 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:27 verbose #619 > > //// test
00:00:27 verbose #620 > > ///! rust -d num-complex pyo3
00:00:27 verbose #621 > >
00:00:27 verbose #622 > > test_zeta_at_2_minus2 true
00:00:28 verbose #623 > 00:00:27   debug #37 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e79ba85274628ee8b2bcf54c076ae0ebadb84f06bf1d9cb43a11148288f20e4c/main.spi
00:00:30 verbose #624 > >
00:00:30 verbose #625 > > ╭─[ 2.83s - return value ]─────────────────────────────────────────────────────╮
00:00:30 verbose #626 > > │ zeta_ / s: (2.0, -2.0) / count: 0                                            │
00:00:30 verbose #627 > > │ call(zeta_) / f_code.co_name: zeta / f_locals: s=(2-2j), a=1, derivative=0,  │
00:00:30 verbose #628 > > │ method=None, kwargs={} / f_lineno: 530 / f_code.co_filename:                 │
00:00:30 verbose #629 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:00:30 verbose #630 > > │ / arg: None                                                                  │
00:00:30 verbose #631 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2-2j), a=1, derivative=0,  │
00:00:30 verbose #632 > > │ method=None, kwargs={} / f_lineno: 532 / f_code.co_filename:                 │
00:00:30 verbose #633 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:00:30 verbose #634 > > │ / arg: None                                                                  │
00:00:30 verbose #635 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2-2j), a=1, derivative=0,  │
00:00:30 verbose #636 > > │ method=None, kwargs={}, d=0 / f_lineno: 533 / f_code.co_filename:            │
00:00:30 verbose #637 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:00:30 verbose #638 > > │ / arg: None                                                                  │
00:00:30 verbose #639 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2-2j), a=1, derivative=0,  │
00:00:30 verbose #640 > > │ method=None, kwargs={}, d=0 / f_lineno: 534 / f_code.co_filename:            │
00:00:30 verbose #641 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:00:30 verbose #642 > > │ / arg: None                                                                  │
00:00:30 verbose #643 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2-2j), a=1, derivative=0,  │
00:00:30 verbose #644 > > │ method=None, kwargs={}, d=0 / f_lineno: 535 / f_code.co_filename:            │
00:00:30 verbose #645 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:00:30 verbose #646 > > │ / arg: None                                                                  │
00:00:30 verbose #647 > > │ call(zeta_) / f_code.co_name: f / f_locals: x=(2-2j), kwargs={}, name='zeta' │
00:00:30 verbose #648 > > │ / f_lineno: 1113 / f_code.co_filename: \mpmath\ctx_mp_python.py /            │
00:00:30 verbose #649 > > │ f_back.f_lineno: 535 / f_back.f_code.co_filename: \mpmath\functions\zeta.py  │
00:00:30 verbose #650 > > │ / arg: None                                                                  │
00:00:30 verbose #651 > > │ line(zeta_) / f_code.co_name: f / f_locals: x=(2-2j), kwargs={}, name='zeta' │
00:00:30 verbose #652 > > │ / f_lin..., 1, 2, 1), prec=14, rnd='d', _sub=0, ssign=0, sman=1, sexp=2,     │
00:00:30 verbose #653 > > │ sbc=1, tsign=0, tman=1, texp=2, tbc=1, offset=0, man=2 / f_lineno: 665 /     │
00:00:30 verbose #654 > > │ f_code.co_filename: \mpmath\libmp\libmpf.py / f_back.f_lineno: 1322 /        │
00:00:30 verbose #655 > > │ f_back.f_code.co_filename: \mpmath\libmp\libmpf.py / arg: None               │
00:00:30 verbose #656 > > │ line(zeta_) / f_code.co_name: mpf_add / f_locals: s=(0, 1, 2, 1), t=(0, 1,   │
00:00:30 verbose #657 > > │ 2, 1), prec=14, rnd='d', _sub=0, ssign=0, sman=1, sexp=2, sbc=1, tsign=0,    │
00:00:30 verbose #658 > > │ tman=1, texp=2, tbc=1, offset=0, man=2, bc=2 / f_lineno: 666 /               │
00:00:30 verbose #659 > > │ f_code.co_filename: \mpmath\libmp\libmpf.py / f_back.f_lineno: 1322 /        │
00:00:30 verbose #660 > > │ f_back.f_code.co_filename: \mpmath\libmp\libmpf.py / arg: None               │
00:00:30 verbose #661 > > │ call(zeta_) / f_code.co_name: normalize / f_locals: sign=0, man=2, exp=2,    │
00:00:30 verbose #662 > > │ bc=2, prec=14, rnd='d' / f_lineno: 185 / f_code.co_filename:                 │
00:00:30 verbose #663 > > │ \mpmath\libmp\libmpf.py / f_back.f_lineno: 666 / f_back.f_code.co_filename:  │
00:00:30 verbose #664 > > │ \mpmath\libmp\libmpf.py / arg: None                                          │
00:00:30 verbose #665 > > │ line(zeta_) / f_code.co_name: normalize / f_locals: sign=0, man=2, exp=2,    │
00:00:30 verbose #666 > > │ bc=2, prec=14, rnd='d' / f_lineno: 186 / f_code.co_filename:                 │
00:00:30 verbose #667 > > │ \mpmath\libmp\libmpf.py / f_back.f_lineno: 666 / f_back.f_code.co_filename:  │
00:00:30 verbose #668 > > │ \mpmath\libmp\libmpf.py / arg: None                                          │
00:00:30 verbose #669 > > │ zeta_ / result: (0.867351829635993 + 0.275127238807858j) / count: 1553       │
00:00:30 verbose #670 > > │ zeta / count: 0 / s: Complex { re: 2.0, im: -2.0 }                           │
00:00:30 verbose #671 > > │ zeta__ / s: Complex { re: 2.0, im: -2.0 } / result: Ok(Complex { re:         │
00:00:30 verbose #672 > > │ 0.8673518296359931, im: 0.27512723880785767 }) / z: Complex { re: NaN, im:   │
00:00:30 verbose #673 > > │ NaN }                                                                        │
00:00:30 verbose #674 > > │ assert_lt / actual: 5.182963599315027e-5 / expected: 0.001                   │
00:00:30 verbose #675 > > │ assert_lt / actual: 0.00012723880785764363 / expected: 0.001                 │
00:00:30 verbose #676 > > │                                                                              │
00:00:30 verbose #677 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:30 verbose #678 > >
00:00:30 verbose #679 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:30 verbose #680 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:30 verbose #681 > > │ ## test_trivial_zero_at_negative_even___                                     │
00:00:30 verbose #682 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:30 verbose #683 > >
00:00:30 verbose #684 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:30 verbose #685 > > inl test_trivial_zero_at_negative_even___ log = run_test log (2u8, 1u8) fun
00:00:30 verbose #686 > > zeta, gamma =>
00:00:30 verbose #687 > >     (join listm'.init_series -2f64 -40 -2)
00:00:30 verbose #688 > >     |> listm.iter fun n =>
00:00:30 verbose #689 > >         inl s = .^(n, 0)
00:00:30 verbose #690 > >         inl result = zeta s
00:00:30 verbose #691 > >
00:00:30 verbose #692 > >         result |> re |> _assert_eq 0
00:00:30 verbose #693 > >         result |> im |> _assert_eq 0
00:00:31 verbose #694 > 00:00:30   debug #38 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7b0200e63f63fc2169fd65147cd8a422aa8db314f178fec9cb328bff997a02e0/main.spi
00:00:31 verbose #695 > >
00:00:31 verbose #696 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:31 verbose #697 > > //// test
00:00:31 verbose #698 > > ///! rust -d num-complex pyo3
00:00:31 verbose #699 > >
00:00:31 verbose #700 > > test_trivial_zero_at_negative_even___ true
00:00:31 verbose #701 > 00:00:30   debug #39 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a80e2a80b089c555c28a1d3e7e12d0b94ac5f78ac50568cf6b1b967576ced2d6/main.spi
00:00:34 verbose #702 > >
00:00:34 verbose #703 > > ╭─[ 3.33s - return value ]─────────────────────────────────────────────────────╮
00:00:34 verbose #704 > > │ zeta_ / s: (-2.0, 0.0) / count: 0                                            │
00:00:34 verbose #705 > > │ call(zeta_) / f_code.co_name: zeta / f_locals: s=(-2+0j), a=1, derivative=0, │
00:00:34 verbose #706 > > │ method=None, kwargs={} / f_lineno: 530 / f_code.co_filename:                 │
00:00:34 verbose #707 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:00:34 verbose #708 > > │ / arg: None                                                                  │
00:00:34 verbose #709 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(-2+0j), a=1, derivative=0, │
00:00:34 verbose #710 > > │ method=None, kwargs={} / f_lineno: 532 / f_code.co_filename:                 │
00:00:34 verbose #711 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:00:34 verbose #712 > > │ / arg: None                                                                  │
00:00:34 verbose #713 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(-2+0j), a=1, derivative=0, │
00:00:34 verbose #714 > > │ method=None, kwargs={}, d=0 / f_lineno: 533 / f_code.co_filename:            │
00:00:34 verbose #715 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:00:34 verbose #716 > > │ / arg: None                                                                  │
00:00:34 verbose #717 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(-2+0j), a=1, derivative=0, │
00:00:34 verbose #718 > > │ method=None, kwargs={}, d=0 / f_lineno: 534 / f_code.co_filename:            │
00:00:34 verbose #719 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:00:34 verbose #720 > > │ / arg: None                                                                  │
00:00:34 verbose #721 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(-2+0j), a=1, derivative=0, │
00:00:34 verbose #722 > > │ method=None, kwargs={}, d=0 / f_lineno: 535 / f_code.co_filename:            │
00:00:34 verbose #723 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:00:34 verbose #724 > > │ / arg: None                                                                  │
00:00:34 verbose #725 > > │ call(zeta_) / f_code.co_name: f / f_locals: x=(-2+0j), kwargs={},            │
00:00:34 verbose #726 > > │ name='zeta' / f_lineno: 1113 / f_code.co_filename: \mpmath\ctx_mp_python.py  │
00:00:34 verbose #727 > > │ / f_back.f_lineno: 535 / f_back.f_code.co_filename:                          │
00:00:34 verbose #728 > > │ \mpmath\functions\zeta.py / arg: None                                        │
00:00:34 verbose #729 > > │ line(zeta_) / f_code.co_name: f / f_locals: x=(-2+0j), kwargs={},            │
00:00:34 verbose #730 > > │ name='zeta' ...o_filename: \mpmath\ctx_mp_python.py / f_back.f_lineno: 1131  │
00:00:34 verbose #731 > > │ / f_back.f_code.co_filename: \mpmath\ctx_mp_python.py / arg: None            │
00:00:34 verbose #732 > > │ line(gamma_) / f_code.co_name: make_mpc / f_locals:  / f_lineno: 769 /       │
00:00:34 verbose #733 > > │ f_code.co_filename: \mpmath\ctx_mp_python.py / f_back.f_lineno: 1131 /       │
00:00:34 verbose #734 > > │ f_back.f_code.co_filename: \mpmath\ctx_mp_python.py / arg: None              │
00:00:34 verbose #735 > > │ line(gamma_) / f_code.co_name: make_mpc / f_locals:  / f_lineno: 770 /       │
00:00:34 verbose #736 > > │ f_code.co_filename: \mpmath\ctx_mp_python.py / f_back.f_lineno: 1131 /       │
00:00:34 verbose #737 > > │ f_back.f_code.co_filename: \mpmath\ctx_mp_python.py / arg: None              │
00:00:34 verbose #738 > > │ return(gamma_) / f_code.co_name: make_mpc / f_locals:  / f_lineno: 770 /     │
00:00:34 verbose #739 > > │ f_code.co_filename: \mpmath\ctx_mp_python.py / f_back.f_lineno: 1131 /       │
00:00:34 verbose #740 > > │ f_back.f_code.co_filename: \mpmath\ctx_mp_python.py / arg:                   │
00:00:34 verbose #741 > > │ mpc(real='8.1591528324789768e+47', imag='0.0')                               │
00:00:34 verbose #742 > > │ return(gamma_) / f_code.co_name: f / f_locals: x=mpc(real='41.0',            │
00:00:34 verbose #743 > > │ imag='0.0'), kwargs={}, name='gamma', prec=53, rounding='n' / f_lineno: 1131 │
00:00:34 verbose #744 > > │ / f_code.co_filename: \mpmath\ctx_mp_python.py / f_back.f_lineno: 25 /       │
00:00:34 verbose #745 > > │ f_back.f_code.co_filename:  / arg: mpc(real='8.1591528324789768e+47',        │
00:00:34 verbose #746 > > │ imag='0.0')                                                                  │
00:00:34 verbose #747 > > │ gamma_ / result: (8.15915283247898e+47 + 0.0j) / count: 166                  │
00:00:34 verbose #748 > > │ gamma__ / s: Complex { re: 41.0, im: 0.0 } / result: Ok(Complex { re:        │
00:00:34 verbose #749 > > │ 8.159152832478977e47, im: 0.0 })                                             │
00:00:34 verbose #750 > > │ zeta / count: 1 / s: Complex { re: 41.0, im: -0.0 }                          │
00:00:34 verbose #751 > > │ zeta__ / s: Complex { re: -40.0, im: 0.0 } / result: Ok(Complex { re: 0.0,   │
00:00:34 verbose #752 > > │ im: 0.0 }) / z: Complex { re: NaN, im: NaN }                                 │
00:00:34 verbose #753 > > │ assert_eq / actual: 0.0 / expected: 0.0                                      │
00:00:34 verbose #754 > > │ assert_eq / actual: 0.0 / expected: 0.0                                      │
00:00:34 verbose #755 > > │                                                                              │
00:00:34 verbose #756 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:34 verbose #757 > >
00:00:34 verbose #758 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:34 verbose #759 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:34 verbose #760 > > │ ## test_non_trivial_zero___                                                  │
00:00:34 verbose #761 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:34 verbose #762 > >
00:00:34 verbose #763 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:34 verbose #764 > > inl test_non_trivial_zero___ log = run_test log (3u8, 2u8) fun zeta, gamma =>
00:00:34 verbose #765 > >     ;[[
00:00:34 verbose #766 > >         .^(0.5, 14.134725)
00:00:34 verbose #767 > >         .^(0.5, 21.022040)
00:00:34 verbose #768 > >         .^(0.5, 25.010857)
00:00:34 verbose #769 > >         .^(0.5, 30.424876)
00:00:34 verbose #770 > >         .^(0.5, 32.935062)
00:00:34 verbose #771 > >         .^(0.5, 37.586178)
00:00:34 verbose #772 > >     ]]
00:00:34 verbose #773 > >     |> fun x => a x : _ i32 _
00:00:34 verbose #774 > >     |> am.iter fun x =>
00:00:34 verbose #775 > >             inl result = zeta x
00:00:34 verbose #776 > >             result |> re |> abs |> _assert_lt 0.0001
00:00:34 verbose #777 > >             result |> im |> abs |> _assert_lt 0.0001
00:00:34 verbose #778 > 00:00:33   debug #40 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c74bf465d5c9c0edfe98c5582cf2bca62c12062f19a4a2f2710f43bb503fdbe6/main.spi
00:00:34 verbose #779 > >
00:00:34 verbose #780 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:34 verbose #781 > > //// test
00:00:34 verbose #782 > > ///! rust -d num-complex pyo3
00:00:34 verbose #783 > >
00:00:34 verbose #784 > > test_non_trivial_zero___ true
00:00:35 verbose #785 > 00:00:34   debug #41 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d0e5b71f8d97e9c958e039242e229d9f35104e5ff6337b84b9b99a4a8b25844f/main.spi
00:00:37 verbose #786 > >
00:00:37 verbose #787 > > ╭─[ 2.99s - return value ]─────────────────────────────────────────────────────╮
00:00:37 verbose #788 > > │ zeta_ / s: (0.5, 14.134725) / count: 0                                       │
00:00:37 verbose #789 > > │ call(zeta_) / f_code.co_name: zeta / f_locals: s=(0.5+14.134725j), a=1,      │
00:00:37 verbose #790 > > │ derivative=0, method=None, kwargs={} / f_lineno: 530 / f_code.co_filename:   │
00:00:37 verbose #791 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:00:37 verbose #792 > > │ / arg: None                                                                  │
00:00:37 verbose #793 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(0.5+14.134725j), a=1,      │
00:00:37 verbose #794 > > │ derivative=0, method=None, kwargs={} / f_lineno: 532 / f_code.co_filename:   │
00:00:37 verbose #795 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:00:37 verbose #796 > > │ / arg: None                                                                  │
00:00:37 verbose #797 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(0.5+14.134725j), a=1,      │
00:00:37 verbose #798 > > │ derivative=0, method=None, kwargs={}, d=0 / f_lineno: 533 /                  │
00:00:37 verbose #799 > > │ f_code.co_filename: \mpmath\functions\zeta.py / f_back.f_lineno: 25 /        │
00:00:37 verbose #800 > > │ f_back.f_code.co_filename:  / arg: None                                      │
00:00:37 verbose #801 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(0.5+14.134725j), a=1,      │
00:00:37 verbose #802 > > │ derivative=0, method=None, kwargs={}, d=0 / f_lineno: 534 /                  │
00:00:37 verbose #803 > > │ f_code.co_filename: \mpmath\functions\zeta.py / f_back.f_lineno: 25 /        │
00:00:37 verbose #804 > > │ f_back.f_code.co_filename:  / arg: None                                      │
00:00:37 verbose #805 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(0.5+14.134725j), a=1,      │
00:00:37 verbose #806 > > │ derivative=0, method=None, kwargs={}, d=0 / f_lineno: 535 /                  │
00:00:37 verbose #807 > > │ f_code.co_filename: \mpmath\functions\zeta.py / f_back.f_lineno: 25 /        │
00:00:37 verbose #808 > > │ f_back.f_code.co_filename:  / arg: None                                      │
00:00:37 verbose #809 > > │ call(zeta_) / f_code.co_name: f / f_locals: x=(0.5+14.134725j), kwargs={},   │
00:00:37 verbose #810 > > │ name='zeta' / f_lineno: 1113 / f_code.co_filename: \mpmath\ctx_mp_python.py  │
00:00:37 verbose #811 > > │ / f_back.f_lineno: 535 / f_back.f_code.co_filename:                          │
00:00:37 verbose #812 > > │ \mpmath\functions\zeta.py / arg: None                                        │
00:00:37 verbose #813 > > │ line(zeta_) / f_cod...ta.py / arg: None                                      │
00:00:37 verbose #814 > > │ line(gamma_) / f_code.co_name: complex_stirling_series / f_locals:           │
00:00:37 verbose #815 > > │ x=1208925819614629174706176, y=-90877802089662679288381440, prec=81,         │
00:00:37 verbose #816 > > │ _m=3416353708500640443578529333, tre=-1816151534455075068,                   │
00:00:37 verbose #817 > > │ tim=-45486653225747820096, ure=-1710577520534459139249,                      │
00:00:37 verbose #818 > > │ uim=45518868236127668552, sre=1013002518538853602038572,                     │
00:00:37 verbose #819 > > │ sim=90883161825546323029600502 / f_lineno: 1629 / f_code.co_filename:        │
00:00:37 verbose #820 > > │ \mpmath\libmp\gammazeta.py / f_back.f_lineno: 2041 /                         │
00:00:37 verbose #821 > > │ f_back.f_code.co_filename: \mpmath\libmp\gammazeta.py / arg: None            │
00:00:37 verbose #822 > > │ line(gamma_) / f_code.co_name: complex_stirling_series / f_locals:           │
00:00:37 verbose #823 > > │ x=1208925819614629174706176, y=-90877802089662679288381440, prec=81,         │
00:00:37 verbose #824 > > │ _m=3416353708500640443578529333, tre=-1816151534455075068,                   │
00:00:37 verbose #825 > > │ tim=-45486653225747820096, ure=-1710577520534459139249,                      │
00:00:37 verbose #826 > > │ uim=45518868236127668552, sre=1013002523583718975524892,                     │
00:00:37 verbose #827 > > │ sim=90883161951898137545566669 / f_lineno: 1630 / f_code.co_filename:        │
00:00:37 verbose #828 > > │ \mpmath\libmp\gammazeta.py / f_back.f_lineno: 2041 /                         │
00:00:37 verbose #829 > > │ f_back.f_code.co_filename: \mpmath\libmp\gammazeta.py / arg: None            │
00:00:37 verbose #830 > > │ gamma_ / result: (-1.32798420042152e-26 + 5.5751975252688e-26j) / count: 301 │
00:00:37 verbose #831 > > │ gamma__ / s: Complex { re: 0.5, im: -37.586178 } / result: Ok(Complex { re:  │
00:00:37 verbose #832 > > │ -1.3279842004215153e-26, im: 5.575197525268802e-26 })                        │
00:00:37 verbose #833 > > │ zeta__ / s: Complex { re: 0.5, im: 37.586178 } / result: Ok(Complex { re:    │
00:00:37 verbose #834 > > │ -8.910186507947958e-8, im: -2.943780446402868e-7 }) / z: Complex { re: -0.0, │
00:00:37 verbose #835 > > │ im: 0.0 }                                                                    │
00:00:37 verbose #836 > > │ assert_lt / actual: 8.910186507947958e-8 / expected: 0.0001                  │
00:00:37 verbose #837 > > │ assert_lt / actual: 2.943780446402868e-7 / expected: 0.0001                  │
00:00:37 verbose #838 > > │                                                                              │
00:00:37 verbose #839 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:37 verbose #840 > >
00:00:37 verbose #841 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:37 verbose #842 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:37 verbose #843 > > │ ## test_real_part_greater_than_one___                                        │
00:00:37 verbose #844 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:37 verbose #845 > >
00:00:37 verbose #846 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:37 verbose #847 > > inl test_real_part_greater_than_one___ log = run_test log (3u8, 2u8) fun zeta,
00:00:37 verbose #848 > > gamma =>
00:00:37 verbose #849 > >     inl points = ;[[2; 3; 4; 5; 10; 20; 50]]
00:00:37 verbose #850 > >     (a points : _ i32 _)
00:00:37 verbose #851 > >     |> am.iter fun point =>
00:00:37 verbose #852 > >         inl s = .^(point, 0)
00:00:37 verbose #853 > >         inl result = zeta s
00:00:37 verbose #854 > >         result |> re |> _assert_gt 0
00:00:37 verbose #855 > >         result |> im |> _assert_eq 0
00:00:38 verbose #856 > 00:00:37   debug #42 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4f80b11d888b484bbeb44fd40c950335e0bb56360a20f0d9a143afb5cb2c77c0/main.spi
00:00:38 verbose #857 > >
00:00:38 verbose #858 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:38 verbose #859 > > //// test
00:00:38 verbose #860 > > ///! rust -d num-complex pyo3
00:00:38 verbose #861 > >
00:00:38 verbose #862 > > test_real_part_greater_than_one___ true
00:00:38 verbose #863 > 00:00:37   debug #43 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/348695e3743e2587a4d9b3f4c2b26655cb44a4650a7fe4f0bb51fc4091ec6431/main.spi
00:00:40 verbose #864 > >
00:00:40 verbose #865 > > ╭─[ 2.75s - return value ]─────────────────────────────────────────────────────╮
00:00:40 verbose #866 > > │ zeta_ / s: (2.0, 0.0) / count: 0                                             │
00:00:40 verbose #867 > > │ call(zeta_) / f_code.co_name: zeta / f_locals: s=(2+0j), a=1, derivative=0,  │
00:00:40 verbose #868 > > │ method=None, kwargs={} / f_lineno: 530 / f_code.co_filename:                 │
00:00:40 verbose #869 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:00:40 verbose #870 > > │ / arg: None                                                                  │
00:00:40 verbose #871 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2+0j), a=1, derivative=0,  │
00:00:40 verbose #872 > > │ method=None, kwargs={} / f_lineno: 532 / f_code.co_filename:                 │
00:00:40 verbose #873 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:00:40 verbose #874 > > │ / arg: None                                                                  │
00:00:40 verbose #875 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2+0j), a=1, derivative=0,  │
00:00:40 verbose #876 > > │ method=None, kwargs={}, d=0 / f_lineno: 533 / f_code.co_filename:            │
00:00:40 verbose #877 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:00:40 verbose #878 > > │ / arg: None                                                                  │
00:00:40 verbose #879 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2+0j), a=1, derivative=0,  │
00:00:40 verbose #880 > > │ method=None, kwargs={}, d=0 / f_lineno: 534 / f_code.co_filename:            │
00:00:40 verbose #881 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:00:40 verbose #882 > > │ / arg: None                                                                  │
00:00:40 verbose #883 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2+0j), a=1, derivative=0,  │
00:00:40 verbose #884 > > │ method=None, kwargs={}, d=0 / f_lineno: 535 / f_code.co_filename:            │
00:00:40 verbose #885 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:00:40 verbose #886 > > │ / arg: None                                                                  │
00:00:40 verbose #887 > > │ call(zeta_) / f_code.co_name: f / f_locals: x=(2+0j), kwargs={}, name='zeta' │
00:00:40 verbose #888 > > │ / f_lineno: 1113 / f_code.co_filename: \mpmath\ctx_mp_python.py /            │
00:00:40 verbose #889 > > │ f_back.f_lineno: 535 / f_back.f_code.co_filename: \mpmath\functions\zeta.py  │
00:00:40 verbose #890 > > │ / arg: None                                                                  │
00:00:40 verbose #891 > > │ line(zeta_) / f_code.co_name: f / f_locals: x=(2+0j), kwargs={}, name='zeta' │
00:00:40 verbose #892 > > │ / f_line...9 / f_code.co_filename: \mpmath\ctx_mp_python.py /                │
00:00:40 verbose #893 > > │ f_back.f_lineno: 1131 / f_back.f_code.co_filename: \mpmath\ctx_mp_python.py  │
00:00:40 verbose #894 > > │ / arg: None                                                                  │
00:00:40 verbose #895 > > │ line(zeta_) / f_code.co_name: make_mpc / f_locals:  / f_lineno: 770 /        │
00:00:40 verbose #896 > > │ f_code.co_filename: \mpmath\ctx_mp_python.py / f_back.f_lineno: 1131 /       │
00:00:40 verbose #897 > > │ f_back.f_code.co_filename: \mpmath\ctx_mp_python.py / arg: None              │
00:00:40 verbose #898 > > │ return(zeta_) / f_code.co_name: make_mpc / f_locals:  / f_lineno: 770 /      │
00:00:40 verbose #899 > > │ f_code.co_filename: \mpmath\ctx_mp_python.py / f_back.f_lineno: 1131 /       │
00:00:40 verbose #900 > > │ f_back.f_code.co_filename: \mpmath\ctx_mp_python.py / arg:                   │
00:00:40 verbose #901 > > │ mpc(real='1.0000000000000009', imag='0.0')                                   │
00:00:40 verbose #902 > > │ return(zeta_) / f_code.co_name: f / f_locals: x=mpc(real='50.0',             │
00:00:40 verbose #903 > > │ imag='0.0'), kwargs={}, name='zeta', prec=53, rounding='n' / f_lineno: 1131  │
00:00:40 verbose #904 > > │ / f_code.co_filename: \mpmath\ctx_mp_python.py / f_back.f_lineno: 535 /      │
00:00:40 verbose #905 > > │ f_back.f_code.co_filename: \mpmath\functions\zeta.py / arg:                  │
00:00:40 verbose #906 > > │ mpc(real='1.0000000000000009', imag='0.0')                                   │
00:00:40 verbose #907 > > │ return(zeta_) / f_code.co_name: zeta / f_locals: s=(50+0j), a=1,             │
00:00:40 verbose #908 > > │ derivative=0, method=None, kwargs={}, d=0 / f_lineno: 535 /                  │
00:00:40 verbose #909 > > │ f_code.co_filename: \mpmath\functions\zeta.py / f_back.f_lineno: 25 /        │
00:00:40 verbose #910 > > │ f_back.f_code.co_filename:  / arg: mpc(real='1.0000000000000009',            │
00:00:40 verbose #911 > > │ imag='0.0')                                                                  │
00:00:40 verbose #912 > > │ zeta_ / result: (1.0 + 0.0j) / count: 193                                    │
00:00:40 verbose #913 > > │ zeta / count: 0 / s: Complex { re: 50.0, im: 0.0 }                           │
00:00:40 verbose #914 > > │ zeta__ / s: Complex { re: 50.0, im: 0.0 } / result: Ok(Complex { re:         │
00:00:40 verbose #915 > > │ 1.0000000000000009, im: 0.0 }) / z: Complex { re: NaN, im: NaN }             │
00:00:40 verbose #916 > > │ assert_gt / actual: 1.0000000000000009 / expected: 0.0                       │
00:00:40 verbose #917 > > │ assert_eq / actual: 0.0 / expected: 0.0                                      │
00:00:40 verbose #918 > > │                                                                              │
00:00:40 verbose #919 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:40 verbose #920 > >
00:00:40 verbose #921 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:40 verbose #922 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:40 verbose #923 > > │ ## test_zeta_at_1___                                                         │
00:00:40 verbose #924 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:40 verbose #925 > >
00:00:40 verbose #926 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:40 verbose #927 > > inl test_zeta_at_1___ log = run_test log (6u8, 5u8) fun zeta, gamma =>
00:00:40 verbose #928 > >     inl s = .^(1, 0)
00:00:40 verbose #929 > >     inl result = zeta s
00:00:40 verbose #930 > >     result |> re |> _assert_eq limit.max
00:00:40 verbose #931 > >     result |> im |> _assert_eq 0
00:00:41 verbose #932 > 00:00:40   debug #44 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e4ea1acee52912209fe5f87f27161b2c7afc063569deba8b69db2846a1c3cc5c/main.spi
00:00:41 verbose #933 > >
00:00:41 verbose #934 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:41 verbose #935 > > //// test
00:00:41 verbose #936 > > ///! rust -d num-complex pyo3
00:00:41 verbose #937 > >
00:00:41 verbose #938 > > test_zeta_at_1___ true
00:00:41 verbose #939 > 00:00:40   debug #45 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f96dd2eb77d37977ad9fa8f97528ed7b18c696e9119b7932dbc362b21ffc9c97/main.spi
00:00:44 verbose #940 > >
00:00:44 verbose #941 > > ╭─[ 2.74s - return value ]─────────────────────────────────────────────────────╮
00:00:44 verbose #942 > > │ zeta_ / s: (1.0, 0.0) / count: 0                                             │
00:00:44 verbose #943 > > │ call(zeta_) / f_code.co_name: zeta / f_locals: s=(1+0j), a=1, derivative=0,  │
00:00:44 verbose #944 > > │ method=None, kwargs={} / f_lineno: 530 / f_code.co_filename:                 │
00:00:44 verbose #945 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:00:44 verbose #946 > > │ / arg: None                                                                  │
00:00:44 verbose #947 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(1+0j), a=1, derivative=0,  │
00:00:44 verbose #948 > > │ method=None, kwargs={} / f_lineno: 532 / f_code.co_filename:                 │
00:00:44 verbose #949 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:00:44 verbose #950 > > │ / arg: None                                                                  │
00:00:44 verbose #951 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(1+0j), a=1, derivative=0,  │
00:00:44 verbose #952 > > │ method=None, kwargs={}, d=0 / f_lineno: 533 / f_code.co_filename:            │
00:00:44 verbose #953 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:00:44 verbose #954 > > │ / arg: None                                                                  │
00:00:44 verbose #955 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(1+0j), a=1, derivative=0,  │
00:00:44 verbose #956 > > │ method=None, kwargs={}, d=0 / f_lineno: 534 / f_code.co_filename:            │
00:00:44 verbose #957 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:00:44 verbose #958 > > │ / arg: None                                                                  │
00:00:44 verbose #959 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(1+0j), a=1, derivative=0,  │
00:00:44 verbose #960 > > │ method=None, kwargs={}, d=0 / f_lineno: 535 / f_code.co_filename:            │
00:00:44 verbose #961 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:00:44 verbose #962 > > │ / arg: None                                                                  │
00:00:44 verbose #963 > > │ call(zeta_) / f_code.co_name: f / f_locals: x=(1+0j), kwargs={}, name='zeta' │
00:00:44 verbose #964 > > │ / f_lineno: 1113 / f_code.co_filename: \mpmath\ctx_mp_python.py /            │
00:00:44 verbose #965 > > │ f_back.f_lineno: 535 / f_back.f_code.co_filename: \mpmath\functions\zeta.py  │
00:00:44 verbose #966 > > │ / arg: None                                                                  │
00:00:44 verbose #967 > > │ line(zeta_) / f_code.co_name: f / f_locals: x=(1+0j), kwargs={}, name='zeta' │
00:00:44 verbose #968 > > │ / f_line...raceback object at 0x<?>>)                                        │
00:00:44 verbose #969 > > │ return(gamma_) / f_code.co_name: f / f_locals: x=mpc(real='0.0',             │
00:00:44 verbose #970 > > │ imag='0.0'), kwargs={}, name='gamma', prec=53, rounding='n' / f_lineno: 1131 │
00:00:44 verbose #971 > > │ / f_code.co_filename: \mpmath\ctx_mp_python.py / f_back.f_lineno: 25 /       │
00:00:44 verbose #972 > > │ f_back.f_code.co_filename:  / arg: None                                      │
00:00:44 verbose #973 > > │ exception(gamma_) / f_code.co_name: fn / f_locals: log=True, s=0j /          │
00:00:44 verbose #974 > > │ f_lineno: 25 / f_code.co_filename:  / f_back.f_lineno:  /                    │
00:00:44 verbose #975 > > │ f_back.f_code.co_filename:  / arg: (<class 'ValueError'>, ValueError('gamma  │
00:00:44 verbose #976 > > │ function pole'), <traceback object at 0x<?>>)                                │
00:00:44 verbose #977 > > │ line(gamma_) / f_code.co_name: fn / f_locals: log=True, s=0j / f_lineno: 29  │
00:00:44 verbose #978 > > │ / f_code.co_filename:  / f_back.f_lineno:  / f_back.f_code.co_filename:  /   │
00:00:44 verbose #979 > > │ arg: None                                                                    │
00:00:44 verbose #980 > > │ line(gamma_) / f_code.co_name: fn / f_locals: log=True, s=0j,                │
00:00:44 verbose #981 > > │ e=ValueError('gamma function pole') / f_lineno: 30 / f_code.co_filename:  /  │
00:00:44 verbose #982 > > │ f_back.f_lineno:  / f_back.f_code.co_filename:  / arg: None                  │
00:00:44 verbose #983 > > │ line(gamma_) / f_code.co_name: fn / f_locals: log=True, s=0j / f_lineno: 32  │
00:00:44 verbose #984 > > │ / f_code.co_filename:  / f_back.f_lineno:  / f_back.f_code.co_filename:  /   │
00:00:44 verbose #985 > > │ arg: None                                                                    │
00:00:44 verbose #986 > > │ return(gamma_) / f_code.co_name: fn / f_locals: log=True, s=0j / f_lineno:   │
00:00:44 verbose #987 > > │ 32 / f_code.co_filename:  / f_back.f_lineno:  / f_back.f_code.co_filename:   │
00:00:44 verbose #988 > > │ / arg: (0.0, 0.0)                                                            │
00:00:44 verbose #989 > > │ gamma__ / s: Complex { re: 0.0, im: 0.0 } / result: Ok(Complex { re: 0.0,    │
00:00:44 verbose #990 > > │ im: 0.0 })                                                                   │
00:00:44 verbose #991 > > │ zeta__ / s: Complex { re: 1.0, im: 0.0 } / result: Ok(Complex { re: inf, im: │
00:00:44 verbose #992 > > │ 0.0 }) / z: Complex { re: 0.0, im: 0.0 }                                     │
00:00:44 verbose #993 > > │ assert_eq / actual: inf / expected: inf                                      │
00:00:44 verbose #994 > > │ assert_eq / actual: 0.0 / expected: 0.0                                      │
00:00:44 verbose #995 > > │                                                                              │
00:00:44 verbose #996 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:44 verbose #997 > >
00:00:44 verbose #998 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:44 verbose #999 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:44 verbose #1000 > > │ ## test_symmetry_across_real_axis___                                         │
00:00:44 verbose #1001 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:44 verbose #1002 > >
00:00:44 verbose #1003 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:44 verbose #1004 > > inl test_symmetry_across_real_axis___ log = run_test log (8u8, 7u8) fun zeta,
00:00:44 verbose #1005 > > gamma =>
00:00:44 verbose #1006 > >     inl s = .^(2, 10)
00:00:44 verbose #1007 > >     inl result_positive_im = zeta s
00:00:44 verbose #1008 > >     inl result_negative_im = zeta .^(re s, -(im s))
00:00:44 verbose #1009 > >     inl conj = result_negative_im |> conj
00:00:44 verbose #1010 > >     result_positive_im |> re |> _assert_eq (conj |> re)
00:00:44 verbose #1011 > >     result_positive_im |> im |> _assert_eq (conj |> im)
00:00:44 verbose #1012 > 00:00:43   debug #46 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b96f3d4020e37f60407f254453f8377af447d51140b7bf333606e4ac916916ae/main.spi
00:00:44 verbose #1013 > >
00:00:44 verbose #1014 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:44 verbose #1015 > > //// test
00:00:44 verbose #1016 > > ///! rust -d num-complex pyo3
00:00:44 verbose #1017 > >
00:00:44 verbose #1018 > > test_symmetry_across_real_axis___ true
00:00:44 verbose #1019 > 00:00:43   debug #47 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/62f06f0b2a3228d24269f8c9fabf68165181ee727642c2b0629c1f324e9815a6/main.spi
00:00:47 verbose #1020 > >
00:00:47 verbose #1021 > > ╭─[ 2.70s - return value ]─────────────────────────────────────────────────────╮
00:00:47 verbose #1022 > > │ zeta_ / s: (2.0, 10.0) / count: 0                                            │
00:00:47 verbose #1023 > > │ call(zeta_) / f_code.co_name: zeta / f_locals: s=(2+10j), a=1, derivative=0, │
00:00:47 verbose #1024 > > │ method=None, kwargs={} / f_lineno: 530 / f_code.co_filename:                 │
00:00:47 verbose #1025 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:00:47 verbose #1026 > > │ / arg: None                                                                  │
00:00:47 verbose #1027 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2+10j), a=1, derivative=0, │
00:00:47 verbose #1028 > > │ method=None, kwargs={} / f_lineno: 532 / f_code.co_filename:                 │
00:00:47 verbose #1029 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:00:47 verbose #1030 > > │ / arg: None                                                                  │
00:00:47 verbose #1031 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2+10j), a=1, derivative=0, │
00:00:47 verbose #1032 > > │ method=None, kwargs={}, d=0 / f_lineno: 533 / f_code.co_filename:            │
00:00:47 verbose #1033 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:00:47 verbose #1034 > > │ / arg: None                                                                  │
00:00:47 verbose #1035 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2+10j), a=1, derivative=0, │
00:00:47 verbose #1036 > > │ method=None, kwargs={}, d=0 / f_lineno: 534 / f_code.co_filename:            │
00:00:47 verbose #1037 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:00:47 verbose #1038 > > │ / arg: None                                                                  │
00:00:47 verbose #1039 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2+10j), a=1, derivative=0, │
00:00:47 verbose #1040 > > │ method=None, kwargs={}, d=0 / f_lineno: 535 / f_code.co_filename:            │
00:00:47 verbose #1041 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:00:47 verbose #1042 > > │ / arg: None                                                                  │
00:00:47 verbose #1043 > > │ call(zeta_) / f_code.co_name: f / f_locals: x=(2+10j), kwargs={},            │
00:00:47 verbose #1044 > > │ name='zeta' / f_lineno: 1113 / f_code.co_filename: \mpmath\ctx_mp_python.py  │
00:00:47 verbose #1045 > > │ / f_back.f_lineno: 535 / f_back.f_code.co_filename:                          │
00:00:47 verbose #1046 > > │ \mpmath\functions\zeta.py / arg: None                                        │
00:00:47 verbose #1047 > > │ line(zeta_) / f_code.co_name: f / f_locals: x=(2+10j), kwargs={},            │
00:00:47 verbose #1048 > > │ name='zeta' ...) / f_code.co_name: mpf_add / f_locals: s=(0, 1, 2, 1), t=(0, │
00:00:47 verbose #1049 > > │ 25, 2, 5), prec=14, rnd='d', _sub=0, ssign=0, sman=1, sexp=2, sbc=1,         │
00:00:47 verbose #1050 > > │ tsign=0, tman=25, texp=2, tbc=5, offset=0, man=26, bc=5 / f_lineno: 666 /    │
00:00:47 verbose #1051 > > │ f_code.co_filename: \mpmath\libmp\libmpf.py / f_back.f_lineno: 1322 /        │
00:00:47 verbose #1052 > > │ f_back.f_code.co_filename: \mpmath\libmp\libmpf.py / arg: None               │
00:00:47 verbose #1053 > > │ call(zeta_) / f_code.co_name: normalize / f_locals: sign=0, man=26, exp=2,   │
00:00:47 verbose #1054 > > │ bc=5, prec=14, rnd='d' / f_lineno: 185 / f_code.co_filename:                 │
00:00:47 verbose #1055 > > │ \mpmath\libmp\libmpf.py / f_back.f_lineno: 666 / f_back.f_code.co_filename:  │
00:00:47 verbose #1056 > > │ \mpmath\libmp\libmpf.py / arg: None                                          │
00:00:47 verbose #1057 > > │ line(zeta_) / f_code.co_name: normalize / f_locals: sign=0, man=26, exp=2,   │
00:00:47 verbose #1058 > > │ bc=5, prec=14, rnd='d' / f_lineno: 186 / f_code.co_filename:                 │
00:00:47 verbose #1059 > > │ \mpmath\libmp\libmpf.py / f_back.f_lineno: 666 / f_back.f_code.co_filename:  │
00:00:47 verbose #1060 > > │ \mpmath\libmp\libmpf.py / arg: None                                          │
00:00:47 verbose #1061 > > │ line(zeta_) / f_code.co_name: normalize / f_locals: sign=0, man=26, exp=2,   │
00:00:47 verbose #1062 > > │ bc=5, prec=14, rnd='d' / f_lineno: 187 / f_code.co_filename:                 │
00:00:47 verbose #1063 > > │ \mpmath\libmp\libmpf.py / f_back.f_lineno: 666 / f_back.f_code.co_filename:  │
00:00:47 verbose #1064 > > │ \mpmath\libmp\libmpf.py / arg: None                                          │
00:00:47 verbose #1065 > > │ zeta_ / result: (1.19798250067418 + 0.0791704917205257j) / count: 1031       │
00:00:47 verbose #1066 > > │ zeta / count: 0 / s: Complex { re: 2.0, im: -10.0 }                          │
00:00:47 verbose #1067 > > │ zeta__ / s: Complex { re: 2.0, im: -10.0 } / result: Ok(Complex { re:        │
00:00:47 verbose #1068 > > │ 1.1979825006741847, im: 0.07917049172052575 }) / z: Complex { re: NaN, im:   │
00:00:47 verbose #1069 > > │ NaN }                                                                        │
00:00:47 verbose #1070 > > │ assert_eq / actual: 1.1979825006741847 / expected: 1.1979825006741847        │
00:00:47 verbose #1071 > > │ assert_eq / actual: -0.07917049172052575 / expected: -0.07917049172052575    │
00:00:47 verbose #1072 > > │                                                                              │
00:00:47 verbose #1073 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:47 verbose #1074 > >
00:00:47 verbose #1075 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:47 verbose #1076 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:47 verbose #1077 > > │ ## test_behavior_near_origin___                                              │
00:00:47 verbose #1078 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:47 verbose #1079 > >
00:00:47 verbose #1080 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:47 verbose #1081 > > inl test_behavior_near_origin___ log = run_test log (6u8, 5u8) fun zeta, gamma
00:00:47 verbose #1082 > > =>
00:00:47 verbose #1083 > >     inl s = .^(0.01, 0.01)
00:00:47 verbose #1084 > >     inl result = zeta s
00:00:47 verbose #1085 > >     result |> re |> _assert_lt limit.max
00:00:47 verbose #1086 > >     result |> im |> _assert_lt limit.max
00:00:47 verbose #1087 > 00:00:46   debug #48 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d0e8e85cfe3e24b374d0fd025086d3d47643b191bc9264223170a6e62ecadac4/main.spi
00:00:47 verbose #1088 > >
00:00:47 verbose #1089 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:47 verbose #1090 > > //// test
00:00:47 verbose #1091 > > ///! rust -d num-complex pyo3
00:00:47 verbose #1092 > >
00:00:47 verbose #1093 > > test_behavior_near_origin___ true
00:00:47 verbose #1094 > 00:00:46   debug #49 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/31ac07440827abd451b311cd595c410bcd26a11c3b85f13e2da7975fc15d6fa4/main.spi
00:00:50 verbose #1095 > >
00:00:50 verbose #1096 > > ╭─[ 2.78s - return value ]─────────────────────────────────────────────────────╮
00:00:50 verbose #1097 > > │ zeta_ / s: (0.01, 0.01) / count: 0                                           │
00:00:50 verbose #1098 > > │ call(zeta_) / f_code.co_name: zeta / f_locals: s=(0.01+0.01j), a=1,          │
00:00:50 verbose #1099 > > │ derivative=0, method=None, kwargs={} / f_lineno: 530 / f_code.co_filename:   │
00:00:50 verbose #1100 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:00:50 verbose #1101 > > │ / arg: None                                                                  │
00:00:50 verbose #1102 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(0.01+0.01j), a=1,          │
00:00:50 verbose #1103 > > │ derivative=0, method=None, kwargs={} / f_lineno: 532 / f_code.co_filename:   │
00:00:50 verbose #1104 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:00:50 verbose #1105 > > │ / arg: None                                                                  │
00:00:50 verbose #1106 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(0.01+0.01j), a=1,          │
00:00:50 verbose #1107 > > │ derivative=0, method=None, kwargs={}, d=0 / f_lineno: 533 /                  │
00:00:50 verbose #1108 > > │ f_code.co_filename: \mpmath\functions\zeta.py / f_back.f_lineno: 25 /        │
00:00:50 verbose #1109 > > │ f_back.f_code.co_filename:  / arg: None                                      │
00:00:50 verbose #1110 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(0.01+0.01j), a=1,          │
00:00:50 verbose #1111 > > │ derivative=0, method=None, kwargs={}, d=0 / f_lineno: 534 /                  │
00:00:50 verbose #1112 > > │ f_code.co_filename: \mpmath\functions\zeta.py / f_back.f_lineno: 25 /        │
00:00:50 verbose #1113 > > │ f_back.f_code.co_filename:  / arg: None                                      │
00:00:50 verbose #1114 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(0.01+0.01j), a=1,          │
00:00:50 verbose #1115 > > │ derivative=0, method=None, kwargs={}, d=0 / f_lineno: 535 /                  │
00:00:50 verbose #1116 > > │ f_code.co_filename: \mpmath\functions\zeta.py / f_back.f_lineno: 25 /        │
00:00:50 verbose #1117 > > │ f_back.f_code.co_filename:  / arg: None                                      │
00:00:50 verbose #1118 > > │ call(zeta_) / f_code.co_name: f / f_locals: x=(0.01+0.01j), kwargs={},       │
00:00:50 verbose #1119 > > │ name='zeta' / f_lineno: 1113 / f_code.co_filename: \mpmath\ctx_mp_python.py  │
00:00:50 verbose #1120 > > │ / f_back.f_lineno: 535 / f_back.f_code.co_filename:                          │
00:00:50 verbose #1121 > > │ \mpmath\functions\zeta.py / arg: None                                        │
00:00:50 verbose #1122 > > │ line(zeta_) / f_code.co_name: f / f_locals: x=(...eta.py / f_back.f_lineno:  │
00:00:50 verbose #1123 > > │ 1131 / f_back.f_code.co_filename: \mpmath\ctx_mp_python.py / arg: None       │
00:00:50 verbose #1124 > > │ line(gamma_) / f_code.co_name: mpc_gamma / f_locals: z=((0,                  │
00:00:50 verbose #1125 > > │ 4458563631096791, -52, 52), (1, 5764607523034235, -59, 53)), prec=53,        │
00:00:50 verbose #1126 > > │ rnd='n', type=0, a=(0, 4458563631096791, -52, 52), b=(1, 5764607523034235,   │
00:00:50 verbose #1127 > > │ -59, 53), asign=0, aman=4458563631096791, aexp=-52, abc=52, bsign=1,         │
00:00:50 verbose #1128 > > │ bman=5764607523034235, bexp=-59, bbc=53, wp=73, amag=0, bmag=-6, mag=0,      │
00:00:50 verbose #1129 > > │ an=0, bn=0, absn=0j, gamma_size=0, need_reflection=0, zorig=((0,             │
00:00:50 verbose #1130 > > │ 4458563631096791, -52, 52), (1, 5764607523034235, -59, 53)), yfinal=0,       │
00:00:50 verbose #1131 > > │ balance_prec=0, n_for_stirling=14, need_reduction=True,                      │
00:00:50 verbose #1132 > > │ afix=132131814190692672995328, bfix=-94447329657392906240, r=0, zprered=((0, │
00:00:50 verbose #1133 > > │ 4458563631096791, -52, 52), (1, 5764607523034235, -59, 53)), d=14,           │
00:00:50 verbose #1134 > > │ rre=56942610883563778729574216337150, one=9444732965739290427392,            │
00:00:50 verbose #1135 > > │ rim=-1820461636508155576115177658065, k=13 / f_lineno: 2035 /                │
00:00:50 verbose #1136 > > │ f_code.co_filename: \mpmath\libmp\gammazeta.py / f_back.f_lineno: 1131 /     │
00:00:50 verbose #1137 > > │ f_back.f_code.co_filename: \mpmath\ctx_mp_python.py / arg: None              │
00:00:50 verbose #1138 > > │ gamma_ / result: (1.00577030202902 + 0.0059717824054102j) / count: 357       │
00:00:50 verbose #1139 > > │ gamma__ / s: Complex { re: 0.99, im: -0.01 } / result: Ok(Complex { re:      │
00:00:50 verbose #1140 > > │ 1.005770302029023, im: 0.005971782405410201 })                               │
00:00:50 verbose #1141 > > │ zeta__ / s: Complex { re: 0.01, im: 0.01 } / result: Ok(Complex { re:        │
00:00:50 verbose #1142 > > │ -0.5091873433665667, im: -0.00939202213994577 }) / z: Complex { re: 0.0, im: │
00:00:50 verbose #1143 > > │ 0.0 }                                                                        │
00:00:50 verbose #1144 > > │ assert_lt / actual: -0.5091873433665667 / expected: inf                      │
00:00:50 verbose #1145 > > │ assert_lt / actual: -0.00939202213994577 / expected: inf                     │
00:00:50 verbose #1146 > > │                                                                              │
00:00:50 verbose #1147 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:50 verbose #1148 > >
00:00:50 verbose #1149 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:50 verbose #1150 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:50 verbose #1151 > > │ ## test_imaginary_axis                                                       │
00:00:50 verbose #1152 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:50 verbose #1153 > >
00:00:50 verbose #1154 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:50 verbose #1155 > > inl test_imaginary_axis log = run_test log (3u8, 2u8) fun zeta, gamma =>
00:00:50 verbose #1156 > >     (join [[10; 20; 30; 40; 50; 60; 70; 80; 90; 100]])
00:00:50 verbose #1157 > >     |> listm.iter fun s =>
00:00:50 verbose #1158 > >         inl s = .^(0, s)
00:00:50 verbose #1159 > >         inl result = zeta s
00:00:50 verbose #1160 > >         result |> re |> _assert_ne 0
00:00:50 verbose #1161 > >         result |> im |> _assert_ne 0
00:00:50 verbose #1162 > 00:00:49   debug #50 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/97050f1387fb8cf7283e9b4144a4a1763759b1bd479b3e6efe38a94bc18e2f81/main.spi
00:00:50 verbose #1163 > >
00:00:50 verbose #1164 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:50 verbose #1165 > > //// test
00:00:50 verbose #1166 > > ///! rust -d num-complex pyo3
00:00:50 verbose #1167 > >
00:00:50 verbose #1168 > > test_imaginary_axis true
00:00:50 verbose #1169 > 00:00:50   debug #51 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a307a8e803336f38063b9fc245596b1b310a1578333765d4808b15cb6c57b0b6/main.spi
00:00:53 verbose #1170 > >
00:00:53 verbose #1171 > > ╭─[ 3.16s - return value ]─────────────────────────────────────────────────────╮
00:00:53 verbose #1172 > > │ zeta_ / s: (0.0, 10.0) / count: 0                                            │
00:00:53 verbose #1173 > > │ call(zeta_) / f_code.co_name: zeta / f_locals: s=10j, a=1, derivative=0,     │
00:00:53 verbose #1174 > > │ method=None, kwargs={} / f_lineno: 530 / f_code.co_filename:                 │
00:00:53 verbose #1175 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:00:53 verbose #1176 > > │ / arg: None                                                                  │
00:00:53 verbose #1177 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=10j, a=1, derivative=0,     │
00:00:53 verbose #1178 > > │ method=None, kwargs={} / f_lineno: 532 / f_code.co_filename:                 │
00:00:53 verbose #1179 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:00:53 verbose #1180 > > │ / arg: None                                                                  │
00:00:53 verbose #1181 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=10j, a=1, derivative=0,     │
00:00:53 verbose #1182 > > │ method=None, kwargs={}, d=0 / f_lineno: 533 / f_code.co_filename:            │
00:00:53 verbose #1183 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:00:53 verbose #1184 > > │ / arg: None                                                                  │
00:00:53 verbose #1185 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=10j, a=1, derivative=0,     │
00:00:53 verbose #1186 > > │ method=None, kwargs={}, d=0 / f_lineno: 534 / f_code.co_filename:            │
00:00:53 verbose #1187 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:00:53 verbose #1188 > > │ / arg: None                                                                  │
00:00:53 verbose #1189 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=10j, a=1, derivative=0,     │
00:00:53 verbose #1190 > > │ method=None, kwargs={}, d=0 / f_lineno: 535 / f_code.co_filename:            │
00:00:53 verbose #1191 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:00:53 verbose #1192 > > │ / arg: None                                                                  │
00:00:53 verbose #1193 > > │ call(zeta_) / f_code.co_name: f / f_locals: x=10j, kwargs={}, name='zeta' /  │
00:00:53 verbose #1194 > > │ f_lineno: 1113 / f_code.co_filename: \mpmath\ctx_mp_python.py /              │
00:00:53 verbose #1195 > > │ f_back.f_lineno: 535 / f_back.f_code.co_filename: \mpmath\functions\zeta.py  │
00:00:53 verbose #1196 > > │ / arg: None                                                                  │
00:00:53 verbose #1197 > > │ line(zeta_) / f_code.co_name: f / f_locals: x=10j, kwargs={}, name='zeta' /  │
00:00:53 verbose #1198 > > │ f_lineno: 1114 / f_code.co...: s=(0, 1, 0, 1), prec=83, sign=0, man=1,       │
00:00:53 verbose #1199 > > │ exp=0, bc=1 / f_lineno: 409 / f_code.co_filename: \mpmath\libmp\libmpf.py /  │
00:00:53 verbose #1200 > > │ f_back.f_lineno: 2022 / f_back.f_code.co_filename:                           │
00:00:53 verbose #1201 > > │ \mpmath\libmp\gammazeta.py / arg: None                                       │
00:00:53 verbose #1202 > > │ line(gamma_) / f_code.co_name: to_fixed / f_locals: s=(0, 1, 0, 1), prec=83, │
00:00:53 verbose #1203 > > │ sign=0, man=1, exp=0, bc=1, offset=83 / f_lineno: 410 / f_code.co_filename:  │
00:00:53 verbose #1204 > > │ \mpmath\libmp\libmpf.py / f_back.f_lineno: 2022 / f_back.f_code.co_filename: │
00:00:53 verbose #1205 > > │ \mpmath\libmp\gammazeta.py / arg: None                                       │
00:00:53 verbose #1206 > > │ line(gamma_) / f_code.co_name: to_fixed / f_locals: s=(0, 1, 0, 1), prec=83, │
00:00:53 verbose #1207 > > │ sign=0, man=1, exp=0, bc=1, offset=83 / f_lineno: 414 / f_code.co_filename:  │
00:00:53 verbose #1208 > > │ \mpmath\libmp\libmpf.py / f_back.f_lineno: 2022 / f_back.f_code.co_filename: │
00:00:53 verbose #1209 > > │ \mpmath\libmp\gammazeta.py / arg: None                                       │
00:00:53 verbose #1210 > > │ return(gamma_) / f_code.co_name: to_fixed / f_locals: s=(0, 1, 0, 1),        │
00:00:53 verbose #1211 > > │ prec=83, sign=0, man=1, exp=0, bc=1, offset=83 / f_lineno: 414 /             │
00:00:53 verbose #1212 > > │ f_code.co_filename: \mpmath\libmp\libmpf.py / f_back.f_lineno: 2022 /        │
00:00:53 verbose #1213 > > │ f_back.f_code.co_filename: \mpmath\libmp\gammazeta.py / arg:                 │
00:00:53 verbose #1214 > > │ 9671406556917033397649408                                                    │
00:00:53 verbose #1215 > > │ gamma_ / result: (-1.51425318049776e-67 + 2.79082155561748e-69j) / count:    │
00:00:53 verbose #1216 > > │ 289                                                                          │
00:00:53 verbose #1217 > > │ gamma__ / s: Complex { re: 1.0, im: -100.0 } / result: Ok(Complex { re:      │
00:00:53 verbose #1218 > > │ -1.514253180497756e-67, im: 2.7908215556174775e-69 })                        │
00:00:53 verbose #1219 > > │ zeta__ / s: Complex { re: 0.0, im: 100.0 } / result: Ok(Complex { re:        │
00:00:53 verbose #1220 > > │ 6.51721042625301, im: 0.18128842533791736 }) / z: Complex { re: 0.0, im: 0.0 │
00:00:53 verbose #1221 > > │ }                                                                            │
00:00:53 verbose #1222 > > │ assert_ne / actual: 6.51721042625301 / expected: 0.0                         │
00:00:53 verbose #1223 > > │ assert_ne / actual: 0.18128842533791736 / expected: 0.0                      │
00:00:53 verbose #1224 > > │                                                                              │
00:00:53 verbose #1225 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:53 verbose #1226 > >
00:00:53 verbose #1227 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:53 verbose #1228 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:53 verbose #1229 > > │ ## test_critical_strip                                                       │
00:00:53 verbose #1230 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:53 verbose #1231 > >
00:00:53 verbose #1232 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:53 verbose #1233 > > inl test_critical_strip log = run_test log (3u8, 2u8) fun zeta, gamma =>
00:00:53 verbose #1234 > >     (join [[
00:00:53 verbose #1235 > >         .^(0.5, 14.134725)
00:00:53 verbose #1236 > >         .^(0.75, 20.5)
00:00:53 verbose #1237 > >         .^(1.25, 30.1)
00:00:53 verbose #1238 > >         .^(0.25, 40.0)
00:00:53 verbose #1239 > >         .^(1.0, 50.0)
00:00:53 verbose #1240 > >     ]])
00:00:53 verbose #1241 > >     |> listm.iter fun s =>
00:00:53 verbose #1242 > >         inl result = zeta s
00:00:53 verbose #1243 > >         result |> re |> _assert_ne 0
00:00:53 verbose #1244 > >         result |> im |> _assert_ne 0
00:00:54 verbose #1245 > 00:00:53   debug #52 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d01c450444e2017f8b3f664c14aac164850767e34cdd510206c2ad2d09a67d6d/main.spi
00:00:54 verbose #1246 > >
00:00:54 verbose #1247 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:54 verbose #1248 > > //// test
00:00:54 verbose #1249 > > ///! rust -d num-complex pyo3
00:00:54 verbose #1250 > >
00:00:54 verbose #1251 > > test_critical_strip true
00:00:54 verbose #1252 > 00:00:53   debug #53 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3bd5b7c0b9eab357bce8c4b515e44187f79e1131075a56963f8e3eb7f49b4757/main.spi
00:00:57 verbose #1253 > >
00:00:57 verbose #1254 > > ╭─[ 2.91s - return value ]─────────────────────────────────────────────────────╮
00:00:57 verbose #1255 > > │ zeta_ / s: (0.5, 14.134725) / count: 0                                       │
00:00:57 verbose #1256 > > │ call(zeta_) / f_code.co_name: zeta / f_locals: s=(0.5+14.134725j), a=1,      │
00:00:57 verbose #1257 > > │ derivative=0, method=None, kwargs={} / f_lineno: 530 / f_code.co_filename:   │
00:00:57 verbose #1258 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:00:57 verbose #1259 > > │ / arg: None                                                                  │
00:00:57 verbose #1260 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(0.5+14.134725j), a=1,      │
00:00:57 verbose #1261 > > │ derivative=0, method=None, kwargs={} / f_lineno: 532 / f_code.co_filename:   │
00:00:57 verbose #1262 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:00:57 verbose #1263 > > │ / arg: None                                                                  │
00:00:57 verbose #1264 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(0.5+14.134725j), a=1,      │
00:00:57 verbose #1265 > > │ derivative=0, method=None, kwargs={}, d=0 / f_lineno: 533 /                  │
00:00:57 verbose #1266 > > │ f_code.co_filename: \mpmath\functions\zeta.py / f_back.f_lineno: 25 /        │
00:00:57 verbose #1267 > > │ f_back.f_code.co_filename:  / arg: None                                      │
00:00:57 verbose #1268 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(0.5+14.134725j), a=1,      │
00:00:57 verbose #1269 > > │ derivative=0, method=None, kwargs={}, d=0 / f_lineno: 534 /                  │
00:00:57 verbose #1270 > > │ f_code.co_filename: \mpmath\functions\zeta.py / f_back.f_lineno: 25 /        │
00:00:57 verbose #1271 > > │ f_back.f_code.co_filename:  / arg: None                                      │
00:00:57 verbose #1272 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(0.5+14.134725j), a=1,      │
00:00:57 verbose #1273 > > │ derivative=0, method=None, kwargs={}, d=0 / f_lineno: 535 /                  │
00:00:57 verbose #1274 > > │ f_code.co_filename: \mpmath\functions\zeta.py / f_back.f_lineno: 25 /        │
00:00:57 verbose #1275 > > │ f_back.f_code.co_filename:  / arg: None                                      │
00:00:57 verbose #1276 > > │ call(zeta_) / f_code.co_name: f / f_locals: x=(0.5+14.134725j), kwargs={},   │
00:00:57 verbose #1277 > > │ name='zeta' / f_lineno: 1113 / f_code.co_filename: \mpmath\ctx_mp_python.py  │
00:00:57 verbose #1278 > > │ / f_back.f_lineno: 535 / f_back.f_code.co_filename:                          │
00:00:57 verbose #1279 > > │ \mpmath\functions\zeta.py / arg: None                                        │
00:00:57 verbose #1280 > > │ line(zeta_) / f_cod...41793223535862290159229021 / f_lineno: 1635 /          │
00:00:57 verbose #1281 > > │ f_code.co_filename: \mpmath\libmp\gammazeta.py / f_back.f_lineno: 2041 /     │
00:00:57 verbose #1282 > > │ f_back.f_code.co_filename: \mpmath\libmp\gammazeta.py / arg: None            │
00:00:57 verbose #1283 > > │ line(gamma_) / f_code.co_name: complex_stirling_series / f_locals: x=0,      │
00:00:57 verbose #1284 > > │ y=-241785163922925834941235200, prec=82, _m=12089258196146291747061760000,   │
00:00:57 verbose #1285 > > │ tre=0, tim=2475880078, ure=-1934281311383406679530, uim=0,                   │
00:00:57 verbose #1286 > > │ sre=4443714077719696485012210, sim=241793223535862290159229021 / f_lineno:   │
00:00:57 verbose #1287 > > │ 1636 / f_code.co_filename: \mpmath\libmp\gammazeta.py / f_back.f_lineno:     │
00:00:57 verbose #1288 > > │ 2041 / f_back.f_code.co_filename: \mpmath\libmp\gammazeta.py / arg: None     │
00:00:57 verbose #1289 > > │ line(gamma_) / f_code.co_name: complex_stirling_series / f_locals: x=0,      │
00:00:57 verbose #1290 > > │ y=-241785163922925834941235200, prec=82, _m=12089258196146291747061760000,   │
00:00:57 verbose #1291 > > │ tre=0, tim=2475880078, ure=-1934281311383406679530, uim=0,                   │
00:00:57 verbose #1292 > > │ sre=4443714077719696485012210, sim=241793223535862290161313095 / f_lineno:   │
00:00:57 verbose #1293 > > │ 1637 / f_code.co_filename: \mpmath\libmp\gammazeta.py / f_back.f_lineno:     │
00:00:57 verbose #1294 > > │ 2041 / f_back.f_code.co_filename: \mpmath\libmp\gammazeta.py / arg: None     │
00:00:57 verbose #1295 > > │ gamma_ / result: (2.63173210619768e-35 - 8.16464935465334e-36j) / count: 266 │
00:00:57 verbose #1296 > > │ gamma__ / s: Complex { re: 0.0, im: -50.0 } / result: Ok(Complex { re:       │
00:00:57 verbose #1297 > > │ 2.6317321061976804e-35, im: -8.164649354653339e-36 })                        │
00:00:57 verbose #1298 > > │ zeta__ / s: Complex { re: 1.0, im: 50.0 } / result: Ok(Complex { re:         │
00:00:57 verbose #1299 > > │ 0.44103873082309397, im: 0.281582455029683 }) / z: Complex { re: 0.0, im:    │
00:00:57 verbose #1300 > > │ 0.0 }                                                                        │
00:00:57 verbose #1301 > > │ assert_ne / actual: 0.44103873082309397 / expected: 0.0                      │
00:00:57 verbose #1302 > > │ assert_ne / actual: 0.281582455029683 / expected: 0.0                        │
00:00:57 verbose #1303 > > │                                                                              │
00:00:57 verbose #1304 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:57 verbose #1305 > >
00:00:57 verbose #1306 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:57 verbose #1307 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:57 verbose #1308 > > │ ## test_reflection_formula_for_specific_value                                │
00:00:57 verbose #1309 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:57 verbose #1310 > >
00:00:57 verbose #1311 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:57 verbose #1312 > > inl test_reflection_formula_for_specific_value log = run_test log (3u8, 2u8) fun
00:00:57 verbose #1313 > > zeta, gamma =>
00:00:57 verbose #1314 > >     (join [[
00:00:57 verbose #1315 > >         .^(3, 4)
00:00:57 verbose #1316 > >         .^(2.5, -3.5)
00:00:57 verbose #1317 > >         .^(1.5, 2.5)
00:00:57 verbose #1318 > >         .^(0.5, 14.134725)
00:00:57 verbose #1319 > >     ]])
00:00:57 verbose #1320 > >     |> listm.iter fun s =>
00:00:57 verbose #1321 > >         inl lhs = zeta s
00:00:57 verbose #1322 > >         inl reflection_coefficient =
00:00:57 verbose #1323 > >             (.^(2, 0) .** s)
00:00:57 verbose #1324 > >             .* (.^(pi, 0) .** (s .- .^(1, 0)))
00:00:57 verbose #1325 > >             .* (.^(pi, 0) .* s ./ .^(2, 0) |> complex_sin)
00:00:57 verbose #1326 > >             .* gamma (.^(1, 0) .- s)
00:00:57 verbose #1327 > >
00:00:57 verbose #1328 > >         inl one_minus_s = .^(1 - re s, -(im s))
00:00:57 verbose #1329 > >         inl rhs = reflection_coefficient .* zeta one_minus_s
00:00:57 verbose #1330 > >
00:00:57 verbose #1331 > >         re lhs - re rhs |> abs |> _assert_lt 0.0001
00:00:57 verbose #1332 > >         im lhs - im rhs |> abs |> _assert_lt 0.0001
00:00:57 verbose #1333 > 00:00:56   debug #54 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/47daa514b44c4862db8f0a93295fceee1d074017524436233acea9d9213aa4c0/main.spi
00:00:57 verbose #1334 > >
00:00:57 verbose #1335 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:57 verbose #1336 > > //// test
00:00:57 verbose #1337 > > ///! rust -d num-complex pyo3
00:00:57 verbose #1338 > >
00:00:57 verbose #1339 > > test_reflection_formula_for_specific_value true
00:00:57 verbose #1340 > 00:00:57   debug #55 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fe686a41130c47ec2be57390ee941104c109061880b3d02651d311e516995f1f/main.spi
00:01:00 verbose #1341 > >
00:01:00 verbose #1342 > > ╭─[ 3.29s - return value ]─────────────────────────────────────────────────────╮
00:01:00 verbose #1343 > > │ zeta_ / s: (3.0, 4.0) / count: 0                                             │
00:01:00 verbose #1344 > > │ call(zeta_) / f_code.co_name: zeta / f_locals: s=(3+4j), a=1, derivative=0,  │
00:01:00 verbose #1345 > > │ method=None, kwargs={} / f_lineno: 530 / f_code.co_filename:                 │
00:01:00 verbose #1346 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:01:00 verbose #1347 > > │ / arg: None                                                                  │
00:01:00 verbose #1348 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(3+4j), a=1, derivative=0,  │
00:01:00 verbose #1349 > > │ method=None, kwargs={} / f_lineno: 532 / f_code.co_filename:                 │
00:01:00 verbose #1350 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:01:00 verbose #1351 > > │ / arg: None                                                                  │
00:01:00 verbose #1352 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(3+4j), a=1, derivative=0,  │
00:01:00 verbose #1353 > > │ method=None, kwargs={}, d=0 / f_lineno: 533 / f_code.co_filename:            │
00:01:00 verbose #1354 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:01:00 verbose #1355 > > │ / arg: None                                                                  │
00:01:00 verbose #1356 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(3+4j), a=1, derivative=0,  │
00:01:00 verbose #1357 > > │ method=None, kwargs={}, d=0 / f_lineno: 534 / f_code.co_filename:            │
00:01:00 verbose #1358 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:01:00 verbose #1359 > > │ / arg: None                                                                  │
00:01:00 verbose #1360 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(3+4j), a=1, derivative=0,  │
00:01:00 verbose #1361 > > │ method=None, kwargs={}, d=0 / f_lineno: 535 / f_code.co_filename:            │
00:01:00 verbose #1362 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:01:00 verbose #1363 > > │ / arg: None                                                                  │
00:01:00 verbose #1364 > > │ call(zeta_) / f_code.co_name: f / f_locals: x=(3+4j), kwargs={}, name='zeta' │
00:01:00 verbose #1365 > > │ / f_lineno: 1113 / f_code.co_filename: \mpmath\ctx_mp_python.py /            │
00:01:00 verbose #1366 > > │ f_back.f_lineno: 535 / f_back.f_code.co_filename: \mpmath\functions\zeta.py  │
00:01:00 verbose #1367 > > │ / arg: None                                                                  │
00:01:00 verbose #1368 > > │ line(zeta_) / f_code.co_name: f / f_locals: x=(3+4j), kwargs={}, name='zeta' │
00:01:00 verbose #1369 > > │ / f_line...o: 2034 / f_code.co_filename: \mpmath\libmp\gammazeta.py /        │
00:01:00 verbose #1370 > > │ f_back.f_lineno: 1131 / f_back.f_code.co_filename: \mpmath\ctx_mp_python.py  │
00:01:00 verbose #1371 > > │ / arg: None                                                                  │
00:01:00 verbose #1372 > > │ line(gamma_) / f_code.co_name: mpc_gamma / f_locals: z=((0, 1, -1, 1), (0,   │
00:01:00 verbose #1373 > > │ 3978571390186527, -48, 52)), prec=53, rnd='n', type=0, a=(0, 1, -1, 1),      │
00:01:00 verbose #1374 > > │ b=(0, 3978571390186527, -48, 52), asign=0, aman=1, aexp=-1, abc=1, bsign=0,  │
00:01:00 verbose #1375 > > │ bman=3978571390186527, bexp=-48, bbc=52, wp=79, amag=0, bmag=4, mag=4, an=0, │
00:01:00 verbose #1376 > > │ bn=14, absn=14j, gamma_size=56, need_reflection=0, zorig=((0, 1, -1, 1), (0, │
00:01:00 verbose #1377 > > │ 3978571390186527, -48, 52)), yfinal=0, balance_prec=0, n_for_stirling=15,    │
00:01:00 verbose #1378 > > │ need_reduction=True, afix=2115620184325601055735808,                         │
00:01:00 verbose #1379 > > │ bfix=8543917002826194402410496, r=0, zprered=((0, 1, -1, 1), (0,             │
00:01:00 verbose #1380 > > │ 3978571390186527, -48, 52)), d=5, rre=-542313259704087430481959845,          │
00:01:00 verbose #1381 > > │ one=604462909807314587353088, rim=-1657865507045117397880679064, k=3 /       │
00:01:00 verbose #1382 > > │ f_lineno: 2035 / f_code.co_filename: \mpmath\libmp\gammazeta.py /            │
00:01:00 verbose #1383 > > │ f_back.f_lineno: 1131 / f_back.f_code.co_filename: \mpmath\ctx_mp_python.py  │
00:01:00 verbose #1384 > > │ / arg: None                                                                  │
00:01:00 verbose #1385 > > │ gamma_ / result: (-1.4455538437607e-10 - 5.52278876877407e-10j) / count: 314 │
00:01:00 verbose #1386 > > │ gamma__ / s: Complex { re: 0.5, im: 14.134725 } / result: Ok(Complex { re:   │
00:01:00 verbose #1387 > > │ -1.4455538437606964e-10, im: -5.522788768774066e-10 })                       │
00:01:00 verbose #1388 > > │ zeta__ / s: Complex { re: 0.5, im: -14.134725 } / result: Ok(Complex { re:   │
00:01:00 verbose #1389 > > │ 1.7674298413849186e-8, im: 1.1102028930923156e-7 }) / z: Complex { re: 0.0,  │
00:01:00 verbose #1390 > > │ im: 0.0 }                                                                    │
00:01:00 verbose #1391 > > │ assert_lt / actual: 4.499862532288471e-22 / expected: 0.0001                 │
00:01:00 verbose #1392 > > │ assert_lt / actual: 1.4558378780933287e-22 / expected: 0.0001                │
00:01:00 verbose #1393 > > │                                                                              │
00:01:00 verbose #1394 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:00 verbose #1395 > >
00:01:00 verbose #1396 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:00 verbose #1397 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:00 verbose #1398 > > │ ## test_euler_product_formula                                                │
00:01:00 verbose #1399 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:00 verbose #1400 > >
00:01:00 verbose #1401 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:00 verbose #1402 > > inl test_euler_product_formula log = run_test log (3u8, 2u8) fun zeta, gamma =>
00:01:00 verbose #1403 > >     inl s_values = join [[2; 2.5; 3; 3.5; 4; 4.5; 5]]
00:01:00 verbose #1404 > >     inl primes = join [[2; 3; 5; 7; 11; 13; 17; 19; 23; 29; 31; 37; 41; 43; 47;
00:01:00 verbose #1405 > > 53; 59; 61; 67; 71]]
00:01:00 verbose #1406 > >     s_values
00:01:00 verbose #1407 > >     |> listm.iter fun s_re =>
00:01:00 verbose #1408 > >         inl s = .^(s_re, 0)
00:01:00 verbose #1409 > >         inl product =
00:01:00 verbose #1410 > >             (1, primes)
00:01:00 verbose #1411 > >             ||> listm.fold fun acc x =>
00:01:00 verbose #1412 > >                 acc * 1 / (1 - x ** -s_re)
00:01:00 verbose #1413 > >
00:01:00 verbose #1414 > >         inl result = zeta s
00:01:00 verbose #1415 > >         re result - product |> abs |> _assert_lt 0.01
00:01:00 verbose #1416 > >         result |> im |> _assert_lt 0.01
00:01:01 verbose #1417 > 00:01:00   debug #56 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f5ac74955506a77567d0ece12fd9c76b90b26c3886e1678330822237886fef2d/main.spi
00:01:01 verbose #1418 > >
00:01:01 verbose #1419 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:01 verbose #1420 > > //// test
00:01:01 verbose #1421 > > ///! rust -d num-complex pyo3
00:01:01 verbose #1422 > >
00:01:01 verbose #1423 > > test_euler_product_formula true
00:01:01 verbose #1424 > 00:01:00   debug #57 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7c3df7bf2f7aeef9b476f17053699f0022375ec00dd7bd2be68011d5e8fd39d5/main.spi
00:01:04 verbose #1425 > >
00:01:04 verbose #1426 > > ╭─[ 3.06s - return value ]─────────────────────────────────────────────────────╮
00:01:04 verbose #1427 > > │ zeta_ / s: (2.0, 0.0) / count: 0                                             │
00:01:04 verbose #1428 > > │ call(zeta_) / f_code.co_name: zeta / f_locals: s=(2+0j), a=1, derivative=0,  │
00:01:04 verbose #1429 > > │ method=None, kwargs={} / f_lineno: 530 / f_code.co_filename:                 │
00:01:04 verbose #1430 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:01:04 verbose #1431 > > │ / arg: None                                                                  │
00:01:04 verbose #1432 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2+0j), a=1, derivative=0,  │
00:01:04 verbose #1433 > > │ method=None, kwargs={} / f_lineno: 532 / f_code.co_filename:                 │
00:01:04 verbose #1434 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:01:04 verbose #1435 > > │ / arg: None                                                                  │
00:01:04 verbose #1436 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2+0j), a=1, derivative=0,  │
00:01:04 verbose #1437 > > │ method=None, kwargs={}, d=0 / f_lineno: 533 / f_code.co_filename:            │
00:01:04 verbose #1438 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:01:04 verbose #1439 > > │ / arg: None                                                                  │
00:01:04 verbose #1440 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2+0j), a=1, derivative=0,  │
00:01:04 verbose #1441 > > │ method=None, kwargs={}, d=0 / f_lineno: 534 / f_code.co_filename:            │
00:01:04 verbose #1442 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:01:04 verbose #1443 > > │ / arg: None                                                                  │
00:01:04 verbose #1444 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2+0j), a=1, derivative=0,  │
00:01:04 verbose #1445 > > │ method=None, kwargs={}, d=0 / f_lineno: 535 / f_code.co_filename:            │
00:01:04 verbose #1446 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:01:04 verbose #1447 > > │ / arg: None                                                                  │
00:01:04 verbose #1448 > > │ call(zeta_) / f_code.co_name: f / f_locals: x=(2+0j), kwargs={}, name='zeta' │
00:01:04 verbose #1449 > > │ / f_lineno: 1113 / f_code.co_filename: \mpmath\ctx_mp_python.py /            │
00:01:04 verbose #1450 > > │ f_back.f_lineno: 535 / f_back.f_code.co_filename: \mpmath\functions\zeta.py  │
00:01:04 verbose #1451 > > │ / arg: None                                                                  │
00:01:04 verbose #1452 > > │ line(zeta_) / f_code.co_name: f / f_locals: x=(2+0j), kwargs={}, name='zeta' │
00:01:04 verbose #1453 > > │ / f_line..._back.f_lineno: 976 / f_back.f_code.co_filename:                  │
00:01:04 verbose #1454 > > │ \mpmath\libmp\gammazeta.py / arg: None                                       │
00:01:04 verbose #1455 > > │ line(zeta_) / f_code.co_name: mpf_zeta_int / f_locals: s=5, prec=53,         │
00:01:04 verbose #1456 > > │ rnd='n', wp=73, m=19.25, needed_terms=623488, n=33, d=[1, 2179, 792067,      │
00:01:04 verbose #1457 > > │ 115062531, 8930212611, 429314925315, 13983537177347, 327666966438659,        │
00:01:04 verbose #1458 > > │ 5764846406968067, 78615943485956867, 851604426176701187,                     │
00:01:04 verbose #1459 > > │ 7470527451121689347, 53898915046387983107, 323897845985013506819,            │
00:01:04 verbose #1460 > > │ 1638178356374090130179, 7034281785235908174595, 25833609859980306522883,     │
00:01:04 verbose #1461 > > │ 81661917475887913739011, 223448095548034217779971, 532029677981012660429571, │
00:01:04 verbose #1462 > > │ 1108048631855905753375491, 2029946562680066824315651,                        │
00:01:04 verbose #1463 > > │ 3292927237466655352791811, 4769455369342763680768771,                        │
00:01:04 verbose #1464 > > │ 6235511670496346417767171, 7463408621503347142796035,                        │
00:01:04 verbose #1465 > > │ 8322751284048216428487427, 8818779962777819524211459,                        │
00:01:04 verbose #1466 > > │ 9050689474911140452082435, 9136270117622166323831555,                        │
00:01:04 verbose #1467 > > │ 9160252037839493347779331, 9165045885455648617505539,                        │
00:01:04 verbose #1468 > > │ 9165654628010081032708867, 9165691521498228451812099],                       │
00:01:04 verbose #1469 > > │ t=-84153981556310142931811887755527036638996681066, k=21 / f_lineno: 944 /   │
00:01:04 verbose #1470 > > │ f_code.co_filename: \mpmath\libmp\gammazeta.py / f_back.f_lineno: 976 /      │
00:01:04 verbose #1471 > > │ f_back.f_code.co_filename: \mpmath\libmp\gammazeta.py / arg: None            │
00:01:04 verbose #1472 > > │ zeta_ / result: (1.03692775514337 + 0.0j) / count: 236                       │
00:01:04 verbose #1473 > > │ zeta / count: 0 / s: Complex { re: 5.0, im: 0.0 }                            │
00:01:04 verbose #1474 > > │ zeta__ / s: Complex { re: 5.0, im: 0.0 } / result: Ok(Complex { re:          │
00:01:04 verbose #1475 > > │ 1.03692775514337, im: 0.0 }) / z: Complex { re: NaN, im: NaN }               │
00:01:04 verbose #1476 > > │ assert_lt / actual: 2.0033654735129858e-9 / expected: 0.01                   │
00:01:04 verbose #1477 > > │ assert_lt / actual: 0.0 / expected: 0.01                                     │
00:01:04 verbose #1478 > > │                                                                              │
00:01:04 verbose #1479 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:04 verbose #1480 > >
00:01:04 verbose #1481 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:04 verbose #1482 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:04 verbose #1483 > > │ ## graph                                                                     │
00:01:04 verbose #1484 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:04 verbose #1485 > >
00:01:04 verbose #1486 > > ── mermaid ─────────────────────────────────────────────────────────────────────
00:01:04 verbose #1487 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:04 verbose #1488 > > │ <div class="mermaidMarkdownContainer" style="background-color:white">        │
00:01:04 verbose #1489 > > │ <link rel="stylesheet"                                                       │
00:01:04 verbose #1490 > > │ href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.0/css/all.min. │
00:01:04 verbose #1491 > > │ css">                                                                        │
00:01:04 verbose #1492 > > │ <div id="501cccb22a88462c888d555616193a1f"></div>                            │
00:01:04 verbose #1493 > > │ <script type="module">                                                       │
00:01:04 verbose #1494 > > │                                                                              │
00:01:04 verbose #1495 > > │             import mermaid from                                              │
00:01:04 verbose #1496 > > │ 'https://cdn.jsdelivr.net/npm/mermaid@10.6.1/dist/mermaid.esm.min.mjs';      │
00:01:04 verbose #1497 > > │             let renderTarget =                                               │
00:01:04 verbose #1498 > > │ document.getElementById('501cccb22a88462c888d555616193a1f');                 │
00:01:04 verbose #1499 > > │             try {                                                            │
00:01:04 verbose #1500 > > │                 const {svg, bindFunctions} = await                           │
00:01:04 verbose #1501 > > │ mermaid.mermaidAPI.render(                                                   │
00:01:04 verbose #1502 > > │                     'mermaid_501cccb22a88462c888d555616193a1f',              │
00:01:04 verbose #1503 > > │                     `graph TD                                                │
00:01:04 verbose #1504 > > │     zeta("zeta()") --> convert                                               │
00:01:04 verbose #1505 > > │     zeta --> f["f()"]                                                        │
00:01:04 verbose #1506 > > │     f --> mpc_f["mpc_zeta()"]                                                │
00:01:04 verbose #1507 > > │     f --> mpf_f["mpf_zeta()"]                                                │
00:01:04 verbose #1508 > > │     convert --> from_float                                                   │
00:01:04 verbose #1509 > > │     from_float --> from_man_exp                                              │
00:01:04 verbose #1510 > > │     from_man_exp --> python_bitcount                                         │
00:01:04 verbose #1511 > > │     python_bitcount --> _normalize                                           │
00:01:04 verbose #1512 > > │     _normalize --> make_mpc                                                  │
00:01:04 verbose #1513 > > │     make_mpc --> mpc_zeta["mpc_zeta()"]                                      │
00:01:04 verbose #1514 > > │     mpc_zeta --> mpf_zeta["mpf_zeta()"]                                      │
00:01:04 verbose #1515 > > │     mpf_zeta --> to_int                                                      │
00:01:04 verbose #1516 > > │     to_int --> mpf_zeta_int["mpf_zeta_int()"]                                │
00:01:04 verbose #1517 > > │     mpf_zeta_int --> borwein_coefficients                                    │
00:01:04 verbose #1518 > > │     borwein_coefficients --> from_man_exp_2("from_man_exp()")                │
00:01:04 verbose #1519 > > │     from_man_exp_2 --> python_bitcount_2("python_bitcount()")                │
00:01:04 verbose #1520 > > │     python_bitcount_2 --> _normalize_2("_normalize()")                       │
00:01:04 verbose #1521 > > │     _normalize_2 --> make_mpc_2("make_mpc()")                                │
00:01:04 verbose #1522 > > │     make_mpc_2 --> stop_trace                                                │
00:01:04 verbose #1523 > > │     mpf_zeta_int --> mpf_bernoulli                                           │
00:01:04 verbose #1524 > > │     mpf_bernoulli --> bernoulli_size                                         │
00:01:04 verbose #1525 > > │     bernoulli_size --> mpf_rdiv_int                                          │
00:01:04 verbose #1526 > > │     mpf_rdiv_int --> python_bitcount_3("python_bitcount()")                  │
00:01:04 verbose #1527 > > │     python_bitcount_3 --> _normalize1                                        │
00:01:04 verbose #1528 > > │     _normalize1 --> from_man_exp_3("from_man_exp()")                         │
00:01:04 verbose #1529 > > │     from_man_exp_3 --> _normalize_3("_normalize()")                          │
00:01:04 verbose #1530 > > │     _normalize_3 --> mpf_sub                                                 │
00:01:04 verbose #1531 > > │     mpf_sub --> mpf_add                                                      │
00:01:04 verbose #1532 > > │     mpf_add --> mpf_neg                                                      │
00:01:04 verbose #1533 > > │     mpf_neg --> _normalize1_2("_normalize1()")                               │
00:01:04 verbose #1534 > > │     _normalize1_2 --> from_int                                               │
00:01:04 verbose #1535 > > │     from_int --> mpf_div                                                     │
00:01:04 verbose #1536 > > │     mpf_div --> python_bitcount_4("python_bitcount()")                       │
00:01:04 verbose #1537 > > │     python_bitcount_4 --> _normalize1_3("_normalize1()")                     │
00:01:04 verbose #1538 > > │     _normalize1_3 --> make_mpc_3("make_mpc()")                               │
00:01:04 verbose #1539 > > │     make_mpc_3 --> final_stop["stop_trace()"]`);                             │
00:01:04 verbose #1540 > > │                 renderTarget.innerHTML = svg;                                │
00:01:04 verbose #1541 > > │                 bindFunctions?.(renderTarget);                               │
00:01:04 verbose #1542 > > │             }                                                                │
00:01:04 verbose #1543 > > │             catch (error) {                                                  │
00:01:04 verbose #1544 > > │                 console.log(error);                                          │
00:01:04 verbose #1545 > > │             }                                                                │
00:01:04 verbose #1546 > > │ </script>                                                                    │
00:01:04 verbose #1547 > > │ </div>                                                                       │
00:01:04 verbose #1548 > > │                                                                              │
00:01:04 verbose #1549 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:04 verbose #1550 > >
00:01:04 verbose #1551 > > ── mermaid ─────────────────────────────────────────────────────────────────────
00:01:04 verbose #1552 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:04 verbose #1553 > > │ <div class="mermaidMarkdownContainer" style="background-color:white">        │
00:01:04 verbose #1554 > > │ <link rel="stylesheet"                                                       │
00:01:04 verbose #1555 > > │ href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.0/css/all.min. │
00:01:04 verbose #1556 > > │ css">                                                                        │
00:01:04 verbose #1557 > > │ <div id="4d1c14f85aa3446cbba154b82a7f6743"></div>                            │
00:01:04 verbose #1558 > > │ <script type="module">                                                       │
00:01:04 verbose #1559 > > │                                                                              │
00:01:04 verbose #1560 > > │             import mermaid from                                              │
00:01:04 verbose #1561 > > │ 'https://cdn.jsdelivr.net/npm/mermaid@10.6.1/dist/mermaid.esm.min.mjs';      │
00:01:04 verbose #1562 > > │             let renderTarget =                                               │
00:01:04 verbose #1563 > > │ document.getElementById('4d1c14f85aa3446cbba154b82a7f6743');                 │
00:01:04 verbose #1564 > > │             try {                                                            │
00:01:04 verbose #1565 > > │                 const {svg, bindFunctions} = await                           │
00:01:04 verbose #1566 > > │ mermaid.mermaidAPI.render(                                                   │
00:01:04 verbose #1567 > > │                     'mermaid_4d1c14f85aa3446cbba154b82a7f6743',              │
00:01:04 verbose #1568 > > │                     `graph TD                                                │
00:01:04 verbose #1569 > > │     zeta_rust("zeta() - Rust") --> num_traits("num-traits")                  │
00:01:04 verbose #1570 > > │     zeta_rust --> num_bigint("num-bigint")                                   │
00:01:04 verbose #1571 > > │     zeta_rust --> rust_decimal("rust_decimal for precision")                 │
00:01:04 verbose #1572 > > │     zeta_rust --> error_handling("Rust Error Handling")                      │
00:01:04 verbose #1573 > > │                                                                              │
00:01:04 verbose #1574 > > │     num_traits --> num_traits_usage("Use for common traits")                 │
00:01:04 verbose #1575 > > │     num_bigint --> bigint_operations("Arbitrary-precision arithmetic         │
00:01:04 verbose #1576 > > │ operations")                                                                 │
00:01:04 verbose #1577 > > │     rust_decimal --> decimal_operations("High-precision decimal operations") │
00:01:04 verbose #1578 > > │     error_handling --> result_type("Use Result<T, E> for error handling")    │
00:01:04 verbose #1579 > > │                                                                              │
00:01:04 verbose #1580 > > │     bigint_operations --> convert_rust("convert() - Rust")                   │
00:01:04 verbose #1581 > > │     bigint_operations --> normalize_rust("_normalize() - Rust")              │
00:01:04 verbose #1582 > > │                                                                              │
00:01:04 verbose #1583 > > │     convert_rust --> from_float_rust("from_float() - Rust")                  │
00:01:04 verbose #1584 > > │     from_float_rust --> from_man_exp_rust("from_man_exp() - Rust")           │
00:01:04 verbose #1585 > > │     from_man_exp_rust --> bitcount_rust("bitcount() - Rust")                 │
00:01:04 verbose #1586 > > │     bitcount_rust --> normalize_rust                                         │
00:01:04 verbose #1587 > > │     normalize_rust --> mpc_zeta_rust("mpc_zeta() - Rust")                    │
00:01:04 verbose #1588 > > │     mpc_zeta_rust --> mpf_zeta_rust("mpf_zeta() - Rust")                     │
00:01:04 verbose #1589 > > │     mpf_zeta_rust --> to_int_rust("to_int() - Rust")                         │
00:01:04 verbose #1590 > > │     to_int_rust --> mpf_zeta_int_rust("mpf_zeta_int() - Rust")               │
00:01:04 verbose #1591 > > │                                                                              │
00:01:04 verbose #1592 > > │     mpf_zeta_int_rust --> borwein_coefficients_rust("borwein_coefficients()  │
00:01:04 verbose #1593 > > │ - Rust")                                                                     │
00:01:04 verbose #1594 > > │     borwein_coefficients_rust --> from_man_exp_rust_2("from_man_exp() -      │
00:01:04 verbose #1595 > > │ Rust")                                                                       │
00:01:04 verbose #1596 > > │     from_man_exp_rust_2 --> bitcount_rust_2("bitcount() - Rust")             │
00:01:04 verbose #1597 > > │     bitcount_rust_2 --> normalize_rust_2("_normalize() - Rust")              │
00:01:04 verbose #1598 > > │     normalize_rust_2 --> make_mpc_rust("make_mpc() - Rust")                  │
00:01:04 verbose #1599 > > │                                                                              │
00:01:04 verbose #1600 > > │     mpf_zeta_int_rust --> mpf_bernoulli_rust("mpf_bernoulli() - Rust")       │
00:01:04 verbose #1601 > > │     mpf_bernoulli_rust --> bernoulli_size_rust("bernoulli_size() - Rust")    │
00:01:04 verbose #1602 > > │     bernoulli_size_rust --> mpf_rdiv_int_rust("mpf_rdiv_int() - Rust")       │
00:01:04 verbose #1603 > > │     mpf_rdiv_int_rust --> bitcount_rust_3("bitcount() - Rust")               │
00:01:04 verbose #1604 > > │     bitcount_rust_3 --> normalize1_rust("_normalize1() - Rust")              │
00:01:04 verbose #1605 > > │     normalize1_rust --> from_man_exp_rust_3("from_man_exp() - Rust")         │
00:01:04 verbose #1606 > > │     from_man_exp_rust_3 --> normalize_rust_3("_normalize() - Rust")          │
00:01:04 verbose #1607 > > │     normalize_rust_3 --> mpf_sub_rust("mpf_sub() - Rust")                    │
00:01:04 verbose #1608 > > │     mpf_sub_rust --> mpf_add_rust("mpf_add() - Rust")                        │
00:01:04 verbose #1609 > > │     mpf_add_rust --> mpf_neg_rust("mpf_neg() - Rust")                        │
00:01:04 verbose #1610 > > │     mpf_neg_rust --> normalize1_rust_2("_normalize1() - Rust")               │
00:01:04 verbose #1611 > > │     normalize1_rust_2 --> from_int_rust("from_int() - Rust")                 │
00:01:04 verbose #1612 > > │     from_int_rust --> mpf_div_rust("mpf_div() - Rust")                       │
00:01:04 verbose #1613 > > │     mpf_div_rust --> bitcount_rust_4("bitcount() - Rust")                    │
00:01:04 verbose #1614 > > │     bitcount_rust_4 --> normalize1_rust_3("_normalize1() - Rust")            │
00:01:04 verbose #1615 > > │                                                                              │
00:01:04 verbose #1616 > > │     style zeta_rust fill:#f9f,stroke:#333,stroke-width:4px                   │
00:01:04 verbose #1617 > > │     style num_traits fill:#bbf,stroke:#333,stroke-width:2px                  │
00:01:04 verbose #1618 > > │     style num_bigint fill:#bbf,stroke:#333,stroke-width:2px                  │
00:01:04 verbose #1619 > > │     style rust_decimal fill:#bbf,stroke:#333,stroke-width:2px                │
00:01:04 verbose #1620 > > │     style error_handling fill:#bbf,stroke:#333,stroke-width:2px              │
00:01:04 verbose #1621 > > │     style bigint_operations fill:#bfb,stroke:#333,stroke-width:2px           │
00:01:04 verbose #1622 > > │     style decimal_operations fill:#bfb,stroke:#333,stroke-width:2px          │
00:01:04 verbose #1623 > > │     style result_type fill:#bfb,stroke:#333,stroke-width:2px`);              │
00:01:04 verbose #1624 > > │                 renderTarget.innerHTML = svg;                                │
00:01:04 verbose #1625 > > │                 bindFunctions?.(renderTarget);                               │
00:01:04 verbose #1626 > > │             }                                                                │
00:01:04 verbose #1627 > > │             catch (error) {                                                  │
00:01:04 verbose #1628 > > │                 console.log(error);                                          │
00:01:04 verbose #1629 > > │             }                                                                │
00:01:04 verbose #1630 > > │ </script>                                                                    │
00:01:04 verbose #1631 > > │ </div>                                                                       │
00:01:04 verbose #1632 > > │                                                                              │
00:01:04 verbose #1633 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:04 verbose #1634 > >
00:01:04 verbose #1635 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:04 verbose #1636 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:04 verbose #1637 > > │ ## tests                                                                     │
00:01:04 verbose #1638 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:04 verbose #1639 > >
00:01:04 verbose #1640 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:04 verbose #1641 > > inl tests () =
00:01:04 verbose #1642 > >     rust.run_tests [[
00:01:04 verbose #1643 > >     "test_zeta_at_known_values_", fun _ =>
00:01:04 verbose #1644 > >         test_zeta_at_known_values_ false
00:01:04 verbose #1645 > >
00:01:04 verbose #1646 > >     "test_zeta_at_2_minus2", fun _ =>
00:01:04 verbose #1647 > >         test_zeta_at_2_minus2 false
00:01:04 verbose #1648 > >
00:01:04 verbose #1649 > >     "test_trivial_zero_at_negative_even___", fun _ =>
00:01:04 verbose #1650 > >         test_trivial_zero_at_negative_even___ false
00:01:04 verbose #1651 > >
00:01:04 verbose #1652 > >     "test_non_trivial_zero___", fun _ =>
00:01:04 verbose #1653 > >         test_non_trivial_zero___ false
00:01:04 verbose #1654 > >
00:01:04 verbose #1655 > >     "test_real_part_greater_than_one___", fun _ =>
00:01:04 verbose #1656 > >         test_real_part_greater_than_one___ false
00:01:04 verbose #1657 > >
00:01:04 verbose #1658 > >     "test_zeta_at_1___", fun _ =>
00:01:04 verbose #1659 > >         test_zeta_at_1___ false
00:01:04 verbose #1660 > >
00:01:04 verbose #1661 > >     "test_symmetry_across_real_axis___", fun _ =>
00:01:04 verbose #1662 > >         test_symmetry_across_real_axis___ false
00:01:04 verbose #1663 > >
00:01:04 verbose #1664 > >     "test_behavior_near_origin___", fun _ =>
00:01:04 verbose #1665 > >         test_behavior_near_origin___ false
00:01:04 verbose #1666 > >
00:01:04 verbose #1667 > >     "test_imaginary_axis", fun _ =>
00:01:04 verbose #1668 > >         test_imaginary_axis false
00:01:04 verbose #1669 > >
00:01:04 verbose #1670 > >     "test_critical_strip", fun _ =>
00:01:04 verbose #1671 > >         test_critical_strip false
00:01:04 verbose #1672 > >
00:01:04 verbose #1673 > >     "test_reflection_formula_for_specific_value", fun _ =>
00:01:04 verbose #1674 > >         test_reflection_formula_for_specific_value false
00:01:04 verbose #1675 > >
00:01:04 verbose #1676 > >     "test_euler_product_formula", fun _ =>
00:01:04 verbose #1677 > >         test_euler_product_formula false
00:01:04 verbose #1678 > >     ]]
00:01:04 verbose #1679 > 00:01:03   debug #58 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/085622d2ec7dd89e756d91f45d5b0a5ccc6c826856a2b83650943cc9502ee2dd/main.spi
00:01:04 verbose #1680 > >
00:01:04 verbose #1681 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:04 verbose #1682 > > ///!
00:01:04 verbose #1683 > >
00:01:04 verbose #1684 > > inl main (_args : array_base string) =
00:01:04 verbose #1685 > >     inl value = 1i32
00:01:04 verbose #1686 > >     console.write_line ($'$"value: {!value}"' : string)
00:01:04 verbose #1687 > >     0i32
00:01:04 verbose #1688 > >
00:01:04 verbose #1689 > > inl main () =
00:01:04 verbose #1690 > >     $'let tests () = !tests ()' : ()
00:01:04 verbose #1691 > >     $'let main args = !main args' : ()
00:01:05 verbose #1692 > 00:01:04   debug #59 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/05e1edf0bdadb0e310d81e2d7410fb933b9b6b7a6ff740b1d09dde0f7fdcc712/main.spi
00:01:05 verbose #1693 > 00:01:03 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 98779 }
00:01:05 verbose #1694 > 00:01:03   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/math/math.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/math/math.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:01:07 verbose #1695 > 00:01:06 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/math/math.dib.ipynb to html
00:01:07 verbose #1696 > 00:01:06 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:01:07 verbose #1697 > 00:01:06 verbose #7 !   validate(nb)
00:01:10 verbose #1698 > 00:01:08 verbose #8 ! [NbConvertApp] Writing 7298545 bytes to c:\home\git\polyglot\lib\math\math.dib.html
00:01:10 verbose #1699 > 00:01:08 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 636 }
00:01:10 verbose #1700 > 00:01:08   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 636 }
00:01:10 verbose #1701 > 00:01:08   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/math/math.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/math/math.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:01:11 verbose #1702 > 00:01:09 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:01:11 verbose #1703 > 00:01:09   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:01:12 verbose #1704 > 00:01:10   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 99474 }
00:01:12   debug #1705 runtime.execute_with_options_async / { exit_code = 0; output_length = 105311 }
00:01:12   debug #3 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path math.dib --retries 1
00:01:12 verbose #6 networking.wait_for_port_access / { port = 13805; retry = 0; timeout = Some 100; status = false }
00:01:12 verbose #7 async.run_with_timeout_async / { timeout = 100 }
00:00:00   debug #1 writeDibCode / output: Spi / path: math.dib
00:00:00   debug #2 parseDibCode / output: Spi / file: math.dib
00:00:00 verbose #1 async.run_with_timeout_async / { timeout = 180 }
00:00:00   debug #1 runtime.execute_with_options_async / { options = { command = dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port 13805 --default-int i32 --default-float f64; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = Some <fun:main@570-7>; stdin = None; trace = true; working_directory = Some "C:\home\git\polyglot" } }
00:00:01 verbose #2 > 00:00:00   debug #1 pwd: C:\home\git\polyglot
00:00:01 verbose #3 > 00:00:00   debug #2 dllPath: C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release
00:00:01 verbose #4 > 00:00:00   debug #3 targetDir: C:\home\git\polyglot\target/spiral_Eval
00:00:01 verbose #2 async.run_with_timeout_async / { timeout = 100 }
00:00:01 verbose #3 networking.wait_for_port_access / { port = 13805; retry = 0; timeout = Some 100; status = true }
00:00:01 verbose #4 async.run_with_timeout_async / { timeout = 100 }
00:00:01 verbose #5 > Starting the Spiral Server. It is bound to: http://localhost:13805
00:00:01 verbose #5 async.run_with_timeout_async / { timeout = 100 }
00:00:01 verbose #1 Supervisor.sendJson / port: 13805 / json: {"Ping":true} / result:
00:00:01 verbose #2 awaitCompiler / Ping / result: 'Some(null)' / port: 13805 / retry: 0
00:00:01 verbose #6 > Server bound to: http://localhost:13805
00:00:02 verbose #6 async.run_with_timeout_async / { timeout = 180 }
00:00:02   debug #3 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: math.spi
00:00:02   debug #4 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: math.spi
00:00:02   debug #5 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: math.spi
00:00:02 verbose #6 Supervisor.sendJson / port: 13805 / json: {"FileOpen":{"spiText":"/// # math\nopen testing\nopen rust_operators\n\n/// ## complex\nnominal com...027let main args = !main args\u0027 : ()\n","uri":"file:///c:/home/git/polyglot/lib/math/math.spi"}} / result:
00:00:02 verbose #7 Supervisor.sendJson / port: 13805 / json: {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/lib/math/math.spi"}} / result:
00:00:02 verbose #7 > 00:00:01   debug #4 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/lib/math/math.spi
00:00:02   debug #8 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: math.spi
00:00:02   debug #9 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: math.spi
00:00:03   debug #10 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: math.spi
00:00:03   debug #11 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: math.spi
00:00:03   debug #12 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: math.spi
00:00:03   debug #13 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: math.spi
00:00:04   debug #14 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: math.spi
00:00:04   debug #15 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: math.spi
00:00:04   debug #16 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: math.spi
00:00:04   debug #17 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: math.spi
00:00:05   debug #18 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: math.spi
00:00:05   debug #19 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: math.spi
00:00:05   debug #20 Supervisor.buildFile / AsyncSeq.scan / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("pyo3::Python")>]
#endif
type pyo3_Python = class end
#if FABLE_COMPILER
[<Fable.Core.Erase; Fa...ine
    v4 v1
    0
let v0 : (unit -> unit) = closure0()
let tests () = v0 ()
let v1 : ((string []) -> int32) = closure5()
let main args = v1 args
()
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: math.spi
00:00:05   debug #21 Supervisor.buildFile / takeWhileInclusive / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("pyo3::Python")>]
#endif
type pyo3_Python = class end
#if FABLE_COMPILER
[<Fable.Core.Erase; Fa...ine
    v4 v1
    0
let v0 : (unit -> unit) = closure0()
let tests () = v0 ()
let v1 : ((string []) -> int32) = closure5()
let main args = v1 args
()
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: math.spi
00:00:05   debug #22 FileSystem.watchWithFilter / Disposing watch stream / filter: FileName, LastWrite
00:00:05 verbose #7 networking.wait_for_port_access / { port = 13805; retry = 0; timeout = Some 100; status = false }
00:00:05 verbose #8 async.run_with_timeout_async / { timeout = 100 }
00:00:00   debug #1 persistCodeProject / packages: [Fable.Core] / modules: [lib/spiral/common.fsx; lib/spiral/sm.fsx; lib/spiral/crypto.fsx; ... ] / name: math / hash:  / code.Length: 133112
00:00:00   debug #2 buildProject / fullPath: C:\home\git\polyglot\target\Builder\math\math.fsproj
00:00:00   debug #1 runtime.execute_with_options_async / { options = { command = dotnet publish "C:\home\git\polyglot\target/Builder\math\math.fsproj" --configuration Release --output "C:\home\git\polyglot\lib\math\dist" --runtime linux-x64; cancellation_token = None; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = Some "C:\home\git\polyglot\target\Builder\math" } }
00:00:00 verbose #2 > MSBuild version 17.10.0-preview-24101-01+07fd5d51f for .NET
00:00:01 verbose #3 >   Determining projects to restore...
00:00:02 verbose #4 >   Restored C:\home\git\polyglot\target\Builder\math\math.fsproj (in 411 ms).
00:00:02 verbose #5 > C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.24101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(313,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\home\git\polyglot\target\Builder\math\math.fsproj]
00:00:14 verbose #6 >   math -> C:\home\git\polyglot\target\Builder\math\bin\Release\net9.0\linux-x64\math.dll
00:00:15 verbose #7 >   math -> C:\home\git\polyglot\lib\math\dist\
00:00:15   debug #8 runtime.execute_with_options_async / { exit_code = 0; output_length = 637 }
00:00:15   debug #9 runtime.execute_with_options_async / { options = { command = dotnet publish "C:\home\git\polyglot\target/Builder\math\math.fsproj" --configuration Release --output "C:\home\git\polyglot\lib\math\dist" --runtime win-x64; cancellation_token = None; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = Some "C:\home\git\polyglot\target\Builder\math" } }
00:00:15 verbose #10 > MSBuild version 17.10.0-preview-24101-01+07fd5d51f for .NET
00:00:16 verbose #11 >   Determining projects to restore...
00:00:17 verbose #12 >   Restored C:\home\git\polyglot\target\Builder\math\math.fsproj (in 382 ms).
00:00:17 verbose #13 > C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.24101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(313,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\home\git\polyglot\target\Builder\math\math.fsproj]
00:00:28 verbose #14 >   math -> C:\home\git\polyglot\target\Builder\math\bin\Release\net9.0\win-x64\math.dll
00:00:31 verbose #15 >   math -> C:\home\git\polyglot\lib\math\dist\
00:00:31   debug #16 runtime.execute_with_options_async / { exit_code = 0; output_length = 635 }
targetDir: C:\home\git\polyglot\target\Builder\math
Fable 4.19.3: F# to Rust compiler (status: alpha)

Thanks to the contributor! @worldbeater
Stand with Ukraine! https://standwithukraine.com.ua/

Parsing target\Builder\math\math.fsproj...
Retrieving project options from cache, in case of issues run `dotnet fable clean` or try `--noCache` option.
Project and references (14 source files) parsed in 203ms

Started Fable compilation...

Fable compilation finished in 7363ms

.\lib\spiral\async_.fsx(80,0): (80,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\threading.fsx(141,0): (141,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\crypto.fsx(1398,0): (1398,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\date_time.fsx(1056,0): (1056,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\common.fsx(1270,0): (1270,67) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\common.fsx(1277,0): (1277,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\sm.fsx(426,0): (426,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\platform.fsx(108,0): (108,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\networking.fsx(4875,0): (4875,67) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\networking.fsx(4884,0): (4884,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\trace.fsx(1140,0): (1140,67) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\trace.fsx(1143,0): (1143,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\runtime.fsx(5448,0): (5448,67) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\runtime.fsx(5459,0): (5459,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\file_system.fsx(11602,0): (11602,67) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\file_system.fsx(11641,0): (11641,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\target\Builder\math\math.fs(33,0): (35,3) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
   Compiling math v0.0.1 (C:\home\git\polyglot\lib\math)
    Finished `release` profile [optimized] target(s) in 20.15s
     Running unittests math.rs (C:\home\git\polyglot\workspace\target\release\deps\math-716c87ae2c2cdf95.exe)

running 12 tests
test module_b7a9935b::Math::test_behavior_near_origin___ ... ok
test module_b7a9935b::Math::test_real_part_greater_than_one___ ... ok
test module_b7a9935b::Math::test_zeta_at_1___ ... ok
test module_b7a9935b::Math::test_critical_strip ... ok
test module_b7a9935b::Math::test_reflection_formula_for_specific_value ... ok
test module_b7a9935b::Math::test_non_trivial_zero___ ... ok
test module_b7a9935b::Math::test_imaginary_axis ... ok
test module_b7a9935b::Math::test_zeta_at_known_values_ ... ok
test module_b7a9935b::Math::test_symmetry_across_real_axis___ ... ok
test module_b7a9935b::Math::test_zeta_at_2_minus2 ... ok
test module_b7a9935b::Math::test_euler_product_formula ... ok
test module_b7a9935b::Math::test_trivial_zero_at_negative_even___ ... ok

test result: ok. 12 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.45s

In [ ]:
{ pwsh ../apps/plot/build.ps1 } | Invoke-Block
   Compiling plot v0.0.1 (C:\home\git\polyglot\apps\plot)
    Finished `release` profile [optimized] target(s) in 18.75s
In [ ]:
{ pwsh ../apps/perf/build.ps1 } | Invoke-Block
00:00:00 verbose #1 async.run_with_timeout_async / { timeout = 180 }
00:00:00   debug #1 runtime.execute_with_options_async / { options = { command = dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port 13805 --default-int i32 --default-float f64; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = Some <fun:main@570-7>; stdin = None; trace = true; working_directory = Some "C:\home\git\polyglot" } }
00:00:01 verbose #2 > 00:00:00   debug #1 pwd: C:\home\git\polyglot
00:00:01 verbose #3 > 00:00:00   debug #2 dllPath: C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release
00:00:01 verbose #4 > 00:00:00   debug #3 targetDir: C:\home\git\polyglot\target/spiral_Eval
00:00:01 verbose #2 async.run_with_timeout_async / { timeout = 100 }
00:00:01 verbose #3 networking.wait_for_port_access / { port = 13805; retry = 0; timeout = Some 100; status = true }
00:00:01 verbose #4 async.run_with_timeout_async / { timeout = 100 }
00:00:01 verbose #5 > Starting the Spiral Server. It is bound to: http://localhost:13805
00:00:01 verbose #5 async.run_with_timeout_async / { timeout = 100 }
00:00:01 verbose #1 Supervisor.sendJson / port: 13805 / json: {"Ping":true} / result:
00:00:01 verbose #2 awaitCompiler / Ping / result: 'Some(null)' / port: 13805 / retry: 0
00:00:01 verbose #6 > Server bound to: http://localhost:13805
00:00:01   debug #7 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path Perf.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:00:01 verbose #8 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "Perf.dib", "--retries", "3"])) }
00:00:01 verbose #9 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/apps/perf/Perf.dib", "--output-path", "c:/home/git/polyglot/apps/perf/Perf.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/apps/perf/Perf.dib" --output-path "c:/home/git/polyglot/apps/perf/Perf.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:00:04 verbose #10 > >
00:00:04 verbose #11 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:04 verbose #12 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:04 verbose #13 > > │ # Perf (Polyglot)                                                            │
00:00:04 verbose #14 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:21 verbose #15 > >
00:00:21 verbose #16 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:21 verbose #17 > > //// test
00:00:21 verbose #18 > >
00:00:21 verbose #19 > > open testing
00:00:21 verbose #20 > > open benchmark
00:00:22 verbose #21 > 00:00:21   debug #4 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0fe24d3dc606a5d07b53d5ea3fede53fab8fac286f91bf9a11131630555d4050/main.spi
00:00:25 verbose #22 > >
00:00:25 verbose #23 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:25 verbose #24 > > #if !INTERACTIVE
00:00:25 verbose #25 > > open Lib
00:00:25 verbose #26 > > #endif
00:00:25 verbose #27 > >
00:00:25 verbose #28 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:25 verbose #29 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:25 verbose #30 > > │ ## TestCaseResult                                                            │
00:00:25 verbose #31 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:25 verbose #32 > >
00:00:25 verbose #33 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:25 verbose #34 > > type TestCaseResult =
00:00:25 verbose #35 > >     {
00:00:25 verbose #36 > >         Input: string
00:00:25 verbose #37 > >         Expected: string
00:00:25 verbose #38 > >         Result: string
00:00:25 verbose #39 > >         TimeList: int64 list
00:00:25 verbose #40 > >     }
00:00:25 verbose #41 > >
00:00:25 verbose #42 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:25 verbose #43 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:25 verbose #44 > > │ ## run                                                                       │
00:00:25 verbose #45 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:25 verbose #46 > >
00:00:25 verbose #47 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:25 verbose #48 > > let run count (solutions: (string * ('TInput -> 'TExpected)) list) (input,
00:00:25 verbose #49 > > expected) =
00:00:25 verbose #50 > >     let inputStr =
00:00:25 verbose #51 > >         match box input with
00:00:25 verbose #52 > >         | :? System.Collections.ICollection as input ->
00:00:25 verbose #53 > >             System.Linq.Enumerable.Cast<obj> input
00:00:25 verbose #54 > >             |> Seq.map string
00:00:25 verbose #55 > >             |> SpiralSm.concat ","
00:00:25 verbose #56 > >         | _ -> input.ToString ()
00:00:25 verbose #57 > >
00:00:25 verbose #58 > >     printfn ""
00:00:25 verbose #59 > >     printfn $"Solution: {inputStr}  "
00:00:25 verbose #60 > >
00:00:25 verbose #61 > >     let performanceInvoke (fn: unit -> 'T) =
00:00:25 verbose #62 > >         GC.Collect ()
00:00:25 verbose #63 > >         let stopwatch = System.Diagnostics.Stopwatch ()
00:00:25 verbose #64 > >         stopwatch.Start ()
00:00:25 verbose #65 > >         let time1 = stopwatch.ElapsedMilliseconds
00:00:25 verbose #66 > >
00:00:25 verbose #67 > >         let result =
00:00:25 verbose #68 > >             [[| 0 .. count |]]
00:00:25 verbose #69 > >             |> Array.Parallel.map (fun _ ->
00:00:25 verbose #70 > >                 fn ()
00:00:25 verbose #71 > >             )
00:00:25 verbose #72 > >             |> Array.last
00:00:25 verbose #73 > >
00:00:25 verbose #74 > >         let time2 = stopwatch.ElapsedMilliseconds - time1
00:00:25 verbose #75 > >
00:00:25 verbose #76 > >         result, time2
00:00:25 verbose #77 > >
00:00:25 verbose #78 > >     let resultsWithTime =
00:00:25 verbose #79 > >         solutions
00:00:25 verbose #80 > >         |> List.mapi (fun i (testName, solution) ->
00:00:25 verbose #81 > >             let result, time = performanceInvoke (fun () -> solution input)
00:00:25 verbose #82 > >             printfn $"Test case %d{i + 1}. %s{testName}. Time: %A{time}  "
00:00:25 verbose #83 > >             result, time
00:00:25 verbose #84 > >         )
00:00:25 verbose #85 > >
00:00:25 verbose #86 > >
00:00:25 verbose #87 > >     match resultsWithTime |> List.map fst with
00:00:25 verbose #88 > >     | ([[]] | [[ _ ]]) -> ()
00:00:25 verbose #89 > >     | (head :: tail) when tail |> List.forall ((=) head) -> ()
00:00:25 verbose #90 > >     | results -> failwithf $"Challenge error: %A{results}"
00:00:25 verbose #91 > >
00:00:25 verbose #92 > >     {
00:00:25 verbose #93 > >         Input = inputStr
00:00:25 verbose #94 > >         Expected = expected.ToString ()
00:00:25 verbose #95 > >         Result = resultsWithTime |> Seq.map fst |> Seq.head |> _.ToString()
00:00:25 verbose #96 > >         TimeList = resultsWithTime |> List.map snd
00:00:25 verbose #97 > >     }
00:00:25 verbose #98 > >
00:00:25 verbose #99 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:25 verbose #100 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:25 verbose #101 > > │ ## runAll                                                                    │
00:00:25 verbose #102 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:25 verbose #103 > >
00:00:25 verbose #104 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:25 verbose #105 > > let runAll testName count (solutions: (string * ('TInput -> 'TExpected)) list)
00:00:25 verbose #106 > > testCases =
00:00:25 verbose #107 > >     printfn ""
00:00:25 verbose #108 > >     printfn ""
00:00:25 verbose #109 > >     printfn $"Test: {testName}"
00:00:25 verbose #110 > >     testCases
00:00:25 verbose #111 > >     |> Seq.map (run count solutions)
00:00:25 verbose #112 > >     |> Seq.toList
00:00:25 verbose #113 > >
00:00:25 verbose #114 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:25 verbose #115 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:25 verbose #116 > > │ ## sortResultList                                                            │
00:00:25 verbose #117 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:25 verbose #118 > >
00:00:25 verbose #119 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:25 verbose #120 > > let sortResultList resultList =
00:00:25 verbose #121 > >     let table =
00:00:25 verbose #122 > >         let rows =
00:00:25 verbose #123 > >             resultList
00:00:25 verbose #124 > >             |> List.map (fun result ->
00:00:25 verbose #125 > >                 let best =
00:00:25 verbose #126 > >                     result.TimeList
00:00:25 verbose #127 > >                     |> List.mapi (fun i time ->
00:00:25 verbose #128 > >                         i + 1, time
00:00:25 verbose #129 > >                     )
00:00:25 verbose #130 > >                     |> List.sortBy snd
00:00:25 verbose #131 > >                     |> List.head
00:00:25 verbose #132 > >                     |> _.ToString()
00:00:25 verbose #133 > >                 let row =
00:00:25 verbose #134 > >                     [[
00:00:25 verbose #135 > >                         result.Input
00:00:25 verbose #136 > >                         result.Expected
00:00:25 verbose #137 > >                         result.Result
00:00:25 verbose #138 > >                         best
00:00:25 verbose #139 > >                     ]]
00:00:25 verbose #140 > >                 let color =
00:00:25 verbose #141 > >                     match result.Expected = result.Result with
00:00:25 verbose #142 > >                     | true -> Some ConsoleColor.DarkGreen
00:00:25 verbose #143 > >                     | false -> Some ConsoleColor.DarkRed
00:00:25 verbose #144 > >                 row, color
00:00:25 verbose #145 > >             )
00:00:25 verbose #146 > >         let header =
00:00:25 verbose #147 > >             [[
00:00:25 verbose #148 > >                 [[
00:00:25 verbose #149 > >                     "Input"
00:00:25 verbose #150 > >                     "Expected"
00:00:25 verbose #151 > >                     "Result"
00:00:25 verbose #152 > >                     "Best"
00:00:25 verbose #153 > >                 ]]
00:00:25 verbose #154 > >                 [[
00:00:25 verbose #155 > >                     "---"
00:00:25 verbose #156 > >                     "---"
00:00:25 verbose #157 > >                     "---"
00:00:25 verbose #158 > >                     "---"
00:00:25 verbose #159 > >                 ]]
00:00:25 verbose #160 > >             ]]
00:00:25 verbose #161 > >             |> List.map (fun row -> row, None)
00:00:25 verbose #162 > >         header @ rows
00:00:25 verbose #163 > >
00:00:25 verbose #164 > >     let formattedTable =
00:00:25 verbose #165 > >         let lengthMap =
00:00:25 verbose #166 > >             table
00:00:25 verbose #167 > >             |> List.map fst
00:00:25 verbose #168 > >             |> List.transpose
00:00:25 verbose #169 > >             |> List.map (fun column ->
00:00:25 verbose #170 > >                 column
00:00:25 verbose #171 > >                 |> List.map String.length
00:00:25 verbose #172 > >                 |> List.sortDescending
00:00:25 verbose #173 > >                 |> List.tryHead
00:00:25 verbose #174 > >                 |> Option.defaultValue 0
00:00:25 verbose #175 > >             )
00:00:25 verbose #176 > >             |> List.indexed
00:00:25 verbose #177 > >             |> Map.ofList
00:00:25 verbose #178 > >         table
00:00:25 verbose #179 > >         |> List.map (fun (row, color) ->
00:00:25 verbose #180 > >             let newRow =
00:00:25 verbose #181 > >                 row
00:00:25 verbose #182 > >                 |> List.mapi (fun i cell ->
00:00:25 verbose #183 > >                     cell.PadRight lengthMap.[[i]]
00:00:25 verbose #184 > >                 )
00:00:25 verbose #185 > >             newRow, color
00:00:25 verbose #186 > >         )
00:00:25 verbose #187 > >
00:00:25 verbose #188 > >     printfn ""
00:00:25 verbose #189 > >     formattedTable
00:00:25 verbose #190 > >     |> List.iter (fun (row, color) ->
00:00:25 verbose #191 > >         match color with
00:00:25 verbose #192 > >         | Some color -> Console.ForegroundColor <- color
00:00:25 verbose #193 > >         | None -> Console.ResetColor ()
00:00:25 verbose #194 > >
00:00:25 verbose #195 > >         printfn "%s" (String.Join ("\t| ", row))
00:00:25 verbose #196 > >
00:00:25 verbose #197 > >         Console.ResetColor ()
00:00:25 verbose #198 > >     )
00:00:25 verbose #199 > >
00:00:25 verbose #200 > >     let averages =
00:00:25 verbose #201 > >         resultList
00:00:25 verbose #202 > >         |> List.map (fun result -> result.TimeList |> List.map float)
00:00:25 verbose #203 > >         |> List.transpose
00:00:25 verbose #204 > >         |> List.map List.average
00:00:25 verbose #205 > >         |> List.map int64
00:00:25 verbose #206 > >         |> List.indexed
00:00:25 verbose #207 > >
00:00:25 verbose #208 > >     printfn ""
00:00:25 verbose #209 > >     printfn "Average Ranking  "
00:00:25 verbose #210 > >     averages
00:00:25 verbose #211 > >     |> List.sortBy snd
00:00:25 verbose #212 > >     |> List.iter (fun (i, avg) ->
00:00:25 verbose #213 > >         printfn $"Test case %d{i + 1}. Average Time: %A{avg}  "
00:00:25 verbose #214 > >     )
00:00:25 verbose #215 > >
00:00:25 verbose #216 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:25 verbose #217 > > let mutable _count =
00:00:25 verbose #218 > >     if ("CI" |> System.Environment.GetEnvironmentVariable |> fun x -> $"%A{x}")
00:00:25 verbose #219 > > <> "<null>"
00:00:25 verbose #220 > >     then 2000000
00:00:25 verbose #221 > >     else 2000
00:00:25 verbose #222 > >
00:00:25 verbose #223 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:25 verbose #224 > > inl is_fast () =
00:00:25 verbose #225 > >     false
00:00:25 verbose #226 > 00:00:24   debug #5 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/af72357aa5b9c8336ba97493cc77aac4861a203d5a854c174807f06c5afe1c3d/main.spi
00:00:25 verbose #227 > >
00:00:25 verbose #228 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:25 verbose #229 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:25 verbose #230 > > │ ## empty3Tests                                                               │
00:00:25 verbose #231 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:25 verbose #232 > >
00:00:25 verbose #233 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:25 verbose #234 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:25 verbose #235 > > │ Test: Empty3                                                                 │
00:00:25 verbose #236 > > │                                                                              │
00:00:25 verbose #237 > > │ Solution: (a, a)                                                             │
00:00:25 verbose #238 > > │ Test case 1. A. Time: 91L                                                    │
00:00:25 verbose #239 > > │                                                                              │
00:00:25 verbose #240 > > │ Solution: (a, a)                                                             │
00:00:25 verbose #241 > > │ Test case 1. A. Time: 56L                                                    │
00:00:25 verbose #242 > > │                                                                              │
00:00:25 verbose #243 > > │ Input  | Expected      | Result | Best                                       │
00:00:25 verbose #244 > > │ ---    | ---           | ---    | ---                                        │
00:00:25 verbose #245 > > │ (a, a) | a             | a      | (1, 91)                                    │
00:00:25 verbose #246 > > │ (a, a) | a             | a      | (1, 56)                                    │
00:00:25 verbose #247 > > │                                                                              │
00:00:25 verbose #248 > > │ Averages                                                                     │
00:00:25 verbose #249 > > │ Test case 1. Average Time: 73L                                               │
00:00:25 verbose #250 > > │                                                                              │
00:00:25 verbose #251 > > │ Ranking                                                                      │
00:00:25 verbose #252 > > │ Test case 1. Average Time: 73L                                               │
00:00:25 verbose #253 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:25 verbose #254 > >
00:00:25 verbose #255 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:25 verbose #256 > > //// test
00:00:25 verbose #257 > >
00:00:25 verbose #258 > > let solutions = [[
00:00:25 verbose #259 > >     "A",
00:00:25 verbose #260 > >     fun (a, _b) ->
00:00:25 verbose #261 > >         a
00:00:25 verbose #262 > > ]]
00:00:25 verbose #263 > > let testCases = seq {
00:00:25 verbose #264 > >     ("a", "a"), "a"
00:00:25 verbose #265 > >     ("a", "a"), "a"
00:00:25 verbose #266 > > }
00:00:25 verbose #267 > > let rec empty3Tests = runAll (nameof empty3Tests) _count solutions testCases
00:00:25 verbose #268 > > empty3Tests
00:00:25 verbose #269 > > |> sortResultList
00:00:26 verbose #270 > >
00:00:26 verbose #271 > > ╭─[ 522.91ms - stdout ]────────────────────────────────────────────────────────╮
00:00:26 verbose #272 > > │                                                                              │
00:00:26 verbose #273 > > │                                                                              │
00:00:26 verbose #274 > > │ Test: empty3Tests                                                            │
00:00:26 verbose #275 > > │                                                                              │
00:00:26 verbose #276 > > │ Solution: (a, a)                                                             │
00:00:26 verbose #277 > > │ Test case 1. A. Time: 1L                                                     │
00:00:26 verbose #278 > > │                                                                              │
00:00:26 verbose #279 > > │ Solution: (a, a)                                                             │
00:00:26 verbose #280 > > │ Test case 1. A. Time: 0L                                                     │
00:00:26 verbose #281 > > │                                                                              │
00:00:26 verbose #282 > > │ Input 	| Expected	| Result	| Best                                                  │
00:00:26 verbose #283 > > │ ---   	| ---     	| ---   	| ---                                                   │
00:00:26 verbose #284 > > │ (a, a)	| a       	| a     	| (1, 1)                                                │
00:00:26 verbose #285 > > │ (a, a)	| a       	| a     	| (1, 0)                                                │
00:00:26 verbose #286 > > │                                                                              │
00:00:26 verbose #287 > > │ Average Ranking                                                              │
00:00:26 verbose #288 > > │ Test case 1. Average Time: 0L                                                │
00:00:26 verbose #289 > > │                                                                              │
00:00:26 verbose #290 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:26 verbose #291 > >
00:00:26 verbose #292 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:26 verbose #293 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:26 verbose #294 > > │ ## empty2Tests                                                               │
00:00:26 verbose #295 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:26 verbose #296 > >
00:00:26 verbose #297 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:26 verbose #298 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:26 verbose #299 > > │ Test: Empty2                                                                 │
00:00:26 verbose #300 > > │                                                                              │
00:00:26 verbose #301 > > │ Solution: (a, a)                                                             │
00:00:26 verbose #302 > > │ Test case 1. A. Time: 59L                                                    │
00:00:26 verbose #303 > > │                                                                              │
00:00:26 verbose #304 > > │ Solution: (a, a)                                                             │
00:00:26 verbose #305 > > │ Test case 1. A. Time: 53L                                                    │
00:00:26 verbose #306 > > │                                                                              │
00:00:26 verbose #307 > > │ Input   | Expected        | Result  | Best                                   │
00:00:26 verbose #308 > > │ ---     | ---             | ---     | ---                                    │
00:00:26 verbose #309 > > │ (a, a)  | a               | a       | (1, 59)                                │
00:00:26 verbose #310 > > │ (a, a)  | a               | a       | (1, 53)                                │
00:00:26 verbose #311 > > │                                                                              │
00:00:26 verbose #312 > > │ Averages                                                                     │
00:00:26 verbose #313 > > │ Test case 1. Average Time: 56L                                               │
00:00:26 verbose #314 > > │                                                                              │
00:00:26 verbose #315 > > │ Ranking                                                                      │
00:00:26 verbose #316 > > │ Test case 1. Average Time: 56L                                               │
00:00:26 verbose #317 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:26 verbose #318 > >
00:00:26 verbose #319 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:26 verbose #320 > > //// test
00:00:26 verbose #321 > >
00:00:26 verbose #322 > > let solutions = [[
00:00:26 verbose #323 > >     "A",
00:00:26 verbose #324 > >     fun (a, _b) ->
00:00:26 verbose #325 > >         a
00:00:26 verbose #326 > > ]]
00:00:26 verbose #327 > > let testCases = seq {
00:00:26 verbose #328 > >     ("a", "a"), "a"
00:00:26 verbose #329 > >     ("a", "a"), "a"
00:00:26 verbose #330 > > }
00:00:26 verbose #331 > > let rec empty2Tests = runAll (nameof empty2Tests) _count solutions testCases
00:00:26 verbose #332 > > empty2Tests
00:00:26 verbose #333 > > |> sortResultList
00:00:26 verbose #334 > >
00:00:26 verbose #335 > > ╭─[ 470.48ms - stdout ]────────────────────────────────────────────────────────╮
00:00:26 verbose #336 > > │                                                                              │
00:00:26 verbose #337 > > │                                                                              │
00:00:26 verbose #338 > > │ Test: empty2Tests                                                            │
00:00:26 verbose #339 > > │                                                                              │
00:00:26 verbose #340 > > │ Solution: (a, a)                                                             │
00:00:26 verbose #341 > > │ Test case 1. A. Time: 0L                                                     │
00:00:26 verbose #342 > > │                                                                              │
00:00:26 verbose #343 > > │ Solution: (a, a)                                                             │
00:00:26 verbose #344 > > │ Test case 1. A. Time: 1L                                                     │
00:00:26 verbose #345 > > │                                                                              │
00:00:26 verbose #346 > > │ Input 	| Expected	| Result	| Best                                                  │
00:00:26 verbose #347 > > │ ---   	| ---     	| ---   	| ---                                                   │
00:00:26 verbose #348 > > │ (a, a)	| a       	| a     	| (1, 0)                                                │
00:00:26 verbose #349 > > │ (a, a)	| a       	| a     	| (1, 1)                                                │
00:00:26 verbose #350 > > │                                                                              │
00:00:26 verbose #351 > > │ Average Ranking                                                              │
00:00:26 verbose #352 > > │ Test case 1. Average Time: 0L                                                │
00:00:26 verbose #353 > > │                                                                              │
00:00:26 verbose #354 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:26 verbose #355 > >
00:00:26 verbose #356 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:26 verbose #357 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:26 verbose #358 > > │ ## emptyTests                                                                │
00:00:26 verbose #359 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:26 verbose #360 > >
00:00:26 verbose #361 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:26 verbose #362 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:26 verbose #363 > > │ Test: Empty                                                                  │
00:00:26 verbose #364 > > │                                                                              │
00:00:26 verbose #365 > > │ Solution: 0                                                                  │
00:00:26 verbose #366 > > │ Test case 1. A. Time: 61L                                                    │
00:00:26 verbose #367 > > │                                                                              │
00:00:26 verbose #368 > > │ Solution: 2                                                                  │
00:00:26 verbose #369 > > │ Test case 1. A. Time: 62L                                                    │
00:00:26 verbose #370 > > │                                                                              │
00:00:26 verbose #371 > > │ Solution: 5                                                                  │
00:00:26 verbose #372 > > │ Test case 1. A. Time: 70L                                                    │
00:00:26 verbose #373 > > │                                                                              │
00:00:26 verbose #374 > > │ Input   | Expected        | Result  | Best                                   │
00:00:26 verbose #375 > > │ ---     | ---             | ---     | ---                                    │
00:00:26 verbose #376 > > │ 0       | 0               | 0       | (1, 61)                                │
00:00:26 verbose #377 > > │ 2       | 2               | 2       | (1, 62)                                │
00:00:26 verbose #378 > > │ 5       | 5               | 5       | (1, 70)                                │
00:00:26 verbose #379 > > │                                                                              │
00:00:26 verbose #380 > > │ Averages                                                                     │
00:00:26 verbose #381 > > │ Test case 1. Average Time: 64L                                               │
00:00:26 verbose #382 > > │                                                                              │
00:00:26 verbose #383 > > │ Ranking                                                                      │
00:00:26 verbose #384 > > │ Test case 1. Average Time: 64L                                               │
00:00:26 verbose #385 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:26 verbose #386 > >
00:00:26 verbose #387 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:26 verbose #388 > > //// test
00:00:26 verbose #389 > >
00:00:26 verbose #390 > > let solutions = [[
00:00:26 verbose #391 > >     "A",
00:00:26 verbose #392 > >     fun n ->
00:00:26 verbose #393 > >         n + 0
00:00:26 verbose #394 > > ]]
00:00:26 verbose #395 > > let testCases = seq {
00:00:26 verbose #396 > >     0, 0
00:00:26 verbose #397 > >     2, 2
00:00:26 verbose #398 > >     5, 5
00:00:26 verbose #399 > > }
00:00:26 verbose #400 > > let rec emptyTests = runAll (nameof emptyTests) _count solutions testCases
00:00:26 verbose #401 > > emptyTests
00:00:26 verbose #402 > > |> sortResultList
00:00:27 verbose #403 > >
00:00:27 verbose #404 > > ╭─[ 710.64ms - stdout ]────────────────────────────────────────────────────────╮
00:00:27 verbose #405 > > │                                                                              │
00:00:27 verbose #406 > > │                                                                              │
00:00:27 verbose #407 > > │ Test: emptyTests                                                             │
00:00:27 verbose #408 > > │                                                                              │
00:00:27 verbose #409 > > │ Solution: 0                                                                  │
00:00:27 verbose #410 > > │ Test case 1. A. Time: 2L                                                     │
00:00:27 verbose #411 > > │                                                                              │
00:00:27 verbose #412 > > │ Solution: 2                                                                  │
00:00:27 verbose #413 > > │ Test case 1. A. Time: 0L                                                     │
00:00:27 verbose #414 > > │                                                                              │
00:00:27 verbose #415 > > │ Solution: 5                                                                  │
00:00:27 verbose #416 > > │ Test case 1. A. Time: 0L                                                     │
00:00:27 verbose #417 > > │                                                                              │
00:00:27 verbose #418 > > │ Input	| Expected	| Result	| Best                                                   │
00:00:27 verbose #419 > > │ ---  	| ---     	| ---   	| ---                                                    │
00:00:27 verbose #420 > > │ 0    	| 0       	| 0     	| (1, 2)                                                 │
00:00:27 verbose #421 > > │ 2    	| 2       	| 2     	| (1, 0)                                                 │
00:00:27 verbose #422 > > │ 5    	| 5       	| 5     	| (1, 0)                                                 │
00:00:27 verbose #423 > > │                                                                              │
00:00:27 verbose #424 > > │ Average Ranking                                                              │
00:00:27 verbose #425 > > │ Test case 1. Average Time: 0L                                                │
00:00:27 verbose #426 > > │                                                                              │
00:00:27 verbose #427 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:27 verbose #428 > >
00:00:27 verbose #429 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:27 verbose #430 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:27 verbose #431 > > │ ## uniqueLettersTests                                                        │
00:00:27 verbose #432 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:27 verbose #433 > >
00:00:27 verbose #434 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:27 verbose #435 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:27 verbose #436 > > │ Test: UniqueLetters                                                          │
00:00:27 verbose #437 > > │                                                                              │
00:00:27 verbose #438 > > │ Solution: abc                                                                │
00:00:27 verbose #439 > > │ Test case 1. A. Time: 1512L                                                  │
00:00:27 verbose #440 > > │ Test case 2. B. Time: 1947L                                                  │
00:00:27 verbose #441 > > │ Test case 3. C. Time: 2023L                                                  │
00:00:27 verbose #442 > > │ Test case 4. D. Time: 1358L                                                  │
00:00:27 verbose #443 > > │ Test case 5. E. Time: 1321L                                                  │
00:00:27 verbose #444 > > │ Test case 6. F. Time: 1346L                                                  │
00:00:27 verbose #445 > > │ Test case 7. G. Time: 1304L                                                  │
00:00:27 verbose #446 > > │ Test case 8. H. Time: 1383L                                                  │
00:00:27 verbose #447 > > │ Test case 9. I. Time: 1495L                                                  │
00:00:27 verbose #448 > > │ Test case 10. J. Time: 1245L                                                 │
00:00:27 verbose #449 > > │ Test case 11. K. Time: 1219L                                                 │
00:00:27 verbose #450 > > │                                                                              │
00:00:27 verbose #451 > > │ Solution: accabb                                                             │
00:00:27 verbose #452 > > │ Test case 1. A. Time: 1648L                                                  │
00:00:27 verbose #453 > > │ Test case 2. B. Time: 2061L                                                  │
00:00:27 verbose #454 > > │ Test case 3. C. Time: 2413L                                                  │
00:00:27 verbose #455 > > │ Test case 4. D. Time: 1561L                                                  │
00:00:27 verbose #456 > > │ Test case 5. E. Time: 1593L                                                  │
00:00:27 verbose #457 > > │ Test case 6. F. Time: 1518L                                                  │
00:00:27 verbose #458 > > │ Test case 7. G. Time: 1415L                                                  │
00:00:27 verbose #459 > > │ Test case 8. H. Time: 1510L                                                  │
00:00:27 verbose #460 > > │ Test case 9. I. Time: 1445L                                                  │
00:00:27 verbose #461 > > │ Test case 10. J. Time: 1636L                                                 │
00:00:27 verbose #462 > > │ Test case 11. K. Time: 1317L                                                 │
00:00:27 verbose #463 > > │                                                                              │
00:00:27 verbose #464 > > │ Solution: pprrqqpp                                                           │
00:00:27 verbose #465 > > │ Test case 1. A. Time: 2255L                                                  │
00:00:27 verbose #466 > > │ Test case 2. B. Time: 2408L                                                  │
00:00:27 verbose #467 > > │ Test case 3. C. Time: 2393L                                                  │
00:00:27 verbose #468 > > │ Test case 4. D. Time: 1675L                                                  │
00:00:27 verbose #469 > > │ Test case 5. E. Time: 1911L                                                  │
00:00:27 verbose #470 > > │ Test case 6. F. Time: 2126L                                                  │
00:00:27 verbose #471 > > │ Test case 7. G. Time: 1504L                                                  │
00:00:27 verbose #472 > > │ Test case 8. H. Time: 1715L                                                  │
00:00:27 verbose #473 > > │ Test case 9. I. Time: 1537L                                                  │
00:00:27 verbose #474 > > │ Test case 10. J. Time: 1522L                                                 │
00:00:27 verbose #475 > > │ Test case 11. K. Time: 1322L                                                 │
00:00:27 verbose #476 > > │                                                                              │
00:00:27 verbose #477 > > │ Solution:                                                                    │
00:00:27 verbose #478 > > │ aaaaaaaaaaaaaaccccccabbbbbbbaaacccbbbaaccccccccccacbbbbbbbbbbbbbcccccccbbbbb │
00:00:27 verbose #479 > > │ bbb                                                                          │
00:00:27 verbose #480 > > │ Test case 1. A. Time: 13073L                                                 │
00:00:27 verbose #481 > > │ Test case 2. B. Time: 11519L                                                 │
00:00:27 verbose #482 > > │ Test case 3. C. Time: 8373L                                                  │
00:00:27 verbose #483 > > │ Test case 4. D. Time: 5860L                                                  │
00:00:27 verbose #484 > > │ Test case 5. E. Time: 6490L                                                  │
00:00:27 verbose #485 > > │ Test case 6. F. Time: 6325L                                                  │
00:00:27 verbose #486 > > │ Test case 7. G. Time: 5799L                                                  │
00:00:27 verbose #487 > > │ Test case 8. H. Time: 7099L                                                  │
00:00:27 verbose #488 > > │ Test case 9. I. Time: 6133L                                                  │
00:00:27 verbose #489 > > │ Test case 10. J. Time: 5993L                                                 │
00:00:27 verbose #490 > > │ Test case 11. K. Time: 2040L                                                 │
00:00:27 verbose #491 > > │                                                                              │
00:00:27 verbose #492 > > │ Input                                                                        │
00:00:27 verbose #493 > > │ | Expected        | Result  | Best                                           │
00:00:27 verbose #494 > > │ ---                                                                          │
00:00:27 verbose #495 > > │                                                                              │
00:00:27 verbose #496 > > │ | ---             | ---     | ---                                            │
00:00:27 verbose #497 > > │ abc                                                                          │
00:00:27 verbose #498 > > │                                                                              │
00:00:27 verbose #499 > > │ | abc             | abc     | (11, 1219)                                     │
00:00:27 verbose #500 > > │ accabb                                                                       │
00:00:27 verbose #501 > > │ | acb             | acb     | (11, 1317)                                     │
00:00:27 verbose #502 > > │ pprrqqpp                                                                     │
00:00:27 verbose #503 > > │ | prq             | prq     | (11, 1322)                                     │
00:00:27 verbose #504 > > │ aaaaaaaaaaaaaaccccccabbbbbbbaaacccbbbaaccccccccccacbbbbbbbbbbbbbcccccccbbbbb │
00:00:27 verbose #505 > > │ bbb | acb             | acb     | (11, 2040)                                 │
00:00:27 verbose #506 > > │                                                                              │
00:00:27 verbose #507 > > │ Averages                                                                     │
00:00:27 verbose #508 > > │ Test case 1. Average Time: 4622L                                             │
00:00:27 verbose #509 > > │ Test case 2. Average Time: 4483L                                             │
00:00:27 verbose #510 > > │ Test case 3. Average Time: 3800L                                             │
00:00:27 verbose #511 > > │ Test case 4. Average Time: 2613L                                             │
00:00:27 verbose #512 > > │ Test case 5. Average Time: 2828L                                             │
00:00:27 verbose #513 > > │ Test case 6. Average Time: 2828L                                             │
00:00:27 verbose #514 > > │ Test case 7. Average Time: 2505L                                             │
00:00:27 verbose #515 > > │ Test case 8. Average Time: 2926L                                             │
00:00:27 verbose #516 > > │ Test case 9. Average Time: 2652L                                             │
00:00:27 verbose #517 > > │ Test case 10. Average Time: 2599L                                            │
00:00:27 verbose #518 > > │ Test case 11. Average Time: 1474L                                            │
00:00:27 verbose #519 > > │                                                                              │
00:00:27 verbose #520 > > │ Ranking                                                                      │
00:00:27 verbose #521 > > │ Test case 1. Average Time: 4622L                                             │
00:00:27 verbose #522 > > │ Test case 2. Average Time: 4483L                                             │
00:00:27 verbose #523 > > │ Test case 3. Average Time: 3800L                                             │
00:00:27 verbose #524 > > │ Test case 8. Average Time: 2926L                                             │
00:00:27 verbose #525 > > │ Test case 5. Average Time: 2828L                                             │
00:00:27 verbose #526 > > │ Test case 6. Average Time: 2828L                                             │
00:00:27 verbose #527 > > │ Test case 9. Average Time: 2652L                                             │
00:00:27 verbose #528 > > │ Test case 4. Average Time: 2613L                                             │
00:00:27 verbose #529 > > │ Test case 10. Average Time: 2599L                                            │
00:00:27 verbose #530 > > │ Test case 7. Average Time: 2505L                                             │
00:00:27 verbose #531 > > │ Test case 11. Average Time: 1474L                                            │
00:00:27 verbose #532 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:27 verbose #533 > >
00:00:27 verbose #534 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:27 verbose #535 > > //// test
00:00:27 verbose #536 > >
00:00:27 verbose #537 > > let solutions = [[
00:00:27 verbose #538 > >     "A",
00:00:27 verbose #539 > >     fun input ->
00:00:27 verbose #540 > >         input
00:00:27 verbose #541 > >         |> Seq.toList
00:00:27 verbose #542 > >         |> List.fold (fun acc x -> if List.contains x acc then acc else acc @ [[
00:00:27 verbose #543 > > x ]]) [[]]
00:00:27 verbose #544 > >         |> Seq.toArray
00:00:27 verbose #545 > >         |> String
00:00:27 verbose #546 > >
00:00:27 verbose #547 > >     "B",
00:00:27 verbose #548 > >     fun input ->
00:00:27 verbose #549 > >         input
00:00:27 verbose #550 > >         |> Seq.rev
00:00:27 verbose #551 > >         |> fun list -> Seq.foldBack (fun x acc -> if List.contains x acc then
00:00:27 verbose #552 > > acc else x :: acc) list [[]]
00:00:27 verbose #553 > >         |> Seq.rev
00:00:27 verbose #554 > >         |> Seq.toArray
00:00:27 verbose #555 > >         |> String
00:00:27 verbose #556 > >
00:00:27 verbose #557 > >     "C",
00:00:27 verbose #558 > >     fun input ->
00:00:27 verbose #559 > >         input
00:00:27 verbose #560 > >         |> Seq.rev
00:00:27 verbose #561 > >         |> fun list -> Seq.foldBack (fun x (set, acc) -> if Set.contains x set
00:00:27 verbose #562 > > then set, acc else set.Add x, x :: acc) list (Set.empty, [[]])
00:00:27 verbose #563 > >         |> snd
00:00:27 verbose #564 > >         |> Seq.rev
00:00:27 verbose #565 > >         |> Seq.toArray
00:00:27 verbose #566 > >         |> String
00:00:27 verbose #567 > >
00:00:27 verbose #568 > >     "D",
00:00:27 verbose #569 > >     fun input ->
00:00:27 verbose #570 > >         input
00:00:27 verbose #571 > >         |> Seq.fold (fun (set, acc) x -> if Set.contains x set then set, acc
00:00:27 verbose #572 > > else set.Add x, Array.append acc [[| x |]]) (Set.empty, [[||]])
00:00:27 verbose #573 > >         |> snd
00:00:27 verbose #574 > >         |> String
00:00:27 verbose #575 > >
00:00:27 verbose #576 > >     "E",
00:00:27 verbose #577 > >     fun input ->
00:00:27 verbose #578 > >         input
00:00:27 verbose #579 > >         |> Seq.fold (fun (set, acc) x -> if Set.contains x set then set, acc
00:00:27 verbose #580 > > else set.Add x, x :: acc) (Set.empty, [[]])
00:00:27 verbose #581 > >         |> snd
00:00:27 verbose #582 > >         |> List.rev
00:00:27 verbose #583 > >         |> List.toArray
00:00:27 verbose #584 > >         |> String
00:00:27 verbose #585 > >
00:00:27 verbose #586 > >     "F",
00:00:27 verbose #587 > >     fun input ->
00:00:27 verbose #588 > >         input
00:00:27 verbose #589 > >         |> Seq.fold (fun (set, acc) x -> if Set.contains x set then set, acc
00:00:27 verbose #590 > > else set.Add x, acc @ [[ x ]]) (Set.empty, [[]])
00:00:27 verbose #591 > >         |> snd
00:00:27 verbose #592 > >         |> List.toArray
00:00:27 verbose #593 > >         |> String
00:00:27 verbose #594 > >
00:00:27 verbose #595 > >     "G",
00:00:27 verbose #596 > >     fun input ->
00:00:27 verbose #597 > >         input
00:00:27 verbose #598 > >         |> Seq.fold (fun (set, acc) x -> if Set.contains x set then set, acc
00:00:27 verbose #599 > > else set.Add x, x :: acc) (Set.empty, [[]])
00:00:27 verbose #600 > >         |> snd
00:00:27 verbose #601 > >         |> List.toArray
00:00:27 verbose #602 > >         |> Array.rev
00:00:27 verbose #603 > >         |> String
00:00:27 verbose #604 > >
00:00:27 verbose #605 > >     "H",
00:00:27 verbose #606 > >     fun input ->
00:00:27 verbose #607 > >         input
00:00:27 verbose #608 > >         |> Seq.toList
00:00:27 verbose #609 > >         |> fun list ->
00:00:27 verbose #610 > >             let rec loop set = function
00:00:27 verbose #611 > >                 | head :: tail when Set.contains head set -> loop set tail
00:00:27 verbose #612 > >                 | head :: tail -> (loop (set.Add head) tail) @ [[ head ]]
00:00:27 verbose #613 > >                 | [[]] -> [[]]
00:00:27 verbose #614 > >             loop Set.empty list
00:00:27 verbose #615 > >             |> List.rev
00:00:27 verbose #616 > >         |> List.toArray
00:00:27 verbose #617 > >         |> String
00:00:27 verbose #618 > >
00:00:27 verbose #619 > >     "I",
00:00:27 verbose #620 > >     fun input ->
00:00:27 verbose #621 > >         input
00:00:27 verbose #622 > >         |> Seq.toList
00:00:27 verbose #623 > >         |> fun list ->
00:00:27 verbose #624 > >             let rec loop set = function
00:00:27 verbose #625 > >                 | head :: tail when Set.contains head set -> loop set tail
00:00:27 verbose #626 > >                 | head :: tail -> loop (set.Add head) tail |> Array.append [[|
00:00:27 verbose #627 > > head |]]
00:00:27 verbose #628 > >                 | [[]] -> [[||]]
00:00:27 verbose #629 > >             loop Set.empty list
00:00:27 verbose #630 > >         |> String
00:00:27 verbose #631 > >
00:00:27 verbose #632 > >     "J",
00:00:27 verbose #633 > >     fun input ->
00:00:27 verbose #634 > >         input
00:00:27 verbose #635 > >         |> Seq.toList
00:00:27 verbose #636 > >         |> fun list ->
00:00:27 verbose #637 > >             let rec loop set = function
00:00:27 verbose #638 > >                 | head :: tail when Set.contains head set -> loop set tail
00:00:27 verbose #639 > >                 | head :: tail -> head :: loop (set.Add head) tail
00:00:27 verbose #640 > >                 | [[]] -> [[]]
00:00:27 verbose #641 > >             loop Set.empty list
00:00:27 verbose #642 > >         |> List.toArray
00:00:27 verbose #643 > >         |> String
00:00:27 verbose #644 > >
00:00:27 verbose #645 > >     "K",
00:00:27 verbose #646 > >     fun input ->
00:00:27 verbose #647 > >         input
00:00:27 verbose #648 > >         |> Seq.distinct
00:00:27 verbose #649 > >         |> Seq.toArray
00:00:27 verbose #650 > >         |> String
00:00:27 verbose #651 > > ]]
00:00:27 verbose #652 > > let testCases = seq {
00:00:27 verbose #653 > >     "abc", "abc"
00:00:27 verbose #654 > >     "accabb", "acb"
00:00:27 verbose #655 > >     "pprrqqpp", "prq"
00:00:27 verbose #656 > >
00:00:27 verbose #657 > > "aaaaaaaaaaaaaaccccccabbbbbbbaaacccbbbaaccccccccccacbbbbbbbbbbbbbcccccccbbbbbbbb
00:00:27 verbose #658 > > ", "acb"
00:00:27 verbose #659 > > }
00:00:27 verbose #660 > > let rec uniqueLettersTests = runAll (nameof uniqueLettersTests) _count solutions
00:00:27 verbose #661 > > testCases
00:00:27 verbose #662 > > uniqueLettersTests
00:00:27 verbose #663 > > |> sortResultList
00:00:37 verbose #664 > >
00:00:37 verbose #665 > > ╭─[ 10.03s - stdout ]──────────────────────────────────────────────────────────╮
00:00:37 verbose #666 > > │                                                                              │
00:00:37 verbose #667 > > │                                                                              │
00:00:37 verbose #668 > > │ Test: uniqueLettersTests                                                     │
00:00:37 verbose #669 > > │                                                                              │
00:00:37 verbose #670 > > │ Solution: abc                                                                │
00:00:37 verbose #671 > > │ Test case 1. A. Time: 3L                                                     │
00:00:37 verbose #672 > > │ Test case 2. B. Time: 4L                                                     │
00:00:37 verbose #673 > > │ Test case 3. C. Time: 4L                                                     │
00:00:37 verbose #674 > > │ Test case 4. D. Time: 2L                                                     │
00:00:37 verbose #675 > > │ Test case 5. E. Time: 2L                                                     │
00:00:37 verbose #676 > > │ Test case 6. F. Time: 2L                                                     │
00:00:37 verbose #677 > > │ Test case 7. G. Time: 2L                                                     │
00:00:37 verbose #678 > > │ Test case 8. H. Time: 2L                                                     │
00:00:37 verbose #679 > > │ Test case 9. I. Time: 2L                                                     │
00:00:37 verbose #680 > > │ Test case 10. J. Time: 2L                                                    │
00:00:37 verbose #681 > > │ Test case 11. K. Time: 3L                                                    │
00:00:37 verbose #682 > > │                                                                              │
00:00:37 verbose #683 > > │ Solution: accabb                                                             │
00:00:37 verbose #684 > > │ Test case 1. A. Time: 1L                                                     │
00:00:37 verbose #685 > > │ Test case 2. B. Time: 1L                                                     │
00:00:37 verbose #686 > > │ Test case 3. C. Time: 1L                                                     │
00:00:37 verbose #687 > > │ Test case 4. D. Time: 1L                                                     │
00:00:37 verbose #688 > > │ Test case 5. E. Time: 1L                                                     │
00:00:37 verbose #689 > > │ Test case 6. F. Time: 1L                                                     │
00:00:37 verbose #690 > > │ Test case 7. G. Time: 1L                                                     │
00:00:37 verbose #691 > > │ Test case 8. H. Time: 1L                                                     │
00:00:37 verbose #692 > > │ Test case 9. I. Time: 1L                                                     │
00:00:37 verbose #693 > > │ Test case 10. J. Time: 1L                                                    │
00:00:37 verbose #694 > > │ Test case 11. K. Time: 1L                                                    │
00:00:37 verbose #695 > > │                                                                              │
00:00:37 verbose #696 > > │ Solution: pprrqqpp                                                           │
00:00:37 verbose #697 > > │ Test case 1. A. Time: 1L                                                     │
00:00:37 verbose #698 > > │ Test case 2. B. Time: 1L                                                     │
00:00:37 verbose #699 > > │ Test case 3. C. Time: 1L                                                     │
00:00:37 verbose #700 > > │ Test case 4. D. Time: 0L                                                     │
00:00:37 verbose #701 > > │ Test case 5. E. Time: 0L                                                     │
00:00:37 verbose #702 > > │ Test case 6. F. Time: 1L                                                     │
00:00:37 verbose #703 > > │ Test case 7. G. Time: 0L                                                     │
00:00:37 verbose #704 > > │ Test case 8. H. Time: 0L                                                     │
00:00:37 verbose #705 > > │ Test case 9. I. Time: 0L                                                     │
00:00:37 verbose #706 > > │ Test case 10. J. Time: 0L                                                    │
00:00:37 verbose #707 > > │ Test case 11. K. Time: 0L                                                    │
00:00:37 verbose #708 > > │                                                                              │
00:00:37 verbose #709 > > │ Solution:                                                                    │
00:00:37 verbose #710 > > │ aaaaaaaaaaaaaaccccccabbbbbbbaaacccbbbaaccccccccccacbbbbbbbbbbbbbcccccccbbbbb │
00:00:37 verbose #711 > > │ bbb                                                                          │
00:00:37 verbose #712 > > │ Test case 1. A. Time: 14L                                                    │
00:00:37 verbose #713 > > │ Test case 2. B. Time: 8L                                                     │
00:00:37 verbose #714 > > │ Test case 3. C. Time: 12L                                                    │
00:00:37 verbose #715 > > │ Test case 4. D. Time: 7L                                                     │
00:00:37 verbose #716 > > │ Test case 5. E. Time: 11L                                                    │
00:00:37 verbose #717 > > │ Test case 6. F. Time: 9L                                                     │
00:00:37 verbose #718 > > │ Test case 7. G. Time: 7L                                                     │
00:00:37 verbose #719 > > │ Test case 8. H. Time: 8L                                                     │
00:00:37 verbose #720 > > │ Test case 9. I. Time: 6L                                                     │
00:00:37 verbose #721 > > │ Test case 10. J. Time: 7L                                                    │
00:00:37 verbose #722 > > │ Test case 11. K. Time: 3L                                                    │
00:00:37 verbose #723 > > │                                                                              │
00:00:37 verbose #724 > > │ Input                                                                        │
00:00:37 verbose #725 > > │ | Expected	| Result	| Best                                                       │
00:00:37 verbose #726 > > │ ---                                                                          │
00:00:37 verbose #727 > > │ | ---     	| ---   	| ---                                                        │
00:00:37 verbose #728 > > │ abc                                                                          │
00:00:37 verbose #729 > > │ | abc     	| abc   	| (4, 2)                                                     │
00:00:37 verbose #730 > > │ accabb                                                                       │
00:00:37 verbose #731 > > │ | acb     	| acb   	| (1, 1)                                                     │
00:00:37 verbose #732 > > │ pprrqqpp                                                                     │
00:00:37 verbose #733 > > │ | prq     	| prq   	| (4, 0)                                                     │
00:00:37 verbose #734 > > │ aaaaaaaaaaaaaaccccccabbbbbbbaaacccbbbaaccccccccccacbbbbbbbbbbbbbcccccccbbbbb │
00:00:37 verbose #735 > > │ bbb	| acb     	| acb   	| (11, 3)                                                  │
00:00:37 verbose #736 > > │                                                                              │
00:00:37 verbose #737 > > │ Average Ranking                                                              │
00:00:37 verbose #738 > > │ Test case 11. Average Time: 1L                                               │
00:00:37 verbose #739 > > │ Test case 4. Average Time: 2L                                                │
00:00:37 verbose #740 > > │ Test case 7. Average Time: 2L                                                │
00:00:37 verbose #741 > > │ Test case 8. Average Time: 2L                                                │
00:00:37 verbose #742 > > │ Test case 9. Average Time: 2L                                                │
00:00:37 verbose #743 > > │ Test case 10. Average Time: 2L                                               │
00:00:37 verbose #744 > > │ Test case 2. Average Time: 3L                                                │
00:00:37 verbose #745 > > │ Test case 5. Average Time: 3L                                                │
00:00:37 verbose #746 > > │ Test case 6. Average Time: 3L                                                │
00:00:37 verbose #747 > > │ Test case 1. Average Time: 4L                                                │
00:00:37 verbose #748 > > │ Test case 3. Average Time: 4L                                                │
00:00:37 verbose #749 > > │                                                                              │
00:00:37 verbose #750 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:37 verbose #751 > >
00:00:37 verbose #752 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:37 verbose #753 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:37 verbose #754 > > │ ## rotateStringsTests                                                        │
00:00:37 verbose #755 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:37 verbose #756 > >
00:00:37 verbose #757 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:37 verbose #758 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:37 verbose #759 > > │ https://www.hackerrank.com/challenges/rotate-string/forum                    │
00:00:37 verbose #760 > > │                                                                              │
00:00:37 verbose #761 > > │ Test: RotateStrings                                                          │
00:00:37 verbose #762 > > │                                                                              │
00:00:37 verbose #763 > > │ Solution: abc                                                                │
00:00:37 verbose #764 > > │ Test case 1. A. Time: 1842L                                                  │
00:00:37 verbose #765 > > │ Test case 2. B. Time: 1846L                                                  │
00:00:37 verbose #766 > > │ Test case 3. C. Time: 1936L                                                  │
00:00:37 verbose #767 > > │ Test case 4. CA. Time: 2224L                                                 │
00:00:37 verbose #768 > > │ Test case 5. CB. Time: 2329L                                                 │
00:00:37 verbose #769 > > │ Test case 6. D. Time: 2474L                                                  │
00:00:37 verbose #770 > > │ Test case 7. E. Time: 1664L                                                  │
00:00:37 verbose #771 > > │ Test case 8. F. Time: 1517L                                                  │
00:00:37 verbose #772 > > │ Test case 9. FA. Time: 1651L                                                 │
00:00:37 verbose #773 > > │ Test case 10. FB. Time: 3764L                                                │
00:00:37 verbose #774 > > │ Test case 11. FC. Time: 5415L                                                │
00:00:37 verbose #775 > > │                                                                              │
00:00:37 verbose #776 > > │ Solution: abcde                                                              │
00:00:37 verbose #777 > > │ Test case 1. A. Time: 3356L                                                  │
00:00:37 verbose #778 > > │ Test case 2. B. Time: 2592L                                                  │
00:00:37 verbose #779 > > │ Test case 3. C. Time: 2346L                                                  │
00:00:37 verbose #780 > > │ Test case 4. CA. Time: 2997L                                                 │
00:00:37 verbose #781 > > │ Test case 5. CB. Time: 3061L                                                 │
00:00:37 verbose #782 > > │ Test case 6. D. Time: 4051L                                                  │
00:00:37 verbose #783 > > │ Test case 7. E. Time: 1905L                                                  │
00:00:37 verbose #784 > > │ Test case 8. F. Time: 1771L                                                  │
00:00:37 verbose #785 > > │ Test case 9. FA. Time: 2175L                                                 │
00:00:37 verbose #786 > > │ Test case 10. FB. Time: 3275L                                                │
00:00:37 verbose #787 > > │ Test case 11. FC. Time: 5266L                                                │
00:00:37 verbose #788 > > │                                                                              │
00:00:37 verbose #789 > > │ Solution: abcdefghi                                                          │
00:00:37 verbose #790 > > │ Test case 1. A. Time: 4492L                                                  │
00:00:37 verbose #791 > > │ Test case 2. B. Time: 3526L                                                  │
00:00:37 verbose #792 > > │ Test case 3. C. Time: 3583L                                                  │
00:00:37 verbose #793 > > │ Test case 4. CA. Time: 3711L                                                 │
00:00:37 verbose #794 > > │ Test case 5. CB. Time: 4783L                                                 │
00:00:37 verbose #795 > > │ Test case 6. D. Time: 7557L                                                  │
00:00:37 verbose #796 > > │ Test case 7. E. Time: 3452L                                                  │
00:00:37 verbose #797 > > │ Test case 8. F. Time: 3050L                                                  │
00:00:37 verbose #798 > > │ Test case 9. FA. Time: 3275L                                                 │
00:00:37 verbose #799 > > │ Test case 10. FB. Time: 4635L                                                │
00:00:37 verbose #800 > > │ Test case 11. FC. Time: 5616L                                                │
00:00:37 verbose #801 > > │                                                                              │
00:00:37 verbose #802 > > │ Solution: abab                                                               │
00:00:37 verbose #803 > > │ Test case 1. A. Time: 2093L                                                  │
00:00:37 verbose #804 > > │ Test case 2. B. Time: 1843L                                                  │
00:00:37 verbose #805 > > │ Test case 3. C. Time: 1746L                                                  │
00:00:37 verbose #806 > > │ Test case 4. CA. Time: 2085L                                                 │
00:00:37 verbose #807 > > │ Test case 5. CB. Time: 2139L                                                 │
00:00:37 verbose #808 > > │ Test case 6. D. Time: 2095L                                                  │
00:00:37 verbose #809 > > │ Test case 7. E. Time: 1723L                                                  │
00:00:37 verbose #810 > > │ Test case 8. F. Time: 1558L                                                  │
00:00:37 verbose #811 > > │ Test case 9. FA. Time: 1620L                                                 │
00:00:37 verbose #812 > > │ Test case 10. FB. Time: 2319L                                                │
00:00:37 verbose #813 > > │ Test case 11. FC. Time: 3918L                                                │
00:00:37 verbose #814 > > │                                                                              │
00:00:37 verbose #815 > > │ Solution: aa                                                                 │
00:00:37 verbose #816 > > │ Test case 1. A. Time: 1107L                                                  │
00:00:37 verbose #817 > > │ Test case 2. B. Time: 1241L                                                  │
00:00:37 verbose #818 > > │ Test case 3. C. Time: 1183L                                                  │
00:00:37 verbose #819 > > │ Test case 4. CA. Time: 1563L                                                 │
00:00:37 verbose #820 > > │ Test case 5. CB. Time: 1525L                                                 │
00:00:37 verbose #821 > > │ Test case 6. D. Time: 1591L                                                  │
00:00:37 verbose #822 > > │ Test case 7. E. Time: 1327L                                                  │
00:00:37 verbose #823 > > │ Test case 8. F. Time: 1151L                                                  │
00:00:37 verbose #824 > > │ Test case 9. FA. Time: 1180L                                                 │
00:00:37 verbose #825 > > │ Test case 10. FB. Time: 1733L                                                │
00:00:37 verbose #826 > > │ Test case 11. FC. Time: 2817L                                                │
00:00:37 verbose #827 > > │                                                                              │
00:00:37 verbose #828 > > │ Solution: z                                                                  │
00:00:37 verbose #829 > > │ Test case 1. A. Time: 816L                                                   │
00:00:37 verbose #830 > > │ Test case 2. B. Time: 745L                                                   │
00:00:37 verbose #831 > > │ Test case 3. C. Time: 928L                                                   │
00:00:37 verbose #832 > > │ Test case 4. CA. Time: 1375L                                                 │
00:00:37 verbose #833 > > │ Test case 5. CB. Time: 1029L                                                 │
00:00:37 verbose #834 > > │ Test case 6. D. Time: 852L                                                   │
00:00:37 verbose #835 > > │ Test case 7. E. Time: 712L                                                   │
00:00:37 verbose #836 > > │ Test case 8. F. Time: 263L                                                   │
00:00:37 verbose #837 > > │ Test case 9. FA. Time: 232L                                                  │
00:00:37 verbose #838 > > │ Test case 10. FB. Time: 773L                                                 │
00:00:37 verbose #839 > > │ Test case 11. FC. Time: 1789L                                                │
00:00:37 verbose #840 > > │                                                                              │
00:00:37 verbose #841 > > │ Input           | Expected                                                   │
00:00:37 verbose #842 > > │                                                                              │
00:00:37 verbose #843 > > │ | Result                                                                     │
00:00:37 verbose #844 > > │                                                                              │
00:00:37 verbose #845 > > │ | Best                                                                       │
00:00:37 verbose #846 > > │ ---             | ---                                                        │
00:00:37 verbose #847 > > │                                                                              │
00:00:37 verbose #848 > > │ | ---                                                                        │
00:00:37 verbose #849 > > │                                                                              │
00:00:37 verbose #850 > > │ | ---                                                                        │
00:00:37 verbose #851 > > │ abc             | bca cab abc                                                │
00:00:37 verbose #852 > > │                                                                              │
00:00:37 verbose #853 > > │ | bca cab abc                                                                │
00:00:37 verbose #854 > > │                                                                              │
00:00:37 verbose #855 > > │ | (8, 1517)                                                                  │
00:00:37 verbose #856 > > │ abcde           | bcdea cdeab deabc eabcd abcde                              │
00:00:37 verbose #857 > > │ | bcdea cdeab deabc eabcd abcde                                              │
00:00:37 verbose #858 > > │ | (8, 1771)                                                                  │
00:00:37 verbose #859 > > │ abcdefghi       | bcdefghia cdefghiab defghiabc efghiabcd fghiabcde          │
00:00:37 verbose #860 > > │ ghiabcdef hiabcdefg iabcdefgh abcdefghi       | bcdefghia cdefghiab          │
00:00:37 verbose #861 > > │ defghiabc efghiabcd fghiabcde ghiabcdef hiabcdefg iabcdefgh abcdefghi        │
00:00:37 verbose #862 > > │ | (8, 3050)                                                                  │
00:00:37 verbose #863 > > │ abab            | baba abab baba abab                                        │
00:00:37 verbose #864 > > │                                                                              │
00:00:37 verbose #865 > > │ | baba abab baba abab                                                        │
00:00:37 verbose #866 > > │                                                                              │
00:00:37 verbose #867 > > │ | (8, 1558)                                                                  │
00:00:37 verbose #868 > > │ aa              | aa aa                                                      │
00:00:37 verbose #869 > > │                                                                              │
00:00:37 verbose #870 > > │ | aa aa                                                                      │
00:00:37 verbose #871 > > │                                                                              │
00:00:37 verbose #872 > > │ | (1, 1107)                                                                  │
00:00:37 verbose #873 > > │ z               | z                                                          │
00:00:37 verbose #874 > > │                                                                              │
00:00:37 verbose #875 > > │ | z                                                                          │
00:00:37 verbose #876 > > │                                                                              │
00:00:37 verbose #877 > > │ | (9, 232)                                                                   │
00:00:37 verbose #878 > > │                                                                              │
00:00:37 verbose #879 > > │ Averages                                                                     │
00:00:37 verbose #880 > > │ Test case 1. Average Time: 2284L                                             │
00:00:37 verbose #881 > > │ Test case 2. Average Time: 1965L                                             │
00:00:37 verbose #882 > > │ Test case 3. Average Time: 1953L                                             │
00:00:37 verbose #883 > > │ Test case 4. Average Time: 2325L                                             │
00:00:37 verbose #884 > > │ Test case 5. Average Time: 2477L                                             │
00:00:37 verbose #885 > > │ Test case 6. Average Time: 3103L                                             │
00:00:37 verbose #886 > > │ Test case 7. Average Time: 1797L                                             │
00:00:37 verbose #887 > > │ Test case 8. Average Time: 1551L                                             │
00:00:37 verbose #888 > > │ Test case 9. Average Time: 1688L                                             │
00:00:37 verbose #889 > > │ Test case 10. Average Time: 2749L                                            │
00:00:37 verbose #890 > > │ Test case 11. Average Time: 4136L                                            │
00:00:37 verbose #891 > > │                                                                              │
00:00:37 verbose #892 > > │ Ranking                                                                      │
00:00:37 verbose #893 > > │ Test case 11. Average Time: 4136L                                            │
00:00:37 verbose #894 > > │ Test case 6. Average Time: 3103L                                             │
00:00:37 verbose #895 > > │ Test case 10. Average Time: 2749L                                            │
00:00:37 verbose #896 > > │ Test case 5. Average Time: 2477L                                             │
00:00:37 verbose #897 > > │ Test case 4. Average Time: 2325L                                             │
00:00:37 verbose #898 > > │ Test case 1. Average Time: 2284L                                             │
00:00:37 verbose #899 > > │ Test case 2. Average Time: 1965L                                             │
00:00:37 verbose #900 > > │ Test case 3. Average Time: 1953L                                             │
00:00:37 verbose #901 > > │ Test case 7. Average Time: 1797L                                             │
00:00:37 verbose #902 > > │ Test case 9. Average Time: 1688L                                             │
00:00:37 verbose #903 > > │ Test case 8. Average Time: 1551L                                             │
00:00:37 verbose #904 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:37 verbose #905 > >
00:00:37 verbose #906 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:37 verbose #907 > > //// test
00:00:37 verbose #908 > >
00:00:37 verbose #909 > > let solutions = [[
00:00:37 verbose #910 > >     "A",
00:00:37 verbose #911 > >     fun (input: string) ->
00:00:37 verbose #912 > >         let resultList =
00:00:37 verbose #913 > >             List.fold (fun acc x ->
00:00:37 verbose #914 > >                 let rotate (text: string) (letter: string) = (text |>
00:00:37 verbose #915 > > SpiralSm.slice 1 (input.Length - 1)) + letter
00:00:37 verbose #916 > >                 [[ rotate (if acc.IsEmpty then input else acc.Head) (string x)
00:00:37 verbose #917 > > ]] @ acc
00:00:37 verbose #918 > >             ) [[]] (Seq.toList input)
00:00:37 verbose #919 > >
00:00:37 verbose #920 > >         (resultList, "")
00:00:37 verbose #921 > >         ||> List.foldBack (fun acc x -> x + acc + " ")
00:00:37 verbose #922 > >         |> _.TrimEnd()
00:00:37 verbose #923 > >
00:00:37 verbose #924 > >     "B",
00:00:37 verbose #925 > >     fun input ->
00:00:37 verbose #926 > >         input
00:00:37 verbose #927 > >         |> Seq.toList
00:00:37 verbose #928 > >         |> List.fold (fun (acc: string list) letter ->
00:00:37 verbose #929 > >             let last =
00:00:37 verbose #930 > >                 if acc.IsEmpty
00:00:37 verbose #931 > >                 then input
00:00:37 verbose #932 > >                 else acc.Head
00:00:37 verbose #933 > >
00:00:37 verbose #934 > >             let item = last.[[1 .. input.Length - 1]] + string letter
00:00:37 verbose #935 > >
00:00:37 verbose #936 > >             item :: acc
00:00:37 verbose #937 > >         ) [[]]
00:00:37 verbose #938 > >         |> List.rev
00:00:37 verbose #939 > >         |> SpiralSm.concat " "
00:00:37 verbose #940 > >
00:00:37 verbose #941 > >     "C",
00:00:37 verbose #942 > >     fun input ->
00:00:37 verbose #943 > >         input
00:00:37 verbose #944 > >         |> Seq.toList
00:00:37 verbose #945 > >         |> List.fold (fun (acc: string list) letter -> acc.Head.[[ 1 ..
00:00:37 verbose #946 > > input.Length - 1 ]] + string letter :: acc) [[ input ]]
00:00:37 verbose #947 > >         |> List.rev
00:00:37 verbose #948 > >         |> List.skip 1
00:00:37 verbose #949 > >         |> SpiralSm.concat " "
00:00:37 verbose #950 > >
00:00:37 verbose #951 > >     "CA",
00:00:37 verbose #952 > >     fun input ->
00:00:37 verbose #953 > >         input
00:00:37 verbose #954 > >         |> Seq.fold (fun (acc: string list) letter -> acc.Head.[[ 1 ..
00:00:37 verbose #955 > > input.Length - 1 ]] + string letter :: acc) [[ input ]]
00:00:37 verbose #956 > >         |> Seq.rev
00:00:37 verbose #957 > >         |> Seq.skip 1
00:00:37 verbose #958 > >         |> SpiralSm.concat " "
00:00:37 verbose #959 > >
00:00:37 verbose #960 > >     "CB",
00:00:37 verbose #961 > >     fun input ->
00:00:37 verbose #962 > >         input
00:00:37 verbose #963 > >         |> Seq.toArray
00:00:37 verbose #964 > >         |> Array.fold (fun (acc: string[[]]) letter -> acc |> Array.append [[|
00:00:37 verbose #965 > > acc.[[0]].[[ 1 .. input.Length - 1 ]] + string letter |]]) [[| input |]]
00:00:37 verbose #966 > >         |> Array.rev
00:00:37 verbose #967 > >         |> Array.skip 1
00:00:37 verbose #968 > >         |> SpiralSm.concat " "
00:00:37 verbose #969 > >
00:00:37 verbose #970 > >     "D",
00:00:37 verbose #971 > >     fun input ->
00:00:37 verbose #972 > >         input
00:00:37 verbose #973 > >         |> Seq.toList
00:00:37 verbose #974 > >         |> fun list ->
00:00:37 verbose #975 > >             let rec loop (acc: char list list) = function
00:00:37 verbose #976 > >                 | _ when acc.Length = list.Length -> acc
00:00:37 verbose #977 > >                 | head :: tail ->
00:00:37 verbose #978 > >                     let item = tail @ [[ head ]]
00:00:37 verbose #979 > >                     loop (item :: acc) item
00:00:37 verbose #980 > >                 | [[]] -> [[]]
00:00:37 verbose #981 > >             loop [[]] list
00:00:37 verbose #982 > >         |> List.rev
00:00:37 verbose #983 > >         |> List.map (List.toArray >> String)
00:00:37 verbose #984 > >         |> SpiralSm.concat " "
00:00:37 verbose #985 > >
00:00:37 verbose #986 > >     "E",
00:00:37 verbose #987 > >     fun input ->
00:00:37 verbose #988 > >         input
00:00:37 verbose #989 > >         |> Seq.toList
00:00:37 verbose #990 > >         |> fun list ->
00:00:37 verbose #991 > >             let rec loop (last: string) = function
00:00:37 verbose #992 > >                 | head :: tail ->
00:00:37 verbose #993 > >                     let item = last.[[1 .. input.Length - 1]] + string head
00:00:37 verbose #994 > >                     item :: loop item tail
00:00:37 verbose #995 > >                 | [[]] -> [[]]
00:00:37 verbose #996 > >             loop input list
00:00:37 verbose #997 > >         |> SpiralSm.concat " "
00:00:37 verbose #998 > >
00:00:37 verbose #999 > >     "F",
00:00:37 verbose #1000 > >     fun input ->
00:00:37 verbose #1001 > >         Array.singleton 0
00:00:37 verbose #1002 > >         |> Array.append [[| 1 .. input.Length - 1 |]]
00:00:37 verbose #1003 > >         |> Array.map (fun i -> input.[[ i .. ]] + input.[[ .. i - 1 ]])
00:00:37 verbose #1004 > >         |> SpiralSm.concat " "
00:00:37 verbose #1005 > >
00:00:37 verbose #1006 > >     "FA",
00:00:37 verbose #1007 > >     fun input ->
00:00:37 verbose #1008 > >         List.singleton 0
00:00:37 verbose #1009 > >         |> List.append [[ 1 .. input.Length - 1 ]]
00:00:37 verbose #1010 > >         |> List.map (fun i -> input.[[ i .. ]] + input.[[ .. i - 1 ]])
00:00:37 verbose #1011 > >         |> SpiralSm.concat " "
00:00:37 verbose #1012 > >
00:00:37 verbose #1013 > >     "FB",
00:00:37 verbose #1014 > >     fun input ->
00:00:37 verbose #1015 > >         Seq.singleton 0
00:00:37 verbose #1016 > >         |> Seq.append (seq { 1 .. input.Length - 1 })
00:00:37 verbose #1017 > >         |> Seq.map (fun i -> input.[[ i .. ]] + input.[[ .. i - 1 ]])
00:00:37 verbose #1018 > >         |> SpiralSm.concat " "
00:00:37 verbose #1019 > >
00:00:37 verbose #1020 > >     "FC",
00:00:37 verbose #1021 > >     fun input ->
00:00:37 verbose #1022 > >         Array.singleton 0
00:00:37 verbose #1023 > >         |> Array.append [[| 1 .. input.Length - 1 |]]
00:00:37 verbose #1024 > >         |> Array.Parallel.map (fun i -> input.[[ i .. ]] + input.[[ .. i - 1 ]])
00:00:37 verbose #1025 > >         |> SpiralSm.concat " "
00:00:37 verbose #1026 > > ]]
00:00:37 verbose #1027 > > let testCases = seq {
00:00:37 verbose #1028 > >     "abc", "bca cab abc"
00:00:37 verbose #1029 > >     "abcde", "bcdea cdeab deabc eabcd abcde"
00:00:37 verbose #1030 > >     "abcdefghi", "bcdefghia cdefghiab defghiabc efghiabcd fghiabcde ghiabcdef
00:00:37 verbose #1031 > > hiabcdefg iabcdefgh abcdefghi"
00:00:37 verbose #1032 > >     "abab", "baba abab baba abab"
00:00:37 verbose #1033 > >     "aa", "aa aa"
00:00:37 verbose #1034 > >     "z", "z"
00:00:37 verbose #1035 > > }
00:00:37 verbose #1036 > > let rec rotateStringsTests = runAll (nameof rotateStringsTests) _count solutions
00:00:37 verbose #1037 > > testCases
00:00:37 verbose #1038 > > rotateStringsTests
00:00:37 verbose #1039 > > |> sortResultList
00:00:51 verbose #1040 > >
00:00:51 verbose #1041 > > ╭─[ 14.01s - stdout ]──────────────────────────────────────────────────────────╮
00:00:51 verbose #1042 > > │                                                                              │
00:00:51 verbose #1043 > > │                                                                              │
00:00:51 verbose #1044 > > │ Test: rotateStringsTests                                                     │
00:00:51 verbose #1045 > > │                                                                              │
00:00:51 verbose #1046 > > │ Solution: abc                                                                │
00:00:51 verbose #1047 > > │ Test case 1. A. Time: 3L                                                     │
00:00:51 verbose #1048 > > │ Test case 2. B. Time: 2L                                                     │
00:00:51 verbose #1049 > > │ Test case 3. C. Time: 1L                                                     │
00:00:51 verbose #1050 > > │ Test case 4. CA. Time: 3L                                                    │
00:00:51 verbose #1051 > > │ Test case 5. CB. Time: 2L                                                    │
00:00:51 verbose #1052 > > │ Test case 6. D. Time: 2L                                                     │
00:00:51 verbose #1053 > > │ Test case 7. E. Time: 2L                                                     │
00:00:51 verbose #1054 > > │ Test case 8. F. Time: 2L                                                     │
00:00:51 verbose #1055 > > │ Test case 9. FA. Time: 2L                                                    │
00:00:51 verbose #1056 > > │ Test case 10. FB. Time: 8L                                                   │
00:00:51 verbose #1057 > > │ Test case 11. FC. Time: 10L                                                  │
00:00:51 verbose #1058 > > │                                                                              │
00:00:51 verbose #1059 > > │ Solution: abcde                                                              │
00:00:51 verbose #1060 > > │ Test case 1. A. Time: 3L                                                     │
00:00:51 verbose #1061 > > │ Test case 2. B. Time: 1L                                                     │
00:00:51 verbose #1062 > > │ Test case 3. C. Time: 1L                                                     │
00:00:51 verbose #1063 > > │ Test case 4. CA. Time: 1L                                                    │
00:00:51 verbose #1064 > > │ Test case 5. CB. Time: 1L                                                    │
00:00:51 verbose #1065 > > │ Test case 6. D. Time: 3L                                                     │
00:00:51 verbose #1066 > > │ Test case 7. E. Time: 1L                                                     │
00:00:51 verbose #1067 > > │ Test case 8. F. Time: 0L                                                     │
00:00:51 verbose #1068 > > │ Test case 9. FA. Time: 1L                                                    │
00:00:51 verbose #1069 > > │ Test case 10. FB. Time: 3L                                                   │
00:00:51 verbose #1070 > > │ Test case 11. FC. Time: 5L                                                   │
00:00:51 verbose #1071 > > │                                                                              │
00:00:51 verbose #1072 > > │ Solution: abcdefghi                                                          │
00:00:51 verbose #1073 > > │ Test case 1. A. Time: 5L                                                     │
00:00:51 verbose #1074 > > │ Test case 2. B. Time: 2L                                                     │
00:00:51 verbose #1075 > > │ Test case 3. C. Time: 4L                                                     │
00:00:51 verbose #1076 > > │ Test case 4. CA. Time: 2L                                                    │
00:00:51 verbose #1077 > > │ Test case 5. CB. Time: 3L                                                    │
00:00:51 verbose #1078 > > │ Test case 6. D. Time: 6L                                                     │
00:00:51 verbose #1079 > > │ Test case 7. E. Time: 2L                                                     │
00:00:51 verbose #1080 > > │ Test case 8. F. Time: 0L                                                     │
00:00:51 verbose #1081 > > │ Test case 9. FA. Time: 5L                                                    │
00:00:51 verbose #1082 > > │ Test case 10. FB. Time: 2L                                                   │
00:00:51 verbose #1083 > > │ Test case 11. FC. Time: 6L                                                   │
00:00:51 verbose #1084 > > │                                                                              │
00:00:51 verbose #1085 > > │ Solution: abab                                                               │
00:00:51 verbose #1086 > > │ Test case 1. A. Time: 0L                                                     │
00:00:51 verbose #1087 > > │ Test case 2. B. Time: 1L                                                     │
00:00:51 verbose #1088 > > │ Test case 3. C. Time: 1L                                                     │
00:00:51 verbose #1089 > > │ Test case 4. CA. Time: 1L                                                    │
00:00:51 verbose #1090 > > │ Test case 5. CB. Time: 1L                                                    │
00:00:51 verbose #1091 > > │ Test case 6. D. Time: 1L                                                     │
00:00:51 verbose #1092 > > │ Test case 7. E. Time: 0L                                                     │
00:00:51 verbose #1093 > > │ Test case 8. F. Time: 0L                                                     │
00:00:51 verbose #1094 > > │ Test case 9. FA. Time: 0L                                                    │
00:00:51 verbose #1095 > > │ Test case 10. FB. Time: 1L                                                   │
00:00:51 verbose #1096 > > │ Test case 11. FC. Time: 6L                                                   │
00:00:51 verbose #1097 > > │                                                                              │
00:00:51 verbose #1098 > > │ Solution: aa                                                                 │
00:00:51 verbose #1099 > > │ Test case 1. A. Time: 0L                                                     │
00:00:51 verbose #1100 > > │ Test case 2. B. Time: 0L                                                     │
00:00:51 verbose #1101 > > │ Test case 3. C. Time: 0L                                                     │
00:00:51 verbose #1102 > > │ Test case 4. CA. Time: 0L                                                    │
00:00:51 verbose #1103 > > │ Test case 5. CB. Time: 0L                                                    │
00:00:51 verbose #1104 > > │ Test case 6. D. Time: 0L                                                     │
00:00:51 verbose #1105 > > │ Test case 7. E. Time: 0L                                                     │
00:00:51 verbose #1106 > > │ Test case 8. F. Time: 0L                                                     │
00:00:51 verbose #1107 > > │ Test case 9. FA. Time: 0L                                                    │
00:00:51 verbose #1108 > > │ Test case 10. FB. Time: 0L                                                   │
00:00:51 verbose #1109 > > │ Test case 11. FC. Time: 5L                                                   │
00:00:51 verbose #1110 > > │                                                                              │
00:00:51 verbose #1111 > > │ Solution: z                                                                  │
00:00:51 verbose #1112 > > │ Test case 1. A. Time: 0L                                                     │
00:00:51 verbose #1113 > > │ Test case 2. B. Time: 0L                                                     │
00:00:51 verbose #1114 > > │ Test case 3. C. Time: 0L                                                     │
00:00:51 verbose #1115 > > │ Test case 4. CA. Time: 0L                                                    │
00:00:51 verbose #1116 > > │ Test case 5. CB. Time: 0L                                                    │
00:00:51 verbose #1117 > > │ Test case 6. D. Time: 0L                                                     │
00:00:51 verbose #1118 > > │ Test case 7. E. Time: 0L                                                     │
00:00:51 verbose #1119 > > │ Test case 8. F. Time: 0L                                                     │
00:00:51 verbose #1120 > > │ Test case 9. FA. Time: 0L                                                    │
00:00:51 verbose #1121 > > │ Test case 10. FB. Time: 0L                                                   │
00:00:51 verbose #1122 > > │ Test case 11. FC. Time: 5L                                                   │
00:00:51 verbose #1123 > > │                                                                              │
00:00:51 verbose #1124 > > │ Input    	| Expected                                                           │
00:00:51 verbose #1125 > > │                                                                              │
00:00:51 verbose #1126 > > │ | Result                                                                     │
00:00:51 verbose #1127 > > │                                                                              │
00:00:51 verbose #1128 > > │ | Best                                                                       │
00:00:51 verbose #1129 > > │ ---      	| ---                                                                │
00:00:51 verbose #1130 > > │                                                                              │
00:00:51 verbose #1131 > > │ | ---                                                                        │
00:00:51 verbose #1132 > > │                                                                              │
00:00:51 verbose #1133 > > │ | ---                                                                        │
00:00:51 verbose #1134 > > │ abc      	| bca cab abc                                                        │
00:00:51 verbose #1135 > > │                                                                              │
00:00:51 verbose #1136 > > │ | bca cab abc                                                                │
00:00:51 verbose #1137 > > │                                                                              │
00:00:51 verbose #1138 > > │ | (3, 1)                                                                     │
00:00:51 verbose #1139 > > │ abcde    	| bcdea cdeab deabc eabcd abcde                                      │
00:00:51 verbose #1140 > > │ | bcdea cdeab deabc eabcd abcde                                              │
00:00:51 verbose #1141 > > │ | (8, 0)                                                                     │
00:00:51 verbose #1142 > > │ abcdefghi	| bcdefghia cdefghiab defghiabc efghiabcd fghiabcde ghiabcdef        │
00:00:51 verbose #1143 > > │ hiabcdefg iabcdefgh abcdefghi	| bcdefghia cdefghiab defghiabc efghiabcd        │
00:00:51 verbose #1144 > > │ fghiabcde ghiabcdef hiabcdefg iabcdefgh abcdefghi	| (8, 0)                     │
00:00:51 verbose #1145 > > │ abab     	| baba abab baba abab                                                │
00:00:51 verbose #1146 > > │ | baba abab baba abab                                                        │
00:00:51 verbose #1147 > > │ | (1, 0)                                                                     │
00:00:51 verbose #1148 > > │ aa       	| aa aa                                                              │
00:00:51 verbose #1149 > > │                                                                              │
00:00:51 verbose #1150 > > │ | aa aa                                                                      │
00:00:51 verbose #1151 > > │                                                                              │
00:00:51 verbose #1152 > > │ | (1, 0)                                                                     │
00:00:51 verbose #1153 > > │ z        	| z                                                                  │
00:00:51 verbose #1154 > > │                                                                              │
00:00:51 verbose #1155 > > │ | z                                                                          │
00:00:51 verbose #1156 > > │                                                                              │
00:00:51 verbose #1157 > > │ | (1, 0)                                                                     │
00:00:51 verbose #1158 > > │                                                                              │
00:00:51 verbose #1159 > > │ Average Ranking                                                              │
00:00:51 verbose #1160 > > │ Test case 7. Average Time: 0L                                                │
00:00:51 verbose #1161 > > │ Test case 8. Average Time: 0L                                                │
00:00:51 verbose #1162 > > │ Test case 1. Average Time: 1L                                                │
00:00:51 verbose #1163 > > │ Test case 2. Average Time: 1L                                                │
00:00:51 verbose #1164 > > │ Test case 3. Average Time: 1L                                                │
00:00:51 verbose #1165 > > │ Test case 4. Average Time: 1L                                                │
00:00:51 verbose #1166 > > │ Test case 5. Average Time: 1L                                                │
00:00:51 verbose #1167 > > │ Test case 9. Average Time: 1L                                                │
00:00:51 verbose #1168 > > │ Test case 6. Average Time: 2L                                                │
00:00:51 verbose #1169 > > │ Test case 10. Average Time: 2L                                               │
00:00:51 verbose #1170 > > │ Test case 11. Average Time: 6L                                               │
00:00:51 verbose #1171 > > │                                                                              │
00:00:51 verbose #1172 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:51 verbose #1173 > >
00:00:51 verbose #1174 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:51 verbose #1175 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:51 verbose #1176 > > │ ## rotate_strings_tests                                                      │
00:00:51 verbose #1177 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:51 verbose #1178 > >
00:00:51 verbose #1179 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:51 verbose #1180 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:51 verbose #1181 > > │ ```                                                                          │
00:00:51 verbose #1182 > > │ 02:21:12 verbose #1 benchmark.run_all / {count = 2000000; test_name =   │
00:00:51 verbose #1183 > > │ rotate_strings_tests}                                                        │
00:00:51 verbose #1184 > > │                                                                              │
00:00:51 verbose #1185 > > │ 02:21:12 verbose #2 benchmark.run / {input_str = "abc"}                 │
00:00:51 verbose #1186 > > │ 02:21:13 verbose #3 benchmark.run / solutions.map / {i = 1; test_name = │
00:00:51 verbose #1187 > > │ F; time = 638}                                                               │
00:00:51 verbose #1188 > > │ 02:21:14 verbose #4 benchmark.run / solutions.map / {i = 2; test_name = │
00:00:51 verbose #1189 > > │ FA; time = 779}                                                              │
00:00:51 verbose #1190 > > │                                                                              │
00:00:51 verbose #1191 > > │ 02:21:14 verbose #5 benchmark.run / {input_str = "abcde"}               │
00:00:51 verbose #1192 > > │ 02:21:15 verbose #6 benchmark.run / solutions.map / {i = 1; test_name = │
00:00:51 verbose #1193 > > │ F; time = 745}                                                               │
00:00:51 verbose #1194 > > │ 02:21:16 verbose #7 benchmark.run / solutions.map / {i = 2; test_name = │
00:00:51 verbose #1195 > > │ FA; time = 809}                                                              │
00:00:51 verbose #1196 > > │                                                                              │
00:00:51 verbose #1197 > > │ 02:21:16 verbose #8 benchmark.run / {input_str = "abcdefghi"}           │
00:00:51 verbose #1198 > > │ 02:21:17 verbose #9 benchmark.run / solutions.map / {i = 1; test_name = │
00:00:51 verbose #1199 > > │ F; time = 1092}                                                              │
00:00:51 verbose #1200 > > │ 02:21:18 verbose #10 benchmark.run / solutions.map / {i = 2; test_name  │
00:00:51 verbose #1201 > > │ = FA; time = 1304}                                                           │
00:00:51 verbose #1202 > > │                                                                              │
00:00:51 verbose #1203 > > │ 02:21:18 verbose #11 benchmark.run / {input_str = "abab"}               │
00:00:51 verbose #1204 > > │ 02:21:19 verbose #12 benchmark.run / solutions.map / {i = 1; test_name  │
00:00:51 verbose #1205 > > │ = F; time = 536}                                                             │
00:00:51 verbose #1206 > > │ 02:21:20 verbose #13 benchmark.run / solutions.map / {i = 2; test_name  │
00:00:51 verbose #1207 > > │ = FA; time = 620}                                                            │
00:00:51 verbose #1208 > > │                                                                              │
00:00:51 verbose #1209 > > │ 02:21:20 verbose #14 benchmark.run / {input_str = "aa"}                 │
00:00:51 verbose #1210 > > │ 02:21:21 verbose #15 benchmark.run / solutions.map / {i = 1; test_name  │
00:00:51 verbose #1211 > > │ = F; time = 365}                                                             │
00:00:51 verbose #1212 > > │ 02:21:21 verbose #16 benchmark.run / solutions.map / {i = 2; test_name  │
00:00:51 verbose #1213 > > │ = FA; time = 396}                                                            │
00:00:51 verbose #1214 > > │                                                                              │
00:00:51 verbose #1215 > > │ 02:21:21 verbose #17 benchmark.run / {input_str = "z"}                  │
00:00:51 verbose #1216 > > │ 02:21:22 verbose #18 benchmark.run / solutions.map / {i = 1; test_name  │
00:00:51 verbose #1217 > > │ = F; time = 158}                                                             │
00:00:51 verbose #1218 > > │ 02:21:22 verbose #19 benchmark.run / solutions.map / {i = 2; test_name  │
00:00:51 verbose #1219 > > │ = FA; time = 143}                                                            │
00:00:51 verbose #1220 > > │ ```                                                                          │
00:00:51 verbose #1221 > > │ input      	| expected                                                         │
00:00:51 verbose #1222 > > │                                                                              │
00:00:51 verbose #1223 > > │ | result                                                                     │
00:00:51 verbose #1224 > > │                                                                              │
00:00:51 verbose #1225 > > │ | best                                                                       │
00:00:51 verbose #1226 > > │ ---        	| ---                                                              │
00:00:51 verbose #1227 > > │                                                                              │
00:00:51 verbose #1228 > > │ | ---                                                                        │
00:00:51 verbose #1229 > > │                                                                              │
00:00:51 verbose #1230 > > │ | ---                                                                        │
00:00:51 verbose #1231 > > │ "abc"      	| "bca cab abc"                                                    │
00:00:51 verbose #1232 > > │                                                                              │
00:00:51 verbose #1233 > > │ | "bca cab abc"                                                              │
00:00:51 verbose #1234 > > │                                                                              │
00:00:51 verbose #1235 > > │ | 1, 638                                                                     │
00:00:51 verbose #1236 > > │ "abcde"    	| "bcdea cdeab deabc eabcd abcde"                                  │
00:00:51 verbose #1237 > > │ | "bcdea cdeab deabc eabcd abcde"                                            │
00:00:51 verbose #1238 > > │ | 1, 745                                                                     │
00:00:51 verbose #1239 > > │ "abcdefghi"	| "bcdefghia cdefghiab defghiabc efghiabcd fghiabcde ghiabcdef     │
00:00:51 verbose #1240 > > │ hiabcdefg iabcdefgh abcdefghi"	| "bcdefghia cdefghiab defghiabc efghiabcd      │
00:00:51 verbose #1241 > > │ fghiabcde ghiabcdef hiabcdefg iabcdefgh abcdefghi"	| 1, 1092                   │
00:00:51 verbose #1242 > > │ "abab"     	| "baba abab baba abab"                                            │
00:00:51 verbose #1243 > > │ | "baba abab baba abab"                                                      │
00:00:51 verbose #1244 > > │ | 1, 536                                                                     │
00:00:51 verbose #1245 > > │ "aa"       	| "aa aa"                                                          │
00:00:51 verbose #1246 > > │                                                                              │
00:00:51 verbose #1247 > > │ | "aa aa"                                                                    │
00:00:51 verbose #1248 > > │                                                                              │
00:00:51 verbose #1249 > > │ | 1, 365                                                                     │
00:00:51 verbose #1250 > > │ "z"        	| "z"                                                              │
00:00:51 verbose #1251 > > │                                                                              │
00:00:51 verbose #1252 > > │ | "z"                                                                        │
00:00:51 verbose #1253 > > │                                                                              │
00:00:51 verbose #1254 > > │ | 2, 143                                                                     │
00:00:51 verbose #1255 > > │ ```                                                                          │
00:00:51 verbose #1256 > > │ 02:21:22 verbose #20 benchmark.sort_result_list / averages.iter / {avg  │
00:00:51 verbose #1257 > > │ = 589; i = 1}                                                                │
00:00:51 verbose #1258 > > │ 02:21:22 verbose #21 benchmark.sort_result_list / averages.iter / {avg  │
00:00:51 verbose #1259 > > │ = 675; i = 2}                                                                │
00:00:51 verbose #1260 > > │ ```                                                                          │
00:00:51 verbose #1261 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:51 verbose #1262 > >
00:00:51 verbose #1263 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:51 verbose #1264 > > //// test
00:00:51 verbose #1265 > > //// timeout=60000
00:00:51 verbose #1266 > >
00:00:51 verbose #1267 > > inl get_solutions () =
00:00:51 verbose #1268 > >     [[
00:00:51 verbose #1269 > >         // "A",
00:00:51 verbose #1270 > >         // fun (input : string) =>
00:00:51 verbose #1271 > >         //     let resultList =
00:00:51 verbose #1272 > >         //         List.fold (fun acc x =>
00:00:51 verbose #1273 > >         //             let rotate (text : string) (letter : string) =
00:00:51 verbose #1274 > > text.Substring (1, input.Length - 1) + letter
00:00:51 verbose #1275 > >         //             [[ rotate (if acc.IsEmpty then input else acc.Head)
00:00:51 verbose #1276 > > (string x) ]] ++ acc
00:00:51 verbose #1277 > >         //         ) [[]] (Seq.toList input)
00:00:51 verbose #1278 > >
00:00:51 verbose #1279 > >         //     List.foldBack (fun acc x => x + acc + " ") resultList ""
00:00:51 verbose #1280 > >         //     |> fun x => x.TrimEnd ()
00:00:51 verbose #1281 > >
00:00:51 verbose #1282 > >         // "B",
00:00:51 verbose #1283 > >         // fun input =>
00:00:51 verbose #1284 > >         //     input
00:00:51 verbose #1285 > >         //     |> Seq.toList
00:00:51 verbose #1286 > >         //     |> List.fold (fun (acc : string list) letter =>
00:00:51 verbose #1287 > >         //         let last =
00:00:51 verbose #1288 > >         //             if acc.IsEmpty
00:00:51 verbose #1289 > >         //             then input
00:00:51 verbose #1290 > >         //             else acc.Head
00:00:51 verbose #1291 > >
00:00:51 verbose #1292 > >         //         let item = last.[[1 .. input.Length - 1]] + string letter
00:00:51 verbose #1293 > >
00:00:51 verbose #1294 > >         //         item :: acc
00:00:51 verbose #1295 > >         //     ) [[]]
00:00:51 verbose #1296 > >         //     |> List.rev
00:00:51 verbose #1297 > >         //     |> SpiralSm.concat " "
00:00:51 verbose #1298 > >
00:00:51 verbose #1299 > >         // "C",
00:00:51 verbose #1300 > >         // fun input =>
00:00:51 verbose #1301 > >         //     input
00:00:51 verbose #1302 > >         //     |> Seq.toList
00:00:51 verbose #1303 > >         //     |> List.fold (fun (acc : list string) letter => acc.Head.[[ 1 ..
00:00:51 verbose #1304 > > input.Length - 1 ]] + string letter :: acc) [[ input ]]
00:00:51 verbose #1305 > >         //     |> List.rev
00:00:51 verbose #1306 > >         //     |> List.skip 1
00:00:51 verbose #1307 > >         //     |> SpiralSm.concat " "
00:00:51 verbose #1308 > >
00:00:51 verbose #1309 > >         // "CA",
00:00:51 verbose #1310 > >         // fun input =>
00:00:51 verbose #1311 > >         //     input
00:00:51 verbose #1312 > >         //     |> Seq.fold (fun (acc : list string) letter => acc.Head.[[ 1 ..
00:00:51 verbose #1313 > > input.Length - 1 ]] + string letter :: acc) [[ input ]]
00:00:51 verbose #1314 > >         //     |> Seq.rev
00:00:51 verbose #1315 > >         //     |> Seq.skip 1
00:00:51 verbose #1316 > >         //     |> SpiralSm.concat " "
00:00:51 verbose #1317 > >
00:00:51 verbose #1318 > >         // "CB",
00:00:51 verbose #1319 > >         // fun input =>
00:00:51 verbose #1320 > >         //     input
00:00:51 verbose #1321 > >         //     |> Seq.toArray
00:00:51 verbose #1322 > >         //     |> Array.fold (fun (acc : a _ string) letter => acc |>
00:00:51 verbose #1323 > > Array.append (a ;[[ acc.[[0]].[[ 1 .. input.Length - 1 ]] + string letter ]]))
00:00:51 verbose #1324 > > (a ;[[ input ]])
00:00:51 verbose #1325 > >         //     |> Array.rev
00:00:51 verbose #1326 > >         //     |> Array.skip 1
00:00:51 verbose #1327 > >         //     |> SpiralSm.concat " "
00:00:51 verbose #1328 > >
00:00:51 verbose #1329 > >         // "D",
00:00:51 verbose #1330 > >         // fun input =>
00:00:51 verbose #1331 > >         //     input
00:00:51 verbose #1332 > >         //     |> Seq.toList
00:00:51 verbose #1333 > >         //     |> fun list =>
00:00:51 verbose #1334 > >         //         let rec loop (acc : list (list char)) = function
00:00:51 verbose #1335 > >         //             | _ when acc.Length = list.Length => acc
00:00:51 verbose #1336 > >         //             | head :: tail =>
00:00:51 verbose #1337 > >         //                 let item = tail ++ [[ head ]]
00:00:51 verbose #1338 > >         //                 loop (item :: acc) item
00:00:51 verbose #1339 > >         //             | [[]] => [[]]
00:00:51 verbose #1340 > >         //         loop [[]] list
00:00:51 verbose #1341 > >         //     |> List.rev
00:00:51 verbose #1342 > >         //     |> List.map (List.toArray >> String)
00:00:51 verbose #1343 > >         //     |> SpiralSm.concat " "
00:00:51 verbose #1344 > >
00:00:51 verbose #1345 > >         // "E",
00:00:51 verbose #1346 > >         // fun input =>
00:00:51 verbose #1347 > >         //     input
00:00:51 verbose #1348 > >         //     |> Seq.toList
00:00:51 verbose #1349 > >         //     |> fun list =>
00:00:51 verbose #1350 > >         //         let rec loop (last : string) = function
00:00:51 verbose #1351 > >         //             | head :: tail =>
00:00:51 verbose #1352 > >         //                 let item = last.[[1 .. input.Length - 1]] + string
00:00:51 verbose #1353 > > head
00:00:51 verbose #1354 > >         //                 item :: loop item tail
00:00:51 verbose #1355 > >         //             | [[]] => [[]]
00:00:51 verbose #1356 > >         //         loop input list
00:00:51 verbose #1357 > >         //     |> SpiralSm.concat " "
00:00:51 verbose #1358 > >
00:00:51 verbose #1359 > >         "F",
00:00:51 verbose #1360 > >         fun input =>
00:00:51 verbose #1361 > >         // Array.singleton 0
00:00:51 verbose #1362 > >         // |> Array.append [[| 1 .. input.Length - 1 |]]
00:00:51 verbose #1363 > >         // |> Array.map (fun i -> input.[[ i .. ]] + input.[[ .. i - 1 ]])
00:00:51 verbose #1364 > >         // |> SpiralSm.concat " "
00:00:51 verbose #1365 > >             inl input_length = input |> sm.length
00:00:51 verbose #1366 > >             am.singleton 0i32
00:00:51 verbose #1367 > >             |> am.append (am'.init_series 1 (input_length - 1) 1 |> fun x => a x
00:00:51 verbose #1368 > > : _ int _)
00:00:51 verbose #1369 > >             |> fun (a x) => x
00:00:51 verbose #1370 > >             |> am'.map_base fun i =>
00:00:51 verbose #1371 > >                 inl a = input |> sm'.slice i (input_length - 1)
00:00:51 verbose #1372 > >                 inl b = input |> sm'.slice 0 (i - 1)
00:00:51 verbose #1373 > >                 a +. b
00:00:51 verbose #1374 > >             |> fun x => a x : _ int _
00:00:51 verbose #1375 > >             |> seq.of_array
00:00:51 verbose #1376 > >             |> sm'.concat " "
00:00:51 verbose #1377 > >
00:00:51 verbose #1378 > >         "FA",
00:00:51 verbose #1379 > >         fun input =>
00:00:51 verbose #1380 > >         //     List.singleton 0
00:00:51 verbose #1381 > >         //     |> List.append [[ 1 .. input.Length - 1 ]]
00:00:51 verbose #1382 > >         //   //  |> List.map (fun i => input.[[ i .. ]] + input.[[ .. i - 1 ]])
00:00:51 verbose #1383 > >         //     |> SpiralSm.concat " "
00:00:51 verbose #1384 > >             inl input_length = input |> sm.length
00:00:51 verbose #1385 > >             listm.singleton 0i32
00:00:51 verbose #1386 > >             |> listm.append (listm'.init_series 1 (input_length - 1) 1)
00:00:51 verbose #1387 > >             |> listm.map (fun i =>
00:00:51 verbose #1388 > >                 inl a = input |> sm'.slice i (input_length - 1)
00:00:51 verbose #1389 > >                 inl b = if i = 0 then "" else input |> sm'.slice 0 (i - 1)
00:00:51 verbose #1390 > >                 a +. b
00:00:51 verbose #1391 > >             )
00:00:51 verbose #1392 > >             |> listm'.box
00:00:51 verbose #1393 > >             |> listm'.to_array'
00:00:51 verbose #1394 > >             |> fun x => a x : _ int _
00:00:51 verbose #1395 > >             |> seq.of_array
00:00:51 verbose #1396 > >             |> sm'.concat " "
00:00:51 verbose #1397 > >
00:00:51 verbose #1398 > >         // "FB",
00:00:51 verbose #1399 > >         // fun input =>
00:00:51 verbose #1400 > >         //     Seq.singleton 0
00:00:51 verbose #1401 > >         //   //  |> Seq.append (seq { 1 .. input.Length - 1 })
00:00:51 verbose #1402 > >         //   //  |> Seq.map (fun i => input.[[ i .. ]] + input.[[ .. i - 1 ]])
00:00:51 verbose #1403 > >         //     |> SpiralSm.concat " "
00:00:51 verbose #1404 > >
00:00:51 verbose #1405 > >         // "FC",
00:00:51 verbose #1406 > >         // fun input =>
00:00:51 verbose #1407 > >         //     Array.singleton 0
00:00:51 verbose #1408 > >         //     |> Array.append (a ;[[ 1 .. input.Length - 1 ]])
00:00:51 verbose #1409 > >         ////    |> Array.Parallel.map (fun i => input.[[ i .. ]] + input.[[ .. i
00:00:51 verbose #1410 > > - 1 ]])
00:00:51 verbose #1411 > >         //     |> SpiralSm.concat " "
00:00:51 verbose #1412 > >     ]]
00:00:51 verbose #1413 > >
00:00:51 verbose #1414 > > inl rec rotate_strings_tests () =
00:00:51 verbose #1415 > >     inl test_cases = [[
00:00:51 verbose #1416 > >         "abc", "bca cab abc"
00:00:51 verbose #1417 > >         "abcde", "bcdea cdeab deabc eabcd abcde"
00:00:51 verbose #1418 > >         "abcdefghi", "bcdefghia cdefghiab defghiabc efghiabcd fghiabcde
00:00:51 verbose #1419 > > ghiabcdef hiabcdefg iabcdefgh abcdefghi"
00:00:51 verbose #1420 > >         "abab", "baba abab baba abab"
00:00:51 verbose #1421 > >         "aa", "aa aa"
00:00:51 verbose #1422 > >         "z", "z"
00:00:51 verbose #1423 > >     ]]
00:00:51 verbose #1424 > >
00:00:51 verbose #1425 > >     inl solutions = get_solutions ()
00:00:51 verbose #1426 > >
00:00:51 verbose #1427 > >     // inl is_fast () = true
00:00:51 verbose #1428 > >
00:00:51 verbose #1429 > >     inl count =
00:00:51 verbose #1430 > >         if is_fast ()
00:00:51 verbose #1431 > >         then 1000i32
00:00:51 verbose #1432 > >         else 2000000i32
00:00:51 verbose #1433 > >
00:00:51 verbose #1434 > >     run_all (reflection.nameof { rotate_strings_tests }) count solutions
00:00:51 verbose #1435 > > test_cases
00:00:51 verbose #1436 > >     |> sort_result_list
00:00:51 verbose #1437 > >
00:00:51 verbose #1438 > > rotate_strings_tests ()
00:00:51 verbose #1439 > 00:00:51   debug #6 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/cf6e4db8b1c0fd8e1ac38b1afd3c052faa998d7764d773b7bd7a8d599095fc0e/main.spi
00:01:12 verbose #1440 > >
00:01:12 verbose #1441 > > ╭─[ 21.08s - stdout ]──────────────────────────────────────────────────────────╮
00:01:12 verbose #1442 > > │                                                                              │
00:01:12 verbose #1443 > > │ ```                                                                          │
00:01:12 verbose #1444 > > │ 00:00:00 verbose #1 benchmark.run_all / { test_name =                   │
00:01:12 verbose #1445 > > │ rotate_strings_tests; count = 2000000 }                                      │
00:01:12 verbose #1446 > > │                                                                              │
00:01:12 verbose #1447 > > │ 00:00:00 verbose #2 benchmark.run / { input_str = "abc" }               │
00:01:12 verbose #1448 > > │ 00:00:01 verbose #3 benchmark.run / solutions.map / { i = 1; test_name  │
00:01:12 verbose #1449 > > │ = F; time = 1111 }                                                           │
00:01:12 verbose #1450 > > │ 00:00:02 verbose #4 benchmark.run / solutions.map / { i = 2; test_name  │
00:01:12 verbose #1451 > > │ = FA; time = 1221 }                                                          │
00:01:12 verbose #1452 > > │                                                                              │
00:01:12 verbose #1453 > > │ 00:00:02 verbose #5 benchmark.run / { input_str = "abcde" }             │
00:01:12 verbose #1454 > > │ 00:00:04 verbose #6 benchmark.run / solutions.map / { i = 1; test_name  │
00:01:12 verbose #1455 > > │ = F; time = 1285 }                                                           │
00:01:12 verbose #1456 > > │ 00:00:06 verbose #7 benchmark.run / solutions.map / { i = 2; test_name  │
00:01:12 verbose #1457 > > │ = FA; time = 1820 }                                                          │
00:01:12 verbose #1458 > > │                                                                              │
00:01:12 verbose #1459 > > │ 00:00:06 verbose #8 benchmark.run / { input_str = "abcdefghi" }         │
00:01:12 verbose #1460 > > │ 00:00:09 verbose #9 benchmark.run / solutions.map / { i = 1; test_name  │
00:01:12 verbose #1461 > > │ = F; time = 2255 }                                                           │
00:01:12 verbose #1462 > > │ 00:00:13 verbose #10 benchmark.run / solutions.map / { i = 2; test_name │
00:01:12 verbose #1463 > > │ = FA; time = 3096 }                                                          │
00:01:12 verbose #1464 > > │                                                                              │
00:01:12 verbose #1465 > > │ 00:00:13 verbose #11 benchmark.run / { input_str = "abab" }             │
00:01:12 verbose #1466 > > │ 00:00:14 verbose #12 benchmark.run / solutions.map / { i = 1; test_name │
00:01:12 verbose #1467 > > │ = F; time = 1019 }                                                           │
00:01:12 verbose #1468 > > │ 00:00:16 verbose #13 benchmark.run / solutions.map / { i = 2; test_name │
00:01:12 verbose #1469 > > │ = FA; time = 1241 }                                                          │
00:01:12 verbose #1470 > > │                                                                              │
00:01:12 verbose #1471 > > │ 00:00:16 verbose #14 benchmark.run / { input_str = "aa" }               │
00:01:12 verbose #1472 > > │ 00:00:17 verbose #15 benchmark.run / solutions.map / { i = 1; test_name │
00:01:12 verbose #1473 > > │ = F; time = 746 }                                                            │
00:01:12 verbose #1474 > > │ 00:00:18 verbose #16 benchmark.run / solutions.map / { i = 2; test_name │
00:01:12 verbose #1475 > > │ = FA; time = 776 }                                                           │
00:01:12 verbose #1476 > > │                                                                              │
00:01:12 verbose #1477 > > │ 00:00:18 verbose #17 benchmark.run / { input_str = "z" }                │
00:01:12 verbose #1478 > > │ 00:00:18 verbose #18 benchmark.run / solutions.map / { i = 1; test_name │
00:01:12 verbose #1479 > > │ = F; time = 179 }                                                            │
00:01:12 verbose #1480 > > │ 00:00:19 verbose #19 benchmark.run / solutions.map / { i = 2; test_name │
00:01:12 verbose #1481 > > │ = FA; time = 189 }                                                           │
00:01:12 verbose #1482 > > │ ```                                                                          │
00:01:12 verbose #1483 > > │ input      	| expected                                                         │
00:01:12 verbose #1484 > > │                                                                              │
00:01:12 verbose #1485 > > │ | result                                                                     │
00:01:12 verbose #1486 > > │                                                                              │
00:01:12 verbose #1487 > > │ | best                                                                       │
00:01:12 verbose #1488 > > │ ---        	| ---                                                              │
00:01:12 verbose #1489 > > │                                                                              │
00:01:12 verbose #1490 > > │ | ---                                                                        │
00:01:12 verbose #1491 > > │                                                                              │
00:01:12 verbose #1492 > > │ | ---                                                                        │
00:01:12 verbose #1493 > > │ "abc"      	| "bca cab abc"                                                    │
00:01:12 verbose #1494 > > │                                                                              │
00:01:12 verbose #1495 > > │ | "bca cab abc"                                                              │
00:01:12 verbose #1496 > > │                                                                              │
00:01:12 verbose #1497 > > │ | 1, 1111                                                                    │
00:01:12 verbose #1498 > > │ "abcde"    	| "bcdea cdeab deabc eabcd abcde"                                  │
00:01:12 verbose #1499 > > │ | "bcdea cdeab deabc eabcd abcde"                                            │
00:01:12 verbose #1500 > > │ | 1, 1285                                                                    │
00:01:12 verbose #1501 > > │ "abcdefghi"	| "bcdefghia cdefghiab defghiabc efghiabcd fghiabcde ghiabcdef     │
00:01:12 verbose #1502 > > │ hiabcdefg iabcdefgh abcdefghi"	| "bcdefghia cdefghiab defghiabc efghiabcd      │
00:01:12 verbose #1503 > > │ fghiabcde ghiabcdef hiabcdefg iabcdefgh abcdefghi"	| 1, 2255                   │
00:01:12 verbose #1504 > > │ "abab"     	| "baba abab baba abab"                                            │
00:01:12 verbose #1505 > > │ | "baba abab baba abab"                                                      │
00:01:12 verbose #1506 > > │ | 1, 1019                                                                    │
00:01:12 verbose #1507 > > │ "aa"       	| "aa aa"                                                          │
00:01:12 verbose #1508 > > │                                                                              │
00:01:12 verbose #1509 > > │ | "aa aa"                                                                    │
00:01:12 verbose #1510 > > │                                                                              │
00:01:12 verbose #1511 > > │ | 1, 746                                                                     │
00:01:12 verbose #1512 > > │ "z"        	| "z"                                                              │
00:01:12 verbose #1513 > > │                                                                              │
00:01:12 verbose #1514 > > │ | "z"                                                                        │
00:01:12 verbose #1515 > > │                                                                              │
00:01:12 verbose #1516 > > │ | 1, 179                                                                     │
00:01:12 verbose #1517 > > │ ```                                                                          │
00:01:12 verbose #1518 > > │ 00:00:19 verbose #20 benchmark.sort_result_list / averages.iter / { i = │
00:01:12 verbose #1519 > > │ 1; avg = 1099 }                                                              │
00:01:12 verbose #1520 > > │ 00:00:19 verbose #21 benchmark.sort_result_list / averages.iter / { i = │
00:01:12 verbose #1521 > > │ 2; avg = 1390 }                                                              │
00:01:12 verbose #1522 > > │ ```                                                                          │
00:01:12 verbose #1523 > > │                                                                              │
00:01:12 verbose #1524 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:12 verbose #1525 > >
00:01:12 verbose #1526 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:12 verbose #1527 > > //// test
00:01:12 verbose #1528 > >
00:01:12 verbose #1529 > > // rotate_strings_tests ()
00:01:12 verbose #1530 > > ()
00:01:12 verbose #1531 > 00:01:12   debug #7 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ffbdf638a179ab054b52361d40c49795bf15c33906a7feb238e04c589e007e2a/main.spi
00:01:13 verbose #1532 > >
00:01:13 verbose #1533 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:13 verbose #1534 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:13 verbose #1535 > > │ ## binary_search_tests                                                       │
00:01:13 verbose #1536 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:13 verbose #1537 > >
00:01:13 verbose #1538 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:13 verbose #1539 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:13 verbose #1540 > > │ ```                                                                          │
00:01:13 verbose #1541 > > │ 02:19:29 verbose #1 benchmark.run_all / {count = 10000000; test_name =  │
00:01:13 verbose #1542 > > │ binary_search_tests}                                                         │
00:01:13 verbose #1543 > > │                                                                              │
00:01:13 verbose #1544 > > │ 02:19:29 verbose #2 benchmark.run / {input_str = struct ([|1; 3; 4; 6;  │
00:01:13 verbose #1545 > > │ 8; 9; 11|], 6, 7)}                                                           │
00:01:13 verbose #1546 > > │ 02:19:30 verbose #3 benchmark.run / solutions.map / {i = 1; test_name = │
00:01:13 verbose #1547 > > │ semi_open_1; time = 662}                                                     │
00:01:13 verbose #1548 > > │ 02:19:30 verbose #4 benchmark.run / solutions.map / {i = 2; test_name = │
00:01:13 verbose #1549 > > │ closed_1; time = 619}                                                        │
00:01:13 verbose #1550 > > │ 02:19:31 verbose #5 benchmark.run / solutions.map / {i = 3; test_name = │
00:01:13 verbose #1551 > > │ semi_open_2; time = 644}                                                     │
00:01:13 verbose #1552 > > │ 02:19:32 verbose #6 benchmark.run / solutions.map / {i = 4; test_name = │
00:01:13 verbose #1553 > > │ closed_2; time = 610}                                                        │
00:01:13 verbose #1554 > > │                                                                              │
00:01:13 verbose #1555 > > │ 02:19:32 verbose #7 benchmark.run / {input_str = struct ([|1; 3; 4; 6;  │
00:01:13 verbose #1556 > > │ 8; 9; 11|], 1, 7)}                                                           │
00:01:13 verbose #1557 > > │ 02:19:33 verbose #8 benchmark.run / solutions.map / {i = 1; test_name = │
00:01:13 verbose #1558 > > │ semi_open_1; time = 607}                                                     │
00:01:13 verbose #1559 > > │ 02:19:33 verbose #9 benchmark.run / solutions.map / {i = 2; test_name = │
00:01:13 verbose #1560 > > │ closed_1; time = 559}                                                        │
00:01:13 verbose #1561 > > │ 02:19:34 verbose #10 benchmark.run / solutions.map / {i = 3; test_name  │
00:01:13 verbose #1562 > > │ = semi_open_2; time = 612}                                                   │
00:01:13 verbose #1563 > > │ 02:19:35 verbose #11 benchmark.run / solutions.map / {i = 4; test_name  │
00:01:13 verbose #1564 > > │ = closed_2; time = 577}                                                      │
00:01:13 verbose #1565 > > │                                                                              │
00:01:13 verbose #1566 > > │ 02:19:35 verbose #12 benchmark.run / {input_str = struct ([|1; 3; 4; 6; │
00:01:13 verbose #1567 > > │ 8; 9; 11|], 11, 7)}                                                          │
00:01:13 verbose #1568 > > │ 02:19:35 verbose #13 benchmark.run / solutions.map / {i = 1; test_name  │
00:01:13 verbose #1569 > > │ = semi_open_1; time = 550}                                                   │
00:01:13 verbose #1570 > > │ 02:19:36 verbose #14 benchmark.run / solutions.map / {i = 2; test_name  │
00:01:13 verbose #1571 > > │ = closed_1; time = 580}                                                      │
00:01:13 verbose #1572 > > │ 02:19:37 verbose #15 benchmark.run / solutions.map / {i = 3; test_name  │
00:01:13 verbose #1573 > > │ = semi_open_2; time = 624}                                                   │
00:01:13 verbose #1574 > > │ 02:19:37 verbose #16 benchmark.run / solutions.map / {i = 4; test_name  │
00:01:13 verbose #1575 > > │ = closed_2; time = 590}                                                      │
00:01:13 verbose #1576 > > │                                                                              │
00:01:13 verbose #1577 > > │ 02:19:37 verbose #17 benchmark.run / {input_str = struct ([|1; 3; 4; 6; │
00:01:13 verbose #1578 > > │ 8; 9; 11|], 12, 7)}                                                          │
00:01:13 verbose #1579 > > │ 02:19:38 verbose #18 benchmark.run / solutions.map / {i = 1; test_name  │
00:01:13 verbose #1580 > > │ = semi_open_1; time = 574}                                                   │
00:01:13 verbose #1581 > > │ 02:19:39 verbose #19 benchmark.run / solutions.map / {i = 2; test_name  │
00:01:13 verbose #1582 > > │ = closed_1; time = 577}                                                      │
00:01:13 verbose #1583 > > │ 02:19:39 verbose #20 benchmark.run / solutions.map / {i = 3; test_name  │
00:01:13 verbose #1584 > > │ = semi_open_2; time = 582}                                                   │
00:01:13 verbose #1585 > > │ 02:19:40 verbose #21 benchmark.run / solutions.map / {i = 4; test_name  │
00:01:13 verbose #1586 > > │ = closed_2; time = 585}                                                      │
00:01:13 verbose #1587 > > │                                                                              │
00:01:13 verbose #1588 > > │ 02:19:40 verbose #22 benchmark.run / {input_str = struct ([|1; 2; 3;    │
00:01:13 verbose #1589 > > │ 4...00; ...|], 60, 1000)}                                                    │
00:01:13 verbose #1590 > > │ 02:19:41 verbose #23 benchmark.run / solutions.map / {i = 1; test_name  │
00:01:13 verbose #1591 > > │ = semi_open_1; time = 610}                                                   │
00:01:13 verbose #1592 > > │ 02:19:42 verbose #24 benchmark.run / solutions.map / {i = 2; test_name  │
00:01:13 verbose #1593 > > │ = closed_1; time = 672}                                                      │
00:01:13 verbose #1594 > > │ 02:19:42 verbose #25 benchmark.run / solutions.map / {i = 3; test_name  │
00:01:13 verbose #1595 > > │ = semi_open_2; time = 636}                                                   │
00:01:13 verbose #1596 > > │ 02:19:43 verbose #26 benchmark.run / solutions.map / {i = 4; test_name  │
00:01:13 verbose #1597 > > │ = closed_2; time = 629}                                                      │
00:01:13 verbose #1598 > > │                                                                              │
00:01:13 verbose #1599 > > │ 02:19:43 verbose #27 benchmark.run / {input_str = struct ([|1; 3; 4; 6; │
00:01:13 verbose #1600 > > │ 8; 9; 11|], 6, 7)}                                                           │
00:01:13 verbose #1601 > > │ 02:19:44 verbose #28 benchmark.run / solutions.map / {i = 1; test_name  │
00:01:13 verbose #1602 > > │ = semi_open_1; time = 599}                                                   │
00:01:13 verbose #1603 > > │ 02:19:44 verbose #29 benchmark.run / solutions.map / {i = 2; test_name  │
00:01:13 verbose #1604 > > │ = closed_1; time = 561}                                                      │
00:01:13 verbose #1605 > > │ 02:19:45 verbose #30 benchmark.run / solutions.map / {i = 3; test_name  │
00:01:13 verbose #1606 > > │ = semi_open_2; time = 604}                                                   │
00:01:13 verbose #1607 > > │ 02:19:46 verbose #31 benchmark.run / solutions.map / {i = 4; test_name  │
00:01:13 verbose #1608 > > │ = closed_2; time = 573}                                                      │
00:01:13 verbose #1609 > > │                                                                              │
00:01:13 verbose #1610 > > │ 02:19:46 verbose #32 benchmark.run / {input_str = struct ([|1; 3; 4; 6; │
00:01:13 verbose #1611 > > │ 8; 9; 11|], 1, 7)}                                                           │
00:01:13 verbose #1612 > > │ 02:19:47 verbose #33 benchmark.run / solutions.map / {i = 1; test_name  │
00:01:13 verbose #1613 > > │ = semi_open_1; time = 635}                                                   │
00:01:13 verbose #1614 > > │ 02:19:47 verbose #34 benchmark.run / solutions.map / {i = 2; test_name  │
00:01:13 verbose #1615 > > │ = closed_1; time = 603}                                                      │
00:01:13 verbose #1616 > > │ 02:19:48 verbose #35 benchmark.run / solutions.map / {i = 3; test_name  │
00:01:13 verbose #1617 > > │ = semi_open_2; time = 644}                                                   │
00:01:13 verbose #1618 > > │ 02:19:49 verbose #36 benchmark.run / solutions.map / {i = 4; test_name  │
00:01:13 verbose #1619 > > │ = closed_2; time = 628}                                                      │
00:01:13 verbose #1620 > > │                                                                              │
00:01:13 verbose #1621 > > │ 02:19:49 verbose #37 benchmark.run / {input_str = struct ([|1; 3; 4; 6; │
00:01:13 verbose #1622 > > │ 8; 9; 11|], 11, 7)}                                                          │
00:01:13 verbose #1623 > > │ 02:19:49 verbose #38 benchmark.run / solutions.map / {i = 1; test_name  │
00:01:13 verbose #1624 > > │ = semi_open_1; time = 643}                                                   │
00:01:13 verbose #1625 > > │ 02:19:50 verbose #39 benchmark.run / solutions.map / {i = 2; test_name  │
00:01:13 verbose #1626 > > │ = closed_1; time = 606}                                                      │
00:01:13 verbose #1627 > > │ 02:19:51 verbose #40 benchmark.run / solutions.map / {i = 3; test_name  │
00:01:13 verbose #1628 > > │ = semi_open_2; time = 636}                                                   │
00:01:13 verbose #1629 > > │ 02:19:52 verbose #41 benchmark.run / solutions.map / {i = 4; test_name  │
00:01:13 verbose #1630 > > │ = closed_2; time = 624}                                                      │
00:01:13 verbose #1631 > > │                                                                              │
00:01:13 verbose #1632 > > │ 02:19:52 verbose #42 benchmark.run / {input_str = struct ([|1; 3; 4; 6; │
00:01:13 verbose #1633 > > │ 8; 9; 11|], 12, 7)}                                                          │
00:01:13 verbose #1634 > > │ 02:19:52 verbose #43 benchmark.run / solutions.map / {i = 1; test_name  │
00:01:13 verbose #1635 > > │ = semi_open_1; time = 689}                                                   │
00:01:13 verbose #1636 > > │ 02:19:53 verbose #44 benchmark.run / solutions.map / {i = 2; test_name  │
00:01:13 verbose #1637 > > │ = closed_1; time = 613}                                                      │
00:01:13 verbose #1638 > > │ 02:19:54 verbose #45 benchmark.run / solutions.map / {i = 3; test_name  │
00:01:13 verbose #1639 > > │ = semi_open_2; time = 623}                                                   │
00:01:13 verbose #1640 > > │ 02:19:55 verbose #46 benchmark.run / solutions.map / {i = 4; test_name  │
00:01:13 verbose #1641 > > │ = closed_2; time = 613}                                                      │
00:01:13 verbose #1642 > > │                                                                              │
00:01:13 verbose #1643 > > │ 02:19:55 verbose #47 benchmark.run / {input_str = struct ([|1; 2; 3;    │
00:01:13 verbose #1644 > > │ 4...100; ...|], 60, 100)}                                                    │
00:01:13 verbose #1645 > > │ 02:19:55 verbose #48 benchmark.run / solutions.map / {i = 1; test_name  │
00:01:13 verbose #1646 > > │ = semi_open_1; time = 630}                                                   │
00:01:13 verbose #1647 > > │ 02:19:56 verbose #49 benchmark.run / solutions.map / {i = 2; test_name  │
00:01:13 verbose #1648 > > │ = closed_1; time = 633}                                                      │
00:01:13 verbose #1649 > > │ 02:19:57 verbose #50 benchmark.run / solutions.map / {i = 3; test_name  │
00:01:13 verbose #1650 > > │ = semi_open_2; time = 653}                                                   │
00:01:13 verbose #1651 > > │ 02:19:58 verbose #51 benchmark.run / solutions.map / {i = 4; test_name  │
00:01:13 verbose #1652 > > │ = closed_2; time = 646}                                                      │
00:01:13 verbose #1653 > > │ ```                                                                          │
00:01:13 verbose #1654 > > │ input                                    	| expected	| result  	| best             │
00:01:13 verbose #1655 > > │ ---                                      	| ---     	| ---     	| ---              │
00:01:13 verbose #1656 > > │ struct ([1; 3; 4; 6; 8; 9; 11], 6, 7)    	| US4_0 3 	| US4_0 3 	| 4, 610           │
00:01:13 verbose #1657 > > │ struct ([1; 3; 4; 6; 8; 9; 11], 1, 7)    	| US4_0 0 	| US4_0 0 	| 2, 559           │
00:01:13 verbose #1658 > > │ struct ([1; 3; 4; 6; 8; 9; 11], 11, 7)   	| US4_0 6 	| US4_0 6 	| 1, 550           │
00:01:13 verbose #1659 > > │ struct ([1; 3; 4; 6; 8; 9; 11], 12, 7)   	| US4_1   	| US4_1   	| 1, 574           │
00:01:13 verbose #1660 > > │ struct ([1; 2; 3; 4...00; ...], 60, 1000)	| US4_0 59	| US4_0 59	| 1, 610           │
00:01:13 verbose #1661 > > │ struct ([1; 3; 4; 6; 8; 9; 11], 6, 7)    	| US4_0 3 	| US4_0 3 	| 2, 561           │
00:01:13 verbose #1662 > > │ struct ([1; 3; 4; 6; 8; 9; 11], 1, 7)    	| US4_0 0 	| US4_0 0 	| 2, 603           │
00:01:13 verbose #1663 > > │ struct ([1; 3; 4; 6; 8; 9; 11], 11, 7)   	| US4_0 6 	| US4_0 6 	| 2, 606           │
00:01:13 verbose #1664 > > │ struct ([1; 3; 4; 6; 8; 9; 11], 12, 7)   	| US4_1   	| US4_1   	| 2, 613           │
00:01:13 verbose #1665 > > │ struct ([1; 2; 3; 4...100; ...], 60, 100)	| US4_0 59	| US4_0 59	| 1, 630           │
00:01:13 verbose #1666 > > │ ```                                                                          │
00:01:13 verbose #1667 > > │ 02:19:58 verbose #52 benchmark.sort_result_list / averages.iter / {avg  │
00:01:13 verbose #1668 > > │ = 602; i = 2}                                                                │
00:01:13 verbose #1669 > > │ 02:19:58 verbose #53 benchmark.sort_result_list / averages.iter / {avg  │
00:01:13 verbose #1670 > > │ = 607; i = 4}                                                                │
00:01:13 verbose #1671 > > │ 02:19:58 verbose #54 benchmark.sort_result_list / averages.iter / {avg  │
00:01:13 verbose #1672 > > │ = 619; i = 1}                                                                │
00:01:13 verbose #1673 > > │ 02:19:58 verbose #55 benchmark.sort_result_list / averages.iter / {avg  │
00:01:13 verbose #1674 > > │ = 625; i = 3}                                                                │
00:01:13 verbose #1675 > > │ ```                                                                          │
00:01:13 verbose #1676 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:13 verbose #1677 > >
00:01:13 verbose #1678 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:13 verbose #1679 > > //// test
00:01:13 verbose #1680 > > //// timeout=90000
00:01:13 verbose #1681 > >
00:01:13 verbose #1682 > > inl binary_search_semi_open_1 arr target left right =
00:01:13 verbose #1683 > >     inl rec body left right =
00:01:13 verbose #1684 > >         if left >= right
00:01:13 verbose #1685 > >         then None
00:01:13 verbose #1686 > >         else
00:01:13 verbose #1687 > >             inl mid = (left + right) / 2
00:01:13 verbose #1688 > >             inl item = index arr mid
00:01:13 verbose #1689 > >             if item = target
00:01:13 verbose #1690 > >             then Some mid
00:01:13 verbose #1691 > >             elif item < target
00:01:13 verbose #1692 > >             then loop (mid + 1) right
00:01:13 verbose #1693 > >             else loop left mid
00:01:13 verbose #1694 > >     and inl loop left right =
00:01:13 verbose #1695 > >         if var_is right |> not
00:01:13 verbose #1696 > >         then body left right
00:01:13 verbose #1697 > >         else
00:01:13 verbose #1698 > >             inl left = dyn left
00:01:13 verbose #1699 > >             join body left right
00:01:13 verbose #1700 > >     loop left right
00:01:13 verbose #1701 > >
00:01:13 verbose #1702 > > inl binary_search_closed_1 arr target left right =
00:01:13 verbose #1703 > >     inl rec body left right =
00:01:13 verbose #1704 > >         if left > right
00:01:13 verbose #1705 > >         then None
00:01:13 verbose #1706 > >         else
00:01:13 verbose #1707 > >             inl mid = (left + right) / 2
00:01:13 verbose #1708 > >             inl item = index arr mid
00:01:13 verbose #1709 > >             if item = target
00:01:13 verbose #1710 > >             then Some mid
00:01:13 verbose #1711 > >             elif item < target
00:01:13 verbose #1712 > >             then loop (mid + 1) right
00:01:13 verbose #1713 > >             else loop left (mid - 1)
00:01:13 verbose #1714 > >     and inl loop left right =
00:01:13 verbose #1715 > >         if var_is right |> not
00:01:13 verbose #1716 > >         then body left right
00:01:13 verbose #1717 > >         else
00:01:13 verbose #1718 > >             inl left = dyn left
00:01:13 verbose #1719 > >             join body left right
00:01:13 verbose #1720 > >     loop left right
00:01:13 verbose #1721 > >
00:01:13 verbose #1722 > > inl binary_search_semi_open_2 arr target left right =
00:01:13 verbose #1723 > >     let rec body left right =
00:01:13 verbose #1724 > >         if left >= right
00:01:13 verbose #1725 > >         then None
00:01:13 verbose #1726 > >         else
00:01:13 verbose #1727 > >             inl mid = (left + right) / 2
00:01:13 verbose #1728 > >             inl item = index arr mid
00:01:13 verbose #1729 > >             if item = target
00:01:13 verbose #1730 > >             then Some mid
00:01:13 verbose #1731 > >             elif item < target
00:01:13 verbose #1732 > >             then loop (mid + 1) right
00:01:13 verbose #1733 > >             else loop left mid
00:01:13 verbose #1734 > >     and inl loop left right = body left right
00:01:13 verbose #1735 > >     loop left right
00:01:13 verbose #1736 > >
00:01:13 verbose #1737 > > inl binary_search_closed_2 arr target left right =
00:01:13 verbose #1738 > >     let rec body left right =
00:01:13 verbose #1739 > >         if left > right
00:01:13 verbose #1740 > >         then None
00:01:13 verbose #1741 > >         else
00:01:13 verbose #1742 > >             inl mid = (left + right) / 2
00:01:13 verbose #1743 > >             inl item = index arr mid
00:01:13 verbose #1744 > >             if item = target
00:01:13 verbose #1745 > >             then Some mid
00:01:13 verbose #1746 > >             elif item < target
00:01:13 verbose #1747 > >             then loop (mid + 1) right
00:01:13 verbose #1748 > >             else loop left (mid - 1)
00:01:13 verbose #1749 > >     and inl loop left right = body left right
00:01:13 verbose #1750 > >     loop left right
00:01:13 verbose #1751 > >
00:01:13 verbose #1752 > > inl get_solutions () =
00:01:13 verbose #1753 > >     [[
00:01:13 verbose #1754 > >         "semi_open_1",
00:01:13 verbose #1755 > >         fun (arr, (target, len)) =>
00:01:13 verbose #1756 > >             binary_search_semi_open_1 arr target 0 len
00:01:13 verbose #1757 > >
00:01:13 verbose #1758 > >         "closed_1",
00:01:13 verbose #1759 > >         fun (arr, (target, len)) =>
00:01:13 verbose #1760 > >             binary_search_closed_1 arr target 0 (len - 1)
00:01:13 verbose #1761 > >
00:01:13 verbose #1762 > >         "semi_open_2",
00:01:13 verbose #1763 > >         fun (arr, (target, len)) =>
00:01:13 verbose #1764 > >             binary_search_semi_open_2 arr target 0 len
00:01:13 verbose #1765 > >
00:01:13 verbose #1766 > >         "closed_2",
00:01:13 verbose #1767 > >         fun (arr, (target, len)) =>
00:01:13 verbose #1768 > >             binary_search_closed_2 arr target 0 (len - 1)
00:01:13 verbose #1769 > >     ]]
00:01:13 verbose #1770 > >
00:01:13 verbose #1771 > > inl rec binary_search_tests () =
00:01:13 verbose #1772 > >     inl arr_with_len target len arr =
00:01:13 verbose #1773 > >         arr, (target, (len |> optionm'.default_with fun () => length arr))
00:01:13 verbose #1774 > >
00:01:13 verbose #1775 > >     inl test_cases = [[
00:01:13 verbose #1776 > >         (a ;[[ 1i32; 3; 4; 6; 8; 9; 11 ]] |> arr_with_len 6 None), (Some 3i32)
00:01:13 verbose #1777 > >         (a ;[[ 1i32; 3; 4; 6; 8; 9; 11 ]] |> arr_with_len 1 None), (Some 0i32)
00:01:13 verbose #1778 > >         (a ;[[ 1i32; 3; 4; 6; 8; 9; 11 ]] |> arr_with_len 11 None), (Some 6i32)
00:01:13 verbose #1779 > >         (a ;[[ 1i32; 3; 4; 6; 8; 9; 11 ]] |> arr_with_len 12 None), None
00:01:13 verbose #1780 > >         ((am'.init_series 1i32 1000 1 |> fun x => a x : _ int _) |> arr_with_len
00:01:13 verbose #1781 > > 60 None), (Some 59)
00:01:13 verbose #1782 > >
00:01:13 verbose #1783 > >         (a ;[[ 1i32; 3; 4; 6; 8; 9; 11 ]] |> arr_with_len 6 (Some 7)), (Some
00:01:13 verbose #1784 > > 3i32)
00:01:13 verbose #1785 > >         (a ;[[ 1i32; 3; 4; 6; 8; 9; 11 ]] |> arr_with_len 1 (Some 7)), (Some
00:01:13 verbose #1786 > > 0i32)
00:01:13 verbose #1787 > >         (a ;[[ 1i32; 3; 4; 6; 8; 9; 11 ]] |> arr_with_len 11 (Some 7)), (Some
00:01:13 verbose #1788 > > 6i32)
00:01:13 verbose #1789 > >         (a ;[[ 1i32; 3; 4; 6; 8; 9; 11 ]] |> arr_with_len 12 (Some 7)), None
00:01:13 verbose #1790 > >         ((am'.init_series 1i32 1000 1 |> fun x => a x : _ int _) |> arr_with_len
00:01:13 verbose #1791 > > 60 (Some 100)), (Some 59)
00:01:13 verbose #1792 > >     ]]
00:01:13 verbose #1793 > >
00:01:13 verbose #1794 > >     inl solutions = get_solutions ()
00:01:13 verbose #1795 > >
00:01:13 verbose #1796 > >     // inl is_fast () = true
00:01:13 verbose #1797 > >
00:01:13 verbose #1798 > >     inl count =
00:01:13 verbose #1799 > >         if is_fast ()
00:01:13 verbose #1800 > >         then 1000i32
00:01:13 verbose #1801 > >         else 10000000i32
00:01:13 verbose #1802 > >
00:01:13 verbose #1803 > >     run_all (reflection.nameof { binary_search_tests }) count solutions
00:01:13 verbose #1804 > > test_cases
00:01:13 verbose #1805 > >     |> sort_result_list
00:01:13 verbose #1806 > >
00:01:13 verbose #1807 > >
00:01:13 verbose #1808 > > let main () =
00:01:13 verbose #1809 > >     binary_search_tests ()
00:01:13 verbose #1810 > 00:01:12   debug #8 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/713602f9b8f4d82d4dcfe100ca8304d8b93c68d2b3a29765618d48f14990f769/main.spi
00:01:48 verbose #1811 > >
00:01:48 verbose #1812 > > ╭─[ 35.13s - stdout ]──────────────────────────────────────────────────────────╮
00:01:48 verbose #1813 > > │                                                                              │
00:01:48 verbose #1814 > > │ ```                                                                          │
00:01:48 verbose #1815 > > │ 00:00:00 verbose #1 benchmark.run_all / { test_name =                   │
00:01:48 verbose #1816 > > │ binary_search_tests; count = 10000000 }                                      │
00:01:48 verbose #1817 > > │                                                                              │
00:01:48 verbose #1818 > > │ 00:00:00 verbose #2 benchmark.run / { input_str = struct ([|1; 3; 4; 6; │
00:01:48 verbose #1819 > > │ 8; 9; 11|], 6, 7) }                                                          │
00:01:48 verbose #1820 > > │ 00:00:01 verbose #3 benchmark.run / solutions.map / { i = 1; test_name  │
00:01:48 verbose #1821 > > │ = semi_open_1; time = 753 }                                                  │
00:01:48 verbose #1822 > > │ 00:00:01 verbose #4 benchmark.run / solutions.map / { i = 2; test_name  │
00:01:48 verbose #1823 > > │ = closed_1; time = 671 }                                                     │
00:01:48 verbose #1824 > > │ 00:00:02 verbose #5 benchmark.run / solutions.map / { i = 3; test_name  │
00:01:48 verbose #1825 > > │ = semi_open_2; time = 693 }                                                  │
00:01:48 verbose #1826 > > │ 00:00:03 verbose #6 benchmark.run / solutions.map / { i = 4; test_name  │
00:01:48 verbose #1827 > > │ = closed_2; time = 736 }                                                     │
00:01:48 verbose #1828 > > │                                                                              │
00:01:48 verbose #1829 > > │ 00:00:03 verbose #7 benchmark.run / { input_str = struct ([|1; 3; 4; 6; │
00:01:48 verbose #1830 > > │ 8; 9; 11|], 1, 7) }                                                          │
00:01:48 verbose #1831 > > │ 00:00:04 verbose #8 benchmark.run / solutions.map / { i = 1; test_name  │
00:01:48 verbose #1832 > > │ = semi_open_1; time = 777 }                                                  │
00:01:48 verbose #1833 > > │ 00:00:05 verbose #9 benchmark.run / solutions.map / { i = 2; test_name  │
00:01:48 verbose #1834 > > │ = closed_1; time = 645 }                                                     │
00:01:48 verbose #1835 > > │ 00:00:06 verbose #10 benchmark.run / solutions.map / { i = 3; test_name │
00:01:48 verbose #1836 > > │ = semi_open_2; time = 651 }                                                  │
00:01:48 verbose #1837 > > │ 00:00:07 verbose #11 benchmark.run / solutions.map / { i = 4; test_name │
00:01:48 verbose #1838 > > │ = closed_2; time = 624 }                                                     │
00:01:48 verbose #1839 > > │                                                                              │
00:01:48 verbose #1840 > > │ 00:00:07 verbose #12 benchmark.run / { input_str = struct ([|1; 3; 4;   │
00:01:48 verbose #1841 > > │ 6; 8; 9; 11|], 11, 7) }                                                      │
00:01:48 verbose #1842 > > │ 00:00:08 verbose #13 benchmark.run / solutions.map / { i = 1; test_name │
00:01:48 verbose #1843 > > │ = semi_open_1; time = 633 }                                                  │
00:01:48 verbose #1844 > > │ 00:00:09 verbose #14 benchmark.run / solutions.map / { i = 2; test_name │
00:01:48 verbose #1845 > > │ = closed_1; time = 618 }                                                     │
00:01:48 verbose #1846 > > │ 00:00:10 verbose #15 benchmark.run / solutions.map / { i = 3; test_name │
00:01:48 verbose #1847 > > │ = semi_open_2; time = 567 }                                                  │
00:01:48 verbose #1848 > > │ 00:00:11 verbose #16 benchmark.run / solutions.map / { i = 4; test_name │
00:01:48 verbose #1849 > > │ = closed_2; time = 576 }                                                     │
00:01:48 verbose #1850 > > │                                                                              │
00:01:48 verbose #1851 > > │ 00:00:11 verbose #17 benchmark.run / { input_str = struct ([|1; 3; 4;   │
00:01:48 verbose #1852 > > │ 6; 8; 9; 11|], 12, 7) }                                                      │
00:01:48 verbose #1853 > > │ 00:00:11 verbose #18 benchmark.run / solutions.map / { i = 1; test_name │
00:01:48 verbose #1854 > > │ = semi_open_1; time = 580 }                                                  │
00:01:48 verbose #1855 > > │ 00:00:12 verbose #19 benchmark.run / solutions.map / { i = 2; test_name │
00:01:48 verbose #1856 > > │ = closed_1; time = 561 }                                                     │
00:01:48 verbose #1857 > > │ 00:00:13 verbose #20 benchmark.run / solutions.map / { i = 3; test_name │
00:01:48 verbose #1858 > > │ = semi_open_2; time = 572 }                                                  │
00:01:48 verbose #1859 > > │ 00:00:14 verbose #21 benchmark.run / solutions.map / { i = 4; test_name │
00:01:48 verbose #1860 > > │ = closed_2; time = 561 }                                                     │
00:01:48 verbose #1861 > > │                                                                              │
00:01:48 verbose #1862 > > │ 00:00:14 verbose #22 benchmark.run / { input_str = struct ([|1; 2; 3;   │
00:01:48 verbose #1863 > > │ 4...00; ...|], 60, 1000) }                                                   │
00:01:48 verbose #1864 > > │ 00:00:15 verbose #23 benchmark.run / solutions.map / { i = 1; test_name │
00:01:48 verbose #1865 > > │ = semi_open_1; time = 555 }                                                  │
00:01:48 verbose #1866 > > │ 00:00:16 verbose #24 benchmark.run / solutions.map / { i = 2; test_name │
00:01:48 verbose #1867 > > │ = closed_1; time = 594 }                                                     │
00:01:48 verbose #1868 > > │ 00:00:16 verbose #25 benchmark.run / solutions.map / { i = 3; test_name │
00:01:48 verbose #1869 > > │ = semi_open_2; time = 601 }                                                  │
00:01:48 verbose #1870 > > │ 00:00:17 verbose #26 benchmark.run / solutions.map / { i = 4; test_name │
00:01:48 verbose #1871 > > │ = closed_2; time = 592 }                                                     │
00:01:48 verbose #1872 > > │                                                                              │
00:01:48 verbose #1873 > > │ 00:00:17 verbose #27 benchmark.run / { input_str = struct ([|1; 3; 4;   │
00:01:48 verbose #1874 > > │ 6; 8; 9; 11|], 6, 7) }                                                       │
00:01:48 verbose #1875 > > │ 00:00:18 verbose #28 benchmark.run / solutions.map / { i = 1; test_name │
00:01:48 verbose #1876 > > │ = semi_open_1; time = 519 }                                                  │
00:01:48 verbose #1877 > > │ 00:00:19 verbose #29 benchmark.run / solutions.map / { i = 2; test_name │
00:01:48 verbose #1878 > > │ = closed_1; time = 502 }                                                     │
00:01:48 verbose #1879 > > │ 00:00:19 verbose #30 benchmark.run / solutions.map / { i = 3; test_name │
00:01:48 verbose #1880 > > │ = semi_open_2; time = 534 }                                                  │
00:01:48 verbose #1881 > > │ 00:00:20 verbose #31 benchmark.run / solutions.map / { i = 4; test_name │
00:01:48 verbose #1882 > > │ = closed_2; time = 521 }                                                     │
00:01:48 verbose #1883 > > │                                                                              │
00:01:48 verbose #1884 > > │ 00:00:20 verbose #32 benchmark.run / { input_str = struct ([|1; 3; 4;   │
00:01:48 verbose #1885 > > │ 6; 8; 9; 11|], 1, 7) }                                                       │
00:01:48 verbose #1886 > > │ 00:00:21 verbose #33 benchmark.run / solutions.map / { i = 1; test_name │
00:01:48 verbose #1887 > > │ = semi_open_1; time = 530 }                                                  │
00:01:48 verbose #1888 > > │ 00:00:22 verbose #34 benchmark.run / solutions.map / { i = 2; test_name │
00:01:48 verbose #1889 > > │ = closed_1; time = 561 }                                                     │
00:01:48 verbose #1890 > > │ 00:00:23 verbose #35 benchmark.run / solutions.map / { i = 3; test_name │
00:01:48 verbose #1891 > > │ = semi_open_2; time = 550 }                                                  │
00:01:48 verbose #1892 > > │ 00:00:23 verbose #36 benchmark.run / solutions.map / { i = 4; test_name │
00:01:48 verbose #1893 > > │ = closed_2; time = 571 }                                                     │
00:01:48 verbose #1894 > > │                                                                              │
00:01:48 verbose #1895 > > │ 00:00:23 verbose #37 benchmark.run / { input_str = struct ([|1; 3; 4;   │
00:01:48 verbose #1896 > > │ 6; 8; 9; 11|], 11, 7) }                                                      │
00:01:48 verbose #1897 > > │ 00:00:24 verbose #38 benchmark.run / solutions.map / { i = 1; test_name │
00:01:48 verbose #1898 > > │ = semi_open_1; time = 557 }                                                  │
00:01:48 verbose #1899 > > │ 00:00:25 verbose #39 benchmark.run / solutions.map / { i = 2; test_name │
00:01:48 verbose #1900 > > │ = closed_1; time = 559 }                                                     │
00:01:48 verbose #1901 > > │ 00:00:26 verbose #40 benchmark.run / solutions.map / { i = 3; test_name │
00:01:48 verbose #1902 > > │ = semi_open_2; time = 554 }                                                  │
00:01:48 verbose #1903 > > │ 00:00:27 verbose #41 benchmark.run / solutions.map / { i = 4; test_name │
00:01:48 verbose #1904 > > │ = closed_2; time = 549 }                                                     │
00:01:48 verbose #1905 > > │                                                                              │
00:01:48 verbose #1906 > > │ 00:00:27 verbose #42 benchmark.run / { input_str = struct ([|1; 3; 4;   │
00:01:48 verbose #1907 > > │ 6; 8; 9; 11|], 12, 7) }                                                      │
00:01:48 verbose #1908 > > │ 00:00:27 verbose #43 benchmark.run / solutions.map / { i = 1; test_name │
00:01:48 verbose #1909 > > │ = semi_open_1; time = 538 }                                                  │
00:01:48 verbose #1910 > > │ 00:00:28 verbose #44 benchmark.run / solutions.map / { i = 2; test_name │
00:01:48 verbose #1911 > > │ = closed_1; time = 528 }                                                     │
00:01:48 verbose #1912 > > │ 00:00:29 verbose #45 benchmark.run / solutions.map / { i = 3; test_name │
00:01:48 verbose #1913 > > │ = semi_open_2; time = 533 }                                                  │
00:01:48 verbose #1914 > > │ 00:00:30 verbose #46 benchmark.run / solutions.map / { i = 4; test_name │
00:01:48 verbose #1915 > > │ = closed_2; time = 535 }                                                     │
00:01:48 verbose #1916 > > │                                                                              │
00:01:48 verbose #1917 > > │ 00:00:30 verbose #47 benchmark.run / { input_str = struct ([|1; 2; 3;   │
00:01:48 verbose #1918 > > │ 4...100; ...|], 60, 100) }                                                   │
00:01:48 verbose #1919 > > │ 00:00:30 verbose #48 benchmark.run / solutions.map / { i = 1; test_name │
00:01:48 verbose #1920 > > │ = semi_open_1; time = 551 }                                                  │
00:01:48 verbose #1921 > > │ 00:00:31 verbose #49 benchmark.run / solutions.map / { i = 2; test_name │
00:01:48 verbose #1922 > > │ = closed_1; time = 557 }                                                     │
00:01:48 verbose #1923 > > │ 00:00:32 verbose #50 benchmark.run / solutions.map / { i = 3; test_name │
00:01:48 verbose #1924 > > │ = semi_open_2; time = 578 }                                                  │
00:01:48 verbose #1925 > > │ 00:00:33 verbose #51 benchmark.run / solutions.map / { i = 4; test_name │
00:01:48 verbose #1926 > > │ = closed_2; time = 592 }                                                     │
00:01:48 verbose #1927 > > │ ```                                                                          │
00:01:48 verbose #1928 > > │ input                                    	| expected	| result  	| best             │
00:01:48 verbose #1929 > > │ ---                                      	| ---     	| ---     	| ---              │
00:01:48 verbose #1930 > > │ struct ([1; 3; 4; 6; 8; 9; 11], 6, 7)    	| US4_0 3 	| US4_0 3 	| 2, 671           │
00:01:48 verbose #1931 > > │ struct ([1; 3; 4; 6; 8; 9; 11], 1, 7)    	| US4_0 0 	| US4_0 0 	| 4, 624           │
00:01:48 verbose #1932 > > │ struct ([1; 3; 4; 6; 8; 9; 11], 11, 7)   	| US4_0 6 	| US4_0 6 	| 3, 567           │
00:01:48 verbose #1933 > > │ struct ([1; 3; 4; 6; 8; 9; 11], 12, 7)   	| US4_1   	| US4_1   	| 2, 561           │
00:01:48 verbose #1934 > > │ struct ([1; 2; 3; 4...00; ...], 60, 1000)	| US4_0 59	| US4_0 59	| 1, 555           │
00:01:48 verbose #1935 > > │ struct ([1; 3; 4; 6; 8; 9; 11], 6, 7)    	| US4_0 3 	| US4_0 3 	| 2, 502           │
00:01:48 verbose #1936 > > │ struct ([1; 3; 4; 6; 8; 9; 11], 1, 7)    	| US4_0 0 	| US4_0 0 	| 1, 530           │
00:01:48 verbose #1937 > > │ struct ([1; 3; 4; 6; 8; 9; 11], 11, 7)   	| US4_0 6 	| US4_0 6 	| 4, 549           │
00:01:48 verbose #1938 > > │ struct ([1; 3; 4; 6; 8; 9; 11], 12, 7)   	| US4_1   	| US4_1   	| 2, 528           │
00:01:48 verbose #1939 > > │ struct ([1; 2; 3; 4...100; ...], 60, 100)	| US4_0 59	| US4_0 59	| 1, 551           │
00:01:48 verbose #1940 > > │ ```                                                                          │
00:01:48 verbose #1941 > > │ 00:00:33 verbose #52 benchmark.sort_result_list / averages.iter / { i = │
00:01:48 verbose #1942 > > │ 2; avg = 579 }                                                               │
00:01:48 verbose #1943 > > │ 00:00:33 verbose #53 benchmark.sort_result_list / averages.iter / { i = │
00:01:48 verbose #1944 > > │ 3; avg = 583 }                                                               │
00:01:48 verbose #1945 > > │ 00:00:33 verbose #54 benchmark.sort_result_list / averages.iter / { i = │
00:01:48 verbose #1946 > > │ 4; avg = 585 }                                                               │
00:01:48 verbose #1947 > > │ 00:00:33 verbose #55 benchmark.sort_result_list / averages.iter / { i = │
00:01:48 verbose #1948 > > │ 1; avg = 599 }                                                               │
00:01:48 verbose #1949 > > │ ```                                                                          │
00:01:48 verbose #1950 > > │                                                                              │
00:01:48 verbose #1951 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:48 verbose #1952 > >
00:01:48 verbose #1953 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:48 verbose #1954 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:48 verbose #1955 > > │ ## returnLettersWithOddCountTests                                            │
00:01:48 verbose #1956 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:48 verbose #1957 > >
00:01:48 verbose #1958 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:48 verbose #1959 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:48 verbose #1960 > > │ Test: ReturnLettersWithOddCount                                              │
00:01:48 verbose #1961 > > │                                                                              │
00:01:48 verbose #1962 > > │ Solution: 1                                                                  │
00:01:48 verbose #1963 > > │ Test case 1. A. Time: 645L                                                   │
00:01:48 verbose #1964 > > │                                                                              │
00:01:48 verbose #1965 > > │ Solution: 2                                                                  │
00:01:48 verbose #1966 > > │ Test case 1. A. Time: 663L                                                   │
00:01:48 verbose #1967 > > │                                                                              │
00:01:48 verbose #1968 > > │ Solution: 3                                                                  │
00:01:48 verbose #1969 > > │ Test case 1. A. Time: 680L                                                   │
00:01:48 verbose #1970 > > │                                                                              │
00:01:48 verbose #1971 > > │ Solution: 9                                                                  │
00:01:48 verbose #1972 > > │ Test case 1. A. Time: 730L                                                   │
00:01:48 verbose #1973 > > │                                                                              │
00:01:48 verbose #1974 > > │ Solution: 10                                                                 │
00:01:48 verbose #1975 > > │ Test case 1. A. Time: 815L                                                   │
00:01:48 verbose #1976 > > │                                                                              │
00:01:48 verbose #1977 > > │ Input   | Expected        | Result          | Best                           │
00:01:48 verbose #1978 > > │ ---     | ---             | ---             | ---                            │
00:01:48 verbose #1979 > > │ 1       | a               | a               | (1, 645)                       │
00:01:48 verbose #1980 > > │ 2       | ba              | ba              | (1, 663)                       │
00:01:48 verbose #1981 > > │ 3       | aaa             | aaa             | (1, 680)                       │
00:01:48 verbose #1982 > > │ 9       | aaaaaaaaa       | aaaaaaaaa       | (1, 730)                       │
00:01:48 verbose #1983 > > │ 10      | baaaaaaaaa      | baaaaaaaaa      | (1, 815)                       │
00:01:48 verbose #1984 > > │                                                                              │
00:01:48 verbose #1985 > > │ Averages                                                                     │
00:01:48 verbose #1986 > > │ Test case 1. Average Time: 706L                                              │
00:01:48 verbose #1987 > > │                                                                              │
00:01:48 verbose #1988 > > │ Ranking                                                                      │
00:01:48 verbose #1989 > > │ Test case 1. Average Time: 706L                                              │
00:01:48 verbose #1990 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:48 verbose #1991 > >
00:01:48 verbose #1992 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:01:48 verbose #1993 > > //// test
00:01:48 verbose #1994 > >
00:01:48 verbose #1995 > > let solutions = [[
00:01:48 verbose #1996 > >     "A",
00:01:48 verbose #1997 > >     fun n ->
00:01:48 verbose #1998 > >         let mutable _builder = StringBuilder (new string('a', n))
00:01:48 verbose #1999 > >         if n % 2 = 0 then
00:01:48 verbose #2000 > >             _builder.[[0]] <- 'b'
00:01:48 verbose #2001 > >
00:01:48 verbose #2002 > >         _builder.ToString ()
00:01:48 verbose #2003 > > ]]
00:01:48 verbose #2004 > > let testCases = seq {
00:01:48 verbose #2005 > >     1, "a"
00:01:48 verbose #2006 > >     2, "ba"
00:01:48 verbose #2007 > >     3, "aaa"
00:01:48 verbose #2008 > >     9, "aaaaaaaaa"
00:01:48 verbose #2009 > >     10, "baaaaaaaaa"
00:01:48 verbose #2010 > > }
00:01:48 verbose #2011 > > let rec returnLettersWithOddCountTests =
00:01:48 verbose #2012 > >     runAll (nameof returnLettersWithOddCountTests) _count solutions testCases
00:01:48 verbose #2013 > > returnLettersWithOddCountTests
00:01:48 verbose #2014 > > |> sortResultList
00:01:49 verbose #2015 > >
00:01:49 verbose #2016 > > ╭─[ 1.10s - stdout ]───────────────────────────────────────────────────────────╮
00:01:49 verbose #2017 > > │                                                                              │
00:01:49 verbose #2018 > > │                                                                              │
00:01:49 verbose #2019 > > │ Test: returnLettersWithOddCountTests                                         │
00:01:49 verbose #2020 > > │                                                                              │
00:01:49 verbose #2021 > > │ Solution: 1                                                                  │
00:01:49 verbose #2022 > > │ Test case 1. A. Time: 0L                                                     │
00:01:49 verbose #2023 > > │                                                                              │
00:01:49 verbose #2024 > > │ Solution: 2                                                                  │
00:01:49 verbose #2025 > > │ Test case 1. A. Time: 0L                                                     │
00:01:49 verbose #2026 > > │                                                                              │
00:01:49 verbose #2027 > > │ Solution: 3                                                                  │
00:01:49 verbose #2028 > > │ Test case 1. A. Time: 0L                                                     │
00:01:49 verbose #2029 > > │                                                                              │
00:01:49 verbose #2030 > > │ Solution: 9                                                                  │
00:01:49 verbose #2031 > > │ Test case 1. A. Time: 0L                                                     │
00:01:49 verbose #2032 > > │                                                                              │
00:01:49 verbose #2033 > > │ Solution: 10                                                                 │
00:01:49 verbose #2034 > > │ Test case 1. A. Time: 2L                                                     │
00:01:49 verbose #2035 > > │                                                                              │
00:01:49 verbose #2036 > > │ Input	| Expected  	| Result    	| Best                                             │
00:01:49 verbose #2037 > > │ ---  	| ---       	| ---       	| ---                                              │
00:01:49 verbose #2038 > > │ 1    	| a         	| a         	| (1, 0)                                           │
00:01:49 verbose #2039 > > │ 2    	| ba        	| ba        	| (1, 0)                                           │
00:01:49 verbose #2040 > > │ 3    	| aaa       	| aaa       	| (1, 0)                                           │
00:01:49 verbose #2041 > > │ 9    	| aaaaaaaaa 	| aaaaaaaaa 	| (1, 0)                                           │
00:01:49 verbose #2042 > > │ 10   	| baaaaaaaaa	| baaaaaaaaa	| (1, 2)                                           │
00:01:49 verbose #2043 > > │                                                                              │
00:01:49 verbose #2044 > > │ Average Ranking                                                              │
00:01:49 verbose #2045 > > │ Test case 1. Average Time: 0L                                                │
00:01:49 verbose #2046 > > │                                                                              │
00:01:49 verbose #2047 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:49 verbose #2048 > >
00:01:49 verbose #2049 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:49 verbose #2050 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:49 verbose #2051 > > │ ## hasAnyPairCloseToEachotherTests                                           │
00:01:49 verbose #2052 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:49 verbose #2053 > >
00:01:49 verbose #2054 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:49 verbose #2055 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:49 verbose #2056 > > │ Test: HasAnyPairCloseToEachother                                             │
00:01:49 verbose #2057 > > │                                                                              │
00:01:49 verbose #2058 > > │ Solution: 0                                                                  │
00:01:49 verbose #2059 > > │ Test case 1. A. Time: 137L                                                   │
00:01:49 verbose #2060 > > │                                                                              │
00:01:49 verbose #2061 > > │ Solution: 1,2                                                                │
00:01:49 verbose #2062 > > │ Test case 1. A. Time: 186L                                                   │
00:01:49 verbose #2063 > > │                                                                              │
00:01:49 verbose #2064 > > │ Solution: 3,5                                                                │
00:01:49 verbose #2065 > > │ Test case 1. A. Time: 206L                                                   │
00:01:49 verbose #2066 > > │                                                                              │
00:01:49 verbose #2067 > > │ Solution: 3,4,6                                                              │
00:01:49 verbose #2068 > > │ Test case 1. A. Time: 149L                                                   │
00:01:49 verbose #2069 > > │                                                                              │
00:01:49 verbose #2070 > > │ Solution: 2,4,6                                                              │
00:01:49 verbose #2071 > > │ Test case 1. A. Time: 150L                                                   │
00:01:49 verbose #2072 > > │                                                                              │
00:01:49 verbose #2073 > > │ Input   | Expected        | Result  | Best                                   │
00:01:49 verbose #2074 > > │ ---     | ---             | ---     | ---                                    │
00:01:49 verbose #2075 > > │ 0       | False           | False   | (1, 137)                               │
00:01:49 verbose #2076 > > │ 1,2     | True            | True    | (1, 186)                               │
00:01:49 verbose #2077 > > │ 3,5     | False           | False   | (1, 206)                               │
00:01:49 verbose #2078 > > │ 3,4,6   | True            | True    | (1, 149)                               │
00:01:49 verbose #2079 > > │ 2,4,6   | False           | False   | (1, 150)                               │
00:01:49 verbose #2080 > > │                                                                              │
00:01:49 verbose #2081 > > │ Averages                                                                     │
00:01:49 verbose #2082 > > │ Test case 1. Average Time: 165L                                              │
00:01:49 verbose #2083 > > │                                                                              │
00:01:49 verbose #2084 > > │ Ranking                                                                      │
00:01:49 verbose #2085 > > │ Test case 1. Average Time: 165L                                              │
00:01:49 verbose #2086 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:49 verbose #2087 > >
00:01:49 verbose #2088 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:01:49 verbose #2089 > > //// test
00:01:49 verbose #2090 > >
00:01:49 verbose #2091 > > let solutions = [[
00:01:49 verbose #2092 > >     "A",
00:01:49 verbose #2093 > >     fun (a: int[[]]) ->
00:01:49 verbose #2094 > >         let indices = System.Linq.Enumerable.Range(0, a.Length) |>
00:01:49 verbose #2095 > > System.Linq.Enumerable.ToArray
00:01:49 verbose #2096 > >         System.Array.Sort (a, indices)
00:01:49 verbose #2097 > >
00:01:49 verbose #2098 > >         indices
00:01:49 verbose #2099 > >         |> Array.take (a.Length - 1)
00:01:49 verbose #2100 > >         |> Array.exists (fun i -> a.[[i + 1]] - a.[[i]] = 1)
00:01:49 verbose #2101 > > ]]
00:01:49 verbose #2102 > > let testCases = seq {
00:01:49 verbose #2103 > >     [[| 0 |]], false
00:01:49 verbose #2104 > >     [[| 1; 2 |]], true
00:01:49 verbose #2105 > >     [[| 3; 5 |]], false
00:01:49 verbose #2106 > >     [[| 3; 4; 6 |]], true
00:01:49 verbose #2107 > >     [[| 2; 4; 6 |]], false
00:01:49 verbose #2108 > > }
00:01:49 verbose #2109 > > let rec hasAnyPairCloseToEachotherTests =
00:01:49 verbose #2110 > >     runAll (nameof hasAnyPairCloseToEachotherTests) _count solutions testCases
00:01:49 verbose #2111 > > hasAnyPairCloseToEachotherTests
00:01:49 verbose #2112 > > |> sortResultList
00:01:50 verbose #2113 > >
00:01:50 verbose #2114 > > ╭─[ 1.17s - stdout ]───────────────────────────────────────────────────────────╮
00:01:50 verbose #2115 > > │                                                                              │
00:01:50 verbose #2116 > > │                                                                              │
00:01:50 verbose #2117 > > │ Test: hasAnyPairCloseToEachotherTests                                        │
00:01:50 verbose #2118 > > │                                                                              │
00:01:50 verbose #2119 > > │ Solution: 0                                                                  │
00:01:50 verbose #2120 > > │ Test case 1. A. Time: 2L                                                     │
00:01:50 verbose #2121 > > │                                                                              │
00:01:50 verbose #2122 > > │ Solution: 1,2                                                                │
00:01:50 verbose #2123 > > │ Test case 1. A. Time: 0L                                                     │
00:01:50 verbose #2124 > > │                                                                              │
00:01:50 verbose #2125 > > │ Solution: 3,5                                                                │
00:01:50 verbose #2126 > > │ Test case 1. A. Time: 0L                                                     │
00:01:50 verbose #2127 > > │                                                                              │
00:01:50 verbose #2128 > > │ Solution: 3,4,6                                                              │
00:01:50 verbose #2129 > > │ Test case 1. A. Time: 0L                                                     │
00:01:50 verbose #2130 > > │                                                                              │
00:01:50 verbose #2131 > > │ Solution: 2,4,6                                                              │
00:01:50 verbose #2132 > > │ Test case 1. A. Time: 0L                                                     │
00:01:50 verbose #2133 > > │                                                                              │
00:01:50 verbose #2134 > > │ Input	| Expected	| Result	| Best                                                   │
00:01:50 verbose #2135 > > │ ---  	| ---     	| ---   	| ---                                                    │
00:01:50 verbose #2136 > > │ 0    	| False   	| False 	| (1, 2)                                                 │
00:01:50 verbose #2137 > > │ 1,2  	| True    	| True  	| (1, 0)                                                 │
00:01:50 verbose #2138 > > │ 3,5  	| False   	| False 	| (1, 0)                                                 │
00:01:50 verbose #2139 > > │ 3,4,6	| True    	| True  	| (1, 0)                                                 │
00:01:50 verbose #2140 > > │ 2,4,6	| False   	| False 	| (1, 0)                                                 │
00:01:50 verbose #2141 > > │                                                                              │
00:01:50 verbose #2142 > > │ Average Ranking                                                              │
00:01:50 verbose #2143 > > │ Test case 1. Average Time: 0L                                                │
00:01:50 verbose #2144 > > │                                                                              │
00:01:50 verbose #2145 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:50 verbose #2146 > 00:01:49 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 125147 }
00:01:50 verbose #2147 > 00:01:49   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/apps/perf/Perf.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/apps/perf/Perf.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:01:53 verbose #2148 > 00:01:51 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/apps/perf/Perf.dib.ipynb to html
00:01:53 verbose #2149 > 00:01:51 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:01:53 verbose #2150 > 00:01:51 verbose #7 !   validate(nb)
00:01:55 verbose #2151 > 00:01:53 verbose #8 ! [NbConvertApp] Writing 458539 bytes to c:\home\git\polyglot\apps\perf\Perf.dib.html
00:01:55 verbose #2152 > 00:01:53 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 637 }
00:01:55 verbose #2153 > 00:01:53   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 637 }
00:01:55 verbose #2154 > 00:01:53   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/apps/perf/Perf.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/apps/perf/Perf.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:01:56 verbose #2155 > 00:01:54 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:01:56 verbose #2156 > 00:01:54   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:01:57 verbose #2157 > 00:01:55   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 125843 }
00:01:57   debug #2158 runtime.execute_with_options_async / { exit_code = 0; output_length = 132698 }
00:01:57   debug #3 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path Perf.dib --retries 3
00:01:57 verbose #6 networking.wait_for_port_access / { port = 13805; retry = 0; timeout = Some 100; status = false }
00:01:57 verbose #7 async.run_with_timeout_async / { timeout = 100 }
00:00:00   debug #1 writeDibCode / output: Fs / path: Perf.dib
00:00:00   debug #2 parseDibCode / output: Fs / file: Perf.dib
In [ ]:
{ pwsh ../apps/dir-tree-html/build.ps1 } | Invoke-Block
00:00:00 verbose #1 async.run_with_timeout_async / { timeout = 180 }
00:00:00   debug #1 runtime.execute_with_options_async / { options = { command = dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port 13805 --default-int i32 --default-float f64; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = Some <fun:main@570-7>; stdin = None; trace = true; working_directory = Some "C:\home\git\polyglot" } }
00:00:01 verbose #2 > 00:00:00   debug #1 pwd: C:\home\git\polyglot
00:00:01 verbose #3 > 00:00:00   debug #2 dllPath: C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release
00:00:01 verbose #4 > 00:00:00   debug #3 targetDir: C:\home\git\polyglot\target/spiral_Eval
00:00:01 verbose #2 async.run_with_timeout_async / { timeout = 100 }
00:00:01 verbose #3 networking.wait_for_port_access / { port = 13805; retry = 0; timeout = Some 100; status = true }
00:00:01 verbose #4 async.run_with_timeout_async / { timeout = 100 }
00:00:01 verbose #5 > Starting the Spiral Server. It is bound to: http://localhost:13805
00:00:01 verbose #5 async.run_with_timeout_async / { timeout = 100 }
00:00:01 verbose #1 Supervisor.sendJson / port: 13805 / json: {"Ping":true} / result:
00:00:01 verbose #2 awaitCompiler / Ping / result: 'Some(null)' / port: 13805 / retry: 0
00:00:01 verbose #6 > Server bound to: http://localhost:13805
00:00:01   debug #7 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path DirTreeHtml.dib; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:00:01 verbose #8 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "DirTreeHtml.dib"])) }
00:00:01 verbose #9 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/apps/dir-tree-html/DirTreeHtml.dib", "--output-path", "c:/home/git/polyglot/apps/dir-tree-html/DirTreeHtml.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/apps/dir-tree-html/DirTreeHtml.dib" --output-path "c:/home/git/polyglot/apps/dir-tree-html/DirTreeHtml.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:00:04 verbose #10 > >
00:00:04 verbose #11 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:04 verbose #12 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:04 verbose #13 > > │ # DirTreeHtml (Polyglot)                                                     │
00:00:04 verbose #14 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 verbose #15 > >
00:00:08 verbose #16 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:08 verbose #17 > > #r
00:00:08 verbose #18 > > @"../../../../../../../.nuget/packages/fsharp.control.asyncseq/3.2.1/lib/netstan
00:00:08 verbose #19 > > dard2.1/FSharp.Control.AsyncSeq.dll"
00:00:08 verbose #20 > > #r
00:00:08 verbose #21 > > @"../../../../../../../.nuget/packages/system.reactive/6.0.1-preview.1/lib/net6.
00:00:08 verbose #22 > > 0/System.Reactive.dll"
00:00:08 verbose #23 > > #r
00:00:08 verbose #24 > > @"../../../../../../../.nuget/packages/system.reactive.linq/6.0.1-preview.1/lib
00:00:08 verbose #25 > > netstandard2.0/System.Reactive.Linq.dll"
00:00:08 verbose #26 > > #r
00:00:08 verbose #27 > > @"../../../../../../../.nuget/packages/argu/6.2.4/lib/netstandard2.0/Argu.dll"
00:00:08 verbose #28 > > #r
00:00:08 verbose #29 > > @"../../../../../../../.nuget/packages/falco.markup/1.1.1/lib/netstandard2.0/Fal
00:00:08 verbose #30 > > co.Markup.dll"
00:00:22 verbose #31 > >
00:00:22 verbose #32 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:22 verbose #33 > > #if !INTERACTIVE
00:00:22 verbose #34 > > open Lib
00:00:22 verbose #35 > > #endif
00:00:22 verbose #36 > >
00:00:22 verbose #37 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:22 verbose #38 > > open SpiralFileSystem.Operators
00:00:22 verbose #39 > > open Falco.Markup
00:00:22 verbose #40 > >
00:00:22 verbose #41 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:22 verbose #42 > > type FileSystemNode =
00:00:22 verbose #43 > >     | File of string * string * int64
00:00:22 verbose #44 > >     | Folder of string * string * FileSystemNode list
00:00:22 verbose #45 > >     | Root of FileSystemNode list
00:00:22 verbose #46 > >
00:00:22 verbose #47 > > let rec scanDirectory isRoot (basePath : string) (path : string) =
00:00:22 verbose #48 > >     let relativePath =
00:00:22 verbose #49 > >         path
00:00:22 verbose #50 > >         |> SpiralSm.replace basePath ""
00:00:22 verbose #51 > >         |> SpiralSm.replace "\\" "/"
00:00:22 verbose #52 > >         |> SpiralSm.replace "//" "/"
00:00:22 verbose #53 > >         |> SpiralSm.trim_start [[| '/' |]]
00:00:22 verbose #54 > >
00:00:22 verbose #55 > >     let directories =
00:00:22 verbose #56 > >         path
00:00:22 verbose #57 > >         |> System.IO.Directory.GetDirectories
00:00:22 verbose #58 > >         |> Array.toList
00:00:22 verbose #59 > >         |> List.sort
00:00:22 verbose #60 > >         |> List.map (scanDirectory false basePath)
00:00:22 verbose #61 > >     let files =
00:00:22 verbose #62 > >         path
00:00:22 verbose #63 > >         |> System.IO.Directory.GetFiles
00:00:22 verbose #64 > >         |> Array.toList
00:00:22 verbose #65 > >         |> List.sort
00:00:22 verbose #66 > >         |> List.map (fun f -> File (System.IO.Path.GetFileName f, relativePath,
00:00:22 verbose #67 > > System.IO.FileInfo(f).Length))
00:00:22 verbose #68 > >
00:00:22 verbose #69 > >     let children = directories @ files
00:00:22 verbose #70 > >     if isRoot
00:00:22 verbose #71 > >     then Root children
00:00:22 verbose #72 > >     else Folder (path |> System.IO.Path.GetFileName, relativePath, children)
00:00:22 verbose #73 > >
00:00:22 verbose #74 > > let rec generateHtml fsNode =
00:00:22 verbose #75 > >     let sizeLabel size =
00:00:22 verbose #76 > >         match float size with
00:00:22 verbose #77 > >         | size when size > 1024.0 * 1024.0 -> $"%.2f{size / 1024.0 / 1024.0} MB"
00:00:22 verbose #78 > >         | size when size > 1024.0 -> $"%.2f{size / 1024.0} KB"
00:00:22 verbose #79 > >         | size -> $"%.2f{size} B"
00:00:22 verbose #80 > >     match fsNode with
00:00:22 verbose #81 > >     | File (fileName, relativePath, size) ->
00:00:22 verbose #82 > >         Elem.div [[]] [[
00:00:22 verbose #83 > >             Text.raw "&#128196; "
00:00:22 verbose #84 > >             Elem.a [[
00:00:22 verbose #85 > >                 Attr.href $"""{relativePath}{if relativePath = "" then "" else
00:00:22 verbose #86 > > "/"}{fileName}"""
00:00:22 verbose #87 > >             ]] [[
00:00:22 verbose #88 > >                 Text.raw fileName
00:00:22 verbose #89 > >             ]]
00:00:22 verbose #90 > >             Elem.span [[]] [[
00:00:22 verbose #91 > >                 Text.raw $" ({size |> sizeLabel})"
00:00:22 verbose #92 > >             ]]
00:00:22 verbose #93 > >         ]]
00:00:22 verbose #94 > >     | Folder (folderName, relativePath, children) ->
00:00:22 verbose #95 > >         let size =
00:00:22 verbose #96 > >             let rec loop children =
00:00:22 verbose #97 > >                 children
00:00:22 verbose #98 > >                 |> List.sumBy (function
00:00:22 verbose #99 > >                     | File (_, _, size) -> size
00:00:22 verbose #100 > >                     | Folder (_, _, children)
00:00:22 verbose #101 > >                     | Root children -> loop children
00:00:22 verbose #102 > >                 )
00:00:22 verbose #103 > >             loop children
00:00:22 verbose #104 > >         Elem.details [[
00:00:22 verbose #105 > >             Attr.open' "true"
00:00:22 verbose #106 > >         ]] [[
00:00:22 verbose #107 > >             Elem.summary [[]] [[
00:00:22 verbose #108 > >                 Text.raw "&#128194; "
00:00:22 verbose #109 > >                 Elem.a [[
00:00:22 verbose #110 > >                     Attr.href relativePath
00:00:22 verbose #111 > >                 ]] [[
00:00:22 verbose #112 > >                     Text.raw folderName
00:00:22 verbose #113 > >                 ]]
00:00:22 verbose #114 > >                 Elem.span [[]] [[
00:00:22 verbose #115 > >                     Text.raw $" ({size |> sizeLabel})"
00:00:22 verbose #116 > >                 ]]
00:00:22 verbose #117 > >             ]]
00:00:22 verbose #118 > >             Elem.div [[]] [[
00:00:22 verbose #119 > >                 yield! children |> List.map generateHtml
00:00:22 verbose #120 > >             ]]
00:00:22 verbose #121 > >         ]]
00:00:22 verbose #122 > >     | Root children ->
00:00:22 verbose #123 > >         Elem.div [[]] [[
00:00:22 verbose #124 > >             yield! children |> List.map generateHtml
00:00:22 verbose #125 > >         ]]
00:00:22 verbose #126 > >
00:00:22 verbose #127 > > let generateHtmlForFileSystem root =
00:00:22 verbose #128 > >     $"""<!DOCTYPE html>
00:00:22 verbose #129 > > <html lang="en">
00:00:22 verbose #130 > > <head>
00:00:22 verbose #131 > >   <meta charset="UTF-8">
00:00:22 verbose #132 > >   <style>
00:00:22 verbose #133 > > body {{
00:00:22 verbose #134 > >     background-color: #222;
00:00:22 verbose #135 > >     color: #ccc;
00:00:22 verbose #136 > > }}
00:00:22 verbose #137 > > a {{
00:00:22 verbose #138 > >   color: #777;
00:00:22 verbose #139 > >   font-size: 15px;
00:00:22 verbose #140 > > }}
00:00:22 verbose #141 > > span {{
00:00:22 verbose #142 > >   font-size: 11px;
00:00:22 verbose #143 > > }}
00:00:22 verbose #144 > > div > div {{
00:00:22 verbose #145 > >   padding-left: 10px;
00:00:22 verbose #146 > > }}
00:00:22 verbose #147 > > details > div {{
00:00:22 verbose #148 > >   padding-left: 19px;
00:00:22 verbose #149 > > }}
00:00:22 verbose #150 > >   </style>
00:00:22 verbose #151 > > </head>
00:00:22 verbose #152 > > <body>
00:00:22 verbose #153 > >   {root |> generateHtml |> renderNode}
00:00:22 verbose #154 > > </body>
00:00:22 verbose #155 > > </html>
00:00:22 verbose #156 > > """
00:00:22 verbose #157 > >
00:00:22 verbose #158 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:22 verbose #159 > > //// test
00:00:22 verbose #160 > >
00:00:22 verbose #161 > > let expected = """<!DOCTYPE html>
00:00:22 verbose #162 > > <html lang="en">
00:00:22 verbose #163 > > <head>
00:00:22 verbose #164 > >   <meta charset="UTF-8">
00:00:22 verbose #165 > >   <style>
00:00:22 verbose #166 > > body {
00:00:22 verbose #167 > >     background-color: #222;
00:00:22 verbose #168 > >     color: #ccc;
00:00:22 verbose #169 > > }
00:00:22 verbose #170 > > a {
00:00:22 verbose #171 > >   color: #777;
00:00:22 verbose #172 > >   font-size: 15px;
00:00:22 verbose #173 > > }
00:00:22 verbose #174 > > span {
00:00:22 verbose #175 > >   font-size: 11px;
00:00:22 verbose #176 > > }
00:00:22 verbose #177 > > div > div {
00:00:22 verbose #178 > >   padding-left: 10px;
00:00:22 verbose #179 > > }
00:00:22 verbose #180 > > details > div {
00:00:22 verbose #181 > >   padding-left: 19px;
00:00:22 verbose #182 > > }
00:00:22 verbose #183 > >   </style>
00:00:22 verbose #184 > > </head>
00:00:22 verbose #185 > > <body>
00:00:22 verbose #186 > >   <div><details open="true"><summary>&#128194; <a href="_.root">_.root</a><span>
00:00:22 verbose #187 > > (10.00 B)</span></summary><div><details open="true"><summary>&#128194; <a
00:00:22 verbose #188 > > href="_.root/3">3</a><span> (6.00 B)</span></summary><div><details
00:00:22 verbose #189 > > open="true"><summary>&#128194; <a href="_.root/3/2">2</a><span> (3.00
00:00:22 verbose #190 > > B)</span></summary><div><details open="true"><summary>&#128194; <a
00:00:22 verbose #191 > > href="_.root/3/2/1">1</a><span> (1.00 B)</span></summary><div><div>&#128196; <a
00:00:22 verbose #192 > > href="_.root/3/2/1/file.txt">file.txt</a><span> (1.00
00:00:22 verbose #193 > > B)</span></div></div></details><div>&#128196; <a
00:00:22 verbose #194 > > href="_.root/3/2/file.txt">file.txt</a><span> (2.00
00:00:22 verbose #195 > > B)</span></div></div></details><div>&#128196; <a
00:00:22 verbose #196 > > href="_.root/3/file.txt">file.txt</a><span> (3.00
00:00:22 verbose #197 > > B)</span></div></div></details><div>&#128196; <a
00:00:22 verbose #198 > > href="_.root/file.txt">file.txt</a><span> (4.00
00:00:22 verbose #199 > > B)</span></div></div></details></div>
00:00:22 verbose #200 > > </body>
00:00:22 verbose #201 > > </html>
00:00:22 verbose #202 > > """
00:00:22 verbose #203 > >
00:00:22 verbose #204 > > let struct (tempFolder, disposable) = expected |> SpiralCrypto.hash_text |>
00:00:22 verbose #205 > > SpiralFileSystem.create_temp_dir'
00:00:22 verbose #206 > > let rec loop d n = async {
00:00:22 verbose #207 > >     if n >= 0 then
00:00:22 verbose #208 > >         tempFolder </> d |> System.IO.Directory.CreateDirectory |> ignore
00:00:22 verbose #209 > >         do!
00:00:22 verbose #210 > >             n
00:00:22 verbose #211 > >             |> string
00:00:22 verbose #212 > >             |> String.replicate (n + 1)
00:00:22 verbose #213 > >             |> SpiralFileSystem.write_all_text_async (tempFolder </> d </>
00:00:22 verbose #214 > > $"file.txt")
00:00:22 verbose #215 > >         do! loop $"{d}/{n}" (n - 1)
00:00:22 verbose #216 > > }
00:00:22 verbose #217 > > loop "_.root" 3
00:00:22 verbose #218 > > |> Async.RunSynchronously
00:00:22 verbose #219 > >
00:00:22 verbose #220 > > let html =
00:00:22 verbose #221 > >     scanDirectory true tempFolder tempFolder
00:00:22 verbose #222 > >     |> generateHtmlForFileSystem
00:00:22 verbose #223 > >
00:00:22 verbose #224 > > html
00:00:22 verbose #225 > > |> _assertEqual expected
00:00:22 verbose #226 > >
00:00:22 verbose #227 > > disposable.Dispose ()
00:00:22 verbose #228 > >
00:00:22 verbose #229 > > html |> Microsoft.DotNet.Interactive.Formatting.Html.ToHtmlContent
00:00:23 verbose #230 > >
00:00:23 verbose #231 > > ╭─[ 199.10ms - return value ]──────────────────────────────────────────────────╮
00:00:23 verbose #232 > > │ <!DOCTYPE html>                                                              │
00:00:23 verbose #233 > > │ <html lang="en">                                                             │
00:00:23 verbose #234 > > │ <head>                                                                       │
00:00:23 verbose #235 > > │   <meta charset="UTF-8">                                                     │
00:00:23 verbose #236 > > │   <style>                                                                    │
00:00:23 verbose #237 > > │ body {                                                                       │
00:00:23 verbose #238 > > │     background-color: #222;                                                  │
00:00:23 verbose #239 > > │     color: #ccc;                                                             │
00:00:23 verbose #240 > > │ }                                                                            │
00:00:23 verbose #241 > > │ a {                                                                          │
00:00:23 verbose #242 > > │   color: #777;                                                               │
00:00:23 verbose #243 > > │   font-size: 15px;                                                           │
00:00:23 verbose #244 > > │ }                                                                            │
00:00:23 verbose #245 > > │ span {                                                                       │
00:00:23 verbose #246 > > │   font-size: 11px;                                                           │
00:00:23 verbose #247 > > │ }                                                                            │
00:00:23 verbose #248 > > │ div > div {                                                                  │
00:00:23 verbose #249 > > │   padding-left: 10px;                                                        │
00:00:23 verbose #250 > > │ }                                                                            │
00:00:23 verbose #251 > > │ details > div {                                                              │
00:00:23 verbose #252 > > │   padding-left: 19px;                                                        │
00:00:23 verbose #253 > > │ }                                                                            │
00:00:23 verbose #254 > > │   </style>                                                                   │
00:00:23 verbose #255 > > │ </head>                                                                      │
00:00:23 verbose #256 > > │ <body>                                                                       │
00:00:23 verbose #257 > > │   <div><details open="true"><summary>&#128194; <a                            │
00:00:23 verbose #258 > > │ href="_.root">_.root</a><span> (10.00 B)</span></summary><div><details       │
00:00:23 verbose #259 > > │ open="true"><summary>&#128194; <a href="_.root/3">3</a><span> (6.00          │
00:00:23 verbose #260 > > │ B)</span></summary><div><details open="true"><summary>&#128194; <a           │
00:00:23 verbose #261 > > │ href="_.root/3/2">2</a><span> (3.00 B)</span></summary><div><details         │
00:00:23 verbose #262 > > │ open="true"><summary>&#128194; <a href="_.root/3/2/1">1</a><span> (1.00      │
00:00:23 verbose #263 > > │ B)</span></summary><div><div>&#128196; <a                                    │
00:00:23 verbose #264 > > │ href="_.root/3/2/1/file.txt">file.txt</a><span> (1.00                        │
00:00:23 verbose #265 > > │ B)</span></div></div></details><div>&#128196; <a                             │
00:00:23 verbose #266 > > │ href="_.root/3/2/file.txt">file.txt</a><span> (2.00                          │
00:00:23 verbose #267 > > │ B)</span></div></div></details><div>&#128196; <a                             │
00:00:23 verbose #268 > > │ href="_.root/3/file.txt">file.txt</a><span> (3.00                            │
00:00:23 verbose #269 > > │ B)</span></div></div></details><div>&#128196; <a                             │
00:00:23 verbose #270 > > │ href="_.root/file.txt">file.txt</a><span> (4.00                              │
00:00:23 verbose #271 > > │ B)</span></div></div></details></div>                                        │
00:00:23 verbose #272 > > │ </body>                                                                      │
00:00:23 verbose #273 > > │ </html>                                                                      │
00:00:23 verbose #274 > > │                                                                              │
00:00:23 verbose #275 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:23 verbose #276 > >
00:00:23 verbose #277 > > ╭─[ 205.31ms - stdout ]────────────────────────────────────────────────────────╮
00:00:23 verbose #278 > > │ "<!DOCTYPE html>                                                             │
00:00:23 verbose #279 > > │ <html lang="en">                                                             │
00:00:23 verbose #280 > > │ <head>                                                                       │
00:00:23 verbose #281 > > │   <meta charset="UTF-8">                                                     │
00:00:23 verbose #282 > > │   <style>                                                                    │
00:00:23 verbose #283 > > │ body {                                                                       │
00:00:23 verbose #284 > > │     background-color: #222;                                                  │
00:00:23 verbose #285 > > │     color: #ccc;                                                             │
00:00:23 verbose #286 > > │ }                                                                            │
00:00:23 verbose #287 > > │ a {                                                                          │
00:00:23 verbose #288 > > │   color: #777;                                                               │
00:00:23 verbose #289 > > │   font-size: 15px;                                                           │
00:00:23 verbose #290 > > │ }                                                                            │
00:00:23 verbose #291 > > │ span {                                                                       │
00:00:23 verbose #292 > > │   font-size: 11px;                                                           │
00:00:23 verbose #293 > > │ }                                                                            │
00:00:23 verbose #294 > > │ div > div {                                                                  │
00:00:23 verbose #295 > > │   padding-left: 10px;                                                        │
00:00:23 verbose #296 > > │ }                                                                            │
00:00:23 verbose #297 > > │ details > div {                                                              │
00:00:23 verbose #298 > > │   padding-left: 19px;                                                        │
00:00:23 verbose #299 > > │ }                                                                            │
00:00:23 verbose #300 > > │   </style>                                                                   │
00:00:23 verbose #301 > > │ </head>                                                                      │
00:00:23 verbose #302 > > │ <body>                                                                       │
00:00:23 verbose #303 > > │   <div><details open="true"><summary>&#128194; <a                            │
00:00:23 verbose #304 > > │ href="_.root">_.root</a><span> (10.00 B)</span></summary><div><details       │
00:00:23 verbose #305 > > │ open="true"><summary>&#128194; <a href="_.root/3">3</a><span> (6.00          │
00:00:23 verbose #306 > > │ B)</span></summary><div><details open="true"><summary>&#128194; <a           │
00:00:23 verbose #307 > > │ href="_.root/3/2">2</a><span> (3.00 B)</span></summary><div><details         │
00:00:23 verbose #308 > > │ open="true"><summary>&#128194; <a href="_.root/3/2/1">1</a><span> (1.00      │
00:00:23 verbose #309 > > │ B)</span></summary><div><div>&#128196; <a                                    │
00:00:23 verbose #310 > > │ href="_.root/3/2/1/file.txt">file.txt</a><span> (1.00                        │
00:00:23 verbose #311 > > │ B)</span></div></div></details><div>&#128196; <a                             │
00:00:23 verbose #312 > > │ href="_.root/3/2/file.txt">file.txt</a><span> (2.00                          │
00:00:23 verbose #313 > > │ B)</span></div></div></details><div>&#128196; <a                             │
00:00:23 verbose #314 > > │ href="_.root/3/file.txt">file.txt</a><span> (3.00                            │
00:00:23 verbose #315 > > │ B)</span></div></div></details><div>&#128196; <a                             │
00:00:23 verbose #316 > > │ href="_.root/file.txt">file.txt</a><span> (4.00                              │
00:00:23 verbose #317 > > │ B)</span></div></div></details></div>                                        │
00:00:23 verbose #318 > > │ </body>                                                                      │
00:00:23 verbose #319 > > │ </html>                                                                      │
00:00:23 verbose #320 > > │ "                                                                            │
00:00:23 verbose #321 > > │                                                                              │
00:00:23 verbose #322 > > │                                                                              │
00:00:23 verbose #323 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:23 verbose #324 > >
00:00:23 verbose #325 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:23 verbose #326 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:23 verbose #327 > > │ ## Arguments                                                                 │
00:00:23 verbose #328 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:23 verbose #329 > >
00:00:23 verbose #330 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:23 verbose #331 > > [[<RequireQualifiedAccess>]]
00:00:23 verbose #332 > > type Arguments =
00:00:23 verbose #333 > >     | [[<Argu.ArguAttributes.ExactlyOnce>]] Dir of string
00:00:23 verbose #334 > >     | [[<Argu.ArguAttributes.ExactlyOnce>]] Html of string
00:00:23 verbose #335 > >
00:00:23 verbose #336 > >     interface Argu.IArgParserTemplate with
00:00:23 verbose #337 > >         member s.Usage =
00:00:23 verbose #338 > >             match s with
00:00:23 verbose #339 > >             | Dir _ -> nameof Dir
00:00:23 verbose #340 > >             | Html _ -> nameof Html
00:00:23 verbose #341 > >
00:00:23 verbose #342 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:23 verbose #343 > > //// test
00:00:23 verbose #344 > >
00:00:23 verbose #345 > > Argu.ArgumentParser.Create<Arguments>().PrintUsage ()
00:00:23 verbose #346 > >
00:00:23 verbose #347 > > ╭─[ 103.39ms - return value ]──────────────────────────────────────────────────╮
00:00:23 verbose #348 > > │ "USAGE: dotnet-repl [--help] --dir <string> --html <string>                  │
00:00:23 verbose #349 > > │                                                                              │
00:00:23 verbose #350 > > │ OPTIONS:                                                                     │
00:00:23 verbose #351 > > │                                                                              │
00:00:23 verbose #352 > > │     --dir <string>        Dir                                                │
00:00:23 verbose #353 > > │     --html <string>       Html                                               │
00:00:23 verbose #354 > > │     --help                display this list of options.                      │
00:00:23 verbose #355 > > │ "                                                                            │
00:00:23 verbose #356 > > │                                                                              │
00:00:23 verbose #357 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:23 verbose #358 > >
00:00:23 verbose #359 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:23 verbose #360 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:23 verbose #361 > > │ ## main                                                                      │
00:00:23 verbose #362 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:23 verbose #363 > >
00:00:23 verbose #364 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:23 verbose #365 > > let main args =
00:00:23 verbose #366 > >     let argsMap = args |> Runtime.parseArgsMap<Arguments>
00:00:23 verbose #367 > >
00:00:23 verbose #368 > >     let dir =
00:00:23 verbose #369 > >         match argsMap.[[nameof Arguments.Dir]] with
00:00:23 verbose #370 > >         | [[ Arguments.Dir dir ]] -> Some dir
00:00:23 verbose #371 > >         | _ -> None
00:00:23 verbose #372 > >         |> Option.get
00:00:23 verbose #373 > >
00:00:23 verbose #374 > >     let htmlPath =
00:00:23 verbose #375 > >         match argsMap.[[nameof Arguments.Html]] with
00:00:23 verbose #376 > >         | [[ Arguments.Html html ]] -> Some html
00:00:23 verbose #377 > >         | _ -> None
00:00:23 verbose #378 > >         |> Option.get
00:00:23 verbose #379 > >
00:00:23 verbose #380 > >     let fileSystem = scanDirectory true dir dir
00:00:23 verbose #381 > >     let html = generateHtmlForFileSystem fileSystem
00:00:23 verbose #382 > >
00:00:23 verbose #383 > >     html |> SpiralFileSystem.write_all_text_async htmlPath
00:00:23 verbose #384 > >     |> Async.runWithTimeout 30000
00:00:23 verbose #385 > >     |> function
00:00:23 verbose #386 > >         | Some () -> 0
00:00:23 verbose #387 > >         | None -> 1
00:00:23 verbose #388 > >
00:00:23 verbose #389 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:23 verbose #390 > > //// test
00:00:23 verbose #391 > >
00:00:23 verbose #392 > > let args =
00:00:23 verbose #393 > >     System.Environment.GetEnvironmentVariable "ARGS"
00:00:23 verbose #394 > >     |> SpiralRuntime.split_args
00:00:23 verbose #395 > >     |> Result.toArray
00:00:23 verbose #396 > >     |> Array.collect id
00:00:23 verbose #397 > >
00:00:23 verbose #398 > > match args with
00:00:23 verbose #399 > > | [[||]] -> 0
00:00:23 verbose #400 > > | args -> if main args = 0 then 0 else failwith "main failed"
00:00:23 verbose #401 > >
00:00:23 verbose #402 > > ╭─[ 80.81ms - return value ]───────────────────────────────────────────────────╮
00:00:23 verbose #403 > > │ <div class="dni-plaintext"><pre>0                                            │
00:00:23 verbose #404 > > │ </pre></div><style>                                                          │
00:00:23 verbose #405 > > │ .dni-code-hint {                                                             │
00:00:23 verbose #406 > > │     font-style: italic;                                                      │
00:00:23 verbose #407 > > │     overflow: hidden;                                                        │
00:00:23 verbose #408 > > │     white-space: nowrap;                                                     │
00:00:23 verbose #409 > > │ }                                                                            │
00:00:23 verbose #410 > > │ .dni-treeview {                                                              │
00:00:23 verbose #411 > > │     white-space: nowrap;                                                     │
00:00:23 verbose #412 > > │ }                                                                            │
00:00:23 verbose #413 > > │ .dni-treeview td {                                                           │
00:00:23 verbose #414 > > │     vertical-align: top;                                                     │
00:00:23 verbose #415 > > │     text-align: start;                                                       │
00:00:23 verbose #416 > > │ }                                                                            │
00:00:23 verbose #417 > > │ details.dni-treeview {                                                       │
00:00:23 verbose #418 > > │     padding-left: 1em;                                                       │
00:00:23 verbose #419 > > │ }                                                                            │
00:00:23 verbose #420 > > │ table td {                                                                   │
00:00:23 verbose #421 > > │     text-align: start;                                                       │
00:00:23 verbose #422 > > │ }                                                                            │
00:00:23 verbose #423 > > │ table tr {                                                                   │
00:00:23 verbose #424 > > │     vertical-align: top;                                                     │
00:00:23 verbose #425 > > │     margin: 0em 0px;                                                         │
00:00:23 verbose #426 > > │ }                                                                            │
00:00:23 verbose #427 > > │ table tr td pre                                                              │
00:00:23 verbose #428 > > │ {                                                                            │
00:00:23 verbose #429 > > │     vertical-align: top !important;                                          │
00:00:23 verbose #430 > > │     margin: 0em 0px !important;                                              │
00:00:23 verbose #431 > > │ }                                                                            │
00:00:23 verbose #432 > > │ table th {                                                                   │
00:00:23 verbose #433 > > │     text-align: start;                                                       │
00:00:23 verbose #434 > > │ }                                                                            │
00:00:23 verbose #435 > > │ </style>                                                                     │
00:00:23 verbose #436 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:23 verbose #437 > 00:00:21 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 19755 }
00:00:23 verbose #438 > 00:00:21   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/apps/dir-tree-html/DirTreeHtml.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/apps/dir-tree-html/DirTreeHtml.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:00:25 verbose #439 > 00:00:23 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/apps/dir-tree-html/DirTreeHtml.dib.ipynb to html
00:00:25 verbose #440 > 00:00:23 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:00:25 verbose #441 > 00:00:23 verbose #7 !   validate(nb)
00:00:26 verbose #442 > 00:00:24 verbose #8 ! [NbConvertApp] Writing 309931 bytes to c:\home\git\polyglot\apps\dir-tree-html\DirTreeHtml.dib.html
00:00:27 verbose #443 > 00:00:25 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 669 }
00:00:27 verbose #444 > 00:00:25   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 669 }
00:00:27 verbose #445 > 00:00:25   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/apps/dir-tree-html/DirTreeHtml.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/apps/dir-tree-html/DirTreeHtml.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:00:28 verbose #446 > 00:00:26 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:00:28 verbose #447 > 00:00:26   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:00:28 verbose #448 > 00:00:26   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 20483 }
00:00:28   debug #449 runtime.execute_with_options_async / { exit_code = 0; output_length = 24045 }
00:00:28   debug #3 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path DirTreeHtml.dib
00:00:28 verbose #6 networking.wait_for_port_access / { port = 13805; retry = 0; timeout = Some 100; status = false }
00:00:28 verbose #7 async.run_with_timeout_async / { timeout = 100 }
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("std::string::String")>]
#endif
type std_string_String = class end
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("&$0")>]
#endif
type Ref<'T> = class end
module State = let mutable trace_state = None
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("std::env::VarError")>]
#endif
type std_env_VarError = class end
type IOsEnviron = abstract environ: x: unit -> obj
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("str")>]
#endif
type Str = class end
type [<Struct>] US0 =
    | US0_0
    | US0_1
    | US0_2
    | US0_3
    | US0_4
and Mut0 = {mutable l0 : int64}
and Mut1 = {mutable l0 : (string -> unit)}
and Mut2 = {mutable l0 : bool}
and Mut3 = {mutable l0 : US0}
and [<Struct>] US1 =
    | US1_0 of f0_0 : US0
    | US1_1
and [<Struct>] US2 =
    | US2_0 of f0_0 : int64
    | US2_1
and [<Struct>] US3 =
    | US3_0 of f0_0 : string
    | US3_1
and Mut4 = {mutable l0 : string}
and [<Struct>] US4 =
    | US4_0 of f0_0 : bool
    | US4_1
and [<Struct>] US5 =
    | US5_0 of f0_0 : bool
    | US5_1 of f1_0 : exn
and [<Struct>] US6 =
    | US6_0 of f0_0 : bool
    | US6_1 of f1_0 : exn
and [<Struct>] US7 =
    | US7_0 of f0_0 : int32
    | US7_1
let rec method0 () : string =
    let v0 : string = "TRACE_LEVEL"
    v0
and method2 () : string =
    let v0 : string = ""
    v0
and method1 (v0 : string) : string =
    let v3 : bool = true
    let mutable _v3 : string option = None 
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v4 : string = "std::env::var(&*$0)"
    let v5 : Result<std_string_String, std_env_VarError> = Fable.Core.RustInterop.emitRustExpr v0 v4 
    let v6 : string = "true; let _result = $0.map(|x| { //"
    let v7 : bool = Fable.Core.RustInterop.emitRustExpr v5 v6 
    let v8 : string = "x"
    let v9 : std_string_String = Fable.Core.RustInterop.emitRustExpr () v8 
    let v10 : string = "fable_library_rust::String_::fromString($0)"
    let v11 : string = Fable.Core.RustInterop.emitRustExpr v9 v10 
    let v12 : string = "true; $0 })"
    let v13 : bool = Fable.Core.RustInterop.emitRustExpr v11 v12 
    let v14 : string = "_result"
    let v15 : Result<string, std_env_VarError> = Fable.Core.RustInterop.emitRustExpr () v14 
    let v16 : string = method2()
    let v17 : string = "$0.unwrap_or($1)"
    let v18 : string = Fable.Core.RustInterop.emitRustExpr struct (v15, v16) v17 
    v18 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v19 : string = "std::env::var(&*$0)"
    let v20 : Result<std_string_String, std_env_VarError> = Fable.Core.RustInterop.emitRustExpr v0 v19 
    let v21 : string = "true; let _result = $0.map(|x| { //"
    let v22 : bool = Fable.Core.RustInterop.emitRustExpr v20 v21 
    let v23 : string = "x"
    let v24 : std_string_String = Fable.Core.RustInterop.emitRustExpr () v23 
    let v25 : string = "fable_library_rust::String_::fromString($0)"
    let v26 : string = Fable.Core.RustInterop.emitRustExpr v24 v25 
    let v27 : string = "true; $0 })"
    let v28 : bool = Fable.Core.RustInterop.emitRustExpr v26 v27 
    let v29 : string = "_result"
    let v30 : Result<string, std_env_VarError> = Fable.Core.RustInterop.emitRustExpr () v29 
    let v31 : string = method2()
    let v32 : string = "$0.unwrap_or($1)"
    let v33 : string = Fable.Core.RustInterop.emitRustExpr struct (v30, v31) v32 
    v33 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v34 : string = "std::env::var(&*$0)"
    let v35 : Result<std_string_String, std_env_VarError> = Fable.Core.RustInterop.emitRustExpr v0 v34 
    let v36 : string = "true; let _result = $0.map(|x| { //"
    let v37 : bool = Fable.Core.RustInterop.emitRustExpr v35 v36 
    let v38 : string = "x"
    let v39 : std_string_String = Fable.Core.RustInterop.emitRustExpr () v38 
    let v40 : string = "fable_library_rust::String_::fromString($0)"
    let v41 : string = Fable.Core.RustInterop.emitRustExpr v39 v40 
    let v42 : string = "true; $0 })"
    let v43 : bool = Fable.Core.RustInterop.emitRustExpr v41 v42 
    let v44 : string = "_result"
    let v45 : Result<string, std_env_VarError> = Fable.Core.RustInterop.emitRustExpr () v44 
    let v46 : string = method2()
    let v47 : string = "$0.unwrap_or($1)"
    let v48 : string = Fable.Core.RustInterop.emitRustExpr struct (v45, v46) v47 
    v48 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v49 : string = "process.env[$0] ?? \"\""
    let v50 : string = Fable.Core.JsInterop.emitJsExpr v0 v49 
    v50 
    #endif
#if FABLE_COMPILER_PYTHON
    let v53 : string = "os"
    let v54 : IOsEnviron = Fable.Core.PyInterop.importAll v53 
    let v55 : string = "v54.environ"
    let v56 : obj = Fable.Core.PyInterop.emitPyExpr () v55 
    let v65 : string = "v56.get($0)"
    let v66 : string = Fable.Core.PyInterop.emitPyExpr v0 v65 
    let mutable _v66 = None
    #if !FABLE_COMPILER && !WASM && !CONTRACT
    let v75 : (string -> string option) = Option.ofObj
    let v76 : string option = v75 v66
    v76 
    #else
    Some v66 
    #endif
    |> fun x -> _v66 <- Some x
    let v77 : string option = match _v66 with Some x -> x | None -> failwith "optionm'.of_obj / _v66=None"
    let v86 : US3 option = None
    let _v86 = ref v86 
    match v77 with
    | Some x -> (
    (fun () ->
    (fun () ->
    let v87 : string = x
    let v88 : US3 = US3_0(v87)
    v88 
    )
    |> fun x -> x () |> Some
    ) () ) | None -> None
    |> fun x -> _v86.Value <- x
    let v89 : US3 option = _v86.Value 
    let v112 : US3 = US3_1
    let v113 : US3 = v89 |> Option.defaultValue v112 
    let v124 : string =
        match v113 with
        | US3_1 -> (* None *)
            let v122 : string = ""
            v122
        | US3_0(v121) -> (* Some *)
            v121
    v124 
    #endif
#else
    let v125 : (string -> string) = System.Environment.GetEnvironmentVariable
    let v126 : string = v125 v0
    let mutable _v126 = None
    #if !FABLE_COMPILER && !WASM && !CONTRACT
    let v129 : (string -> string option) = Option.ofObj
    let v130 : string option = v129 v126
    v130 
    #else
    Some v126 
    #endif
    |> fun x -> _v126 <- Some x
    let v131 : string option = match _v126 with Some x -> x | None -> failwith "optionm'.of_obj / _v126=None"
    let v140 : US3 option = None
    let _v140 = ref v140 
    match v131 with
    | Some x -> (
    (fun () ->
    (fun () ->
    let v141 : string = x
    let v142 : US3 = US3_0(v141)
    v142 
    )
    |> fun x -> x () |> Some
    ) () ) | None -> None
    |> fun x -> _v140.Value <- x
    let v143 : US3 option = _v140.Value 
    let v166 : US3 = US3_1
    let v167 : US3 = v143 |> Option.defaultValue v166 
    let v178 : string =
        match v167 with
        | US3_1 -> (* None *)
            let v176 : string = ""
            v176
        | US3_0(v175) -> (* Some *)
            v175
    v178 
    #endif
    |> fun x -> _v3 <- Some x
    let v179 : string = match _v3 with Some x -> x | None -> failwith "base.run_target / _v3=None"
    v179
and method3 () : string =
    let v0 : string = "AUTOMATION"
    v0
and closure1 () (v0 : string) : unit =
    ()
and closure0 () (v0 : US0) : struct (Mut0 * Mut1 * Mut2 * Mut3 * int64 option) =
    let v3 : bool = true
    let mutable _v3 : struct (US1 * US2) option = None 
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v4 : string = method0()
    let v5 : string = method1(v4)
    let v7 : bool = "Verbose" = v5
    let v11 : US1 =
        if v7 then
            let v8 : US0 = US0_0
            US1_0(v8)
        else
            US1_1
    let v56 : US1 =
        match v11 with
        | US1_1 -> (* None *)
            let v15 : bool = "Debug" = v5
            let v19 : US1 =
                if v15 then
                    let v16 : US0 = US0_1
                    US1_0(v16)
                else
                    US1_1
            match v19 with
            | US1_1 -> (* None *)
                let v23 : bool = "Info" = v5
                let v27 : US1 =
                    if v23 then
                        let v24 : US0 = US0_2
                        US1_0(v24)
                    else
                        US1_1
                match v27 with
                | US1_1 -> (* None *)
                    let v31 : bool = "Warning" = v5
                    let v35 : US1 =
                        if v31 then
                            let v32 : US0 = US0_3
                            US1_0(v32)
                        else
                            US1_1
                    match v35 with
                    | US1_1 -> (* None *)
                        let v39 : bool = "Critical" = v5
                        let v43 : US1 =
                            if v39 then
                                let v40 : US0 = US0_4
                                US1_0(v40)
                            else
                                US1_1
                        match v43 with
                        | US1_1 -> (* None *)
                            US1_1
                        | US1_0(v44) -> (* Some *)
                            US1_0(v44)
                    | US1_0(v36) -> (* Some *)
                        US1_0(v36)
                | US1_0(v28) -> (* Some *)
                    US1_0(v28)
            | US1_0(v20) -> (* Some *)
                US1_0(v20)
        | US1_0(v12) -> (* Some *)
            US1_0(v12)
    let v57 : string = method3()
    let v58 : string = method1(v57)
    let v60 : bool = v58 = "True"
    let v82 : US2 =
        if v60 then
            let v63 : System.DateTime = System.DateTime.Now
            let v72 : (System.DateTime -> int64) = _.Ticks
            let v73 : int64 = v72 v63
            US2_0(v73)
        else
            US2_1
    struct (v56, v82) 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v83 : US1 = US1_1
    let v84 : US2 = US2_1
    struct (v83, v84) 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v85 : US1 = US1_1
    let v86 : US2 = US2_1
    struct (v85, v86) 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v87 : string = method0()
    let v88 : string = method1(v87)
    let v90 : bool = "Verbose" = v88
    let v94 : US1 =
        if v90 then
            let v91 : US0 = US0_0
            US1_0(v91)
        else
            US1_1
    let v139 : US1 =
        match v94 with
        | US1_1 -> (* None *)
            let v98 : bool = "Debug" = v88
            let v102 : US1 =
                if v98 then
                    let v99 : US0 = US0_1
                    US1_0(v99)
                else
                    US1_1
            match v102 with
            | US1_1 -> (* None *)
                let v106 : bool = "Info" = v88
                let v110 : US1 =
                    if v106 then
                        let v107 : US0 = US0_2
                        US1_0(v107)
                    else
                        US1_1
                match v110 with
                | US1_1 -> (* None *)
                    let v114 : bool = "Warning" = v88
                    let v118 : US1 =
                        if v114 then
                            let v115 : US0 = US0_3
                            US1_0(v115)
                        else
                            US1_1
                    match v118 with
                    | US1_1 -> (* None *)
                        let v122 : bool = "Critical" = v88
                        let v126 : US1 =
                            if v122 then
                                let v123 : US0 = US0_4
                                US1_0(v123)
                            else
                                US1_1
                        match v126 with
                        | US1_1 -> (* None *)
                            US1_1
                        | US1_0(v127) -> (* Some *)
                            US1_0(v127)
                    | US1_0(v119) -> (* Some *)
                        US1_0(v119)
                | US1_0(v111) -> (* Some *)
                    US1_0(v111)
            | US1_0(v103) -> (* Some *)
                US1_0(v103)
        | US1_0(v95) -> (* Some *)
            US1_0(v95)
    let v140 : string = method3()
    let v141 : string = method1(v140)
    let v143 : bool = v141 = "True"
    let v165 : US2 =
        if v143 then
            let v146 : System.DateTime = System.DateTime.Now
            let v155 : (System.DateTime -> int64) = _.Ticks
            let v156 : int64 = v155 v146
            US2_0(v156)
        else
            US2_1
    struct (v139, v165) 
    #endif
#if FABLE_COMPILER_PYTHON
    let v166 : string = method0()
    let v167 : string = method1(v166)
    let v169 : bool = "Verbose" = v167
    let v173 : US1 =
        if v169 then
            let v170 : US0 = US0_0
            US1_0(v170)
        else
            US1_1
    let v218 : US1 =
        match v173 with
        | US1_1 -> (* None *)
            let v177 : bool = "Debug" = v167
            let v181 : US1 =
                if v177 then
                    let v178 : US0 = US0_1
                    US1_0(v178)
                else
                    US1_1
            match v181 with
            | US1_1 -> (* None *)
                let v185 : bool = "Info" = v167
                let v189 : US1 =
                    if v185 then
                        let v186 : US0 = US0_2
                        US1_0(v186)
                    else
                        US1_1
                match v189 with
                | US1_1 -> (* None *)
                    let v193 : bool = "Warning" = v167
                    let v197 : US1 =
                        if v193 then
                            let v194 : US0 = US0_3
                            US1_0(v194)
                        else
                            US1_1
                    match v197 with
                    | US1_1 -> (* None *)
                        let v201 : bool = "Critical" = v167
                        let v205 : US1 =
                            if v201 then
                                let v202 : US0 = US0_4
                                US1_0(v202)
                            else
                                US1_1
                        match v205 with
                        | US1_1 -> (* None *)
                            US1_1
                        | US1_0(v206) -> (* Some *)
                            US1_0(v206)
                    | US1_0(v198) -> (* Some *)
                        US1_0(v198)
                | US1_0(v190) -> (* Some *)
                    US1_0(v190)
            | US1_0(v182) -> (* Some *)
                US1_0(v182)
        | US1_0(v174) -> (* Some *)
            US1_0(v174)
    let v219 : string = method3()
    let v220 : string = method1(v219)
    let v222 : bool = v220 = "True"
    let v244 : US2 =
        if v222 then
            let v225 : System.DateTime = System.DateTime.Now
            let v234 : (System.DateTime -> int64) = _.Ticks
            let v235 : int64 = v234 v225
            US2_0(v235)
        else
            US2_1
    struct (v218, v244) 
    #endif
#else
    let v245 : string = method0()
    let v246 : string = method1(v245)
    let v248 : bool = "Verbose" = v246
    let v252 : US1 =
        if v248 then
            let v249 : US0 = US0_0
            US1_0(v249)
        else
            US1_1
    let v297 : US1 =
        match v252 with
        | US1_1 -> (* None *)
            let v256 : bool = "Debug" = v246
            let v260 : US1 =
                if v256 then
                    let v257 : US0 = US0_1
                    US1_0(v257)
                else
                    US1_1
            match v260 with
            | US1_1 -> (* None *)
                let v264 : bool = "Info" = v246
                let v268 : US1 =
                    if v264 then
                        let v265 : US0 = US0_2
                        US1_0(v265)
                    else
                        US1_1
                match v268 with
                | US1_1 -> (* None *)
                    let v272 : bool = "Warning" = v246
                    let v276 : US1 =
                        if v272 then
                            let v273 : US0 = US0_3
                            US1_0(v273)
                        else
                            US1_1
                    match v276 with
                    | US1_1 -> (* None *)
                        let v280 : bool = "Critical" = v246
                        let v284 : US1 =
                            if v280 then
                                let v281 : US0 = US0_4
                                US1_0(v281)
                            else
                                US1_1
                        match v284 with
                        | US1_1 -> (* None *)
                            US1_1
                        | US1_0(v285) -> (* Some *)
                            US1_0(v285)
                    | US1_0(v277) -> (* Some *)
                        US1_0(v277)
                | US1_0(v269) -> (* Some *)
                    US1_0(v269)
            | US1_0(v261) -> (* Some *)
                US1_0(v261)
        | US1_0(v253) -> (* Some *)
            US1_0(v253)
    let v298 : string = method3()
    let v299 : string = method1(v298)
    let v301 : bool = v299 = "True"
    let v323 : US2 =
        if v301 then
            let v304 : System.DateTime = System.DateTime.Now
            let v313 : (System.DateTime -> int64) = _.Ticks
            let v314 : int64 = v313 v304
            US2_0(v314)
        else
            US2_1
    struct (v297, v323) 
    #endif
    |> fun x -> _v3 <- Some x
    let struct (v324 : US1, v325 : US2) = match _v3 with Some x -> x | None -> failwith "base.run_target / _v3=None"
    let v411 : Mut2 = {l0 = true} : Mut2
    let v412 : Mut0 = {l0 = 0L} : Mut0
    let v415 : US0 =
        match v324 with
        | US1_1 -> (* None *)
            v0
        | US1_0(v413) -> (* Some *)
            v413
    let v416 : Mut3 = {l0 = v415} : Mut3
    let v417 : (string -> unit) = closure1()
    let v418 : Mut1 = {l0 = v417} : Mut1
    let v431 : int64 option =
        match v325 with
        | US2_1 -> (* None *)
            let v429 : int64 option = None
            v429
        | US2_0(v419) -> (* Some *)
            let v422 : int64 option = Some v419 
            v422
    struct (v412, v418, v411, v416, v431)
and closure4 () () : string =
    let v0 : string = $"networking.test_port_open"
    v0
and closure5 (v0 : int32, v1 : string) () : struct (int32 * string) =
    struct (v0, v1)
and method5 () : string =
    let v0 : string = "hh:mm:ss"
    v0
and method6 () : string =
    let v0 : string = ""
    v0
and method7 () : string =
    let v0 : string = "HH:mm:ss"
    v0
and method8 () : string =
    let v0 : string = "\u001b[0m"
    v0
and method10 (v0 : Mut4, v1 : string) : unit =
    let v4 : string = $"{v1}"
    let v11 : string = v0.l0
    let v12 : string = v11 + v4 
    v0.l0 <- v12
    ()
and method11 (v0 : Mut4) : unit =
    ()
and method12 (v0 : Mut4, v1 : int32) : unit =
    let v4 : string = $"{v1}"
    let v11 : string = v0.l0
    let v12 : string = v11 + v4 
    v0.l0 <- v12
    ()
and method9 (v0 : Mut4, v1 : int32, v2 : string) : unit =
    let v3 : string = "{ "
    method10(v0, v3)
    method11(v0)
    let v4 : string = "port"
    method10(v0, v4)
    let v5 : string = " = "
    method10(v0, v5)
    method12(v0, v1)
    let v6 : string = "; "
    method10(v0, v6)
    let v7 : string = "ex"
    method10(v0, v7)
    method10(v0, v5)
    method10(v0, v2)
    let v8 : string = " }"
    method10(v0, v8)
and closure6 (v0 : US0, v1 : (unit -> string), v2 : (unit -> struct (int32 * string))) () : string =
    let v5 : (US0 -> struct (Mut0 * Mut1 * Mut2 * Mut3 * int64 option)) = closure0()
    let v6 : US0 = US0_0
    if State.trace_state.IsNone then State.trace_state <- v5 v6 |> Some
    let struct (v14 : Mut0, v15 : Mut1, v16 : Mut2, v17 : Mut3, v18 : int64 option) = State.trace_state.Value
    let v35 : bool = true
    let mutable _v35 : string option = None 
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v38 : US2 option = None
    let _v38 = ref v38 
    match v18 with
    | Some x -> (
    (fun () ->
    (fun () ->
    let v39 : int64 = x
    let v40 : US2 = US2_0(v39)
    v40 
    )
    |> fun x -> x () |> Some
    ) () ) | None -> None
    |> fun x -> _v38.Value <- x
    let v41 : US2 option = _v38.Value 
    let v64 : US2 = US2_1
    let v65 : US2 = v41 |> Option.defaultValue v64 
    let v163 : System.DateTime =
        match v65 with
        | US2_1 -> (* None *)
            let v155 : System.DateTime = System.DateTime.Now
            v155
        | US2_0(v73) -> (* Some *)
            let v76 : System.DateTime = System.DateTime.Now
            let v85 : (System.DateTime -> int64) = _.Ticks
            let v86 : int64 = v85 v76
            let v93 : int64 = v86 - v73
            let v96 : (int64 -> System.TimeSpan) = System.TimeSpan 
            let v97 : System.TimeSpan = v96 v93
            let v106 : (System.TimeSpan -> int32) = _.Hours
            let v107 : int32 = v106 v97
            let v116 : (System.TimeSpan -> int32) = _.Minutes
            let v117 : int32 = v116 v97
            let v126 : (System.TimeSpan -> int32) = _.Seconds
            let v127 : int32 = v126 v97
            let v136 : (System.TimeSpan -> int32) = _.Milliseconds
            let v137 : int32 = v136 v97
            let v146 : System.DateTime = System.DateTime (1, 1, 1, v107, v117, v127, v137)
            v146
    let v166 : string = method5()
    let v175 : (string -> string) = v163.ToString
    let v176 : string = v175 v166
    v176 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v185 : US2 option = None
    let _v185 = ref v185 
    match v18 with
    | Some x -> (
    (fun () ->
    (fun () ->
    let v186 : int64 = x
    let v187 : US2 = US2_0(v186)
    v187 
    )
    |> fun x -> x () |> Some
    ) () ) | None -> None
    |> fun x -> _v185.Value <- x
    let v188 : US2 option = _v185.Value 
    let v211 : US2 = US2_1
    let v212 : US2 = v188 |> Option.defaultValue v211 
    let v310 : System.DateTime =
        match v212 with
        | US2_1 -> (* None *)
            let v302 : System.DateTime = System.DateTime.Now
            v302
        | US2_0(v220) -> (* Some *)
            let v223 : System.DateTime = System.DateTime.Now
            let v232 : (System.DateTime -> int64) = _.Ticks
            let v233 : int64 = v232 v223
            let v240 : int64 = v233 - v220
            let v243 : (int64 -> System.TimeSpan) = System.TimeSpan 
            let v244 : System.TimeSpan = v243 v240
            let v253 : (System.TimeSpan -> int32) = _.Hours
            let v254 : int32 = v253 v244
            let v263 : (System.TimeSpan -> int32) = _.Minutes
            let v264 : int32 = v263 v244
            let v273 : (System.TimeSpan -> int32) = _.Seconds
            let v274 : int32 = v273 v244
            let v283 : (System.TimeSpan -> int32) = _.Milliseconds
            let v284 : int32 = v283 v244
            let v293 : System.DateTime = System.DateTime (1, 1, 1, v254, v264, v274, v284)
            v293
    let v313 : string = method5()
    let v322 : (string -> string) = v310.ToString
    let v323 : string = v322 v313
    v323 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v330 : string = method6()
    v330 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v333 : US2 option = None
    let _v333 = ref v333 
    match v18 with
    | Some x -> (
    (fun () ->
    (fun () ->
    let v334 : int64 = x
    let v335 : US2 = US2_0(v334)
    v335 
    )
    |> fun x -> x () |> Some
    ) () ) | None -> None
    |> fun x -> _v333.Value <- x
    let v336 : US2 option = _v333.Value 
    let v359 : US2 = US2_1
    let v360 : US2 = v336 |> Option.defaultValue v359 
    let v458 : System.DateTime =
        match v360 with
        | US2_1 -> (* None *)
            let v450 : System.DateTime = System.DateTime.Now
            v450
        | US2_0(v368) -> (* Some *)
            let v371 : System.DateTime = System.DateTime.Now
            let v380 : (System.DateTime -> int64) = _.Ticks
            let v381 : int64 = v380 v371
            let v388 : int64 = v381 - v368
            let v391 : (int64 -> System.TimeSpan) = System.TimeSpan 
            let v392 : System.TimeSpan = v391 v388
            let v401 : (System.TimeSpan -> int32) = _.Hours
            let v402 : int32 = v401 v392
            let v411 : (System.TimeSpan -> int32) = _.Minutes
            let v412 : int32 = v411 v392
            let v421 : (System.TimeSpan -> int32) = _.Seconds
            let v422 : int32 = v421 v392
            let v431 : (System.TimeSpan -> int32) = _.Milliseconds
            let v432 : int32 = v431 v392
            let v441 : System.DateTime = System.DateTime (1, 1, 1, v402, v412, v422, v432)
            v441
    let v461 : string = method7()
    let v470 : (string -> string) = v458.ToString
    let v471 : string = v470 v461
    v471 
    #endif
#if FABLE_COMPILER_PYTHON
    let v480 : US2 option = None
    let _v480 = ref v480 
    match v18 with
    | Some x -> (
    (fun () ->
    (fun () ->
    let v481 : int64 = x
    let v482 : US2 = US2_0(v481)
    v482 
    )
    |> fun x -> x () |> Some
    ) () ) | None -> None
    |> fun x -> _v480.Value <- x
    let v483 : US2 option = _v480.Value 
    let v506 : US2 = US2_1
    let v507 : US2 = v483 |> Option.defaultValue v506 
    let v605 : System.DateTime =
        match v507 with
        | US2_1 -> (* None *)
            let v597 : System.DateTime = System.DateTime.Now
            v597
        | US2_0(v515) -> (* Some *)
            let v518 : System.DateTime = System.DateTime.Now
            let v527 : (System.DateTime -> int64) = _.Ticks
            let v528 : int64 = v527 v518
            let v535 : int64 = v528 - v515
            let v538 : (int64 -> System.TimeSpan) = System.TimeSpan 
            let v539 : System.TimeSpan = v538 v535
            let v548 : (System.TimeSpan -> int32) = _.Hours
            let v549 : int32 = v548 v539
            let v558 : (System.TimeSpan -> int32) = _.Minutes
            let v559 : int32 = v558 v539
            let v568 : (System.TimeSpan -> int32) = _.Seconds
            let v569 : int32 = v568 v539
            let v578 : (System.TimeSpan -> int32) = _.Milliseconds
            let v579 : int32 = v578 v539
            let v588 : System.DateTime = System.DateTime (1, 1, 1, v549, v559, v569, v579)
            v588
    let v608 : string = method7()
    let v617 : (string -> string) = v605.ToString
    let v618 : string = v617 v608
    v618 
    #endif
#else
    let v627 : US2 option = None
    let _v627 = ref v627 
    match v18 with
    | Some x -> (
    (fun () ->
    (fun () ->
    let v628 : int64 = x
    let v629 : US2 = US2_0(v628)
    v629 
    )
    |> fun x -> x () |> Some
    ) () ) | None -> None
    |> fun x -> _v627.Value <- x
    let v630 : US2 option = _v627.Value 
    let v653 : US2 = US2_1
    let v654 : US2 = v630 |> Option.defaultValue v653 
    let v752 : System.DateTime =
        match v654 with
        | US2_1 -> (* None *)
            let v744 : System.DateTime = System.DateTime.Now
            v744
        | US2_0(v662) -> (* Some *)
            let v665 : System.DateTime = System.DateTime.Now
            let v674 : (System.DateTime -> int64) = _.Ticks
            let v675 : int64 = v674 v665
            let v682 : int64 = v675 - v662
            let v685 : (int64 -> System.TimeSpan) = System.TimeSpan 
            let v686 : System.TimeSpan = v685 v682
            let v695 : (System.TimeSpan -> int32) = _.Hours
            let v696 : int32 = v695 v686
            let v705 : (System.TimeSpan -> int32) = _.Minutes
            let v706 : int32 = v705 v686
            let v715 : (System.TimeSpan -> int32) = _.Seconds
            let v716 : int32 = v715 v686
            let v725 : (System.TimeSpan -> int32) = _.Milliseconds
            let v726 : int32 = v725 v686
            let v735 : System.DateTime = System.DateTime (1, 1, 1, v696, v706, v716, v726)
            v735
    let v755 : string = method7()
    let v764 : (string -> string) = v752.ToString
    let v765 : string = v764 v755
    v765 
    #endif
    |> fun x -> _v35 <- Some x
    let v772 : string = match _v35 with Some x -> x | None -> failwith "base.run_target / _v35=None"
    let v927 : bool =
        match v0 with
        | US0_0 -> (* Verbose *)
            true
        | _ ->
            false
    let v931 : US3 =
        if v927 then
            let v928 : string = "Verbose"
            US3_0(v928)
        else
            US3_1
    let v980 : US3 =
        match v931 with
        | US3_1 -> (* None *)
            let v936 : bool =
                match v0 with
                | US0_1 -> (* Debug *)
                    true
                | _ ->
                    false
            let v940 : US3 =
                if v936 then
                    let v937 : string = "Debug"
                    US3_0(v937)
                else
                    US3_1
            match v940 with
            | US3_1 -> (* None *)
                let v945 : bool =
                    match v0 with
                    | US0_2 -> (* Info *)
                        true
                    | _ ->
                        false
                let v949 : US3 =
                    if v945 then
                        let v946 : string = "Info"
                        US3_0(v946)
                    else
                        US3_1
                match v949 with
                | US3_1 -> (* None *)
                    let v954 : bool =
                        match v0 with
                        | US0_3 -> (* Warning *)
                            true
                        | _ ->
                            false
                    let v958 : US3 =
                        if v954 then
                            let v955 : string = "Warning"
                            US3_0(v955)
                        else
                            US3_1
                    match v958 with
                    | US3_1 -> (* None *)
                        let v963 : bool =
                            match v0 with
                            | US0_4 -> (* Critical *)
                                true
                            | _ ->
                                false
                        let v967 : US3 =
                            if v963 then
                                let v964 : string = "Critical"
                                US3_0(v964)
                            else
                                US3_1
                        match v967 with
                        | US3_1 -> (* None *)
                            US3_1
                        | US3_0(v968) -> (* Some *)
                            US3_0(v968)
                    | US3_0(v959) -> (* Some *)
                        US3_0(v959)
                | US3_0(v950) -> (* Some *)
                    US3_0(v950)
            | US3_0(v941) -> (* Some *)
                US3_0(v941)
        | US3_0(v932) -> (* Some *)
            US3_0(v932)
    let v984 : string =
        match v980 with
        | US3_1 -> (* None *)
            failwith<string> "Option does not have a value."
        | US3_0(v981) -> (* Some *)
            v981
    let v987 : (unit -> string) = v984.ToLower
    let v988 : string = v987 ()
    let v997 : string = v988.PadLeft (7, ' ')
    let v1029 : bool = true
    let mutable _v1029 : string option = None 
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v1044 : Ref<Str> =
        match v0 with
        | US0_4 -> (* Critical *)
            let v1038 : string = "inline_colorization::color_bright_red"
            let v1039 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1038 
            v1039
        | US0_1 -> (* Debug *)
            let v1032 : string = "inline_colorization::color_bright_blue"
            let v1033 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1032 
            v1033
        | US0_2 -> (* Info *)
            let v1034 : string = "inline_colorization::color_bright_green"
            let v1035 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1034 
            v1035
        | US0_0 -> (* Verbose *)
            let v1030 : string = "inline_colorization::color_bright_black"
            let v1031 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1030 
            v1031
        | US0_3 -> (* Warning *)
            let v1036 : string = "inline_colorization::color_yellow"
            let v1037 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1036 
            v1037
    let v1045 : string = "&*$0"
    let v1046 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr v997 v1045 
    let v1047 : string = "inline_colorization::color_reset"
    let v1048 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1047 
    let v1049 : string = "\"{v1044}{v1046}{v1048}\""
    let v1050 : string = @$"format!(" + v1049 + ")"
    let v1051 : std_string_String = Fable.Core.RustInterop.emitRustExpr () v1050 
    let v1052 : string = "fable_library_rust::String_::fromString($0)"
    let v1053 : string = Fable.Core.RustInterop.emitRustExpr v1051 v1052 
    v1053 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v1068 : Ref<Str> =
        match v0 with
        | US0_4 -> (* Critical *)
            let v1062 : string = "inline_colorization::color_bright_red"
            let v1063 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1062 
            v1063
        | US0_1 -> (* Debug *)
            let v1056 : string = "inline_colorization::color_bright_blue"
            let v1057 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1056 
            v1057
        | US0_2 -> (* Info *)
            let v1058 : string = "inline_colorization::color_bright_green"
            let v1059 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1058 
            v1059
        | US0_0 -> (* Verbose *)
            let v1054 : string = "inline_colorization::color_bright_black"
            let v1055 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1054 
            v1055
        | US0_3 -> (* Warning *)
            let v1060 : string = "inline_colorization::color_yellow"
            let v1061 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1060 
            v1061
    let v1069 : string = "&*$0"
    let v1070 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr v997 v1069 
    let v1071 : string = "inline_colorization::color_reset"
    let v1072 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1071 
    let v1073 : string = "\"{v1068}{v1070}{v1072}\""
    let v1074 : string = @$"format!(" + v1073 + ")"
    let v1075 : std_string_String = Fable.Core.RustInterop.emitRustExpr () v1074 
    let v1076 : string = "fable_library_rust::String_::fromString($0)"
    let v1077 : string = Fable.Core.RustInterop.emitRustExpr v1075 v1076 
    v1077 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v1092 : Ref<Str> =
        match v0 with
        | US0_4 -> (* Critical *)
            let v1086 : string = "inline_colorization::color_bright_red"
            let v1087 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1086 
            v1087
        | US0_1 -> (* Debug *)
            let v1080 : string = "inline_colorization::color_bright_blue"
            let v1081 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1080 
            v1081
        | US0_2 -> (* Info *)
            let v1082 : string = "inline_colorization::color_bright_green"
            let v1083 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1082 
            v1083
        | US0_0 -> (* Verbose *)
            let v1078 : string = "inline_colorization::color_bright_black"
            let v1079 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1078 
            v1079
        | US0_3 -> (* Warning *)
            let v1084 : string = "inline_colorization::color_yellow"
            let v1085 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1084 
            v1085
    let v1093 : string = "&*$0"
    let v1094 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr v997 v1093 
    let v1095 : string = "inline_colorization::color_reset"
    let v1096 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1095 
    let v1097 : string = "\"{v1092}{v1094}{v1096}\""
    let v1098 : string = @$"format!(" + v1097 + ")"
    let v1099 : std_string_String = Fable.Core.RustInterop.emitRustExpr () v1098 
    let v1100 : string = "fable_library_rust::String_::fromString($0)"
    let v1101 : string = Fable.Core.RustInterop.emitRustExpr v1099 v1100 
    v1101 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v1111 : string =
        match v0 with
        | US0_4 -> (* Critical *)
            let v1106 : string = "\u001b[91m"
            v1106
        | US0_1 -> (* Debug *)
            let v1103 : string = "\u001b[94m"
            v1103
        | US0_2 -> (* Info *)
            let v1104 : string = "\u001b[92m"
            v1104
        | US0_0 -> (* Verbose *)
            let v1102 : string = "\u001b[90m"
            v1102
        | US0_3 -> (* Warning *)
            let v1105 : string = "\u001b[93m"
            v1105
    let v1112 : string = method8()
    let v1113 : string = v1111 + v997 
    let v1114 : string = v1113 + v1112 
    v1114 
    #endif
#if FABLE_COMPILER_PYTHON
    let v1124 : string =
        match v0 with
        | US0_4 -> (* Critical *)
            let v1119 : string = "\u001b[91m"
            v1119
        | US0_1 -> (* Debug *)
            let v1116 : string = "\u001b[94m"
            v1116
        | US0_2 -> (* Info *)
            let v1117 : string = "\u001b[92m"
            v1117
        | US0_0 -> (* Verbose *)
            let v1115 : string = "\u001b[90m"
            v1115
        | US0_3 -> (* Warning *)
            let v1118 : string = "\u001b[93m"
            v1118
    let v1125 : string = method8()
    let v1126 : string = v1124 + v997 
    let v1127 : string = v1126 + v1125 
    v1127 
    #endif
#else
    let v1137 : string =
        match v0 with
        | US0_4 -> (* Critical *)
            let v1132 : string = "\u001b[91m"
            v1132
        | US0_1 -> (* Debug *)
            let v1129 : string = "\u001b[94m"
            v1129
        | US0_2 -> (* Info *)
            let v1130 : string = "\u001b[92m"
            v1130
        | US0_0 -> (* Verbose *)
            let v1128 : string = "\u001b[90m"
            v1128
        | US0_3 -> (* Warning *)
            let v1131 : string = "\u001b[93m"
            v1131
    let v1138 : string = method8()
    let v1139 : string = v1137 + v997 
    let v1140 : string = v1139 + v1138 
    v1140 
    #endif
    |> fun x -> _v1029 <- Some x
    let v1141 : string = match _v1029 with Some x -> x | None -> failwith "base.run_target / _v1029=None"
    let v1160 : int64 = v14.l0
    let struct (v1161 : int32, v1162 : string) = v2 ()
    let v1163 : string = ""
    let v1164 : Mut4 = {l0 = v1163} : Mut4
    method9(v1164, v1161, v1162)
    let v1165 : string = v1164.l0
    let v1168 : string = $"{v772} {v1141} #{v1160} %s{v1 ()} / {v1165}"
    let v1175 : char list = []
    let v1180 : (char list -> (char [])) = List.toArray
    let v1181 : (char []) = v1180 v1175
    let v1188 : string = v1168.TrimStart v1181 
    let v1227 : char list = []
    let v1230 : char list = '/' :: v1227 
    let v1239 : char list = ' ' :: v1230 
    let v1250 : (char list -> (char [])) = List.toArray
    let v1251 : (char []) = v1250 v1239
    let v1258 : string = v1188.TrimEnd v1251 
    v1258
and method13 (v0 : US0, v1 : (unit -> string)) : unit =
    let v4 : (US0 -> struct (Mut0 * Mut1 * Mut2 * Mut3 * int64 option)) = closure0()
    let v5 : US0 = US0_0
    if State.trace_state.IsNone then State.trace_state <- v4 v5 |> Some
    let struct (v13 : Mut0, v14 : Mut1, v15 : Mut2, v16 : Mut3, v17 : int64 option) = State.trace_state.Value
    let v34 : US0 = US0_0
    if State.trace_state.IsNone then State.trace_state <- v4 v34 |> Some
    let struct (v42 : Mut0, v43 : Mut1, v44 : Mut2, v45 : Mut3, v46 : int64 option) = State.trace_state.Value
    let v61 : US0 = v45.l0
    let v62 : bool = v44.l0
    let v63 : bool = v62 = false
    let v67 : bool =
        if v63 then
            false
        else
            let v64 : int32 = [ US0_0, 0; US0_1, 1; US0_2, 2; US0_3, 3; US0_4, 4 ] |> Map |> Map.find v0
            let v65 : int32 = [ US0_0, 0; US0_1, 1; US0_2, 2; US0_3, 3; US0_4, 4 ] |> Map |> Map.find v61
            let v66 : bool = v64 >= v65
            v66
    if v67 then
        let v68 : int64 = v13.l0
        let v69 : int64 = v68 + 1L
        v13.l0 <- v69
        let v72 : string = $"%s{v1 ()}"
        let v81 : bool = true
        let mutable _v81 : unit option = None 
        
#if FABLE_COMPILER || WASM || CONTRACT
        
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
        let v82 : string = @"println!(""{}"", $0)"
        Fable.Core.RustInterop.emitRustExpr v72 v82 
        () 
        #endif
#if FABLE_COMPILER_RUST && WASM
        let v83 : string = @"println!(""{}"", $0)"
        Fable.Core.RustInterop.emitRustExpr v72 v83 
        () 
        #endif
#if FABLE_COMPILER_RUST && CONTRACT
        let v84 : string = @"println!(""{}"", $0)"
        Fable.Core.RustInterop.emitRustExpr v72 v84 
        () 
        #endif
#if FABLE_COMPILER_TYPESCRIPT
        System.Console.WriteLine v72 
        () 
        #endif
#if FABLE_COMPILER_PYTHON
        System.Console.WriteLine v72 
        () 
        #endif
#else
        System.Console.WriteLine v72 
        () 
        #endif
        |> fun x -> _v81 <- Some x
        match _v81 with Some x -> x | None -> failwith "base.run_target / _v81=None"
        let v113 : (string -> unit) = v14.l0
        v113 v72
and method4 (v0 : US0, v1 : (unit -> string), v2 : (unit -> struct (int32 * string))) : unit =
    let v3 : (unit -> string) = closure6(v0, v1, v2)
    method13(v0, v3)
and closure3 (v0 : string) (v1 : int32) : Async<bool> =
    let v4 : bool = true
    let mutable _v4 : Async<bool> option = None 
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v7 : Async<bool> = null |> unbox<Async<bool>>
    v7 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v16 : Async<bool> = null |> unbox<Async<bool>>
    v16 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v25 : Async<bool> = null |> unbox<Async<bool>>
    v25 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v34 : Async<bool> = null |> unbox<Async<bool>>
    v34 
    #endif
#if FABLE_COMPILER_PYTHON
    let v43 : Async<bool> = null |> unbox<Async<bool>>
    v43 
    #endif
#else
    let v50 : Async<bool> option = None
    let mutable _v50 = v50 
    async {
    let v51 : Async<System.Threading.CancellationToken> = Async.CancellationToken
    let! v51 = v51 
    let v52 : System.Threading.CancellationToken = v51 
    let v53 : System.Net.Sockets.TcpClient = new System.Net.Sockets.TcpClient ()
    use v53 = v53 
    let v54 : System.Net.Sockets.TcpClient = v53 
    try
    let v55 : System.Threading.Tasks.ValueTask = v54.ConnectAsync (v0, v1, v52)
    let v56 : (unit -> System.Threading.Tasks.Task) = v55.AsTask
    let v57 : System.Threading.Tasks.Task = v56 ()
    let v60 : bool = true
    let mutable _v60 : Async<unit> option = None 
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v63 : Async<unit> = null |> unbox<Async<unit>>
    v63 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v72 : Async<unit> = null |> unbox<Async<unit>>
    v72 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v81 : Async<unit> = null |> unbox<Async<unit>>
    v81 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v90 : Async<unit> = null |> unbox<Async<unit>>
    v90 
    #endif
#if FABLE_COMPILER_PYTHON
    let v99 : Async<unit> = null |> unbox<Async<unit>>
    v99 
    #endif
#else
    let v106 : (System.Threading.Tasks.Task -> Async<unit>) = Async.AwaitTask
    let v107 : Async<unit> = v106 v57
    v107 
    #endif
    |> fun x -> _v60 <- Some x
    let v108 : Async<unit> = match _v60 with Some x -> x | None -> failwith "base.run_target / _v60=None"
    do! v108 
    return true 
    with ex ->
    let v123 : exn = ex
    let v126 : bool = true
    let mutable _v126 : string option = None 
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v129 : string = $"%A{v123}"
    v129 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v138 : string = $"%A{v123}"
    v138 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v147 : string = $"%A{v123}"
    v147 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v156 : string = $"%A{v123}"
    v156 
    #endif
#if FABLE_COMPILER_PYTHON
    let v165 : string = $"%A{v123}"
    v165 
    #endif
#else
    let v172 : string = $"{v123.GetType ()}: {v123.Message}"
    v172 
    #endif
    |> fun x -> _v126 <- Some x
    let v173 : string = match _v126 with Some x -> x | None -> failwith "base.run_target / _v126=None"
    let v188 : US0 = US0_0
    let v189 : (unit -> string) = closure4()
    let v190 : (unit -> struct (int32 * string)) = closure5(v1, v173)
    method4(v188, v189, v190)
    return false 
    (*
    let v191 : bool = *)
    }
    |> fun x -> _v50 <- Some x
    let v192 : Async<bool> = match _v50 with Some x -> x | None -> failwith "async.new_async_unit / _v50=None"
    v192 
    #endif
    |> fun x -> _v4 <- Some x
    let v193 : Async<bool> = match _v4 with Some x -> x | None -> failwith "base.run_target / _v4=None"
    v193
and closure2 () (v0 : string) : (int32 -> Async<bool>) =
    closure3(v0)
and closure10 () (v0 : bool) : US5 =
    US5_0(v0)
and closure11 () (v0 : exn) : US5 =
    US5_1(v0)
and closure12 () () : string =
    let v0 : string = "async.run_with_timeout_async"
    v0
and closure13 (v0 : int32) () : int32 =
    v0
and method15 (v0 : Mut4, v1 : int32) : unit =
    let v2 : string = "{ "
    method10(v0, v2)
    method11(v0)
    let v3 : string = "timeout"
    method10(v0, v3)
    let v4 : string = " = "
    method10(v0, v4)
    method12(v0, v1)
    let v5 : string = " }"
    method10(v0, v5)
and closure14 (v0 : US0, v1 : (unit -> string), v2 : (unit -> int32)) () : string =
    let v5 : (US0 -> struct (Mut0 * Mut1 * Mut2 * Mut3 * int64 option)) = closure0()
    let v6 : US0 = US0_0
    if State.trace_state.IsNone then State.trace_state <- v5 v6 |> Some
    let struct (v14 : Mut0, v15 : Mut1, v16 : Mut2, v17 : Mut3, v18 : int64 option) = State.trace_state.Value
    let v35 : bool = true
    let mutable _v35 : string option = None 
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v38 : US2 option = None
    let _v38 = ref v38 
    match v18 with
    | Some x -> (
    (fun () ->
    (fun () ->
    let v39 : int64 = x
    let v40 : US2 = US2_0(v39)
    v40 
    )
    |> fun x -> x () |> Some
    ) () ) | None -> None
    |> fun x -> _v38.Value <- x
    let v41 : US2 option = _v38.Value 
    let v64 : US2 = US2_1
    let v65 : US2 = v41 |> Option.defaultValue v64 
    let v163 : System.DateTime =
        match v65 with
        | US2_1 -> (* None *)
            let v155 : System.DateTime = System.DateTime.Now
            v155
        | US2_0(v73) -> (* Some *)
            let v76 : System.DateTime = System.DateTime.Now
            let v85 : (System.DateTime -> int64) = _.Ticks
            let v86 : int64 = v85 v76
            let v93 : int64 = v86 - v73
            let v96 : (int64 -> System.TimeSpan) = System.TimeSpan 
            let v97 : System.TimeSpan = v96 v93
            let v106 : (System.TimeSpan -> int32) = _.Hours
            let v107 : int32 = v106 v97
            let v116 : (System.TimeSpan -> int32) = _.Minutes
            let v117 : int32 = v116 v97
            let v126 : (System.TimeSpan -> int32) = _.Seconds
            let v127 : int32 = v126 v97
            let v136 : (System.TimeSpan -> int32) = _.Milliseconds
            let v137 : int32 = v136 v97
            let v146 : System.DateTime = System.DateTime (1, 1, 1, v107, v117, v127, v137)
            v146
    let v166 : string = method5()
    let v175 : (string -> string) = v163.ToString
    let v176 : string = v175 v166
    v176 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v185 : US2 option = None
    let _v185 = ref v185 
    match v18 with
    | Some x -> (
    (fun () ->
    (fun () ->
    let v186 : int64 = x
    let v187 : US2 = US2_0(v186)
    v187 
    )
    |> fun x -> x () |> Some
    ) () ) | None -> None
    |> fun x -> _v185.Value <- x
    let v188 : US2 option = _v185.Value 
    let v211 : US2 = US2_1
    let v212 : US2 = v188 |> Option.defaultValue v211 
    let v310 : System.DateTime =
        match v212 with
        | US2_1 -> (* None *)
            let v302 : System.DateTime = System.DateTime.Now
            v302
        | US2_0(v220) -> (* Some *)
            let v223 : System.DateTime = System.DateTime.Now
            let v232 : (System.DateTime -> int64) = _.Ticks
            let v233 : int64 = v232 v223
            let v240 : int64 = v233 - v220
            let v243 : (int64 -> System.TimeSpan) = System.TimeSpan 
            let v244 : System.TimeSpan = v243 v240
            let v253 : (System.TimeSpan -> int32) = _.Hours
            let v254 : int32 = v253 v244
            let v263 : (System.TimeSpan -> int32) = _.Minutes
            let v264 : int32 = v263 v244
            let v273 : (System.TimeSpan -> int32) = _.Seconds
            let v274 : int32 = v273 v244
            let v283 : (System.TimeSpan -> int32) = _.Milliseconds
            let v284 : int32 = v283 v244
            let v293 : System.DateTime = System.DateTime (1, 1, 1, v254, v264, v274, v284)
            v293
    let v313 : string = method5()
    let v322 : (string -> string) = v310.ToString
    let v323 : string = v322 v313
    v323 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v330 : string = method6()
    v330 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v333 : US2 option = None
    let _v333 = ref v333 
    match v18 with
    | Some x -> (
    (fun () ->
    (fun () ->
    let v334 : int64 = x
    let v335 : US2 = US2_0(v334)
    v335 
    )
    |> fun x -> x () |> Some
    ) () ) | None -> None
    |> fun x -> _v333.Value <- x
    let v336 : US2 option = _v333.Value 
    let v359 : US2 = US2_1
    let v360 : US2 = v336 |> Option.defaultValue v359 
    let v458 : System.DateTime =
        match v360 with
        | US2_1 -> (* None *)
            let v450 : System.DateTime = System.DateTime.Now
            v450
        | US2_0(v368) -> (* Some *)
            let v371 : System.DateTime = System.DateTime.Now
            let v380 : (System.DateTime -> int64) = _.Ticks
            let v381 : int64 = v380 v371
            let v388 : int64 = v381 - v368
            let v391 : (int64 -> System.TimeSpan) = System.TimeSpan 
            let v392 : System.TimeSpan = v391 v388
            let v401 : (System.TimeSpan -> int32) = _.Hours
            let v402 : int32 = v401 v392
            let v411 : (System.TimeSpan -> int32) = _.Minutes
            let v412 : int32 = v411 v392
            let v421 : (System.TimeSpan -> int32) = _.Seconds
            let v422 : int32 = v421 v392
            let v431 : (System.TimeSpan -> int32) = _.Milliseconds
            let v432 : int32 = v431 v392
            let v441 : System.DateTime = System.DateTime (1, 1, 1, v402, v412, v422, v432)
            v441
    let v461 : string = method7()
    let v470 : (string -> string) = v458.ToString
    let v471 : string = v470 v461
    v471 
    #endif
#if FABLE_COMPILER_PYTHON
    let v480 : US2 option = None
    let _v480 = ref v480 
    match v18 with
    | Some x -> (
    (fun () ->
    (fun () ->
    let v481 : int64 = x
    let v482 : US2 = US2_0(v481)
    v482 
    )
    |> fun x -> x () |> Some
    ) () ) | None -> None
    |> fun x -> _v480.Value <- x
    let v483 : US2 option = _v480.Value 
    let v506 : US2 = US2_1
    let v507 : US2 = v483 |> Option.defaultValue v506 
    let v605 : System.DateTime =
        match v507 with
        | US2_1 -> (* None *)
            let v597 : System.DateTime = System.DateTime.Now
            v597
        | US2_0(v515) -> (* Some *)
            let v518 : System.DateTime = System.DateTime.Now
            let v527 : (System.DateTime -> int64) = _.Ticks
            let v528 : int64 = v527 v518
            let v535 : int64 = v528 - v515
            let v538 : (int64 -> System.TimeSpan) = System.TimeSpan 
            let v539 : System.TimeSpan = v538 v535
            let v548 : (System.TimeSpan -> int32) = _.Hours
            let v549 : int32 = v548 v539
            let v558 : (System.TimeSpan -> int32) = _.Minutes
            let v559 : int32 = v558 v539
            let v568 : (System.TimeSpan -> int32) = _.Seconds
            let v569 : int32 = v568 v539
            let v578 : (System.TimeSpan -> int32) = _.Milliseconds
            let v579 : int32 = v578 v539
            let v588 : System.DateTime = System.DateTime (1, 1, 1, v549, v559, v569, v579)
            v588
    let v608 : string = method7()
    let v617 : (string -> string) = v605.ToString
    let v618 : string = v617 v608
    v618 
    #endif
#else
    let v627 : US2 option = None
    let _v627 = ref v627 
    match v18 with
    | Some x -> (
    (fun () ->
    (fun () ->
    let v628 : int64 = x
    let v629 : US2 = US2_0(v628)
    v629 
    )
    |> fun x -> x () |> Some
    ) () ) | None -> None
    |> fun x -> _v627.Value <- x
    let v630 : US2 option = _v627.Value 
    let v653 : US2 = US2_1
    let v654 : US2 = v630 |> Option.defaultValue v653 
    let v752 : System.DateTime =
        match v654 with
        | US2_1 -> (* None *)
            let v744 : System.DateTime = System.DateTime.Now
            v744
        | US2_0(v662) -> (* Some *)
            let v665 : System.DateTime = System.DateTime.Now
            let v674 : (System.DateTime -> int64) = _.Ticks
            let v675 : int64 = v674 v665
            let v682 : int64 = v675 - v662
            let v685 : (int64 -> System.TimeSpan) = System.TimeSpan 
            let v686 : System.TimeSpan = v685 v682
            let v695 : (System.TimeSpan -> int32) = _.Hours
            let v696 : int32 = v695 v686
            let v705 : (System.TimeSpan -> int32) = _.Minutes
            let v706 : int32 = v705 v686
            let v715 : (System.TimeSpan -> int32) = _.Seconds
            let v716 : int32 = v715 v686
            let v725 : (System.TimeSpan -> int32) = _.Milliseconds
            let v726 : int32 = v725 v686
            let v735 : System.DateTime = System.DateTime (1, 1, 1, v696, v706, v716, v726)
            v735
    let v755 : string = method7()
    let v764 : (string -> string) = v752.ToString
    let v765 : string = v764 v755
    v765 
    #endif
    |> fun x -> _v35 <- Some x
    let v772 : string = match _v35 with Some x -> x | None -> failwith "base.run_target / _v35=None"
    let v927 : bool =
        match v0 with
        | US0_0 -> (* Verbose *)
            true
        | _ ->
            false
    let v931 : US3 =
        if v927 then
            let v928 : string = "Verbose"
            US3_0(v928)
        else
            US3_1
    let v980 : US3 =
        match v931 with
        | US3_1 -> (* None *)
            let v936 : bool =
                match v0 with
                | US0_1 -> (* Debug *)
                    true
                | _ ->
                    false
            let v940 : US3 =
                if v936 then
                    let v937 : string = "Debug"
                    US3_0(v937)
                else
                    US3_1
            match v940 with
            | US3_1 -> (* None *)
                let v945 : bool =
                    match v0 with
                    | US0_2 -> (* Info *)
                        true
                    | _ ->
                        false
                let v949 : US3 =
                    if v945 then
                        let v946 : string = "Info"
                        US3_0(v946)
                    else
                        US3_1
                match v949 with
                | US3_1 -> (* None *)
                    let v954 : bool =
                        match v0 with
                        | US0_3 -> (* Warning *)
                            true
                        | _ ->
                            false
                    let v958 : US3 =
                        if v954 then
                            let v955 : string = "Warning"
                            US3_0(v955)
                        else
                            US3_1
                    match v958 with
                    | US3_1 -> (* None *)
                        let v963 : bool =
                            match v0 with
                            | US0_4 -> (* Critical *)
                                true
                            | _ ->
                                false
                        let v967 : US3 =
                            if v963 then
                                let v964 : string = "Critical"
                                US3_0(v964)
                            else
                                US3_1
                        match v967 with
                        | US3_1 -> (* None *)
                            US3_1
                        | US3_0(v968) -> (* Some *)
                            US3_0(v968)
                    | US3_0(v959) -> (* Some *)
                        US3_0(v959)
                | US3_0(v950) -> (* Some *)
                    US3_0(v950)
            | US3_0(v941) -> (* Some *)
                US3_0(v941)
        | US3_0(v932) -> (* Some *)
            US3_0(v932)
    let v984 : string =
        match v980 with
        | US3_1 -> (* None *)
            failwith<string> "Option does not have a value."
        | US3_0(v981) -> (* Some *)
            v981
    let v987 : (unit -> string) = v984.ToLower
    let v988 : string = v987 ()
    let v997 : string = v988.PadLeft (7, ' ')
    let v1029 : bool = true
    let mutable _v1029 : string option = None 
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v1044 : Ref<Str> =
        match v0 with
        | US0_4 -> (* Critical *)
            let v1038 : string = "inline_colorization::color_bright_red"
            let v1039 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1038 
            v1039
        | US0_1 -> (* Debug *)
            let v1032 : string = "inline_colorization::color_bright_blue"
            let v1033 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1032 
            v1033
        | US0_2 -> (* Info *)
            let v1034 : string = "inline_colorization::color_bright_green"
            let v1035 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1034 
            v1035
        | US0_0 -> (* Verbose *)
            let v1030 : string = "inline_colorization::color_bright_black"
            let v1031 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1030 
            v1031
        | US0_3 -> (* Warning *)
            let v1036 : string = "inline_colorization::color_yellow"
            let v1037 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1036 
            v1037
    let v1045 : string = "&*$0"
    let v1046 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr v997 v1045 
    let v1047 : string = "inline_colorization::color_reset"
    let v1048 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1047 
    let v1049 : string = "\"{v1044}{v1046}{v1048}\""
    let v1050 : string = @$"format!(" + v1049 + ")"
    let v1051 : std_string_String = Fable.Core.RustInterop.emitRustExpr () v1050 
    let v1052 : string = "fable_library_rust::String_::fromString($0)"
    let v1053 : string = Fable.Core.RustInterop.emitRustExpr v1051 v1052 
    v1053 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v1068 : Ref<Str> =
        match v0 with
        | US0_4 -> (* Critical *)
            let v1062 : string = "inline_colorization::color_bright_red"
            let v1063 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1062 
            v1063
        | US0_1 -> (* Debug *)
            let v1056 : string = "inline_colorization::color_bright_blue"
            let v1057 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1056 
            v1057
        | US0_2 -> (* Info *)
            let v1058 : string = "inline_colorization::color_bright_green"
            let v1059 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1058 
            v1059
        | US0_0 -> (* Verbose *)
            let v1054 : string = "inline_colorization::color_bright_black"
            let v1055 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1054 
            v1055
        | US0_3 -> (* Warning *)
            let v1060 : string = "inline_colorization::color_yellow"
            let v1061 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1060 
            v1061
    let v1069 : string = "&*$0"
    let v1070 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr v997 v1069 
    let v1071 : string = "inline_colorization::color_reset"
    let v1072 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1071 
    let v1073 : string = "\"{v1068}{v1070}{v1072}\""
    let v1074 : string = @$"format!(" + v1073 + ")"
    let v1075 : std_string_String = Fable.Core.RustInterop.emitRustExpr () v1074 
    let v1076 : string = "fable_library_rust::String_::fromString($0)"
    let v1077 : string = Fable.Core.RustInterop.emitRustExpr v1075 v1076 
    v1077 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v1092 : Ref<Str> =
        match v0 with
        | US0_4 -> (* Critical *)
            let v1086 : string = "inline_colorization::color_bright_red"
            let v1087 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1086 
            v1087
        | US0_1 -> (* Debug *)
            let v1080 : string = "inline_colorization::color_bright_blue"
            let v1081 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1080 
            v1081
        | US0_2 -> (* Info *)
            let v1082 : string = "inline_colorization::color_bright_green"
            let v1083 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1082 
            v1083
        | US0_0 -> (* Verbose *)
            let v1078 : string = "inline_colorization::color_bright_black"
            let v1079 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1078 
            v1079
        | US0_3 -> (* Warning *)
            let v1084 : string = "inline_colorization::color_yellow"
            let v1085 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1084 
            v1085
    let v1093 : string = "&*$0"
    let v1094 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr v997 v1093 
    let v1095 : string = "inline_colorization::color_reset"
    let v1096 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1095 
    let v1097 : string = "\"{v1092}{v1094}{v1096}\""
    let v1098 : string = @$"format!(" + v1097 + ")"
    let v1099 : std_string_String = Fable.Core.RustInterop.emitRustExpr () v1098 
    let v1100 : string = "fable_library_rust::String_::fromString($0)"
    let v1101 : string = Fable.Core.RustInterop.emitRustExpr v1099 v1100 
    v1101 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v1111 : string =
        match v0 with
        | US0_4 -> (* Critical *)
            let v1106 : string = "\u001b[91m"
            v1106
        | US0_1 -> (* Debug *)
            let v1103 : string = "\u001b[94m"
            v1103
        | US0_2 -> (* Info *)
            let v1104 : string = "\u001b[92m"
            v1104
        | US0_0 -> (* Verbose *)
            let v1102 : string = "\u001b[90m"
            v1102
        | US0_3 -> (* Warning *)
            let v1105 : string = "\u001b[93m"
            v1105
    let v1112 : string = method8()
    let v1113 : string = v1111 + v997 
    let v1114 : string = v1113 + v1112 
    v1114 
    #endif
#if FABLE_COMPILER_PYTHON
    let v1124 : string =
        match v0 with
        | US0_4 -> (* Critical *)
            let v1119 : string = "\u001b[91m"
            v1119
        | US0_1 -> (* Debug *)
            let v1116 : string = "\u001b[94m"
            v1116
        | US0_2 -> (* Info *)
            let v1117 : string = "\u001b[92m"
            v1117
        | US0_0 -> (* Verbose *)
            let v1115 : string = "\u001b[90m"
            v1115
        | US0_3 -> (* Warning *)
            let v1118 : string = "\u001b[93m"
            v1118
    let v1125 : string = method8()
    let v1126 : string = v1124 + v997 
    let v1127 : string = v1126 + v1125 
    v1127 
    #endif
#else
    let v1137 : string =
        match v0 with
        | US0_4 -> (* Critical *)
            let v1132 : string = "\u001b[91m"
            v1132
        | US0_1 -> (* Debug *)
            let v1129 : string = "\u001b[94m"
            v1129
        | US0_2 -> (* Info *)
            let v1130 : string = "\u001b[92m"
            v1130
        | US0_0 -> (* Verbose *)
            let v1128 : string = "\u001b[90m"
            v1128
        | US0_3 -> (* Warning *)
            let v1131 : string = "\u001b[93m"
            v1131
    let v1138 : string = method8()
    let v1139 : string = v1137 + v997 
    let v1140 : string = v1139 + v1138 
    v1140 
    #endif
    |> fun x -> _v1029 <- Some x
    let v1141 : string = match _v1029 with Some x -> x | None -> failwith "base.run_target / _v1029=None"
    let v1160 : int64 = v14.l0
    let v1161 : int32 = v2 ()
    let v1162 : string = ""
    let v1163 : Mut4 = {l0 = v1162} : Mut4
    method15(v1163, v1161)
    let v1164 : string = v1163.l0
    let v1167 : string = $"{v772} {v1141} #{v1160} %s{v1 ()} / {v1164}"
    let v1174 : char list = []
    let v1179 : (char list -> (char [])) = List.toArray
    let v1180 : (char []) = v1179 v1174
    let v1187 : string = v1167.TrimStart v1180 
    let v1226 : char list = []
    let v1229 : char list = '/' :: v1226 
    let v1238 : char list = ' ' :: v1229 
    let v1249 : (char list -> (char [])) = List.toArray
    let v1250 : (char []) = v1249 v1238
    let v1257 : string = v1187.TrimEnd v1250 
    v1257
and method14 (v0 : US0, v1 : (unit -> string), v2 : (unit -> int32)) : unit =
    let v3 : (unit -> string) = closure14(v0, v1, v2)
    method13(v0, v3)
and closure15 () () : string =
    let v0 : string = $"async.run_with_timeout_async**"
    v0
and closure16 (v0 : int32, v1 : exn) () : struct (int32 * string) =
    let v4 : bool = true
    let mutable _v4 : string option = None 
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v7 : string = $"%A{v1}"
    v7 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v16 : string = $"%A{v1}"
    v16 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v25 : string = $"%A{v1}"
    v25 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v34 : string = $"%A{v1}"
    v34 
    #endif
#if FABLE_COMPILER_PYTHON
    let v43 : string = $"%A{v1}"
    v43 
    #endif
#else
    let v50 : string = $"{v1.GetType ()}: {v1.Message}"
    v50 
    #endif
    |> fun x -> _v4 <- Some x
    let v51 : string = match _v4 with Some x -> x | None -> failwith "base.run_target / _v4=None"
    struct (v0, v51)
and method17 (v0 : Mut4, v1 : int32, v2 : string) : unit =
    let v3 : string = "{ "
    method10(v0, v3)
    method11(v0)
    let v4 : string = "timeout"
    method10(v0, v4)
    let v5 : string = " = "
    method10(v0, v5)
    method12(v0, v1)
    let v6 : string = "; "
    method10(v0, v6)
    let v7 : string = "ex"
    method10(v0, v7)
    method10(v0, v5)
    method10(v0, v2)
    let v8 : string = " }"
    method10(v0, v8)
and closure17 (v0 : US0, v1 : (unit -> string), v2 : (unit -> struct (int32 * string))) () : string =
    let v5 : (US0 -> struct (Mut0 * Mut1 * Mut2 * Mut3 * int64 option)) = closure0()
    let v6 : US0 = US0_0
    if State.trace_state.IsNone then State.trace_state <- v5 v6 |> Some
    let struct (v14 : Mut0, v15 : Mut1, v16 : Mut2, v17 : Mut3, v18 : int64 option) = State.trace_state.Value
    let v35 : bool = true
    let mutable _v35 : string option = None 
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v38 : US2 option = None
    let _v38 = ref v38 
    match v18 with
    | Some x -> (
    (fun () ->
    (fun () ->
    let v39 : int64 = x
    let v40 : US2 = US2_0(v39)
    v40 
    )
    |> fun x -> x () |> Some
    ) () ) | None -> None
    |> fun x -> _v38.Value <- x
    let v41 : US2 option = _v38.Value 
    let v64 : US2 = US2_1
    let v65 : US2 = v41 |> Option.defaultValue v64 
    let v163 : System.DateTime =
        match v65 with
        | US2_1 -> (* None *)
            let v155 : System.DateTime = System.DateTime.Now
            v155
        | US2_0(v73) -> (* Some *)
            let v76 : System.DateTime = System.DateTime.Now
            let v85 : (System.DateTime -> int64) = _.Ticks
            let v86 : int64 = v85 v76
            let v93 : int64 = v86 - v73
            let v96 : (int64 -> System.TimeSpan) = System.TimeSpan 
            let v97 : System.TimeSpan = v96 v93
            let v106 : (System.TimeSpan -> int32) = _.Hours
            let v107 : int32 = v106 v97
            let v116 : (System.TimeSpan -> int32) = _.Minutes
            let v117 : int32 = v116 v97
            let v126 : (System.TimeSpan -> int32) = _.Seconds
            let v127 : int32 = v126 v97
            let v136 : (System.TimeSpan -> int32) = _.Milliseconds
            let v137 : int32 = v136 v97
            let v146 : System.DateTime = System.DateTime (1, 1, 1, v107, v117, v127, v137)
            v146
    let v166 : string = method5()
    let v175 : (string -> string) = v163.ToString
    let v176 : string = v175 v166
    v176 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v185 : US2 option = None
    let _v185 = ref v185 
    match v18 with
    | Some x -> (
    (fun () ->
    (fun () ->
    let v186 : int64 = x
    let v187 : US2 = US2_0(v186)
    v187 
    )
    |> fun x -> x () |> Some
    ) () ) | None -> None
    |> fun x -> _v185.Value <- x
    let v188 : US2 option = _v185.Value 
    let v211 : US2 = US2_1
    let v212 : US2 = v188 |> Option.defaultValue v211 
    let v310 : System.DateTime =
        match v212 with
        | US2_1 -> (* None *)
            let v302 : System.DateTime = System.DateTime.Now
            v302
        | US2_0(v220) -> (* Some *)
            let v223 : System.DateTime = System.DateTime.Now
            let v232 : (System.DateTime -> int64) = _.Ticks
            let v233 : int64 = v232 v223
            let v240 : int64 = v233 - v220
            let v243 : (int64 -> System.TimeSpan) = System.TimeSpan 
            let v244 : System.TimeSpan = v243 v240
            let v253 : (System.TimeSpan -> int32) = _.Hours
            let v254 : int32 = v253 v244
            let v263 : (System.TimeSpan -> int32) = _.Minutes
            let v264 : int32 = v263 v244
            let v273 : (System.TimeSpan -> int32) = _.Seconds
            let v274 : int32 = v273 v244
            let v283 : (System.TimeSpan -> int32) = _.Milliseconds
            let v284 : int32 = v283 v244
            let v293 : System.DateTime = System.DateTime (1, 1, 1, v254, v264, v274, v284)
            v293
    let v313 : string = method5()
    let v322 : (string -> string) = v310.ToString
    let v323 : string = v322 v313
    v323 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v330 : string = method6()
    v330 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v333 : US2 option = None
    let _v333 = ref v333 
    match v18 with
    | Some x -> (
    (fun () ->
    (fun () ->
    let v334 : int64 = x
    let v335 : US2 = US2_0(v334)
    v335 
    )
    |> fun x -> x () |> Some
    ) () ) | None -> None
    |> fun x -> _v333.Value <- x
    let v336 : US2 option = _v333.Value 
    let v359 : US2 = US2_1
    let v360 : US2 = v336 |> Option.defaultValue v359 
    let v458 : System.DateTime =
        match v360 with
        | US2_1 -> (* None *)
            let v450 : System.DateTime = System.DateTime.Now
            v450
        | US2_0(v368) -> (* Some *)
            let v371 : System.DateTime = System.DateTime.Now
            let v380 : (System.DateTime -> int64) = _.Ticks
            let v381 : int64 = v380 v371
            let v388 : int64 = v381 - v368
            let v391 : (int64 -> System.TimeSpan) = System.TimeSpan 
            let v392 : System.TimeSpan = v391 v388
            let v401 : (System.TimeSpan -> int32) = _.Hours
            let v402 : int32 = v401 v392
            let v411 : (System.TimeSpan -> int32) = _.Minutes
            let v412 : int32 = v411 v392
            let v421 : (System.TimeSpan -> int32) = _.Seconds
            let v422 : int32 = v421 v392
            let v431 : (System.TimeSpan -> int32) = _.Milliseconds
            let v432 : int32 = v431 v392
            let v441 : System.DateTime = System.DateTime (1, 1, 1, v402, v412, v422, v432)
            v441
    let v461 : string = method7()
    let v470 : (string -> string) = v458.ToString
    let v471 : string = v470 v461
    v471 
    #endif
#if FABLE_COMPILER_PYTHON
    let v480 : US2 option = None
    let _v480 = ref v480 
    match v18 with
    | Some x -> (
    (fun () ->
    (fun () ->
    let v481 : int64 = x
    let v482 : US2 = US2_0(v481)
    v482 
    )
    |> fun x -> x () |> Some
    ) () ) | None -> None
    |> fun x -> _v480.Value <- x
    let v483 : US2 option = _v480.Value 
    let v506 : US2 = US2_1
    let v507 : US2 = v483 |> Option.defaultValue v506 
    let v605 : System.DateTime =
        match v507 with
        | US2_1 -> (* None *)
            let v597 : System.DateTime = System.DateTime.Now
            v597
        | US2_0(v515) -> (* Some *)
            let v518 : System.DateTime = System.DateTime.Now
            let v527 : (System.DateTime -> int64) = _.Ticks
            let v528 : int64 = v527 v518
            let v535 : int64 = v528 - v515
            let v538 : (int64 -> System.TimeSpan) = System.TimeSpan 
            let v539 : System.TimeSpan = v538 v535
            let v548 : (System.TimeSpan -> int32) = _.Hours
            let v549 : int32 = v548 v539
            let v558 : (System.TimeSpan -> int32) = _.Minutes
            let v559 : int32 = v558 v539
            let v568 : (System.TimeSpan -> int32) = _.Seconds
            let v569 : int32 = v568 v539
            let v578 : (System.TimeSpan -> int32) = _.Milliseconds
            let v579 : int32 = v578 v539
            let v588 : System.DateTime = System.DateTime (1, 1, 1, v549, v559, v569, v579)
            v588
    let v608 : string = method7()
    let v617 : (string -> string) = v605.ToString
    let v618 : string = v617 v608
    v618 
    #endif
#else
    let v627 : US2 option = None
    let _v627 = ref v627 
    match v18 with
    | Some x -> (
    (fun () ->
    (fun () ->
    let v628 : int64 = x
    let v629 : US2 = US2_0(v628)
    v629 
    )
    |> fun x -> x () |> Some
    ) () ) | None -> None
    |> fun x -> _v627.Value <- x
    let v630 : US2 option = _v627.Value 
    let v653 : US2 = US2_1
    let v654 : US2 = v630 |> Option.defaultValue v653 
    let v752 : System.DateTime =
        match v654 with
        | US2_1 -> (* None *)
            let v744 : System.DateTime = System.DateTime.Now
            v744
        | US2_0(v662) -> (* Some *)
            let v665 : System.DateTime = System.DateTime.Now
            let v674 : (System.DateTime -> int64) = _.Ticks
            let v675 : int64 = v674 v665
            let v682 : int64 = v675 - v662
            let v685 : (int64 -> System.TimeSpan) = System.TimeSpan 
            let v686 : System.TimeSpan = v685 v682
            let v695 : (System.TimeSpan -> int32) = _.Hours
            let v696 : int32 = v695 v686
            let v705 : (System.TimeSpan -> int32) = _.Minutes
            let v706 : int32 = v705 v686
            let v715 : (System.TimeSpan -> int32) = _.Seconds
            let v716 : int32 = v715 v686
            let v725 : (System.TimeSpan -> int32) = _.Milliseconds
            let v726 : int32 = v725 v686
            let v735 : System.DateTime = System.DateTime (1, 1, 1, v696, v706, v716, v726)
            v735
    let v755 : string = method7()
    let v764 : (string -> string) = v752.ToString
    let v765 : string = v764 v755
    v765 
    #endif
    |> fun x -> _v35 <- Some x
    let v772 : string = match _v35 with Some x -> x | None -> failwith "base.run_target / _v35=None"
    let v927 : bool =
        match v0 with
        | US0_0 -> (* Verbose *)
            true
        | _ ->
            false
    let v931 : US3 =
        if v927 then
            let v928 : string = "Verbose"
            US3_0(v928)
        else
            US3_1
    let v980 : US3 =
        match v931 with
        | US3_1 -> (* None *)
            let v936 : bool =
                match v0 with
                | US0_1 -> (* Debug *)
                    true
                | _ ->
                    false
            let v940 : US3 =
                if v936 then
                    let v937 : string = "Debug"
                    US3_0(v937)
                else
                    US3_1
            match v940 with
            | US3_1 -> (* None *)
                let v945 : bool =
                    match v0 with
                    | US0_2 -> (* Info *)
                        true
                    | _ ->
                        false
                let v949 : US3 =
                    if v945 then
                        let v946 : string = "Info"
                        US3_0(v946)
                    else
                        US3_1
                match v949 with
                | US3_1 -> (* None *)
                    let v954 : bool =
                        match v0 with
                        | US0_3 -> (* Warning *)
                            true
                        | _ ->
                            false
                    let v958 : US3 =
                        if v954 then
                            let v955 : string = "Warning"
                            US3_0(v955)
                        else
                            US3_1
                    match v958 with
                    | US3_1 -> (* None *)
                        let v963 : bool =
                            match v0 with
                            | US0_4 -> (* Critical *)
                                true
                            | _ ->
                                false
                        let v967 : US3 =
                            if v963 then
                                let v964 : string = "Critical"
                                US3_0(v964)
                            else
                                US3_1
                        match v967 with
                        | US3_1 -> (* None *)
                            US3_1
                        | US3_0(v968) -> (* Some *)
                            US3_0(v968)
                    | US3_0(v959) -> (* Some *)
                        US3_0(v959)
                | US3_0(v950) -> (* Some *)
                    US3_0(v950)
            | US3_0(v941) -> (* Some *)
                US3_0(v941)
        | US3_0(v932) -> (* Some *)
            US3_0(v932)
    let v984 : string =
        match v980 with
        | US3_1 -> (* None *)
            failwith<string> "Option does not have a value."
        | US3_0(v981) -> (* Some *)
            v981
    let v987 : (unit -> string) = v984.ToLower
    let v988 : string = v987 ()
    let v997 : string = v988.PadLeft (7, ' ')
    let v1029 : bool = true
    let mutable _v1029 : string option = None 
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v1044 : Ref<Str> =
        match v0 with
        | US0_4 -> (* Critical *)
            let v1038 : string = "inline_colorization::color_bright_red"
            let v1039 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1038 
            v1039
        | US0_1 -> (* Debug *)
            let v1032 : string = "inline_colorization::color_bright_blue"
            let v1033 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1032 
            v1033
        | US0_2 -> (* Info *)
            let v1034 : string = "inline_colorization::color_bright_green"
            let v1035 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1034 
            v1035
        | US0_0 -> (* Verbose *)
            let v1030 : string = "inline_colorization::color_bright_black"
            let v1031 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1030 
            v1031
        | US0_3 -> (* Warning *)
            let v1036 : string = "inline_colorization::color_yellow"
            let v1037 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1036 
            v1037
    let v1045 : string = "&*$0"
    let v1046 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr v997 v1045 
    let v1047 : string = "inline_colorization::color_reset"
    let v1048 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1047 
    let v1049 : string = "\"{v1044}{v1046}{v1048}\""
    let v1050 : string = @$"format!(" + v1049 + ")"
    let v1051 : std_string_String = Fable.Core.RustInterop.emitRustExpr () v1050 
    let v1052 : string = "fable_library_rust::String_::fromString($0)"
    let v1053 : string = Fable.Core.RustInterop.emitRustExpr v1051 v1052 
    v1053 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v1068 : Ref<Str> =
        match v0 with
        | US0_4 -> (* Critical *)
            let v1062 : string = "inline_colorization::color_bright_red"
            let v1063 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1062 
            v1063
        | US0_1 -> (* Debug *)
            let v1056 : string = "inline_colorization::color_bright_blue"
            let v1057 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1056 
            v1057
        | US0_2 -> (* Info *)
            let v1058 : string = "inline_colorization::color_bright_green"
            let v1059 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1058 
            v1059
        | US0_0 -> (* Verbose *)
            let v1054 : string = "inline_colorization::color_bright_black"
            let v1055 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1054 
            v1055
        | US0_3 -> (* Warning *)
            let v1060 : string = "inline_colorization::color_yellow"
            let v1061 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1060 
            v1061
    let v1069 : string = "&*$0"
    let v1070 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr v997 v1069 
    let v1071 : string = "inline_colorization::color_reset"
    let v1072 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1071 
    let v1073 : string = "\"{v1068}{v1070}{v1072}\""
    let v1074 : string = @$"format!(" + v1073 + ")"
    let v1075 : std_string_String = Fable.Core.RustInterop.emitRustExpr () v1074 
    let v1076 : string = "fable_library_rust::String_::fromString($0)"
    let v1077 : string = Fable.Core.RustInterop.emitRustExpr v1075 v1076 
    v1077 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v1092 : Ref<Str> =
        match v0 with
        | US0_4 -> (* Critical *)
            let v1086 : string = "inline_colorization::color_bright_red"
            let v1087 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1086 
            v1087
        | US0_1 -> (* Debug *)
            let v1080 : string = "inline_colorization::color_bright_blue"
            let v1081 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1080 
            v1081
        | US0_2 -> (* Info *)
            let v1082 : string = "inline_colorization::color_bright_green"
            let v1083 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1082 
            v1083
        | US0_0 -> (* Verbose *)
            let v1078 : string = "inline_colorization::color_bright_black"
            let v1079 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1078 
            v1079
        | US0_3 -> (* Warning *)
            let v1084 : string = "inline_colorization::color_yellow"
            let v1085 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1084 
            v1085
    let v1093 : string = "&*$0"
    let v1094 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr v997 v1093 
    let v1095 : string = "inline_colorization::color_reset"
    let v1096 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1095 
    let v1097 : string = "\"{v1092}{v1094}{v1096}\""
    let v1098 : string = @$"format!(" + v1097 + ")"
    let v1099 : std_string_String = Fable.Core.RustInterop.emitRustExpr () v1098 
    let v1100 : string = "fable_library_rust::String_::fromString($0)"
    let v1101 : string = Fable.Core.RustInterop.emitRustExpr v1099 v1100 
    v1101 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v1111 : string =
        match v0 with
        | US0_4 -> (* Critical *)
            let v1106 : string = "\u001b[91m"
            v1106
        | US0_1 -> (* Debug *)
            let v1103 : string = "\u001b[94m"
            v1103
        | US0_2 -> (* Info *)
            let v1104 : string = "\u001b[92m"
            v1104
        | US0_0 -> (* Verbose *)
            let v1102 : string = "\u001b[90m"
            v1102
        | US0_3 -> (* Warning *)
            let v1105 : string = "\u001b[93m"
            v1105
    let v1112 : string = method8()
    let v1113 : string = v1111 + v997 
    let v1114 : string = v1113 + v1112 
    v1114 
    #endif
#if FABLE_COMPILER_PYTHON
    let v1124 : string =
        match v0 with
        | US0_4 -> (* Critical *)
            let v1119 : string = "\u001b[91m"
            v1119
        | US0_1 -> (* Debug *)
            let v1116 : string = "\u001b[94m"
            v1116
        | US0_2 -> (* Info *)
            let v1117 : string = "\u001b[92m"
            v1117
        | US0_0 -> (* Verbose *)
            let v1115 : string = "\u001b[90m"
            v1115
        | US0_3 -> (* Warning *)
            let v1118 : string = "\u001b[93m"
            v1118
    let v1125 : string = method8()
    let v1126 : string = v1124 + v997 
    let v1127 : string = v1126 + v1125 
    v1127 
    #endif
#else
    let v1137 : string =
        match v0 with
        | US0_4 -> (* Critical *)
            let v1132 : string = "\u001b[91m"
            v1132
        | US0_1 -> (* Debug *)
            let v1129 : string = "\u001b[94m"
            v1129
        | US0_2 -> (* Info *)
            let v1130 : string = "\u001b[92m"
            v1130
        | US0_0 -> (* Verbose *)
            let v1128 : string = "\u001b[90m"
            v1128
        | US0_3 -> (* Warning *)
            let v1131 : string = "\u001b[93m"
            v1131
    let v1138 : string = method8()
    let v1139 : string = v1137 + v997 
    let v1140 : string = v1139 + v1138 
    v1140 
    #endif
    |> fun x -> _v1029 <- Some x
    let v1141 : string = match _v1029 with Some x -> x | None -> failwith "base.run_target / _v1029=None"
    let v1160 : int64 = v14.l0
    let struct (v1161 : int32, v1162 : string) = v2 ()
    let v1163 : string = ""
    let v1164 : Mut4 = {l0 = v1163} : Mut4
    method17(v1164, v1161, v1162)
    let v1165 : string = v1164.l0
    let v1168 : string = $"{v772} {v1141} #{v1160} %s{v1 ()} / {v1165}"
    let v1175 : char list = []
    let v1180 : (char list -> (char [])) = List.toArray
    let v1181 : (char []) = v1180 v1175
    let v1188 : string = v1168.TrimStart v1181 
    let v1227 : char list = []
    let v1230 : char list = '/' :: v1227 
    let v1239 : char list = ' ' :: v1230 
    let v1250 : (char list -> (char [])) = List.toArray
    let v1251 : (char []) = v1250 v1239
    let v1258 : string = v1188.TrimEnd v1251 
    v1258
and method16 (v0 : US0, v1 : (unit -> string), v2 : (unit -> struct (int32 * string))) : unit =
    let v3 : (unit -> string) = closure17(v0, v1, v2)
    method13(v0, v3)
and closure9 (v0 : int32, v1 : string) (v2 : int32) : Async<bool> =
    let v5 : bool = true
    let mutable _v5 : Async<bool> option = None 
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v8 : Async<bool> = null |> unbox<Async<bool>>
    v8 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v17 : Async<bool> = null |> unbox<Async<bool>>
    v17 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v26 : Async<bool> = null |> unbox<Async<bool>>
    v26 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v35 : Async<bool> = null |> unbox<Async<bool>>
    v35 
    #endif
#if FABLE_COMPILER_PYTHON
    let v44 : Async<bool> = null |> unbox<Async<bool>>
    v44 
    #endif
#else
    let v51 : Async<bool> option = None
    let mutable _v51 = v51 
    async {
    let v54 : bool = true
    let mutable _v54 : Async<bool> option = None 
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v57 : Async<bool> = null |> unbox<Async<bool>>
    v57 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v66 : Async<bool> = null |> unbox<Async<bool>>
    v66 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v75 : Async<bool> = null |> unbox<Async<bool>>
    v75 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v84 : Async<bool> = null |> unbox<Async<bool>>
    v84 
    #endif
#if FABLE_COMPILER_PYTHON
    let v93 : Async<bool> = null |> unbox<Async<bool>>
    v93 
    #endif
#else
    let v100 : Async<bool> option = None
    let mutable _v100 = v100 
    async {
    let v101 : Async<System.Threading.CancellationToken> = Async.CancellationToken
    let! v101 = v101 
    let v102 : System.Threading.CancellationToken = v101 
    let v103 : System.Net.Sockets.TcpClient = new System.Net.Sockets.TcpClient ()
    use v103 = v103 
    let v104 : System.Net.Sockets.TcpClient = v103 
    try
    let v105 : System.Threading.Tasks.ValueTask = v104.ConnectAsync (v1, v2, v102)
    let v106 : (unit -> System.Threading.Tasks.Task) = v105.AsTask
    let v107 : System.Threading.Tasks.Task = v106 ()
    let v110 : bool = true
    let mutable _v110 : Async<unit> option = None 
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v113 : Async<unit> = null |> unbox<Async<unit>>
    v113 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v122 : Async<unit> = null |> unbox<Async<unit>>
    v122 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v131 : Async<unit> = null |> unbox<Async<unit>>
    v131 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v140 : Async<unit> = null |> unbox<Async<unit>>
    v140 
    #endif
#if FABLE_COMPILER_PYTHON
    let v149 : Async<unit> = null |> unbox<Async<unit>>
    v149 
    #endif
#else
    let v156 : (System.Threading.Tasks.Task -> Async<unit>) = Async.AwaitTask
    let v157 : Async<unit> = v156 v107
    v157 
    #endif
    |> fun x -> _v110 <- Some x
    let v158 : Async<unit> = match _v110 with Some x -> x | None -> failwith "base.run_target / _v110=None"
    do! v158 
    return true 
    with ex ->
    let v173 : exn = ex
    let v176 : bool = true
    let mutable _v176 : string option = None 
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v179 : string = $"%A{v173}"
    v179 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v188 : string = $"%A{v173}"
    v188 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v197 : string = $"%A{v173}"
    v197 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v206 : string = $"%A{v173}"
    v206 
    #endif
#if FABLE_COMPILER_PYTHON
    let v215 : string = $"%A{v173}"
    v215 
    #endif
#else
    let v222 : string = $"{v173.GetType ()}: {v173.Message}"
    v222 
    #endif
    |> fun x -> _v176 <- Some x
    let v223 : string = match _v176 with Some x -> x | None -> failwith "base.run_target / _v176=None"
    let v238 : US0 = US0_0
    let v239 : (unit -> string) = closure4()
    let v240 : (unit -> struct (int32 * string)) = closure5(v2, v223)
    method4(v238, v239, v240)
    return false 
    (*
    let v241 : bool = *)
    }
    |> fun x -> _v100 <- Some x
    let v242 : Async<bool> = match _v100 with Some x -> x | None -> failwith "async.new_async_unit / _v100=None"
    v242 
    #endif
    |> fun x -> _v54 <- Some x
    let v243 : Async<bool> = match _v54 with Some x -> x | None -> failwith "base.run_target / _v54=None"
    let v260 : bool = true
    let mutable _v260 : Async<US4> option = None 
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v263 : Async<US4> = null |> unbox<Async<US4>>
    v263 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v272 : Async<US4> = null |> unbox<Async<US4>>
    v272 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v281 : Async<US4> = null |> unbox<Async<US4>>
    v281 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v290 : Async<US4> = null |> unbox<Async<US4>>
    v290 
    #endif
#if FABLE_COMPILER_PYTHON
    let v299 : Async<US4> = null |> unbox<Async<US4>>
    v299 
    #endif
#else
    let v308 : bool = true
    let mutable _v308 : Async<US4> option = None 
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v311 : Async<US4> = null |> unbox<Async<US4>>
    v311 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v320 : Async<US4> = null |> unbox<Async<US4>>
    v320 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v329 : Async<US4> = null |> unbox<Async<US4>>
    v329 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v338 : Async<US4> = null |> unbox<Async<US4>>
    v338 
    #endif
#if FABLE_COMPILER_PYTHON
    let v347 : Async<US4> = null |> unbox<Async<US4>>
    v347 
    #endif
#else
    let v354 : Async<US4> option = None
    let mutable _v354 = v354 
    async {
    let v357 : bool = true
    let mutable _v357 : Async<Async<bool>> option = None 
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v360 : Async<Async<bool>> = null |> unbox<Async<Async<bool>>>
    v360 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v369 : Async<Async<bool>> = null |> unbox<Async<Async<bool>>>
    v369 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v378 : Async<Async<bool>> = null |> unbox<Async<Async<bool>>>
    v378 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v387 : Async<Async<bool>> = null |> unbox<Async<Async<bool>>>
    v387 
    #endif
#if FABLE_COMPILER_PYTHON
    let v396 : Async<Async<bool>> = null |> unbox<Async<Async<bool>>>
    v396 
    #endif
#else
    let v403 : Async<Async<bool>> = Async.StartChild (v243, v0)
    v403 
    #endif
    |> fun x -> _v357 <- Some x
    let v404 : Async<Async<bool>> = match _v357 with Some x -> x | None -> failwith "base.run_target / _v357=None"
    let! v404 = v404 
    let v419 : Async<bool> = v404 
    let v422 : bool = true
    let mutable _v422 : Async<Choice<bool, exn>> option = None 
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v425 : Async<Choice<bool, exn>> = null |> unbox<Async<Choice<bool, exn>>>
    v425 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v434 : Async<Choice<bool, exn>> = null |> unbox<Async<Choice<bool, exn>>>
    v434 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v443 : Async<Choice<bool, exn>> = null |> unbox<Async<Choice<bool, exn>>>
    v443 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v452 : Async<Choice<bool, exn>> = null |> unbox<Async<Choice<bool, exn>>>
    v452 
    #endif
#if FABLE_COMPILER_PYTHON
    let v461 : Async<Choice<bool, exn>> = null |> unbox<Async<Choice<bool, exn>>>
    v461 
    #endif
#else
    let v468 : (Async<bool> -> Async<Choice<bool, exn>>) = Async.Catch
    let v469 : Async<Choice<bool, exn>> = v468 v419
    v469 
    #endif
    |> fun x -> _v422 <- Some x
    let v470 : Async<Choice<bool, exn>> = match _v422 with Some x -> x | None -> failwith "base.run_target / _v422=None"
    let v487 : bool = true
    let mutable _v487 : Async<US5> option = None 
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v490 : Async<US5> = null |> unbox<Async<US5>>
    v490 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v499 : Async<US5> = null |> unbox<Async<US5>>
    v499 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v508 : Async<US5> = null |> unbox<Async<US5>>
    v508 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v517 : Async<US5> = null |> unbox<Async<US5>>
    v517 
    #endif
#if FABLE_COMPILER_PYTHON
    let v526 : Async<US5> = null |> unbox<Async<US5>>
    v526 
    #endif
#else
    let v533 : Async<US5> option = None
    let mutable _v533 = v533 
    async {
    let! v470 = v470 
    let v534 : Choice<bool, exn> = v470 
    let v537 : bool = true
    let mutable _v537 : US5 option = None 
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v540 : US5 = null |> unbox<US5>
    v540 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v549 : US5 = null |> unbox<US5>
    v549 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v558 : US5 = null |> unbox<US5>
    v558 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v567 : US5 = null |> unbox<US5>
    v567 
    #endif
#if FABLE_COMPILER_PYTHON
    let v576 : US5 = null |> unbox<US5>
    v576 
    #endif
#else
    let v583 : (bool -> US5) = closure10()
    let v584 : (exn -> US5) = closure11()
    let v585 : US5 = match v534 with Choice1Of2 x -> v583 x | Choice2Of2 x -> v584 x
    v585 
    #endif
    |> fun x -> _v537 <- Some x
    let v586 : US5 = match _v537 with Some x -> x | None -> failwith "base.run_target / _v537=None"
    return v586 
    }
    |> fun x -> _v533 <- Some x
    let v601 : Async<US5> = match _v533 with Some x -> x | None -> failwith "async.new_async_unit / _v533=None"
    v601 
    #endif
    |> fun x -> _v487 <- Some x
    let v602 : Async<US5> = match _v487 with Some x -> x | None -> failwith "base.run_target / _v487=None"
    let v619 : bool = true
    let mutable _v619 : Async<US6> option = None 
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v622 : Async<US6> = null |> unbox<Async<US6>>
    v622 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v631 : Async<US6> = null |> unbox<Async<US6>>
    v631 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v640 : Async<US6> = null |> unbox<Async<US6>>
    v640 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v649 : Async<US6> = null |> unbox<Async<US6>>
    v649 
    #endif
#if FABLE_COMPILER_PYTHON
    let v658 : Async<US6> = null |> unbox<Async<US6>>
    v658 
    #endif
#else
    let v665 : Async<US6> option = None
    let mutable _v665 = v665 
    async {
    let! v602 = v602 
    let v666 : US5 = v602 
    let v672 : US6 =
        match v666 with
        | US5_0(v667) -> (* C1of2 *)
            US6_0(v667)
        | US5_1(v669) -> (* C2of2 *)
            US6_1(v669)
    return v672 
    }
    |> fun x -> _v665 <- Some x
    let v673 : Async<US6> = match _v665 with Some x -> x | None -> failwith "async.new_async_unit / _v665=None"
    v673 
    #endif
    |> fun x -> _v619 <- Some x
    let v674 : Async<US6> = match _v619 with Some x -> x | None -> failwith "base.run_target / _v619=None"
    let v691 : bool = true
    let mutable _v691 : Async<US4> option = None 
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v694 : Async<US4> = null |> unbox<Async<US4>>
    v694 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v703 : Async<US4> = null |> unbox<Async<US4>>
    v703 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v712 : Async<US4> = null |> unbox<Async<US4>>
    v712 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v721 : Async<US4> = null |> unbox<Async<US4>>
    v721 
    #endif
#if FABLE_COMPILER_PYTHON
    let v730 : Async<US4> = null |> unbox<Async<US4>>
    v730 
    #endif
#else
    let v737 : Async<US4> option = None
    let mutable _v737 = v737 
    async {
    let! v674 = v674 
    let v738 : US6 = v674 
    let v771 : US4 =
        match v738 with
        | US6_1(v741) -> (* Error *)
            let v744 : string = $"%A{v741}"
            let v753 : string = "System.TimeoutException"
            let v754 : bool = v744.Contains v753 
            if v754 then
                let v761 : US0 = US0_0
                let v762 : (unit -> string) = closure12()
                let v763 : (unit -> int32) = closure13(v0)
                method14(v761, v762, v763)
                US4_1
            else
                let v765 : US0 = US0_4
                let v766 : (unit -> string) = closure15()
                let v767 : (unit -> struct (int32 * string)) = closure16(v0, v741)
                method16(v765, v766, v767)
                US4_1
        | US6_0(v739) -> (* Ok *)
            US4_0(v739)
    return v771 
    }
    |> fun x -> _v737 <- Some x
    let v772 : Async<US4> = match _v737 with Some x -> x | None -> failwith "async.new_async_unit / _v737=None"
    v772 
    #endif
    |> fun x -> _v691 <- Some x
    let v773 : Async<US4> = match _v691 with Some x -> x | None -> failwith "base.run_target / _v691=None"
    return! v773 
    }
    |> fun x -> _v354 <- Some x
    let v788 : Async<US4> = match _v354 with Some x -> x | None -> failwith "async.new_async_unit / _v354=None"
    v788 
    #endif
    |> fun x -> _v308 <- Some x
    let v789 : Async<US4> = match _v308 with Some x -> x | None -> failwith "base.run_target / _v308=None"
    v789 
    #endif
    |> fun x -> _v260 <- Some x
    let v804 : Async<US4> = match _v260 with Some x -> x | None -> failwith "base.run_target / _v260=None"
    let! v804 = v804 
    let v819 : US4 = v804 
    let v822 : bool =
        match v819 with
        | US4_1 -> (* None *)
            false
        | US4_0(v820) -> (* Some *)
            v820
    return v822 
    }
    |> fun x -> _v51 <- Some x
    let v823 : Async<bool> = match _v51 with Some x -> x | None -> failwith "async.new_async_unit / _v51=None"
    v823 
    #endif
    |> fun x -> _v5 <- Some x
    let v824 : Async<bool> = match _v5 with Some x -> x | None -> failwith "base.run_target / _v5=None"
    v824
and closure8 (v0 : int32) (v1 : string) : (int32 -> Async<bool>) =
    closure9(v0, v1)
and closure7 () (v0 : int32) : (string -> (int32 -> Async<bool>)) =
    closure8(v0)
and closure22 () () : string =
    let v0 : string = "networking.wait_for_port_access"
    v0
and closure23 (v0 : int32 option, v1 : bool, v2 : int32, v3 : int64) () : struct (int32 * int64 * int32 option * bool) =
    struct (v2, v3, v0, v1)
and method21 (v0 : Mut4, v1 : int64) : unit =
    let v4 : string = $"{v1}"
    let v11 : string = v0.l0
    let v12 : string = v11 + v4 
    v0.l0 <- v12
    ()
and method22 (v0 : Mut4, v1 : int32 option) : unit =
    let v4 : string = $"%A{v1}"
    method10(v0, v4)
and method23 (v0 : Mut4, v1 : bool) : unit =
    let v4 : string =
        if v1 then
            let v2 : string = "true"
            v2
        else
            let v3 : string = "false"
            v3
    let v7 : string = $"{v4}"
    let v14 : string = v0.l0
    let v15 : string = v14 + v7 
    v0.l0 <- v15
    ()
and method20 (v0 : Mut4, v1 : int32, v2 : int64, v3 : int32 option, v4 : bool) : unit =
    let v5 : string = "{ "
    method10(v0, v5)
    method11(v0)
    let v6 : string = "port"
    method10(v0, v6)
    let v7 : string = " = "
    method10(v0, v7)
    method12(v0, v1)
    let v8 : string = "; "
    method10(v0, v8)
    let v9 : string = "retry"
    method10(v0, v9)
    method10(v0, v7)
    method21(v0, v2)
    method10(v0, v8)
    let v10 : string = "timeout"
    method10(v0, v10)
    method10(v0, v7)
    method22(v0, v3)
    method10(v0, v8)
    let v11 : string = "status"
    method10(v0, v11)
    method10(v0, v7)
    method23(v0, v4)
    let v12 : string = " }"
    method10(v0, v12)
and closure24 (v0 : US0, v1 : (unit -> string), v2 : (unit -> struct (int32 * int64 * int32 option * bool))) () : string =
    let v5 : (US0 -> struct (Mut0 * Mut1 * Mut2 * Mut3 * int64 option)) = closure0()
    let v6 : US0 = US0_0
    if State.trace_state.IsNone then State.trace_state <- v5 v6 |> Some
    let struct (v14 : Mut0, v15 : Mut1, v16 : Mut2, v17 : Mut3, v18 : int64 option) = State.trace_state.Value
    let v35 : bool = true
    let mutable _v35 : string option = None 
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v38 : US2 option = None
    let _v38 = ref v38 
    match v18 with
    | Some x -> (
    (fun () ->
    (fun () ->
    let v39 : int64 = x
    let v40 : US2 = US2_0(v39)
    v40 
    )
    |> fun x -> x () |> Some
    ) () ) | None -> None
    |> fun x -> _v38.Value <- x
    let v41 : US2 option = _v38.Value 
    let v64 : US2 = US2_1
    let v65 : US2 = v41 |> Option.defaultValue v64 
    let v163 : System.DateTime =
        match v65 with
        | US2_1 -> (* None *)
            let v155 : System.DateTime = System.DateTime.Now
            v155
        | US2_0(v73) -> (* Some *)
            let v76 : System.DateTime = System.DateTime.Now
            let v85 : (System.DateTime -> int64) = _.Ticks
            let v86 : int64 = v85 v76
            let v93 : int64 = v86 - v73
            let v96 : (int64 -> System.TimeSpan) = System.TimeSpan 
            let v97 : System.TimeSpan = v96 v93
            let v106 : (System.TimeSpan -> int32) = _.Hours
            let v107 : int32 = v106 v97
            let v116 : (System.TimeSpan -> int32) = _.Minutes
            let v117 : int32 = v116 v97
            let v126 : (System.TimeSpan -> int32) = _.Seconds
            let v127 : int32 = v126 v97
            let v136 : (System.TimeSpan -> int32) = _.Milliseconds
            let v137 : int32 = v136 v97
            let v146 : System.DateTime = System.DateTime (1, 1, 1, v107, v117, v127, v137)
            v146
    let v166 : string = method5()
    let v175 : (string -> string) = v163.ToString
    let v176 : string = v175 v166
    v176 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v185 : US2 option = None
    let _v185 = ref v185 
    match v18 with
    | Some x -> (
    (fun () ->
    (fun () ->
    let v186 : int64 = x
    let v187 : US2 = US2_0(v186)
    v187 
    )
    |> fun x -> x () |> Some
    ) () ) | None -> None
    |> fun x -> _v185.Value <- x
    let v188 : US2 option = _v185.Value 
    let v211 : US2 = US2_1
    let v212 : US2 = v188 |> Option.defaultValue v211 
    let v310 : System.DateTime =
        match v212 with
        | US2_1 -> (* None *)
            let v302 : System.DateTime = System.DateTime.Now
            v302
        | US2_0(v220) -> (* Some *)
            let v223 : System.DateTime = System.DateTime.Now
            let v232 : (System.DateTime -> int64) = _.Ticks
            let v233 : int64 = v232 v223
            let v240 : int64 = v233 - v220
            let v243 : (int64 -> System.TimeSpan) = System.TimeSpan 
            let v244 : System.TimeSpan = v243 v240
            let v253 : (System.TimeSpan -> int32) = _.Hours
            let v254 : int32 = v253 v244
            let v263 : (System.TimeSpan -> int32) = _.Minutes
            let v264 : int32 = v263 v244
            let v273 : (System.TimeSpan -> int32) = _.Seconds
            let v274 : int32 = v273 v244
            let v283 : (System.TimeSpan -> int32) = _.Milliseconds
            let v284 : int32 = v283 v244
            let v293 : System.DateTime = System.DateTime (1, 1, 1, v254, v264, v274, v284)
            v293
    let v313 : string = method5()
    let v322 : (string -> string) = v310.ToString
    let v323 : string = v322 v313
    v323 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v330 : string = method6()
    v330 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v333 : US2 option = None
    let _v333 = ref v333 
    match v18 with
    | Some x -> (
    (fun () ->
    (fun () ->
    let v334 : int64 = x
    let v335 : US2 = US2_0(v334)
    v335 
    )
    |> fun x -> x () |> Some
    ) () ) | None -> None
    |> fun x -> _v333.Value <- x
    let v336 : US2 option = _v333.Value 
    let v359 : US2 = US2_1
    let v360 : US2 = v336 |> Option.defaultValue v359 
    let v458 : System.DateTime =
        match v360 with
        | US2_1 -> (* None *)
            let v450 : System.DateTime = System.DateTime.Now
            v450
        | US2_0(v368) -> (* Some *)
            let v371 : System.DateTime = System.DateTime.Now
            let v380 : (System.DateTime -> int64) = _.Ticks
            let v381 : int64 = v380 v371
            let v388 : int64 = v381 - v368
            let v391 : (int64 -> System.TimeSpan) = System.TimeSpan 
            let v392 : System.TimeSpan = v391 v388
            let v401 : (System.TimeSpan -> int32) = _.Hours
            let v402 : int32 = v401 v392
            let v411 : (System.TimeSpan -> int32) = _.Minutes
            let v412 : int32 = v411 v392
            let v421 : (System.TimeSpan -> int32) = _.Seconds
            let v422 : int32 = v421 v392
            let v431 : (System.TimeSpan -> int32) = _.Milliseconds
            let v432 : int32 = v431 v392
            let v441 : System.DateTime = System.DateTime (1, 1, 1, v402, v412, v422, v432)
            v441
    let v461 : string = method7()
    let v470 : (string -> string) = v458.ToString
    let v471 : string = v470 v461
    v471 
    #endif
#if FABLE_COMPILER_PYTHON
    let v480 : US2 option = None
    let _v480 = ref v480 
    match v18 with
    | Some x -> (
    (fun () ->
    (fun () ->
    let v481 : int64 = x
    let v482 : US2 = US2_0(v481)
    v482 
    )
    |> fun x -> x () |> Some
    ) () ) | None -> None
    |> fun x -> _v480.Value <- x
    let v483 : US2 option = _v480.Value 
    let v506 : US2 = US2_1
    let v507 : US2 = v483 |> Option.defaultValue v506 
    let v605 : System.DateTime =
        match v507 with
        | US2_1 -> (* None *)
            let v597 : System.DateTime = System.DateTime.Now
            v597
        | US2_0(v515) -> (* Some *)
            let v518 : System.DateTime = System.DateTime.Now
            let v527 : (System.DateTime -> int64) = _.Ticks
            let v528 : int64 = v527 v518
            let v535 : int64 = v528 - v515
            let v538 : (int64 -> System.TimeSpan) = System.TimeSpan 
            let v539 : System.TimeSpan = v538 v535
            let v548 : (System.TimeSpan -> int32) = _.Hours
            let v549 : int32 = v548 v539
            let v558 : (System.TimeSpan -> int32) = _.Minutes
            let v559 : int32 = v558 v539
            let v568 : (System.TimeSpan -> int32) = _.Seconds
            let v569 : int32 = v568 v539
            let v578 : (System.TimeSpan -> int32) = _.Milliseconds
            let v579 : int32 = v578 v539
            let v588 : System.DateTime = System.DateTime (1, 1, 1, v549, v559, v569, v579)
            v588
    let v608 : string = method7()
    let v617 : (string -> string) = v605.ToString
    let v618 : string = v617 v608
    v618 
    #endif
#else
    let v627 : US2 option = None
    let _v627 = ref v627 
    match v18 with
    | Some x -> (
    (fun () ->
    (fun () ->
    let v628 : int64 = x
    let v629 : US2 = US2_0(v628)
    v629 
    )
    |> fun x -> x () |> Some
    ) () ) | None -> None
    |> fun x -> _v627.Value <- x
    let v630 : US2 option = _v627.Value 
    let v653 : US2 = US2_1
    let v654 : US2 = v630 |> Option.defaultValue v653 
    let v752 : System.DateTime =
        match v654 with
        | US2_1 -> (* None *)
            let v744 : System.DateTime = System.DateTime.Now
            v744
        | US2_0(v662) -> (* Some *)
            let v665 : System.DateTime = System.DateTime.Now
            let v674 : (System.DateTime -> int64) = _.Ticks
            let v675 : int64 = v674 v665
            let v682 : int64 = v675 - v662
            let v685 : (int64 -> System.TimeSpan) = System.TimeSpan 
            let v686 : System.TimeSpan = v685 v682
            let v695 : (System.TimeSpan -> int32) = _.Hours
            let v696 : int32 = v695 v686
            let v705 : (System.TimeSpan -> int32) = _.Minutes
            let v706 : int32 = v705 v686
            let v715 : (System.TimeSpan -> int32) = _.Seconds
            let v716 : int32 = v715 v686
            let v725 : (System.TimeSpan -> int32) = _.Milliseconds
            let v726 : int32 = v725 v686
            let v735 : System.DateTime = System.DateTime (1, 1, 1, v696, v706, v716, v726)
            v735
    let v755 : string = method7()
    let v764 : (string -> string) = v752.ToString
    let v765 : string = v764 v755
    v765 
    #endif
    |> fun x -> _v35 <- Some x
    let v772 : string = match _v35 with Some x -> x | None -> failwith "base.run_target / _v35=None"
    let v927 : bool =
        match v0 with
        | US0_0 -> (* Verbose *)
            true
        | _ ->
            false
    let v931 : US3 =
        if v927 then
            let v928 : string = "Verbose"
            US3_0(v928)
        else
            US3_1
    let v980 : US3 =
        match v931 with
        | US3_1 -> (* None *)
            let v936 : bool =
                match v0 with
                | US0_1 -> (* Debug *)
                    true
                | _ ->
                    false
            let v940 : US3 =
                if v936 then
                    let v937 : string = "Debug"
                    US3_0(v937)
                else
                    US3_1
            match v940 with
            | US3_1 -> (* None *)
                let v945 : bool =
                    match v0 with
                    | US0_2 -> (* Info *)
                        true
                    | _ ->
                        false
                let v949 : US3 =
                    if v945 then
                        let v946 : string = "Info"
                        US3_0(v946)
                    else
                        US3_1
                match v949 with
                | US3_1 -> (* None *)
                    let v954 : bool =
                        match v0 with
                        | US0_3 -> (* Warning *)
                            true
                        | _ ->
                            false
                    let v958 : US3 =
                        if v954 then
                            let v955 : string = "Warning"
                            US3_0(v955)
                        else
                            US3_1
                    match v958 with
                    | US3_1 -> (* None *)
                        let v963 : bool =
                            match v0 with
                            | US0_4 -> (* Critical *)
                                true
                            | _ ->
                                false
                        let v967 : US3 =
                            if v963 then
                                let v964 : string = "Critical"
                                US3_0(v964)
                            else
                                US3_1
                        match v967 with
                        | US3_1 -> (* None *)
                            US3_1
                        | US3_0(v968) -> (* Some *)
                            US3_0(v968)
                    | US3_0(v959) -> (* Some *)
                        US3_0(v959)
                | US3_0(v950) -> (* Some *)
                    US3_0(v950)
            | US3_0(v941) -> (* Some *)
                US3_0(v941)
        | US3_0(v932) -> (* Some *)
            US3_0(v932)
    let v984 : string =
        match v980 with
        | US3_1 -> (* None *)
            failwith<string> "Option does not have a value."
        | US3_0(v981) -> (* Some *)
            v981
    let v987 : (unit -> string) = v984.ToLower
    let v988 : string = v987 ()
    let v997 : string = v988.PadLeft (7, ' ')
    let v1029 : bool = true
    let mutable _v1029 : string option = None 
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v1044 : Ref<Str> =
        match v0 with
        | US0_4 -> (* Critical *)
            let v1038 : string = "inline_colorization::color_bright_red"
            let v1039 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1038 
            v1039
        | US0_1 -> (* Debug *)
            let v1032 : string = "inline_colorization::color_bright_blue"
            let v1033 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1032 
            v1033
        | US0_2 -> (* Info *)
            let v1034 : string = "inline_colorization::color_bright_green"
            let v1035 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1034 
            v1035
        | US0_0 -> (* Verbose *)
            let v1030 : string = "inline_colorization::color_bright_black"
            let v1031 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1030 
            v1031
        | US0_3 -> (* Warning *)
            let v1036 : string = "inline_colorization::color_yellow"
            let v1037 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1036 
            v1037
    let v1045 : string = "&*$0"
    let v1046 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr v997 v1045 
    let v1047 : string = "inline_colorization::color_reset"
    let v1048 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1047 
    let v1049 : string = "\"{v1044}{v1046}{v1048}\""
    let v1050 : string = @$"format!(" + v1049 + ")"
    let v1051 : std_string_String = Fable.Core.RustInterop.emitRustExpr () v1050 
    let v1052 : string = "fable_library_rust::String_::fromString($0)"
    let v1053 : string = Fable.Core.RustInterop.emitRustExpr v1051 v1052 
    v1053 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v1068 : Ref<Str> =
        match v0 with
        | US0_4 -> (* Critical *)
            let v1062 : string = "inline_colorization::color_bright_red"
            let v1063 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1062 
            v1063
        | US0_1 -> (* Debug *)
            let v1056 : string = "inline_colorization::color_bright_blue"
            let v1057 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1056 
            v1057
        | US0_2 -> (* Info *)
            let v1058 : string = "inline_colorization::color_bright_green"
            let v1059 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1058 
            v1059
        | US0_0 -> (* Verbose *)
            let v1054 : string = "inline_colorization::color_bright_black"
            let v1055 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1054 
            v1055
        | US0_3 -> (* Warning *)
            let v1060 : string = "inline_colorization::color_yellow"
            let v1061 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1060 
            v1061
    let v1069 : string = "&*$0"
    let v1070 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr v997 v1069 
    let v1071 : string = "inline_colorization::color_reset"
    let v1072 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1071 
    let v1073 : string = "\"{v1068}{v1070}{v1072}\""
    let v1074 : string = @$"format!(" + v1073 + ")"
    let v1075 : std_string_String = Fable.Core.RustInterop.emitRustExpr () v1074 
    let v1076 : string = "fable_library_rust::String_::fromString($0)"
    let v1077 : string = Fable.Core.RustInterop.emitRustExpr v1075 v1076 
    v1077 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v1092 : Ref<Str> =
        match v0 with
        | US0_4 -> (* Critical *)
            let v1086 : string = "inline_colorization::color_bright_red"
            let v1087 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1086 
            v1087
        | US0_1 -> (* Debug *)
            let v1080 : string = "inline_colorization::color_bright_blue"
            let v1081 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1080 
            v1081
        | US0_2 -> (* Info *)
            let v1082 : string = "inline_colorization::color_bright_green"
            let v1083 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1082 
            v1083
        | US0_0 -> (* Verbose *)
            let v1078 : string = "inline_colorization::color_bright_black"
            let v1079 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1078 
            v1079
        | US0_3 -> (* Warning *)
            let v1084 : string = "inline_colorization::color_yellow"
            let v1085 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1084 
            v1085
    let v1093 : string = "&*$0"
    let v1094 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr v997 v1093 
    let v1095 : string = "inline_colorization::color_reset"
    let v1096 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1095 
    let v1097 : string = "\"{v1092}{v1094}{v1096}\""
    let v1098 : string = @$"format!(" + v1097 + ")"
    let v1099 : std_string_String = Fable.Core.RustInterop.emitRustExpr () v1098 
    let v1100 : string = "fable_library_rust::String_::fromString($0)"
    let v1101 : string = Fable.Core.RustInterop.emitRustExpr v1099 v1100 
    v1101 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v1111 : string =
        match v0 with
        | US0_4 -> (* Critical *)
            let v1106 : string = "\u001b[91m"
            v1106
        | US0_1 -> (* Debug *)
            let v1103 : string = "\u001b[94m"
            v1103
        | US0_2 -> (* Info *)
            let v1104 : string = "\u001b[92m"
            v1104
        | US0_0 -> (* Verbose *)
            let v1102 : string = "\u001b[90m"
            v1102
        | US0_3 -> (* Warning *)
            let v1105 : string = "\u001b[93m"
            v1105
    let v1112 : string = method8()
    let v1113 : string = v1111 + v997 
    let v1114 : string = v1113 + v1112 
    v1114 
    #endif
#if FABLE_COMPILER_PYTHON
    let v1124 : string =
        match v0 with
        | US0_4 -> (* Critical *)
            let v1119 : string = "\u001b[91m"
            v1119
        | US0_1 -> (* Debug *)
            let v1116 : string = "\u001b[94m"
            v1116
        | US0_2 -> (* Info *)
            let v1117 : string = "\u001b[92m"
            v1117
        | US0_0 -> (* Verbose *)
            let v1115 : string = "\u001b[90m"
            v1115
        | US0_3 -> (* Warning *)
            let v1118 : string = "\u001b[93m"
            v1118
    let v1125 : string = method8()
    let v1126 : string = v1124 + v997 
    let v1127 : string = v1126 + v1125 
    v1127 
    #endif
#else
    let v1137 : string =
        match v0 with
        | US0_4 -> (* Critical *)
            let v1132 : string = "\u001b[91m"
            v1132
        | US0_1 -> (* Debug *)
            let v1129 : string = "\u001b[94m"
            v1129
        | US0_2 -> (* Info *)
            let v1130 : string = "\u001b[92m"
            v1130
        | US0_0 -> (* Verbose *)
            let v1128 : string = "\u001b[90m"
            v1128
        | US0_3 -> (* Warning *)
            let v1131 : string = "\u001b[93m"
            v1131
    let v1138 : string = method8()
    let v1139 : string = v1137 + v997 
    let v1140 : string = v1139 + v1138 
    v1140 
    #endif
    |> fun x -> _v1029 <- Some x
    let v1141 : string = match _v1029 with Some x -> x | None -> failwith "base.run_target / _v1029=None"
    let v1160 : int64 = v14.l0
    let struct (v1161 : int32, v1162 : int64, v1163 : int32 option, v1164 : bool) = v2 ()
    let v1165 : string = ""
    let v1166 : Mut4 = {l0 = v1165} : Mut4
    method20(v1166, v1161, v1162, v1163, v1164)
    let v1167 : string = v1166.l0
    let v1170 : string = $"{v772} {v1141} #{v1160} %s{v1 ()} / {v1167}"
    let v1177 : char list = []
    let v1182 : (char list -> (char [])) = List.toArray
    let v1183 : (char []) = v1182 v1177
    let v1190 : string = v1170.TrimStart v1183 
    let v1229 : char list = []
    let v1232 : char list = '/' :: v1229 
    let v1241 : char list = ' ' :: v1232 
    let v1252 : (char list -> (char [])) = List.toArray
    let v1253 : (char []) = v1252 v1241
    let v1260 : string = v1190.TrimEnd v1253 
    v1260
and method19 (v0 : US0, v1 : (unit -> string), v2 : (unit -> struct (int32 * int64 * int32 option * bool))) : unit =
    let v3 : (unit -> string) = closure24(v0, v1, v2)
    method13(v0, v3)
and method18 (v0 : int32 option, v1 : bool, v2 : string, v3 : int32, v4 : int64) : Async<int64> =
    let v7 : bool = true
    let mutable _v7 : Async<int64> option = None 
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v10 : Async<int64> = null |> unbox<Async<int64>>
    v10 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v19 : Async<int64> = null |> unbox<Async<int64>>
    v19 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v28 : Async<int64> = null |> unbox<Async<int64>>
    v28 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v37 : Async<int64> = null |> unbox<Async<int64>>
    v37 
    #endif
#if FABLE_COMPILER_PYTHON
    let v46 : Async<int64> = null |> unbox<Async<int64>>
    v46 
    #endif
#else
    let v53 : Async<int64> option = None
    let mutable _v53 = v53 
    async {
    let v56 : US7 option = None
    let _v56 = ref v56 
    match v0 with
    | Some x -> (
    (fun () ->
    (fun () ->
    let v57 : int32 = x
    let v58 : US7 = US7_0(v57)
    v58 
    )
    |> fun x -> x () |> Some
    ) () ) | None -> None
    |> fun x -> _v56.Value <- x
    let v59 : US7 option = _v56.Value 
    let v82 : US7 = US7_1
    let v83 : US7 = v59 |> Option.defaultValue v82 
    let v1135 : Async<bool> =
        match v83 with
        | US7_1 -> (* None *)
            let v93 : bool = true
            let mutable _v93 : Async<bool> option = None 
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v96 : Async<bool> = null |> unbox<Async<bool>>
            v96 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v105 : Async<bool> = null |> unbox<Async<bool>>
            v105 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v114 : Async<bool> = null |> unbox<Async<bool>>
            v114 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v123 : Async<bool> = null |> unbox<Async<bool>>
            v123 
            #endif
#if FABLE_COMPILER_PYTHON
            let v132 : Async<bool> = null |> unbox<Async<bool>>
            v132 
            #endif
#else
            let v139 : Async<bool> option = None
            let mutable _v139 = v139 
            async {
            let v140 : Async<System.Threading.CancellationToken> = Async.CancellationToken
            let! v140 = v140 
            let v141 : System.Threading.CancellationToken = v140 
            let v142 : System.Net.Sockets.TcpClient = new System.Net.Sockets.TcpClient ()
            use v142 = v142 
            let v143 : System.Net.Sockets.TcpClient = v142 
            try
            let v144 : System.Threading.Tasks.ValueTask = v143.ConnectAsync (v2, v3, v141)
            let v145 : (unit -> System.Threading.Tasks.Task) = v144.AsTask
            let v146 : System.Threading.Tasks.Task = v145 ()
            let v149 : bool = true
            let mutable _v149 : Async<unit> option = None 
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v152 : Async<unit> = null |> unbox<Async<unit>>
            v152 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v161 : Async<unit> = null |> unbox<Async<unit>>
            v161 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v170 : Async<unit> = null |> unbox<Async<unit>>
            v170 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v179 : Async<unit> = null |> unbox<Async<unit>>
            v179 
            #endif
#if FABLE_COMPILER_PYTHON
            let v188 : Async<unit> = null |> unbox<Async<unit>>
            v188 
            #endif
#else
            let v195 : (System.Threading.Tasks.Task -> Async<unit>) = Async.AwaitTask
            let v196 : Async<unit> = v195 v146
            v196 
            #endif
            |> fun x -> _v149 <- Some x
            let v197 : Async<unit> = match _v149 with Some x -> x | None -> failwith "base.run_target / _v149=None"
            do! v197 
            return true 
            with ex ->
            let v212 : exn = ex
            let v215 : bool = true
            let mutable _v215 : string option = None 
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v218 : string = $"%A{v212}"
            v218 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v227 : string = $"%A{v212}"
            v227 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v236 : string = $"%A{v212}"
            v236 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v245 : string = $"%A{v212}"
            v245 
            #endif
#if FABLE_COMPILER_PYTHON
            let v254 : string = $"%A{v212}"
            v254 
            #endif
#else
            let v261 : string = $"{v212.GetType ()}: {v212.Message}"
            v261 
            #endif
            |> fun x -> _v215 <- Some x
            let v262 : string = match _v215 with Some x -> x | None -> failwith "base.run_target / _v215=None"
            let v277 : US0 = US0_0
            let v278 : (unit -> string) = closure4()
            let v279 : (unit -> struct (int32 * string)) = closure5(v3, v262)
            method4(v277, v278, v279)
            return false 
            (*
            let v280 : bool = *)
            }
            |> fun x -> _v139 <- Some x
            let v281 : Async<bool> = match _v139 with Some x -> x | None -> failwith "async.new_async_unit / _v139=None"
            v281 
            #endif
            |> fun x -> _v93 <- Some x
            let v282 : Async<bool> = match _v93 with Some x -> x | None -> failwith "base.run_target / _v93=None"
            v282
        | US7_0(v297) -> (* Some *)
            let v300 : bool = true
            let mutable _v300 : Async<bool> option = None 
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v303 : Async<bool> = null |> unbox<Async<bool>>
            v303 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v312 : Async<bool> = null |> unbox<Async<bool>>
            v312 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v321 : Async<bool> = null |> unbox<Async<bool>>
            v321 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v330 : Async<bool> = null |> unbox<Async<bool>>
            v330 
            #endif
#if FABLE_COMPILER_PYTHON
            let v339 : Async<bool> = null |> unbox<Async<bool>>
            v339 
            #endif
#else
            let v346 : Async<bool> option = None
            let mutable _v346 = v346 
            async {
            let v349 : bool = true
            let mutable _v349 : Async<bool> option = None 
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v352 : Async<bool> = null |> unbox<Async<bool>>
            v352 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v361 : Async<bool> = null |> unbox<Async<bool>>
            v361 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v370 : Async<bool> = null |> unbox<Async<bool>>
            v370 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v379 : Async<bool> = null |> unbox<Async<bool>>
            v379 
            #endif
#if FABLE_COMPILER_PYTHON
            let v388 : Async<bool> = null |> unbox<Async<bool>>
            v388 
            #endif
#else
            let v395 : Async<bool> option = None
            let mutable _v395 = v395 
            async {
            let v396 : Async<System.Threading.CancellationToken> = Async.CancellationToken
            let! v396 = v396 
            let v397 : System.Threading.CancellationToken = v396 
            let v398 : System.Net.Sockets.TcpClient = new System.Net.Sockets.TcpClient ()
            use v398 = v398 
            let v399 : System.Net.Sockets.TcpClient = v398 
            try
            let v400 : System.Threading.Tasks.ValueTask = v399.ConnectAsync (v2, v3, v397)
            let v401 : (unit -> System.Threading.Tasks.Task) = v400.AsTask
            let v402 : System.Threading.Tasks.Task = v401 ()
            let v405 : bool = true
            let mutable _v405 : Async<unit> option = None 
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v408 : Async<unit> = null |> unbox<Async<unit>>
            v408 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v417 : Async<unit> = null |> unbox<Async<unit>>
            v417 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v426 : Async<unit> = null |> unbox<Async<unit>>
            v426 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v435 : Async<unit> = null |> unbox<Async<unit>>
            v435 
            #endif
#if FABLE_COMPILER_PYTHON
            let v444 : Async<unit> = null |> unbox<Async<unit>>
            v444 
            #endif
#else
            let v451 : (System.Threading.Tasks.Task -> Async<unit>) = Async.AwaitTask
            let v452 : Async<unit> = v451 v402
            v452 
            #endif
            |> fun x -> _v405 <- Some x
            let v453 : Async<unit> = match _v405 with Some x -> x | None -> failwith "base.run_target / _v405=None"
            do! v453 
            return true 
            with ex ->
            let v468 : exn = ex
            let v471 : bool = true
            let mutable _v471 : string option = None 
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v474 : string = $"%A{v468}"
            v474 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v483 : string = $"%A{v468}"
            v483 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v492 : string = $"%A{v468}"
            v492 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v501 : string = $"%A{v468}"
            v501 
            #endif
#if FABLE_COMPILER_PYTHON
            let v510 : string = $"%A{v468}"
            v510 
            #endif
#else
            let v517 : string = $"{v468.GetType ()}: {v468.Message}"
            v517 
            #endif
            |> fun x -> _v471 <- Some x
            let v518 : string = match _v471 with Some x -> x | None -> failwith "base.run_target / _v471=None"
            let v533 : US0 = US0_0
            let v534 : (unit -> string) = closure4()
            let v535 : (unit -> struct (int32 * string)) = closure5(v3, v518)
            method4(v533, v534, v535)
            return false 
            (*
            let v536 : bool = *)
            }
            |> fun x -> _v395 <- Some x
            let v537 : Async<bool> = match _v395 with Some x -> x | None -> failwith "async.new_async_unit / _v395=None"
            v537 
            #endif
            |> fun x -> _v349 <- Some x
            let v538 : Async<bool> = match _v349 with Some x -> x | None -> failwith "base.run_target / _v349=None"
            let v555 : bool = true
            let mutable _v555 : Async<US4> option = None 
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v558 : Async<US4> = null |> unbox<Async<US4>>
            v558 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v567 : Async<US4> = null |> unbox<Async<US4>>
            v567 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v576 : Async<US4> = null |> unbox<Async<US4>>
            v576 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v585 : Async<US4> = null |> unbox<Async<US4>>
            v585 
            #endif
#if FABLE_COMPILER_PYTHON
            let v594 : Async<US4> = null |> unbox<Async<US4>>
            v594 
            #endif
#else
            let v603 : bool = true
            let mutable _v603 : Async<US4> option = None 
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v606 : Async<US4> = null |> unbox<Async<US4>>
            v606 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v615 : Async<US4> = null |> unbox<Async<US4>>
            v615 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v624 : Async<US4> = null |> unbox<Async<US4>>
            v624 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v633 : Async<US4> = null |> unbox<Async<US4>>
            v633 
            #endif
#if FABLE_COMPILER_PYTHON
            let v642 : Async<US4> = null |> unbox<Async<US4>>
            v642 
            #endif
#else
            let v649 : Async<US4> option = None
            let mutable _v649 = v649 
            async {
            let v652 : bool = true
            let mutable _v652 : Async<Async<bool>> option = None 
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v655 : Async<Async<bool>> = null |> unbox<Async<Async<bool>>>
            v655 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v664 : Async<Async<bool>> = null |> unbox<Async<Async<bool>>>
            v664 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v673 : Async<Async<bool>> = null |> unbox<Async<Async<bool>>>
            v673 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v682 : Async<Async<bool>> = null |> unbox<Async<Async<bool>>>
            v682 
            #endif
#if FABLE_COMPILER_PYTHON
            let v691 : Async<Async<bool>> = null |> unbox<Async<Async<bool>>>
            v691 
            #endif
#else
            let v698 : Async<Async<bool>> = Async.StartChild (v538, v297)
            v698 
            #endif
            |> fun x -> _v652 <- Some x
            let v699 : Async<Async<bool>> = match _v652 with Some x -> x | None -> failwith "base.run_target / _v652=None"
            let! v699 = v699 
            let v714 : Async<bool> = v699 
            let v717 : bool = true
            let mutable _v717 : Async<Choice<bool, exn>> option = None 
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v720 : Async<Choice<bool, exn>> = null |> unbox<Async<Choice<bool, exn>>>
            v720 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v729 : Async<Choice<bool, exn>> = null |> unbox<Async<Choice<bool, exn>>>
            v729 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v738 : Async<Choice<bool, exn>> = null |> unbox<Async<Choice<bool, exn>>>
            v738 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v747 : Async<Choice<bool, exn>> = null |> unbox<Async<Choice<bool, exn>>>
            v747 
            #endif
#if FABLE_COMPILER_PYTHON
            let v756 : Async<Choice<bool, exn>> = null |> unbox<Async<Choice<bool, exn>>>
            v756 
            #endif
#else
            let v763 : (Async<bool> -> Async<Choice<bool, exn>>) = Async.Catch
            let v764 : Async<Choice<bool, exn>> = v763 v714
            v764 
            #endif
            |> fun x -> _v717 <- Some x
            let v765 : Async<Choice<bool, exn>> = match _v717 with Some x -> x | None -> failwith "base.run_target / _v717=None"
            let v782 : bool = true
            let mutable _v782 : Async<US5> option = None 
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v785 : Async<US5> = null |> unbox<Async<US5>>
            v785 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v794 : Async<US5> = null |> unbox<Async<US5>>
            v794 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v803 : Async<US5> = null |> unbox<Async<US5>>
            v803 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v812 : Async<US5> = null |> unbox<Async<US5>>
            v812 
            #endif
#if FABLE_COMPILER_PYTHON
            let v821 : Async<US5> = null |> unbox<Async<US5>>
            v821 
            #endif
#else
            let v828 : Async<US5> option = None
            let mutable _v828 = v828 
            async {
            let! v765 = v765 
            let v829 : Choice<bool, exn> = v765 
            let v832 : bool = true
            let mutable _v832 : US5 option = None 
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v835 : US5 = null |> unbox<US5>
            v835 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v844 : US5 = null |> unbox<US5>
            v844 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v853 : US5 = null |> unbox<US5>
            v853 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v862 : US5 = null |> unbox<US5>
            v862 
            #endif
#if FABLE_COMPILER_PYTHON
            let v871 : US5 = null |> unbox<US5>
            v871 
            #endif
#else
            let v878 : (bool -> US5) = closure10()
            let v879 : (exn -> US5) = closure11()
            let v880 : US5 = match v829 with Choice1Of2 x -> v878 x | Choice2Of2 x -> v879 x
            v880 
            #endif
            |> fun x -> _v832 <- Some x
            let v881 : US5 = match _v832 with Some x -> x | None -> failwith "base.run_target / _v832=None"
            return v881 
            }
            |> fun x -> _v828 <- Some x
            let v896 : Async<US5> = match _v828 with Some x -> x | None -> failwith "async.new_async_unit / _v828=None"
            v896 
            #endif
            |> fun x -> _v782 <- Some x
            let v897 : Async<US5> = match _v782 with Some x -> x | None -> failwith "base.run_target / _v782=None"
            let v914 : bool = true
            let mutable _v914 : Async<US6> option = None 
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v917 : Async<US6> = null |> unbox<Async<US6>>
            v917 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v926 : Async<US6> = null |> unbox<Async<US6>>
            v926 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v935 : Async<US6> = null |> unbox<Async<US6>>
            v935 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v944 : Async<US6> = null |> unbox<Async<US6>>
            v944 
            #endif
#if FABLE_COMPILER_PYTHON
            let v953 : Async<US6> = null |> unbox<Async<US6>>
            v953 
            #endif
#else
            let v960 : Async<US6> option = None
            let mutable _v960 = v960 
            async {
            let! v897 = v897 
            let v961 : US5 = v897 
            let v967 : US6 =
                match v961 with
                | US5_0(v962) -> (* C1of2 *)
                    US6_0(v962)
                | US5_1(v964) -> (* C2of2 *)
                    US6_1(v964)
            return v967 
            }
            |> fun x -> _v960 <- Some x
            let v968 : Async<US6> = match _v960 with Some x -> x | None -> failwith "async.new_async_unit / _v960=None"
            v968 
            #endif
            |> fun x -> _v914 <- Some x
            let v969 : Async<US6> = match _v914 with Some x -> x | None -> failwith "base.run_target / _v914=None"
            let v986 : bool = true
            let mutable _v986 : Async<US4> option = None 
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v989 : Async<US4> = null |> unbox<Async<US4>>
            v989 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v998 : Async<US4> = null |> unbox<Async<US4>>
            v998 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v1007 : Async<US4> = null |> unbox<Async<US4>>
            v1007 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v1016 : Async<US4> = null |> unbox<Async<US4>>
            v1016 
            #endif
#if FABLE_COMPILER_PYTHON
            let v1025 : Async<US4> = null |> unbox<Async<US4>>
            v1025 
            #endif
#else
            let v1032 : Async<US4> option = None
            let mutable _v1032 = v1032 
            async {
            let! v969 = v969 
            let v1033 : US6 = v969 
            let v1066 : US4 =
                match v1033 with
                | US6_1(v1036) -> (* Error *)
                    let v1039 : string = $"%A{v1036}"
                    let v1048 : string = "System.TimeoutException"
                    let v1049 : bool = v1039.Contains v1048 
                    if v1049 then
                        let v1056 : US0 = US0_0
                        let v1057 : (unit -> string) = closure12()
                        let v1058 : (unit -> int32) = closure13(v297)
                        method14(v1056, v1057, v1058)
                        US4_1
                    else
                        let v1060 : US0 = US0_4
                        let v1061 : (unit -> string) = closure15()
                        let v1062 : (unit -> struct (int32 * string)) = closure16(v297, v1036)
                        method16(v1060, v1061, v1062)
                        US4_1
                | US6_0(v1034) -> (* Ok *)
                    US4_0(v1034)
            return v1066 
            }
            |> fun x -> _v1032 <- Some x
            let v1067 : Async<US4> = match _v1032 with Some x -> x | None -> failwith "async.new_async_unit / _v1032=None"
            v1067 
            #endif
            |> fun x -> _v986 <- Some x
            let v1068 : Async<US4> = match _v986 with Some x -> x | None -> failwith "base.run_target / _v986=None"
            return! v1068 
            }
            |> fun x -> _v649 <- Some x
            let v1083 : Async<US4> = match _v649 with Some x -> x | None -> failwith "async.new_async_unit / _v649=None"
            v1083 
            #endif
            |> fun x -> _v603 <- Some x
            let v1084 : Async<US4> = match _v603 with Some x -> x | None -> failwith "base.run_target / _v603=None"
            v1084 
            #endif
            |> fun x -> _v555 <- Some x
            let v1099 : Async<US4> = match _v555 with Some x -> x | None -> failwith "base.run_target / _v555=None"
            let! v1099 = v1099 
            let v1114 : US4 = v1099 
            let v1117 : bool =
                match v1114 with
                | US4_1 -> (* None *)
                    false
                | US4_0(v1115) -> (* Some *)
                    v1115
            return v1117 
            }
            |> fun x -> _v346 <- Some x
            let v1118 : Async<bool> = match _v346 with Some x -> x | None -> failwith "async.new_async_unit / _v346=None"
            v1118 
            #endif
            |> fun x -> _v300 <- Some x
            let v1119 : Async<bool> = match _v300 with Some x -> x | None -> failwith "base.run_target / _v300=None"
            v1119
    let! v1135 = v1135 
    let v1136 : bool = v1135 
    let v1137 : bool = v1136 = v1
    if v1137 then
        return v4 
        (*
        ()
    else
        *) else
        let v1138 : int64 = v4 % 100L
        let v1139 : bool = v1138 = 0L
        if v1139 then
            let v1140 : US0 = US0_0
            let v1141 : (unit -> string) = closure22()
            let v1142 : (unit -> struct (int32 * int64 * int32 option * bool)) = closure23(v0, v1, v3, v4)
            method19(v1140, v1141, v1142)
        let v1145 : bool = true
        let mutable _v1145 : Async<unit> option = None 
        
#if FABLE_COMPILER || WASM || CONTRACT
        
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
        let v1148 : Async<unit> = null |> unbox<Async<unit>>
        v1148 
        #endif
#if FABLE_COMPILER_RUST && WASM
        let v1157 : Async<unit> = null |> unbox<Async<unit>>
        v1157 
        #endif
#if FABLE_COMPILER_RUST && CONTRACT
        let v1166 : Async<unit> = null |> unbox<Async<unit>>
        v1166 
        #endif
#if FABLE_COMPILER_TYPESCRIPT
        let v1175 : Async<unit> = null |> unbox<Async<unit>>
        v1175 
        #endif
#if FABLE_COMPILER_PYTHON
        let v1184 : Async<unit> = null |> unbox<Async<unit>>
        v1184 
        #endif
#else
        let v1191 : (int32 -> Async<unit>) = Async.Sleep
        let v1192 : Async<unit> = v1191 10
        v1192 
        #endif
        |> fun x -> _v1145 <- Some x
        let v1193 : Async<unit> = match _v1145 with Some x -> x | None -> failwith "base.run_target / _v1145=None"
        do! v1193 
        let v1208 : int64 = v4 + 1L
        let v1209 : Async<int64> = method18(v0, v1, v2, v3, v1208)
        return! v1209 
        (*
        ()
    *)
    }
    |> fun x -> _v53 <- Some x
    let v1210 : Async<int64> = match _v53 with Some x -> x | None -> failwith "async.new_async_unit / _v53=None"
    v1210 
    #endif
    |> fun x -> _v7 <- Some x
    let v1211 : Async<int64> = match _v7 with Some x -> x | None -> failwith "base.run_target / _v7=None"
    v1211
and closure21 (v0 : int32 option, v1 : bool, v2 : string) (v3 : int32) : Async<int64> =
    let v4 : int64 = 0L
    method18(v0, v1, v2, v3, v4)
and closure20 (v0 : int32 option, v1 : bool) (v2 : string) : (int32 -> Async<int64>) =
    closure21(v0, v1, v2)
and closure19 (v0 : int32 option) (v1 : bool) : (string -> (int32 -> Async<int64>)) =
    closure20(v0, v1)
and closure18 () (v0 : int32 option) : (bool -> (string -> (int32 -> Async<int64>))) =
    closure19(v0)
and method24 (v0 : int32 option, v1 : string, v2 : int32) : Async<int32> =
    let v5 : bool = true
    let mutable _v5 : Async<int32> option = None 
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v8 : Async<int32> = null |> unbox<Async<int32>>
    v8 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v17 : Async<int32> = null |> unbox<Async<int32>>
    v17 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v26 : Async<int32> = null |> unbox<Async<int32>>
    v26 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v35 : Async<int32> = null |> unbox<Async<int32>>
    v35 
    #endif
#if FABLE_COMPILER_PYTHON
    let v44 : Async<int32> = null |> unbox<Async<int32>>
    v44 
    #endif
#else
    let v51 : Async<int32> option = None
    let mutable _v51 = v51 
    async {
    let v54 : US7 option = None
    let _v54 = ref v54 
    match v0 with
    | Some x -> (
    (fun () ->
    (fun () ->
    let v55 : int32 = x
    let v56 : US7 = US7_0(v55)
    v56 
    )
    |> fun x -> x () |> Some
    ) () ) | None -> None
    |> fun x -> _v54.Value <- x
    let v57 : US7 option = _v54.Value 
    let v80 : US7 = US7_1
    let v81 : US7 = v57 |> Option.defaultValue v80 
    let v1133 : Async<bool> =
        match v81 with
        | US7_1 -> (* None *)
            let v91 : bool = true
            let mutable _v91 : Async<bool> option = None 
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v94 : Async<bool> = null |> unbox<Async<bool>>
            v94 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v103 : Async<bool> = null |> unbox<Async<bool>>
            v103 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v112 : Async<bool> = null |> unbox<Async<bool>>
            v112 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v121 : Async<bool> = null |> unbox<Async<bool>>
            v121 
            #endif
#if FABLE_COMPILER_PYTHON
            let v130 : Async<bool> = null |> unbox<Async<bool>>
            v130 
            #endif
#else
            let v137 : Async<bool> option = None
            let mutable _v137 = v137 
            async {
            let v138 : Async<System.Threading.CancellationToken> = Async.CancellationToken
            let! v138 = v138 
            let v139 : System.Threading.CancellationToken = v138 
            let v140 : System.Net.Sockets.TcpClient = new System.Net.Sockets.TcpClient ()
            use v140 = v140 
            let v141 : System.Net.Sockets.TcpClient = v140 
            try
            let v142 : System.Threading.Tasks.ValueTask = v141.ConnectAsync (v1, v2, v139)
            let v143 : (unit -> System.Threading.Tasks.Task) = v142.AsTask
            let v144 : System.Threading.Tasks.Task = v143 ()
            let v147 : bool = true
            let mutable _v147 : Async<unit> option = None 
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v150 : Async<unit> = null |> unbox<Async<unit>>
            v150 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v159 : Async<unit> = null |> unbox<Async<unit>>
            v159 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v168 : Async<unit> = null |> unbox<Async<unit>>
            v168 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v177 : Async<unit> = null |> unbox<Async<unit>>
            v177 
            #endif
#if FABLE_COMPILER_PYTHON
            let v186 : Async<unit> = null |> unbox<Async<unit>>
            v186 
            #endif
#else
            let v193 : (System.Threading.Tasks.Task -> Async<unit>) = Async.AwaitTask
            let v194 : Async<unit> = v193 v144
            v194 
            #endif
            |> fun x -> _v147 <- Some x
            let v195 : Async<unit> = match _v147 with Some x -> x | None -> failwith "base.run_target / _v147=None"
            do! v195 
            return true 
            with ex ->
            let v210 : exn = ex
            let v213 : bool = true
            let mutable _v213 : string option = None 
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v216 : string = $"%A{v210}"
            v216 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v225 : string = $"%A{v210}"
            v225 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v234 : string = $"%A{v210}"
            v234 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v243 : string = $"%A{v210}"
            v243 
            #endif
#if FABLE_COMPILER_PYTHON
            let v252 : string = $"%A{v210}"
            v252 
            #endif
#else
            let v259 : string = $"{v210.GetType ()}: {v210.Message}"
            v259 
            #endif
            |> fun x -> _v213 <- Some x
            let v260 : string = match _v213 with Some x -> x | None -> failwith "base.run_target / _v213=None"
            let v275 : US0 = US0_0
            let v276 : (unit -> string) = closure4()
            let v277 : (unit -> struct (int32 * string)) = closure5(v2, v260)
            method4(v275, v276, v277)
            return false 
            (*
            let v278 : bool = *)
            }
            |> fun x -> _v137 <- Some x
            let v279 : Async<bool> = match _v137 with Some x -> x | None -> failwith "async.new_async_unit / _v137=None"
            v279 
            #endif
            |> fun x -> _v91 <- Some x
            let v280 : Async<bool> = match _v91 with Some x -> x | None -> failwith "base.run_target / _v91=None"
            v280
        | US7_0(v295) -> (* Some *)
            let v298 : bool = true
            let mutable _v298 : Async<bool> option = None 
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v301 : Async<bool> = null |> unbox<Async<bool>>
            v301 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v310 : Async<bool> = null |> unbox<Async<bool>>
            v310 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v319 : Async<bool> = null |> unbox<Async<bool>>
            v319 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v328 : Async<bool> = null |> unbox<Async<bool>>
            v328 
            #endif
#if FABLE_COMPILER_PYTHON
            let v337 : Async<bool> = null |> unbox<Async<bool>>
            v337 
            #endif
#else
            let v344 : Async<bool> option = None
            let mutable _v344 = v344 
            async {
            let v347 : bool = true
            let mutable _v347 : Async<bool> option = None 
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v350 : Async<bool> = null |> unbox<Async<bool>>
            v350 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v359 : Async<bool> = null |> unbox<Async<bool>>
            v359 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v368 : Async<bool> = null |> unbox<Async<bool>>
            v368 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v377 : Async<bool> = null |> unbox<Async<bool>>
            v377 
            #endif
#if FABLE_COMPILER_PYTHON
            let v386 : Async<bool> = null |> unbox<Async<bool>>
            v386 
            #endif
#else
            let v393 : Async<bool> option = None
            let mutable _v393 = v393 
            async {
            let v394 : Async<System.Threading.CancellationToken> = Async.CancellationToken
            let! v394 = v394 
            let v395 : System.Threading.CancellationToken = v394 
            let v396 : System.Net.Sockets.TcpClient = new System.Net.Sockets.TcpClient ()
            use v396 = v396 
            let v397 : System.Net.Sockets.TcpClient = v396 
            try
            let v398 : System.Threading.Tasks.ValueTask = v397.ConnectAsync (v1, v2, v395)
            let v399 : (unit -> System.Threading.Tasks.Task) = v398.AsTask
            let v400 : System.Threading.Tasks.Task = v399 ()
            let v403 : bool = true
            let mutable _v403 : Async<unit> option = None 
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v406 : Async<unit> = null |> unbox<Async<unit>>
            v406 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v415 : Async<unit> = null |> unbox<Async<unit>>
            v415 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v424 : Async<unit> = null |> unbox<Async<unit>>
            v424 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v433 : Async<unit> = null |> unbox<Async<unit>>
            v433 
            #endif
#if FABLE_COMPILER_PYTHON
            let v442 : Async<unit> = null |> unbox<Async<unit>>
            v442 
            #endif
#else
            let v449 : (System.Threading.Tasks.Task -> Async<unit>) = Async.AwaitTask
            let v450 : Async<unit> = v449 v400
            v450 
            #endif
            |> fun x -> _v403 <- Some x
            let v451 : Async<unit> = match _v403 with Some x -> x | None -> failwith "base.run_target / _v403=None"
            do! v451 
            return true 
            with ex ->
            let v466 : exn = ex
            let v469 : bool = true
            let mutable _v469 : string option = None 
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v472 : string = $"%A{v466}"
            v472 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v481 : string = $"%A{v466}"
            v481 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v490 : string = $"%A{v466}"
            v490 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v499 : string = $"%A{v466}"
            v499 
            #endif
#if FABLE_COMPILER_PYTHON
            let v508 : string = $"%A{v466}"
            v508 
            #endif
#else
            let v515 : string = $"{v466.GetType ()}: {v466.Message}"
            v515 
            #endif
            |> fun x -> _v469 <- Some x
            let v516 : string = match _v469 with Some x -> x | None -> failwith "base.run_target / _v469=None"
            let v531 : US0 = US0_0
            let v532 : (unit -> string) = closure4()
            let v533 : (unit -> struct (int32 * string)) = closure5(v2, v516)
            method4(v531, v532, v533)
            return false 
            (*
            let v534 : bool = *)
            }
            |> fun x -> _v393 <- Some x
            let v535 : Async<bool> = match _v393 with Some x -> x | None -> failwith "async.new_async_unit / _v393=None"
            v535 
            #endif
            |> fun x -> _v347 <- Some x
            let v536 : Async<bool> = match _v347 with Some x -> x | None -> failwith "base.run_target / _v347=None"
            let v553 : bool = true
            let mutable _v553 : Async<US4> option = None 
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v556 : Async<US4> = null |> unbox<Async<US4>>
            v556 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v565 : Async<US4> = null |> unbox<Async<US4>>
            v565 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v574 : Async<US4> = null |> unbox<Async<US4>>
            v574 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v583 : Async<US4> = null |> unbox<Async<US4>>
            v583 
            #endif
#if FABLE_COMPILER_PYTHON
            let v592 : Async<US4> = null |> unbox<Async<US4>>
            v592 
            #endif
#else
            let v601 : bool = true
            let mutable _v601 : Async<US4> option = None 
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v604 : Async<US4> = null |> unbox<Async<US4>>
            v604 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v613 : Async<US4> = null |> unbox<Async<US4>>
            v613 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v622 : Async<US4> = null |> unbox<Async<US4>>
            v622 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v631 : Async<US4> = null |> unbox<Async<US4>>
            v631 
            #endif
#if FABLE_COMPILER_PYTHON
            let v640 : Async<US4> = null |> unbox<Async<US4>>
            v640 
            #endif
#else
            let v647 : Async<US4> option = None
            let mutable _v647 = v647 
            async {
            let v650 : bool = true
            let mutable _v650 : Async<Async<bool>> option = None 
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v653 : Async<Async<bool>> = null |> unbox<Async<Async<bool>>>
            v653 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v662 : Async<Async<bool>> = null |> unbox<Async<Async<bool>>>
            v662 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v671 : Async<Async<bool>> = null |> unbox<Async<Async<bool>>>
            v671 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v680 : Async<Async<bool>> = null |> unbox<Async<Async<bool>>>
            v680 
            #endif
#if FABLE_COMPILER_PYTHON
            let v689 : Async<Async<bool>> = null |> unbox<Async<Async<bool>>>
            v689 
            #endif
#else
            let v696 : Async<Async<bool>> = Async.StartChild (v536, v295)
            v696 
            #endif
            |> fun x -> _v650 <- Some x
            let v697 : Async<Async<bool>> = match _v650 with Some x -> x | None -> failwith "base.run_target / _v650=None"
            let! v697 = v697 
            let v712 : Async<bool> = v697 
            let v715 : bool = true
            let mutable _v715 : Async<Choice<bool, exn>> option = None 
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v718 : Async<Choice<bool, exn>> = null |> unbox<Async<Choice<bool, exn>>>
            v718 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v727 : Async<Choice<bool, exn>> = null |> unbox<Async<Choice<bool, exn>>>
            v727 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v736 : Async<Choice<bool, exn>> = null |> unbox<Async<Choice<bool, exn>>>
            v736 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v745 : Async<Choice<bool, exn>> = null |> unbox<Async<Choice<bool, exn>>>
            v745 
            #endif
#if FABLE_COMPILER_PYTHON
            let v754 : Async<Choice<bool, exn>> = null |> unbox<Async<Choice<bool, exn>>>
            v754 
            #endif
#else
            let v761 : (Async<bool> -> Async<Choice<bool, exn>>) = Async.Catch
            let v762 : Async<Choice<bool, exn>> = v761 v712
            v762 
            #endif
            |> fun x -> _v715 <- Some x
            let v763 : Async<Choice<bool, exn>> = match _v715 with Some x -> x | None -> failwith "base.run_target / _v715=None"
            let v780 : bool = true
            let mutable _v780 : Async<US5> option = None 
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v783 : Async<US5> = null |> unbox<Async<US5>>
            v783 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v792 : Async<US5> = null |> unbox<Async<US5>>
            v792 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v801 : Async<US5> = null |> unbox<Async<US5>>
            v801 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v810 : Async<US5> = null |> unbox<Async<US5>>
            v810 
            #endif
#if FABLE_COMPILER_PYTHON
            let v819 : Async<US5> = null |> unbox<Async<US5>>
            v819 
            #endif
#else
            let v826 : Async<US5> option = None
            let mutable _v826 = v826 
            async {
            let! v763 = v763 
            let v827 : Choice<bool, exn> = v763 
            let v830 : bool = true
            let mutable _v830 : US5 option = None 
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v833 : US5 = null |> unbox<US5>
            v833 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v842 : US5 = null |> unbox<US5>
            v842 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v851 : US5 = null |> unbox<US5>
            v851 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v860 : US5 = null |> unbox<US5>
            v860 
            #endif
#if FABLE_COMPILER_PYTHON
            let v869 : US5 = null |> unbox<US5>
            v869 
            #endif
#else
            let v876 : (bool -> US5) = closure10()
            let v877 : (exn -> US5) = closure11()
            let v878 : US5 = match v827 with Choice1Of2 x -> v876 x | Choice2Of2 x -> v877 x
            v878 
            #endif
            |> fun x -> _v830 <- Some x
            let v879 : US5 = match _v830 with Some x -> x | None -> failwith "base.run_target / _v830=None"
            return v879 
            }
            |> fun x -> _v826 <- Some x
            let v894 : Async<US5> = match _v826 with Some x -> x | None -> failwith "async.new_async_unit / _v826=None"
            v894 
            #endif
            |> fun x -> _v780 <- Some x
            let v895 : Async<US5> = match _v780 with Some x -> x | None -> failwith "base.run_target / _v780=None"
            let v912 : bool = true
            let mutable _v912 : Async<US6> option = None 
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v915 : Async<US6> = null |> unbox<Async<US6>>
            v915 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v924 : Async<US6> = null |> unbox<Async<US6>>
            v924 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v933 : Async<US6> = null |> unbox<Async<US6>>
            v933 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v942 : Async<US6> = null |> unbox<Async<US6>>
            v942 
            #endif
#if FABLE_COMPILER_PYTHON
            let v951 : Async<US6> = null |> unbox<Async<US6>>
            v951 
            #endif
#else
            let v958 : Async<US6> option = None
            let mutable _v958 = v958 
            async {
            let! v895 = v895 
            let v959 : US5 = v895 
            let v965 : US6 =
                match v959 with
                | US5_0(v960) -> (* C1of2 *)
                    US6_0(v960)
                | US5_1(v962) -> (* C2of2 *)
                    US6_1(v962)
            return v965 
            }
            |> fun x -> _v958 <- Some x
            let v966 : Async<US6> = match _v958 with Some x -> x | None -> failwith "async.new_async_unit / _v958=None"
            v966 
            #endif
            |> fun x -> _v912 <- Some x
            let v967 : Async<US6> = match _v912 with Some x -> x | None -> failwith "base.run_target / _v912=None"
            let v984 : bool = true
            let mutable _v984 : Async<US4> option = None 
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v987 : Async<US4> = null |> unbox<Async<US4>>
            v987 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v996 : Async<US4> = null |> unbox<Async<US4>>
            v996 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v1005 : Async<US4> = null |> unbox<Async<US4>>
            v1005 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v1014 : Async<US4> = null |> unbox<Async<US4>>
            v1014 
            #endif
#if FABLE_COMPILER_PYTHON
            let v1023 : Async<US4> = null |> unbox<Async<US4>>
            v1023 
            #endif
#else
            let v1030 : Async<US4> option = None
            let mutable _v1030 = v1030 
            async {
            let! v967 = v967 
            let v1031 : US6 = v967 
            let v1064 : US4 =
                match v1031 with
                | US6_1(v1034) -> (* Error *)
                    let v1037 : string = $"%A{v1034}"
                    let v1046 : string = "System.TimeoutException"
                    let v1047 : bool = v1037.Contains v1046 
                    if v1047 then
                        let v1054 : US0 = US0_0
                        let v1055 : (unit -> string) = closure12()
                        let v1056 : (unit -> int32) = closure13(v295)
                        method14(v1054, v1055, v1056)
                        US4_1
                    else
                        let v1058 : US0 = US0_4
                        let v1059 : (unit -> string) = closure15()
                        let v1060 : (unit -> struct (int32 * string)) = closure16(v295, v1034)
                        method16(v1058, v1059, v1060)
                        US4_1
                | US6_0(v1032) -> (* Ok *)
                    US4_0(v1032)
            return v1064 
            }
            |> fun x -> _v1030 <- Some x
            let v1065 : Async<US4> = match _v1030 with Some x -> x | None -> failwith "async.new_async_unit / _v1030=None"
            v1065 
            #endif
            |> fun x -> _v984 <- Some x
            let v1066 : Async<US4> = match _v984 with Some x -> x | None -> failwith "base.run_target / _v984=None"
            return! v1066 
            }
            |> fun x -> _v647 <- Some x
            let v1081 : Async<US4> = match _v647 with Some x -> x | None -> failwith "async.new_async_unit / _v647=None"
            v1081 
            #endif
            |> fun x -> _v601 <- Some x
            let v1082 : Async<US4> = match _v601 with Some x -> x | None -> failwith "base.run_target / _v601=None"
            v1082 
            #endif
            |> fun x -> _v553 <- Some x
            let v1097 : Async<US4> = match _v553 with Some x -> x | None -> failwith "base.run_target / _v553=None"
            let! v1097 = v1097 
            let v1112 : US4 = v1097 
            let v1115 : bool =
                match v1112 with
                | US4_1 -> (* None *)
                    false
                | US4_0(v1113) -> (* Some *)
                    v1113
            return v1115 
            }
            |> fun x -> _v344 <- Some x
            let v1116 : Async<bool> = match _v344 with Some x -> x | None -> failwith "async.new_async_unit / _v344=None"
            v1116 
            #endif
            |> fun x -> _v298 <- Some x
            let v1117 : Async<bool> = match _v298 with Some x -> x | None -> failwith "base.run_target / _v298=None"
            v1117
    let! v1133 = v1133 
    let v1134 : bool = v1133 
    let v1135 : bool = v1134 = false
    if v1135 then
        return v2 
        (*
        ()
    else
        *) else
        let v1136 : int32 = v2 + 1
        let v1137 : Async<int32> = method24(v0, v1, v1136)
        return! v1137 
        (*
        ()
    *)
    }
    |> fun x -> _v51 <- Some x
    let v1138 : Async<int32> = match _v51 with Some x -> x | None -> failwith "async.new_async_unit / _v51=None"
    v1138 
    #endif
    |> fun x -> _v5 <- Some x
    let v1139 : Async<int32> = match _v5 with Some x -> x | None -> failwith "base.run_target / _v5=None"
    v1139
and closure27 (v0 : int32 option, v1 : string) (v2 : int32) : Async<int32> =
    method24(v0, v1, v2)
and closure26 (v0 : int32 option) (v1 : string) : (int32 -> Async<int32>) =
    closure27(v0, v1)
and closure25 () (v0 : int32 option) : (string -> (int32 -> Async<int32>)) =
    closure26(v0)
let v2 : (US0 -> struct (Mut0 * Mut1 * Mut2 * Mut3 * int64 option)) = closure0()
let v3 : US0 = US0_0
if State.trace_state.IsNone then State.trace_state <- v2 v3 |> Some
let v9 : (string -> (int32 -> Async<bool>)) = closure2()
let test_port_open x = v9 x
let v10 : (int32 -> (string -> (int32 -> Async<bool>))) = closure7()
let test_port_open_timeout x = v10 x
let v11 : (int32 option -> (bool -> (string -> (int32 -> Async<int64>)))) = closure18()
let wait_for_port_access x = v11 x
let v12 : (int32 option -> (string -> (int32 -> Async<int32>))) = closure25()
let get_available_port x = v12 x
()
00:00:00   debug #1 writeDibCode / output: Fs / path: DirTreeHtml.dib
00:00:00   debug #2 parseDibCode / output: Fs / file: DirTreeHtml.dib
00:00:00   debug #1 persistCodeProject / packages: [Argu; Falco.Markup; FSharp.Control.AsyncSeq; ... ] / modules: [lib/spiral/common.fsx; lib/spiral/sm.fsx; lib/spiral/crypto.fsx; ... ] / name: DirTreeHtml / hash:  / code.Length: 4638
00:00:00   debug #2 buildProject / fullPath: C:\home\git\polyglot\target\Builder\DirTreeHtml\DirTreeHtml.fsproj
00:00:00   debug #1 runtime.execute_with_options_async / { options = { command = dotnet publish "C:\home\git\polyglot\target/Builder\DirTreeHtml\DirTreeHtml.fsproj" --configuration Release --output "C:\home\git\polyglot\apps\dir-tree-html\dist" --runtime linux-x64; cancellation_token = None; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = Some "C:\home\git\polyglot\target\Builder\DirTreeHtml" } }
00:00:00 verbose #2 > MSBuild version 17.10.0-preview-24101-01+07fd5d51f for .NET
00:00:01 verbose #3 >   Determining projects to restore...
00:00:02 verbose #4 >   Restored C:\home\git\polyglot\target\Builder\DirTreeHtml\DirTreeHtml.fsproj (in 453 ms).
00:00:02 verbose #5 > C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.24101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(313,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\home\git\polyglot\target\Builder\DirTreeHtml\DirTreeHtml.fsproj]
00:00:13 verbose #6 >   DirTreeHtml -> C:\home\git\polyglot\target\Builder\DirTreeHtml\bin\Release\net9.0\linux-x64\DirTreeHtml.dll
00:00:14 verbose #7 >   DirTreeHtml -> C:\home\git\polyglot\apps\dir-tree-html\dist\
00:00:14   debug #8 runtime.execute_with_options_async / { exit_code = 0; output_length = 703 }
00:00:14   debug #9 runtime.execute_with_options_async / { options = { command = dotnet publish "C:\home\git\polyglot\target/Builder\DirTreeHtml\DirTreeHtml.fsproj" --configuration Release --output "C:\home\git\polyglot\apps\dir-tree-html\dist" --runtime win-x64; cancellation_token = None; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = Some "C:\home\git\polyglot\target\Builder\DirTreeHtml" } }
00:00:15 verbose #10 > MSBuild version 17.10.0-preview-24101-01+07fd5d51f for .NET
00:00:15 verbose #11 >   Determining projects to restore...
00:00:16 verbose #12 >   Restored C:\home\git\polyglot\target\Builder\DirTreeHtml\DirTreeHtml.fsproj (in 375 ms).
00:00:16 verbose #13 > C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.24101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(313,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\home\git\polyglot\target\Builder\DirTreeHtml\DirTreeHtml.fsproj]
00:00:27 verbose #14 >   DirTreeHtml -> C:\home\git\polyglot\target\Builder\DirTreeHtml\bin\Release\net9.0\win-x64\DirTreeHtml.dll
00:00:31 verbose #15 >   DirTreeHtml -> C:\home\git\polyglot\apps\dir-tree-html\dist\
00:00:31   debug #16 runtime.execute_with_options_async / { exit_code = 0; output_length = 701 }
In [ ]:
{ pwsh ../lib/spiral/build.ps1 -sequential 1 } | Invoke-Block
00:00:00 verbose #1 async.run_with_timeout_async / { timeout = 180 }
00:00:00   debug #1 runtime.execute_with_options_async / { options = { command = dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port 13805 --default-int i32 --default-float f64; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = Some <fun:main@570-7>; stdin = None; trace = true; working_directory = Some "C:\home\git\polyglot" } }
00:00:01 verbose #2 > 00:00:00   debug #1 pwd: C:\home\git\polyglot
00:00:01 verbose #3 > 00:00:00   debug #2 dllPath: C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release
00:00:01 verbose #4 > 00:00:00   debug #3 targetDir: C:\home\git\polyglot\target/spiral_Eval
00:00:01 verbose #2 async.run_with_timeout_async / { timeout = 100 }
00:00:01 verbose #3 networking.wait_for_port_access / { port = 13805; retry = 0; timeout = Some 100; status = true }
00:00:01 verbose #4 async.run_with_timeout_async / { timeout = 100 }
00:00:01 verbose #5 > Starting the Spiral Server. It is bound to: http://localhost:13805
00:00:01 verbose #5 async.run_with_timeout_async / { timeout = 100 }
00:00:01 verbose #1 Supervisor.sendJson / port: 13805 / json: {"Ping":true} / result:
00:00:01 verbose #2 awaitCompiler / Ping / result: 'Some(null)' / port: 13805 / retry: 0
00:00:01 verbose #6 > Server bound to: http://localhost:13805
00:00:01   debug #7 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path sm'.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:00:01 verbose #8 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "sm'.dib", "--retries", "3"])) }
00:00:01 verbose #9 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/spiral/sm'.dib", "--output-path", "c:/home/git/polyglot/lib/spiral/sm'.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/sm'.dib" --output-path "c:/home/git/polyglot/lib/spiral/sm'.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:00:04 verbose #10 > >
00:00:04 verbose #11 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:04 verbose #12 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:04 verbose #13 > > │ # sm'                                                                        │
00:00:04 verbose #14 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 verbose #15 > >
00:00:08 verbose #16 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:08 verbose #17 > > //// test
00:00:08 verbose #18 > >
00:00:08 verbose #19 > > open testing
00:00:09 verbose #20 > 00:00:08   debug #4 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fa7845de436c12d0ca65282fe0cd65832468ca943e72feba50e6b1bb441e251a/main.spi
00:00:12 verbose #21 > >
00:00:12 verbose #22 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 verbose #23 > > open rust_operators
00:00:12 verbose #24 > > open real_sm'
00:00:12 verbose #25 > 00:00:11   debug #5 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ebea24b8477e59babab47c05eede757d66ae8cd2c0097b06db75f418e158efb1/main.spi
00:00:12 verbose #26 > >
00:00:12 verbose #27 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:12 verbose #28 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:12 verbose #29 > > │ ## sm'                                                                       │
00:00:12 verbose #30 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 verbose #31 > >
00:00:12 verbose #32 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:12 verbose #33 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:12 verbose #34 > > │ ### symbol_to_string                                                         │
00:00:12 verbose #35 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 verbose #36 > >
00:00:12 verbose #37 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 verbose #38 > > //// real
00:00:12 verbose #39 > >
00:00:12 verbose #40 > > inl symbol_to_string forall t {symbol}. : string =
00:00:12 verbose #41 > >     // inl x = real_core.type_lit_to_lit `t
00:00:12 verbose #42 > >     // inl x = real_core.type_to_symbol `t
00:00:12 verbose #43 > >     // inl x = real_core.type_lit_to_lit `t
00:00:12 verbose #44 > >     // !!!!SymbolToString (`(`t))
00:00:12 verbose #45 > >     inl x = real_core.type_to_symbol `t
00:00:12 verbose #46 > >     !!!!SymbolToString (x)
00:00:12 verbose #47 > 00:00:11   debug #6 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7c8d083ce3a9ddd32b9434df453de9ed4eba364751f0afa3b1fa2ac4e655f7af/real_main.spir
00:00:12 verbose #48 > >
00:00:12 verbose #49 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 verbose #50 > > inl symbol_to_string forall t {symbol}. (x : t) : string =
00:00:12 verbose #51 > >     real symbol_to_string `t
00:00:13 verbose #52 > 00:00:12   debug #7 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/dc6fdcc0e00a96390e7acb5aece26ebdd508349402ec84ebccb313e8496984c0/main.spi
00:00:13 verbose #53 > >
00:00:13 verbose #54 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:13 verbose #55 > > //// test
00:00:13 verbose #56 > >
00:00:13 verbose #57 > > .test
00:00:13 verbose #58 > > |> symbol_to_string
00:00:13 verbose #59 > > |> _assert_eq "test"
00:00:13 verbose #60 > 00:00:12   debug #8 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0386b6a44e3a5d5da075b6c3f287ea641468eaa06abf98613c8f33c41b5f7de6/main.spi
00:00:14 verbose #61 > >
00:00:14 verbose #62 > > ╭─[ 1.17s - stdout ]───────────────────────────────────────────────────────────╮
00:00:14 verbose #63 > > │ assert_eq / actual: "test" / expected: "test"                                │
00:00:14 verbose #64 > > │                                                                              │
00:00:14 verbose #65 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 verbose #66 > >
00:00:14 verbose #67 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:14 verbose #68 > > //// test
00:00:14 verbose #69 > > //// real
00:00:14 verbose #70 > >
00:00:14 verbose #71 > > open testing
00:00:14 verbose #72 > > inl x = .test
00:00:14 verbose #73 > > inl x = symbol_to_string `(`x)
00:00:14 verbose #74 > > _assert_eq `string "test" x
00:00:14 verbose #75 > 00:00:13   debug #9 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/249aef808fadbfe422f12abbe3dd7355e5a8595437e091480ae7630c72648ecc/real_main.spir
00:00:14 verbose #76 > >
00:00:14 verbose #77 > > ╭─[ 413.60ms - stdout ]────────────────────────────────────────────────────────╮
00:00:14 verbose #78 > > │ assert_eq / actual: "test" / expected: "test"                                │
00:00:14 verbose #79 > > │                                                                              │
00:00:14 verbose #80 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 verbose #81 > >
00:00:14 verbose #82 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:14 verbose #83 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:14 verbose #84 > > │ ### index                                                                    │
00:00:14 verbose #85 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 verbose #86 > >
00:00:14 verbose #87 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:14 verbose #88 > > inl index i (str : string) : char =
00:00:14 verbose #89 > >     sm.index str i
00:00:15 verbose #90 > 00:00:14   debug #10 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/66c0e5c4ac3ff41e98f8398421e5c2b768f9773182a578d29e05e4b7f7b47339/main.spi
00:00:15 verbose #91 > >
00:00:15 verbose #92 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:15 verbose #93 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:15 verbose #94 > > │ ### length                                                                   │
00:00:15 verbose #95 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 verbose #96 > >
00:00:15 verbose #97 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:15 verbose #98 > > inl length forall dim {int}. (input : string) : dim =
00:00:15 verbose #99 > >     input |> sm.length
00:00:15 verbose #100 > 00:00:14   debug #11 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0d9097d6ee04bf4753365b867252e1a01c1a6f24f04c76a103c49b414ad61938/main.spi
00:00:15 verbose #101 > >
00:00:15 verbose #102 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:15 verbose #103 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:15 verbose #104 > > │ ### to_char_array                                                            │
00:00:15 verbose #105 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 verbose #106 > >
00:00:15 verbose #107 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:15 verbose #108 > > inl to_char_array (str : string) : array_base char =
00:00:15 verbose #109 > >     am.init (str |> length) (fun i => str |> index i)
00:00:15 verbose #110 > >     |> fun (a x : _ int _) => x
00:00:15 verbose #111 > 00:00:15   debug #12 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ea0b7dff30b12ee5d40db27fc06777fb03b140c8ced276369cdfaacbab97a2e2/main.spi
00:00:16 verbose #112 > >
00:00:16 verbose #113 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:16 verbose #114 > > //// test
00:00:16 verbose #115 > >
00:00:16 verbose #116 > > "abc"
00:00:16 verbose #117 > > |> to_char_array
00:00:16 verbose #118 > > |> _assert_eq' ;[[ 'a'; 'b'; 'c' ]]
00:00:16 verbose #119 > 00:00:15   debug #13 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/04e82e3191205828d32ae372565d5262a12343e1f50501cf9674d062934964fb/main.spi
00:00:16 verbose #120 > >
00:00:16 verbose #121 > > ╭─[ 852.03ms - stdout ]────────────────────────────────────────────────────────╮
00:00:16 verbose #122 > > │ assert_eq' / actual: [|'a'; 'b'; 'c'|] / expected: [|'a'; 'b'; 'c'|]         │
00:00:16 verbose #123 > > │                                                                              │
00:00:16 verbose #124 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:16 verbose #125 > >
00:00:16 verbose #126 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:16 verbose #127 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:16 verbose #128 > > │ ### to_char_list                                                             │
00:00:16 verbose #129 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:16 verbose #130 > >
00:00:16 verbose #131 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:16 verbose #132 > > inl to_char_list (str : string) : list char =
00:00:16 verbose #133 > >     listm.init (str |> length) (fun (i : i64) => str |> index i)
00:00:17 verbose #134 > 00:00:16   debug #14 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4a6f069728c830a4b4caabf1453f5f5ea981e635ed09142788856b8507ad55bd/main.spi
00:00:17 verbose #135 > >
00:00:17 verbose #136 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:17 verbose #137 > > //// test
00:00:17 verbose #138 > >
00:00:17 verbose #139 > > "abc"
00:00:17 verbose #140 > > |> to_char_list
00:00:17 verbose #141 > > |> _assert_eq [[ 'a'; 'b'; 'c' ]]
00:00:17 verbose #142 > 00:00:16   debug #15 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/29db95e9fa4531e8a18655ca2ead0cf085078cc072019fbd4a05187fb71b27e1/main.spi
00:00:17 verbose #143 > >
00:00:17 verbose #144 > > ╭─[ 478.82ms - stdout ]────────────────────────────────────────────────────────╮
00:00:17 verbose #145 > > │ assert_eq / actual: UH0_1 ('a', UH0_1 ('b', UH0_1 ('c', UH0_0))) / expected: │
00:00:17 verbose #146 > > │ UH0_1 ('a', UH0_1 ('b', UH0_1 ('c', UH0_0)))                                 │
00:00:17 verbose #147 > > │                                                                              │
00:00:17 verbose #148 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:17 verbose #149 > >
00:00:17 verbose #150 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:17 verbose #151 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:17 verbose #152 > > │ ### is_empty                                                                 │
00:00:17 verbose #153 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:17 verbose #154 > >
00:00:17 verbose #155 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:17 verbose #156 > > inl is_empty (input : string) : bool =
00:00:17 verbose #157 > >     length input = 0i32
00:00:17 verbose #158 > 00:00:17   debug #16 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/334a82d302c25a3eea1e7e567aca254e16b4f4196bf1008f9fe1b4344e6d0c29/main.spi
00:00:18 verbose #159 > >
00:00:18 verbose #160 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:18 verbose #161 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:18 verbose #162 > > │ ### slice                                                                    │
00:00:18 verbose #163 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:18 verbose #164 > >
00:00:18 verbose #165 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:18 verbose #166 > > inl slice from to s : string =
00:00:18 verbose #167 > >     sm.slice s { from to }
00:00:18 verbose #168 > 00:00:17   debug #17 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5df098cbfe578f2f5d58ee09a0aac8fae766622b1e752df64024e7740d73b893/main.spi
00:00:18 verbose #169 > >
00:00:18 verbose #170 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:18 verbose #171 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:18 verbose #172 > > │ ### format_debug                                                             │
00:00:18 verbose #173 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:18 verbose #174 > >
00:00:18 verbose #175 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:18 verbose #176 > > //// real
00:00:18 verbose #177 > >
00:00:18 verbose #178 > > inl format_debug forall t. (x : t) : string =
00:00:18 verbose #179 > >     backend_switch `string `({}) {
00:00:18 verbose #180 > >         Fsharp = (fun () => $'$"%A{!x}"' : string) : () -> string
00:00:18 verbose #181 > >         Python = (fun () => $'f"{!x}"' : string) : () -> string
00:00:18 verbose #182 > >     }
00:00:18 verbose #183 > 00:00:17   debug #18 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b3547381588ba03a92b7afe8904349093563710a94c2610f05c055855a9dd8fa/real_main.spir
00:00:18 verbose #184 > >
00:00:18 verbose #185 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:18 verbose #186 > > inl format_debug forall t. (x : t) : string =
00:00:18 verbose #187 > >     real format_debug `t x
00:00:19 verbose #188 > 00:00:18   debug #19 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/930900ccba2ec8a57c90c0f74e7792169325f998c7c0bedf0ab456b6f84a5542/main.spi
00:00:19 verbose #189 > >
00:00:19 verbose #190 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:19 verbose #191 > > //// test
00:00:19 verbose #192 > >
00:00:19 verbose #193 > > { c = "1"; a = "2"; b = "3" }
00:00:19 verbose #194 > > |> format_debug
00:00:19 verbose #195 > > |> _assert_eq "struct (\"1\", \"2\", \"3\")"
00:00:19 verbose #196 > 00:00:18   debug #20 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/804f66450771d58805b032e4ee665e2d887bb21eac0238679ba241672fa571fb/main.spi
00:00:19 verbose #197 > >
00:00:19 verbose #198 > > ╭─[ 356.05ms - stdout ]────────────────────────────────────────────────────────╮
00:00:19 verbose #199 > > │ assert_eq / actual: "struct ("1", "2", "3")" / expected: "struct ("1", "2",  │
00:00:19 verbose #200 > > │ "3")"                                                                        │
00:00:19 verbose #201 > > │                                                                              │
00:00:19 verbose #202 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:19 verbose #203 > >
00:00:19 verbose #204 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:19 verbose #205 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:19 verbose #206 > > │ ### prim                                                                     │
00:00:19 verbose #207 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:19 verbose #208 > >
00:00:19 verbose #209 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:19 verbose #210 > > inl prim x = real
00:00:19 verbose #211 > >     match x with
00:00:19 verbose #212 > >     | (x : i8) | (x : i16) | (x : i32) | (x : i64) => "%d", x
00:00:19 verbose #213 > >     | (x : u8) | (x : u16) | (x : u32) | (x : u64) => "%u", x
00:00:19 verbose #214 > >     | (x : f32) | (x : f64) => "%f", x
00:00:19 verbose #215 > >     | (x : string) => "%s", x
00:00:19 verbose #216 > >     | (x : char) => "%c", x
00:00:19 verbose #217 > 00:00:18   debug #21 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f2ab37485505ce0c89afaf30026f113eb239b491b3c90d682093a8a26eb86bff/main.spi
00:00:19 verbose #218 > >
00:00:19 verbose #219 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:19 verbose #220 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:19 verbose #221 > > │ ### printable                                                                │
00:00:19 verbose #222 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:19 verbose #223 > >
00:00:19 verbose #224 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:19 verbose #225 > > //// real
00:00:19 verbose #226 > >
00:00:19 verbose #227 > > prototype printable t : t -> ()
00:00:20 verbose #228 > 00:00:19   debug #22 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/39051806b93c5368db5de08be73cbf8e25d92597effe00c956f9303f72fb4f7f/real_main.spir
00:00:20 verbose #229 > >
00:00:20 verbose #230 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:20 verbose #231 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:20 verbose #232 > > │ ### real_format                                                              │
00:00:20 verbose #233 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:20 verbose #234 > >
00:00:20 verbose #235 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:20 verbose #236 > > //// real
00:00:20 verbose #237 > >
00:00:20 verbose #238 > > inl real_format forall t. (x : t) : string =
00:00:20 verbose #239 > >     inl result = mut `string ""
00:00:20 verbose #240 > >     real
00:00:20 verbose #241 > >         let rec write x =
00:00:20 verbose #242 > >             inl p ((a : string), b) =
00:00:20 verbose #243 > >                 inl s : string =
00:00:20 verbose #244 > >                     backend_switch `string `({}) {
00:00:20 verbose #245 > >                         Fsharp =
00:00:20 verbose #246 > >                             (fun () =>
00:00:20 verbose #247 > >                                 match b with
00:00:20 verbose #248 > >                                 | (_ : f32) | (_ : f64) => $'$"%+.6f{!b}"' :
00:00:20 verbose #249 > > string
00:00:20 verbose #250 > >                                 | _ => $'$"{!b}"' : string
00:00:20 verbose #251 > >                             ) : () -> string
00:00:20 verbose #252 > >                         Python =
00:00:20 verbose #253 > >                             (fun () =>
00:00:20 verbose #254 > >                                 match b with
00:00:20 verbose #255 > >                                 | (_ : f32) | (_ : f64) =>
00:00:20 verbose #256 > > $'"{:.6f}".format(!b)' : string
00:00:20 verbose #257 > >                                 | _ => $'!b ' : string
00:00:20 verbose #258 > >                             ) : () -> string
00:00:20 verbose #259 > >                     }
00:00:20 verbose #260 > >                 result <- (+.) `string ((~*) `string result) s
00:00:20 verbose #261 > >
00:00:20 verbose #262 > >             match x with // According to Bing it shouldn't matter whether these
00:00:20 verbose #263 > > are %d or %lld in printf.
00:00:20 verbose #264 > >             | () => ()
00:00:20 verbose #265 > >             | (x : i8) | (x : i16) | (x : i32) | (x : i64) => p ("%d", x)
00:00:20 verbose #266 > >             | (x : u8) | (x : u16) | (x : u32) | (x : u64) => p ("%u", x)
00:00:20 verbose #267 > >             | (x : f32) | (x : f64) => p ("%f", x)
00:00:20 verbose #268 > >             | (x : string) => p ("%s", x)
00:00:20 verbose #269 > >             | (x : char) => p ("%c", x)
00:00:20 verbose #270 > >             | (x : bool) => p ("%s", if x then "true" else "false")
00:00:20 verbose #271 > >             | (a,b) => write a . write ", " . write b
00:00:20 verbose #272 > >             | {} as x =>
00:00:20 verbose #273 > >                 write "{ "
00:00:20 verbose #274 > >                 inl _result =
00:00:20 verbose #275 > >                     real_core.record_fold
00:00:20 verbose #276 > >                         fun { state = separator key value } =>
00:00:20 verbose #277 > >                             write separator
00:00:20 verbose #278 > >                             write (symbol_to_string `(`key)) . write " = " .
00:00:20 verbose #279 > > write value
00:00:20 verbose #280 > >                             "; "
00:00:20 verbose #281 > >                         () x
00:00:20 verbose #282 > >                 write " }"
00:00:20 verbose #283 > >             | x when real_core.symbol_is x => write (symbol_to_string `(`x))
00:00:20 verbose #284 > >             | x when real_core.function_is x => write (x ())
00:00:20 verbose #285 > >             | x =>
00:00:20 verbose #286 > >                 if real_core.union_is x then
00:00:20 verbose #287 > >                     if real_core.prototype_has `(`x) printable then printable
00:00:20 verbose #288 > > `(`x) x
00:00:20 verbose #289 > >                     else
00:00:20 verbose #290 > >                         write (format_debug `(`x) x)
00:00:20 verbose #291 > >                         // real_core.unbox x (fun (k, v) =>
00:00:20 verbose #292 > >                         //     write k
00:00:20 verbose #293 > >                         //     match v with
00:00:20 verbose #294 > >                         //     | () => ()
00:00:20 verbose #295 > >                         //     | _ => write "(" . write v . write ")"
00:00:20 verbose #296 > >                         //     )
00:00:20 verbose #297 > >                 elif real_core.nominal_is x && real_core.prototype_has `(`x)
00:00:20 verbose #298 > > printable then printable `(`x) x
00:00:20 verbose #299 > >                 // elif layout_is x then write *x // TODO: Deal with all the
00:00:20 verbose #300 > > layout type cases.
00:00:20 verbose #301 > >                 else write (format_debug `(`x) x)
00:00:20 verbose #302 > >         write x
00:00:20 verbose #303 > >     (~*) `string result
00:00:20 verbose #304 > 00:00:19   debug #23 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0446514e4e9a54e1e45299708cb05aa18d5a91bee4ecf4885d074a51a91eb4e7/real_main.spir
00:00:20 verbose #305 > >
00:00:20 verbose #306 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:20 verbose #307 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:20 verbose #308 > > │ ### format                                                                   │
00:00:20 verbose #309 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:20 verbose #310 > >
00:00:20 verbose #311 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:20 verbose #312 > > inl format forall t. (x : t) : string =
00:00:20 verbose #313 > >     real real_format `t x
00:00:20 verbose #314 > 00:00:19   debug #24 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a4547ffc1c6f1819cf1c09fbadb93108d84d8790c919d4f76200c4efc8b3aca0/main.spi
00:00:20 verbose #315 > >
00:00:20 verbose #316 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:20 verbose #317 > > //// test
00:00:20 verbose #318 > > ///! fsharp
00:00:20 verbose #319 > > ////! cuda
00:00:20 verbose #320 > > ////! rust
00:00:20 verbose #321 > > ////! typescript
00:00:20 verbose #322 > > ////! python
00:00:20 verbose #323 > >
00:00:20 verbose #324 > > ("1", "2", [["3"; "4"]], { b = "5"; c = "6"; a = fun () => "7" })
00:00:20 verbose #325 > > |> format
00:00:20 verbose #326 > > |> _assert_eq "1, 2, UH0_1 (\"3\", UH0_1 (\"4\", UH0_0)), { b = 5; c = 6; a = 7
00:00:20 verbose #327 > > }"
00:00:21 verbose #328 > 00:00:20   debug #25 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ead8e43d11d980c8fc5e07e4b12924974994b8a2f8ee667946cd56061a0c15d6/main.spi
00:00:21 verbose #329 > >
00:00:21 verbose #330 > > ╭─[ 492.29ms - stdout ]────────────────────────────────────────────────────────╮
00:00:21 verbose #331 > > │ assert_eq / actual: "1, 2, UH0_1 ("3", UH0_1 ("4", UH0_0)), { b = 5; c = 6;  │
00:00:21 verbose #332 > > │ a = 7 }" / expected: "1, 2, UH0_1 ("3", UH0_1 ("4", UH0_0)), { b = 5; c = 6; │
00:00:21 verbose #333 > > │ a = 7 }"                                                                     │
00:00:21 verbose #334 > > │                                                                              │
00:00:21 verbose #335 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:21 verbose #336 > >
00:00:21 verbose #337 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:21 verbose #338 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:21 verbose #339 > > │ ### concat_array_trailing                                                    │
00:00:21 verbose #340 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:21 verbose #341 > >
00:00:21 verbose #342 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:21 verbose #343 > > inl concat_array_trailing (separator : string) (input : a i32 string) =
00:00:21 verbose #344 > >     ("", input)
00:00:21 verbose #345 > >     ||> am.fold fun acc (x : string) =>
00:00:21 verbose #346 > >         $'!acc + !x + !separator + ""'
00:00:21 verbose #347 > 00:00:20   debug #26 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/bce8b800617d245674482c5b8d4c7ac495327d3203b9afb44dc22b46faeca59b/main.spi
00:00:21 verbose #348 > >
00:00:21 verbose #349 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:21 verbose #350 > > //// test
00:00:21 verbose #351 > > ///! typescript
00:00:21 verbose #352 > >
00:00:21 verbose #353 > > ;[[
00:00:21 verbose #354 > >     "1"
00:00:21 verbose #355 > >     "2"
00:00:21 verbose #356 > >     "3"
00:00:21 verbose #357 > > ]]
00:00:21 verbose #358 > > |> fun x =>
00:00:21 verbose #359 > >     inl code = (a x : _ i32 _) |> concat_array_trailing "\n"
00:00:21 verbose #360 > >     code
00:00:21 verbose #361 > >     |> _assert_eq "1\n2\n3\n"
00:00:21 verbose #362 > 00:00:21   debug #27 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0705efb54e7e497f49641084937ddee8a04a0ece68672187c2ef179bb534b5d4/main.spi
00:00:23 verbose #363 > >
00:00:23 verbose #364 > > ╭─[ 1.77s - return value ]─────────────────────────────────────────────────────╮
00:00:23 verbose #365 > > │ assert_eq / actual: 1                                                        │
00:00:23 verbose #366 > > │ 2                                                                            │
00:00:23 verbose #367 > > │ 3                                                                            │
00:00:23 verbose #368 > > │  / expected: 1                                                               │
00:00:23 verbose #369 > > │ 2                                                                            │
00:00:23 verbose #370 > > │ 3                                                                            │
00:00:23 verbose #371 > > │                                                                              │
00:00:23 verbose #372 > > │                                                                              │
00:00:23 verbose #373 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:23 verbose #374 > >
00:00:23 verbose #375 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:23 verbose #376 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:23 verbose #377 > > │ ### concat_list_trailing                                                     │
00:00:23 verbose #378 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:23 verbose #379 > >
00:00:23 verbose #380 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:23 verbose #381 > > inl concat_list_trailing separator input =
00:00:23 verbose #382 > >     ("", input)
00:00:23 verbose #383 > >     ||> listm.fold fun acc (x : string) =>
00:00:23 verbose #384 > >         $'!acc + !x + !separator + ""'
00:00:23 verbose #385 > 00:00:22   debug #28 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/012694cad84e137765e99c7a56c51715f16e3d94147bdce369f6d49395cf3172/main.spi
00:00:23 verbose #386 > >
00:00:23 verbose #387 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:23 verbose #388 > > //// test
00:00:23 verbose #389 > > ///! rust
00:00:23 verbose #390 > >
00:00:23 verbose #391 > > [[
00:00:23 verbose #392 > >     "1"
00:00:23 verbose #393 > >     "2"
00:00:23 verbose #394 > >     "3"
00:00:23 verbose #395 > > ]]
00:00:23 verbose #396 > > |> fun x =>
00:00:23 verbose #397 > >     inl code = (x : _) |> concat_list_trailing "\n"
00:00:23 verbose #398 > >     code
00:00:23 verbose #399 > >     |> _assert_eq "1\n2\n3\n"
00:00:24 verbose #400 > 00:00:23   debug #29 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/eef5ce14d364df684bbd8881797435b4011dc177126dbe4507647e87e5c0716e/main.spi
00:00:26 verbose #401 > >
00:00:26 verbose #402 > > ╭─[ 2.38s - return value ]─────────────────────────────────────────────────────╮
00:00:26 verbose #403 > > │ assert_eq / actual: "1                                                       │
00:00:26 verbose #404 > > │ 2                                                                            │
00:00:26 verbose #405 > > │ 3                                                                            │
00:00:26 verbose #406 > > │ " / expected: "1                                                             │
00:00:26 verbose #407 > > │ 2                                                                            │
00:00:26 verbose #408 > > │ 3                                                                            │
00:00:26 verbose #409 > > │ "                                                                            │
00:00:26 verbose #410 > > │                                                                              │
00:00:26 verbose #411 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:26 verbose #412 > >
00:00:26 verbose #413 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:26 verbose #414 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:26 verbose #415 > > │ ### concat_list_heap_trailing                                                │
00:00:26 verbose #416 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:26 verbose #417 > >
00:00:26 verbose #418 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:26 verbose #419 > > inl concat_list_heap_trailing separator input =
00:00:26 verbose #420 > >     inl separator = join separator
00:00:26 verbose #421 > >     inl separator = separator
00:00:26 verbose #422 > >     ("", input)
00:00:26 verbose #423 > >     ||> listm.fold fun acc (x : string) =>
00:00:26 verbose #424 > >         $'$"{!acc}{!x}{!separator}"'
00:00:26 verbose #425 > 00:00:25   debug #30 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4f4cbe0787b1ca544fb70fc84e659a4228f69f7f9309d3e1e80835e4983f4fa5/main.spi
00:00:26 verbose #426 > >
00:00:26 verbose #427 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:26 verbose #428 > > //// test
00:00:26 verbose #429 > > ///! rust
00:00:26 verbose #430 > >
00:00:26 verbose #431 > > [[
00:00:26 verbose #432 > >     "1"
00:00:26 verbose #433 > >     "2"
00:00:26 verbose #434 > >     "3"
00:00:26 verbose #435 > > ]]
00:00:26 verbose #436 > > |> fun x =>
00:00:26 verbose #437 > >     inl code = (x : _) |> concat_list_heap_trailing "\n"
00:00:26 verbose #438 > >     code
00:00:26 verbose #439 > >     |> _assert_eq "1\n2\n3\n"
00:00:26 verbose #440 > 00:00:26   debug #31 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/60dedfa9ada4f746160fb70a2498c3c53a460c94c74d34d3bebc4c20225fccb2/main.spi
00:00:28 verbose #441 > >
00:00:28 verbose #442 > > ╭─[ 2.14s - return value ]─────────────────────────────────────────────────────╮
00:00:28 verbose #443 > > │ assert_eq / actual: "1                                                       │
00:00:28 verbose #444 > > │ 2                                                                            │
00:00:28 verbose #445 > > │ 3                                                                            │
00:00:28 verbose #446 > > │ " / expected: "1                                                             │
00:00:28 verbose #447 > > │ 2                                                                            │
00:00:28 verbose #448 > > │ 3                                                                            │
00:00:28 verbose #449 > > │ "                                                                            │
00:00:28 verbose #450 > > │                                                                              │
00:00:28 verbose #451 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:28 verbose #452 > >
00:00:28 verbose #453 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:28 verbose #454 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:28 verbose #455 > > │ ### ellipsis                                                                 │
00:00:28 verbose #456 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:28 verbose #457 > >
00:00:28 verbose #458 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:28 verbose #459 > > inl ellipsis (max : i32) (s : string) =
00:00:28 verbose #460 > >     if sm.length s <= max
00:00:28 verbose #461 > >     then s
00:00:28 verbose #462 > >     else s |> slice 0 (max - 1) |> fun x => $'!x + "..."'
00:00:29 verbose #463 > 00:00:28   debug #32 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3af5f034880c1053d88a8f1fa9810eb24cd61805bd10193c49d738bcd782def8/main.spi
00:00:29 verbose #464 > >
00:00:29 verbose #465 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:29 verbose #466 > > //// test
00:00:29 verbose #467 > >
00:00:29 verbose #468 > > "12345"
00:00:29 verbose #469 > > |> ellipsis 2
00:00:29 verbose #470 > > |> _assert_eq "12..."
00:00:29 verbose #471 > >
00:00:29 verbose #472 > > "12345"
00:00:29 verbose #473 > > |> ellipsis 4
00:00:29 verbose #474 > > |> _assert_eq "1234..."
00:00:29 verbose #475 > 00:00:28   debug #33 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/561667361911563cd1941f706b8d5add96a1bf2dd7693e6a69c240abbf2a75c2/main.spi
00:00:29 verbose #476 > >
00:00:29 verbose #477 > > ╭─[ 343.73ms - stdout ]────────────────────────────────────────────────────────╮
00:00:29 verbose #478 > > │ assert_eq / actual: "12..." / expected: "12..."                              │
00:00:29 verbose #479 > > │ assert_eq / actual: "1234..." / expected: "1234..."                          │
00:00:29 verbose #480 > > │                                                                              │
00:00:29 verbose #481 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:29 verbose #482 > >
00:00:29 verbose #483 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:29 verbose #484 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:29 verbose #485 > > │ ## fsharp                                                                    │
00:00:29 verbose #486 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:29 verbose #487 > >
00:00:29 verbose #488 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:29 verbose #489 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:29 verbose #490 > > │ ### ends_with                                                                │
00:00:29 verbose #491 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:29 verbose #492 > >
00:00:29 verbose #493 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:29 verbose #494 > > inl ends_with (value : string) (s : string) : bool =
00:00:29 verbose #495 > >     $'!s.EndsWith !value '
00:00:29 verbose #496 > 00:00:28   debug #34 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9e4c361aca3db21aee4be59b180fb26b1fa7f31f3e10ce833251ed0ca9c14e05/main.spi
00:00:29 verbose #497 > >
00:00:29 verbose #498 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:29 verbose #499 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:29 verbose #500 > > │ ### last_index_of                                                            │
00:00:29 verbose #501 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:29 verbose #502 > >
00:00:29 verbose #503 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:29 verbose #504 > > inl last_index_of (search : string) (s : string) : i32 =
00:00:29 verbose #505 > >     $'!s.LastIndexOf !search '
00:00:29 verbose #506 > 00:00:29   debug #35 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/544c93ff4d223d2cf2c591ac81f014925f702fb22cad0460c5b748b48742e87f/main.spi
00:00:30 verbose #507 > >
00:00:30 verbose #508 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:30 verbose #509 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:30 verbose #510 > > │ ### index_of                                                                 │
00:00:30 verbose #511 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:30 verbose #512 > >
00:00:30 verbose #513 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:30 verbose #514 > > inl index_of (search : string) (s : string) : i32 =
00:00:30 verbose #515 > >     $'!s.IndexOf !search '
00:00:30 verbose #516 > 00:00:29   debug #36 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/227737980fd6dfe560d44174974764a234a27c4ef29a0085abd6d8954f8d00e9/main.spi
00:00:30 verbose #517 > >
00:00:30 verbose #518 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:30 verbose #519 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:30 verbose #520 > > │ ### replicate                                                                │
00:00:30 verbose #521 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:30 verbose #522 > >
00:00:30 verbose #523 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:30 verbose #524 > > inl replicate (n : i32) (s : string) : string =
00:00:30 verbose #525 > >     backend_switch {
00:00:30 verbose #526 > >         Fsharp = fun () => s |> $'String.replicate' n : string
00:00:30 verbose #527 > >         Python = fun () => $'!s * !n ' : string
00:00:30 verbose #528 > >     }
00:00:30 verbose #529 > 00:00:30   debug #37 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/50ce11912b6da3ff8283f2c08e89d9094bdc595da36a84b4852d4fd666e8be6a/main.spi
00:00:30 verbose #530 > >
00:00:30 verbose #531 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:30 verbose #532 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:30 verbose #533 > > │ ### obj_to_string                                                            │
00:00:30 verbose #534 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:30 verbose #535 > >
00:00:30 verbose #536 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:30 verbose #537 > > inl obj_to_string x : string =
00:00:30 verbose #538 > >     backend_switch {
00:00:30 verbose #539 > >         Fsharp = fun () => x |> $'_.ToString()' : string
00:00:30 verbose #540 > >         Python = fun () => $'str(!x)' : string
00:00:30 verbose #541 > >     }
00:00:31 verbose #542 > 00:00:30   debug #38 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c9e09a47370080dc3f09a79d0cd85786fe3468241ad88f3a3f59fb033db10a02/main.spi
00:00:31 verbose #543 > >
00:00:31 verbose #544 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:31 verbose #545 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:31 verbose #546 > > │ ### pad_left                                                                 │
00:00:31 verbose #547 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:31 verbose #548 > >
00:00:31 verbose #549 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:31 verbose #550 > > inl pad_left (total_width : i32) (padding_char : char) (s : string) : string =
00:00:31 verbose #551 > >     backend_switch {
00:00:31 verbose #552 > >         Fsharp = fun () => $'!s.PadLeft (!total_width, !padding_char)' : string
00:00:31 verbose #553 > >         Python = fun () =>
00:00:31 verbose #554 > >             inl padding = padding_char |> obj_to_string |> replicate
00:00:31 verbose #555 > > (total_width - length s)
00:00:31 verbose #556 > >             padding +. s
00:00:31 verbose #557 > >     }
00:00:31 verbose #558 > 00:00:30   debug #39 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e7423cdeba7eefa8c6bb3df29f6a771d04ffde3529b14ddc14e94e42480aefc8/main.spi
00:00:31 verbose #559 > >
00:00:31 verbose #560 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:31 verbose #561 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:31 verbose #562 > > │ ### pad_right                                                                │
00:00:31 verbose #563 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:31 verbose #564 > >
00:00:31 verbose #565 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:31 verbose #566 > > inl pad_right (total_width : i32) (padding_char : char) (s : string) : string =
00:00:31 verbose #567 > >     $'!s.PadRight (!total_width, !padding_char)'
00:00:31 verbose #568 > 00:00:31   debug #40 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1248b0724556cb8e8af41f97ae5f3d18e6669a5c143cf5614dbc8bc4de5ab158/main.spi
00:00:32 verbose #569 > >
00:00:32 verbose #570 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:32 verbose #571 > > //// test
00:00:32 verbose #572 > >
00:00:32 verbose #573 > > "123"
00:00:32 verbose #574 > > |> pad_right 6 ' '
00:00:32 verbose #575 > > |> _assert_eq "123   "
00:00:32 verbose #576 > 00:00:31   debug #41 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2635bafc8827b932a3939a5471f63abec1ec301ee637601740054f80fb5c1e24/main.spi
00:00:32 verbose #577 > >
00:00:32 verbose #578 > > ╭─[ 395.50ms - stdout ]────────────────────────────────────────────────────────╮
00:00:32 verbose #579 > > │ assert_eq / actual: "123   " / expected: "123   "                            │
00:00:32 verbose #580 > > │                                                                              │
00:00:32 verbose #581 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:32 verbose #582 > >
00:00:32 verbose #583 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:32 verbose #584 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:32 verbose #585 > > │ ### starts_with                                                              │
00:00:32 verbose #586 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:32 verbose #587 > >
00:00:32 verbose #588 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:32 verbose #589 > > inl starts_with (value : string) (s : string) : bool =
00:00:32 verbose #590 > >     $'!s.StartsWith !value '
00:00:32 verbose #591 > 00:00:31   debug #42 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/421b01de3b735aa2638c951caa8c7ecab6433c8bb247eccc1c10e4346ec16b7b/main.spi
00:00:32 verbose #592 > >
00:00:32 verbose #593 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:32 verbose #594 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:32 verbose #595 > > │ ### is_white_space                                                           │
00:00:32 verbose #596 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:32 verbose #597 > >
00:00:32 verbose #598 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:32 verbose #599 > > inl is_white_space (c : char) : bool =
00:00:32 verbose #600 > >     c |> $'System.Char.IsWhiteSpace'
00:00:33 verbose #601 > 00:00:32   debug #43 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/15b210a76e8c53fa2e7cc75786747981a67b42ae8aab3ecf88a9656194a3fd42/main.spi
00:00:33 verbose #602 > >
00:00:33 verbose #603 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:33 verbose #604 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:33 verbose #605 > > │ ### substring                                                                │
00:00:33 verbose #606 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:33 verbose #607 > >
00:00:33 verbose #608 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:33 verbose #609 > > inl substring (start : i32) (len : i32) (str : string) : string =
00:00:33 verbose #610 > >     $'!str.Substring (!start, !len)'
00:00:33 verbose #611 > 00:00:32   debug #44 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0f668a5f29296f71bdaa3eb561df2a6ab74951a65fd336a1982736b103b56b93/main.spi
00:00:33 verbose #612 > >
00:00:33 verbose #613 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:33 verbose #614 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:33 verbose #615 > > │ ### to_lower                                                                 │
00:00:33 verbose #616 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:33 verbose #617 > >
00:00:33 verbose #618 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:33 verbose #619 > > inl to_lower (input : string) : string =
00:00:33 verbose #620 > >     backend_switch {
00:00:33 verbose #621 > >         Fsharp = fun () => $'!input.ToLower' () : string
00:00:33 verbose #622 > >         Python = fun () => $'!input.lower()' : string
00:00:33 verbose #623 > >     }
00:00:33 verbose #624 > 00:00:32   debug #45 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/74d9e677f407a4802c05f9c9b7a3402cbff31e9846cea51f105b0aa2b268a28c/main.spi
00:00:33 verbose #625 > >
00:00:33 verbose #626 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:33 verbose #627 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:33 verbose #628 > > │ ### to_upper                                                                 │
00:00:33 verbose #629 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:33 verbose #630 > >
00:00:33 verbose #631 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:33 verbose #632 > > inl to_upper (input : string) : string =
00:00:33 verbose #633 > >     $'!input.ToUpper' ()
00:00:34 verbose #634 > 00:00:33   debug #46 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/da76edbc69e19572efca4bdf2816a80f9fe34870c7a5c1e2c0d9df5f2834eef0/main.spi
00:00:34 verbose #635 > >
00:00:34 verbose #636 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:34 verbose #637 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:34 verbose #638 > > │ ### char_to_upper                                                            │
00:00:34 verbose #639 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:34 verbose #640 > >
00:00:34 verbose #641 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:34 verbose #642 > > inl char_to_upper (input : char) : char =
00:00:34 verbose #643 > >     $'System.Char.ToUpper !input '
00:00:34 verbose #644 > 00:00:33   debug #47 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/aa69c7cf0d008bf091db5f48bcfa37983190761d7246db6fd9dd48af4a6994ce/main.spi
00:00:34 verbose #645 > >
00:00:34 verbose #646 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:34 verbose #647 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:34 verbose #648 > > │ ### string_builder                                                           │
00:00:34 verbose #649 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:34 verbose #650 > >
00:00:34 verbose #651 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:34 verbose #652 > > nominal string_builder = $'System.Text.StringBuilder'
00:00:34 verbose #653 > >
00:00:34 verbose #654 > > inl string_builder (initial : string) : string_builder =
00:00:34 verbose #655 > >     initial |> $'`string_builder '
00:00:34 verbose #656 > 00:00:34   debug #48 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c253ababdc9c333142d1fc5bb1d969e9052ee6ac0cd88de93f56bbf451da4007/main.spi
00:00:34 verbose #657 > >
00:00:34 verbose #658 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:34 verbose #659 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:34 verbose #660 > > │ ### builder_append                                                           │
00:00:34 verbose #661 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:34 verbose #662 > >
00:00:34 verbose #663 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:34 verbose #664 > > inl builder_append (item : string) (sb : string_builder) : string_builder =
00:00:34 verbose #665 > >     ($'!sb.Append' item : string_builder) |> ignore
00:00:34 verbose #666 > >     sb
00:00:35 verbose #667 > 00:00:34   debug #49 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1e7aec7f186a186f89f2f7067bbc05017689ab258b89a866691f52c6f6ba5817/main.spi
00:00:35 verbose #668 > >
00:00:35 verbose #669 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:35 verbose #670 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:35 verbose #671 > > │ ### builder_replace                                                          │
00:00:35 verbose #672 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:35 verbose #673 > >
00:00:35 verbose #674 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:35 verbose #675 > > inl builder_replace (old : string) (new : string) (sb : string_builder) :
00:00:35 verbose #676 > > string_builder =
00:00:35 verbose #677 > >     ($'!sb.Replace (!old, !new)' : string_builder) |> ignore
00:00:35 verbose #678 > >     sb
00:00:35 verbose #679 > 00:00:34   debug #50 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e195e92ae73ebb14380d9d4346f5484caab0f4605f57a904c5cf4bec92f53dcf/main.spi
00:00:35 verbose #680 > >
00:00:35 verbose #681 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:35 verbose #682 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:35 verbose #683 > > │ ### builder_insert                                                           │
00:00:35 verbose #684 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:35 verbose #685 > >
00:00:35 verbose #686 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:35 verbose #687 > > inl builder_insert (n : i32) (s : string) (sb : string_builder) : string_builder
00:00:35 verbose #688 > > =
00:00:35 verbose #689 > >     ($'!sb.Insert (!n, !s)' : string_builder) |> ignore
00:00:35 verbose #690 > >     sb
00:00:35 verbose #691 > 00:00:35   debug #51 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/bbb75bb675b2dd07651fa4d502218d48382af19ad76db602ad47a72090807749/main.spi
00:00:36 verbose #692 > >
00:00:36 verbose #693 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:36 verbose #694 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:36 verbose #695 > > │ ### builder_clear                                                            │
00:00:36 verbose #696 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:36 verbose #697 > >
00:00:36 verbose #698 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:36 verbose #699 > > inl builder_clear (sb : string_builder) : string_builder =
00:00:36 verbose #700 > >     ($'!sb.Clear' () : string_builder) |> ignore
00:00:36 verbose #701 > >     sb
00:00:36 verbose #702 > 00:00:35   debug #52 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2dfded95a32bf7c29dc16ce2046b5617dd9d265eedc1edf0f56254680229f87c/main.spi
00:00:36 verbose #703 > >
00:00:36 verbose #704 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:36 verbose #705 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:36 verbose #706 > > │ ### trim                                                                     │
00:00:36 verbose #707 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:36 verbose #708 > >
00:00:36 verbose #709 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:36 verbose #710 > > inl trim (input : string) : string =
00:00:36 verbose #711 > >     $'!input.Trim' ()
00:00:36 verbose #712 > 00:00:35   debug #53 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/34e86a2068ff4ec3481adaeea65997748090a88758003826f8c670e7eb5c1f40/main.spi
00:00:36 verbose #713 > >
00:00:36 verbose #714 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:36 verbose #715 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:36 verbose #716 > > │ ### concat                                                                   │
00:00:36 verbose #717 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:36 verbose #718 > >
00:00:36 verbose #719 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:36 verbose #720 > > inl concat (a : string) (b : seq.seq' string) : string =
00:00:36 verbose #721 > >     backend_switch {
00:00:36 verbose #722 > >         Fsharp = fun () =>
00:00:36 verbose #723 > >             b |> $'String.concat' a : string
00:00:36 verbose #724 > >         Python = fun () =>
00:00:36 verbose #725 > >             $'!a.join(!b)' : string
00:00:36 verbose #726 > >     }
00:00:36 verbose #727 > 00:00:36   debug #54 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4d8f1c1bd3a80cf3d32bfcc4a888ed4072c0a22a581ece02083b26c685c243f7/main.spi
00:00:37 verbose #728 > >
00:00:37 verbose #729 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:37 verbose #730 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:37 verbose #731 > > │ ### trim_end                                                                 │
00:00:37 verbose #732 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:37 verbose #733 > >
00:00:37 verbose #734 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:37 verbose #735 > > inl trim_end (trim_chars : list char) (input : string) : string =
00:00:37 verbose #736 > >     inl trim_chars = trim_chars |> listm'.box
00:00:37 verbose #737 > >     backend_switch {
00:00:37 verbose #738 > >         Fsharp = fun () =>
00:00:37 verbose #739 > >             inl trim_chars = trim_chars |> listm'.to_array'
00:00:37 verbose #740 > >             $'!input.TrimEnd !trim_chars ' : string
00:00:37 verbose #741 > >         Python = fun () =>
00:00:37 verbose #742 > >             inl trim_chars = trim_chars |> listm'.map obj_to_string |>
00:00:37 verbose #743 > > seq.of_list' |> concat ""
00:00:37 verbose #744 > >             $'!input.rstrip(!trim_chars)' : string
00:00:37 verbose #745 > >     }
00:00:37 verbose #746 > 00:00:36   debug #55 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1db3e69e10ae32a755722000e892224eec8d7f1d9322bdfd992defc4a81e9e77/main.spi
00:00:37 verbose #747 > >
00:00:37 verbose #748 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:37 verbose #749 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:37 verbose #750 > > │ ### trim_start                                                               │
00:00:37 verbose #751 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:37 verbose #752 > >
00:00:37 verbose #753 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:37 verbose #754 > > inl trim_start (trim_chars : list char) (input : string) : string =
00:00:37 verbose #755 > >     inl trim_chars = trim_chars |> listm'.box
00:00:37 verbose #756 > >     backend_switch {
00:00:37 verbose #757 > >         Fsharp = fun () =>
00:00:37 verbose #758 > >             inl trim_chars = trim_chars |> listm'.to_array'
00:00:37 verbose #759 > >             $'!input.TrimStart !trim_chars ' : string
00:00:37 verbose #760 > >         Python = fun () =>
00:00:37 verbose #761 > >             inl trim_chars = trim_chars |> listm'.map obj_to_string |>
00:00:37 verbose #762 > > seq.of_list' |> concat ""
00:00:37 verbose #763 > >             $'!input.lstrip(!trim_chars)' : string
00:00:37 verbose #764 > >     }
00:00:37 verbose #765 > 00:00:36   debug #56 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a0a21f056654a84109ed195668e9b233bd60c9d516f19ff408589b7198f13c12/main.spi
00:00:37 verbose #766 > >
00:00:37 verbose #767 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:37 verbose #768 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:37 verbose #769 > > │ ### length'                                                                  │
00:00:37 verbose #770 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:37 verbose #771 > >
00:00:37 verbose #772 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:37 verbose #773 > > inl length' forall dim. (input : string) : dim =
00:00:37 verbose #774 > >     input |> $'String.length'
00:00:38 verbose #775 > 00:00:37   debug #57 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/bcbfe671cb1156deeb04ede8bc015902d392dadef88516c09ef3b568286fdd4b/main.spi
00:00:38 verbose #776 > >
00:00:38 verbose #777 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:38 verbose #778 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:38 verbose #779 > > │ ### to_string any                                                            │
00:00:38 verbose #780 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:38 verbose #781 > >
00:00:38 verbose #782 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:38 verbose #783 > > instance to_string any =
00:00:38 verbose #784 > >     obj_to_string
00:00:38 verbose #785 > 00:00:37   debug #58 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f5c8738133a02a847e22f071159fb4ea1ad901523388eec3ceb9b430ad16e214/main.spi
00:00:38 verbose #786 > >
00:00:38 verbose #787 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:38 verbose #788 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:38 verbose #789 > > │ ### replace                                                                  │
00:00:38 verbose #790 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:38 verbose #791 > >
00:00:38 verbose #792 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:38 verbose #793 > > inl replace (old_value : string) (new_value : string) (s : string) : string =
00:00:38 verbose #794 > >     $'!s.Replace (!old_value, !new_value)'
00:00:39 verbose #795 > 00:00:38   debug #59 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/074799a141a9b4d1473f8234237e6eaa62b38d552048af85266eab4a64512498/main.spi
00:00:39 verbose #796 > >
00:00:39 verbose #797 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:39 verbose #798 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:39 verbose #799 > > │ ### split                                                                    │
00:00:39 verbose #800 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:39 verbose #801 > >
00:00:39 verbose #802 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:39 verbose #803 > > inl split (separator : string) (str : string) : array_base string =
00:00:39 verbose #804 > >     $'!str.Split !separator '
00:00:39 verbose #805 > 00:00:38   debug #60 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6ef79a0ad78652de7ea7b52973f2c991087662193f395be49e273a7195ae255e/main.spi
00:00:39 verbose #806 > >
00:00:39 verbose #807 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:39 verbose #808 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:39 verbose #809 > > │ ### split_string                                                             │
00:00:39 verbose #810 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:39 verbose #811 > >
00:00:39 verbose #812 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:39 verbose #813 > > inl split_string (separator : array_base string) (str : string) : array_base
00:00:39 verbose #814 > > string =
00:00:39 verbose #815 > >     run_target function
00:00:39 verbose #816 > >         | Fsharp (Native) => fun () => $'!str.Split (!separator,
00:00:39 verbose #817 > > System.StringSplitOptions.None)'
00:00:39 verbose #818 > >         | _ => fun () => str |> split ((a separator : _ int _) |> seq.of_array
00:00:39 verbose #819 > > |> concat (join ""))
00:00:39 verbose #820 > 00:00:38   debug #61 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/709c97b7cd1af3b5cadd151e1aa5341451db413eb92c9849009d75a627bc16f1/main.spi
00:00:39 verbose #821 > >
00:00:39 verbose #822 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:39 verbose #823 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:39 verbose #824 > > │ ### join'                                                                    │
00:00:39 verbose #825 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:39 verbose #826 > >
00:00:39 verbose #827 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:39 verbose #828 > > inl join' (concat : string) (s : a int string) : string =
00:00:39 verbose #829 > >     $'System.String.Join (!concat, !s)'
00:00:40 verbose #830 > 00:00:39   debug #62 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/149219e317c6e62e85e59cc6ce50e17cf6ce1a89063bde7e6ab4de5a7c204f05/main.spi
00:00:40 verbose #831 > >
00:00:40 verbose #832 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:40 verbose #833 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:40 verbose #834 > > │ ### encoding                                                                 │
00:00:40 verbose #835 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:40 verbose #836 > >
00:00:40 verbose #837 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:40 verbose #838 > > nominal encoding = $'System.Text.Encoding'
00:00:40 verbose #839 > 00:00:39   debug #63 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a8723d48f54b536a5d6be8f329b885ed10d02d6c8c6ac61d06afd2ce4114c3cc/main.spi
00:00:40 verbose #840 > >
00:00:40 verbose #841 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:40 verbose #842 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:40 verbose #843 > > │ ### encoding_utf8                                                            │
00:00:40 verbose #844 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:40 verbose #845 > >
00:00:40 verbose #846 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:40 verbose #847 > > inl encoding_utf8 () : encoding =
00:00:40 verbose #848 > >     $'`encoding.UTF8'
00:00:40 verbose #849 > 00:00:39   debug #64 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/89b6e11e738bc2f83f1265516aa9b93f506c4dce3c1ba95bc2c65ae89a9f8d1a/main.spi
00:00:40 verbose #850 > >
00:00:40 verbose #851 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:40 verbose #852 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:40 verbose #853 > > │ ### utf8_get_bytes                                                           │
00:00:40 verbose #854 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:40 verbose #855 > >
00:00:40 verbose #856 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:40 verbose #857 > > inl utf8_get_bytes (s : string) : a i32 u8 =
00:00:40 verbose #858 > >     s |> (encoding_utf8 () |> $'_.GetBytes')
00:00:41 verbose #859 > 00:00:40   debug #65 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/82d6ff7fbcc4b67a6adbd4b8b4a4fbd551cc720151a90ed0bef2074e30ea616a/main.spi
00:00:41 verbose #860 > >
00:00:41 verbose #861 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:41 verbose #862 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:41 verbose #863 > > │ ### byte_to_string                                                           │
00:00:41 verbose #864 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:41 verbose #865 > >
00:00:41 verbose #866 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:41 verbose #867 > > inl byte_to_string (format : string) (x : u8) : string =
00:00:41 verbose #868 > >     $'!x.ToString' format
00:00:41 verbose #869 > 00:00:40   debug #66 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/682c33e6a61064fb374bec2bdc71026d251ad38172c33c78a4918664e82ef687/main.spi
00:00:41 verbose #870 > >
00:00:41 verbose #871 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:41 verbose #872 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:41 verbose #873 > > │ ## rust                                                                      │
00:00:41 verbose #874 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:41 verbose #875 > >
00:00:41 verbose #876 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:41 verbose #877 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:41 verbose #878 > > │ ### display                                                                  │
00:00:41 verbose #879 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:41 verbose #880 > >
00:00:41 verbose #881 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:41 verbose #882 > > nominal display t =
00:00:41 verbose #883 > >     `(
00:00:41 verbose #884 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:00:41 verbose #885 > > Fable.Core.Emit(\"std::fmt::Display<$0>\")>]]\n#endif\ntype std_fmt_Display<'T>
00:00:41 verbose #886 > > = class end"
00:00:41 verbose #887 > >         $'' : $'std_fmt_Display<`t>'
00:00:41 verbose #888 > >     )
00:00:41 verbose #889 > 00:00:41   debug #67 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b8f825be945e71eb145e700ff65b1f5afe28ed5862713821ecb212c555130a7e/main.spi
00:00:42 verbose #890 > >
00:00:42 verbose #891 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:42 verbose #892 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:42 verbose #893 > > │ ### str                                                                      │
00:00:42 verbose #894 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:42 verbose #895 > >
00:00:42 verbose #896 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:42 verbose #897 > > nominal str =
00:00:42 verbose #898 > >     `(
00:00:42 verbose #899 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:00:42 verbose #900 > > Fable.Core.Emit(\"str\")>]]\n#endif\ntype Str = class end"
00:00:42 verbose #901 > >         $'' : $'Str'
00:00:42 verbose #902 > >     )
00:00:42 verbose #903 > 00:00:41   debug #68 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5e000f8e611d439cc332f987292bdfa031ff4aa4fcc19e8ba39fe132b37afe73/main.spi
00:00:42 verbose #904 > >
00:00:42 verbose #905 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:42 verbose #906 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:42 verbose #907 > > │ ### base64_decode_error                                                      │
00:00:42 verbose #908 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:42 verbose #909 > >
00:00:42 verbose #910 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:42 verbose #911 > > nominal base64_decode_error =
00:00:42 verbose #912 > >     `(
00:00:42 verbose #913 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:00:42 verbose #914 > > Fable.Core.Emit(\"base64::DecodeError\")>]]\n#endif\ntype base64_DecodeError =
00:00:42 verbose #915 > > class end"
00:00:42 verbose #916 > >         $'' : $'base64_DecodeError'
00:00:42 verbose #917 > >     )
00:00:42 verbose #918 > 00:00:41   debug #69 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/add11620979464245b17126efe30987bc24dc2891c5ea76069a5737634204fd8/main.spi
00:00:42 verbose #919 > >
00:00:42 verbose #920 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:42 verbose #921 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:42 verbose #922 > > │ ### borsh_io_error                                                           │
00:00:42 verbose #923 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:42 verbose #924 > >
00:00:42 verbose #925 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:42 verbose #926 > > nominal borsh_io_error =
00:00:42 verbose #927 > >     `(
00:00:42 verbose #928 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:00:42 verbose #929 > > Fable.Core.Emit(\"borsh::io::Error\")>]]\n#endif\ntype borsh_io_Error = class
00:00:42 verbose #930 > > end"
00:00:42 verbose #931 > >         $'' : $'borsh_io_Error'
00:00:42 verbose #932 > >     )
00:00:43 verbose #933 > 00:00:42   debug #70 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b88dbb579def4d868fd18df932987b35f5d87753e1b44f5c1062f00d0109c540/main.spi
00:00:43 verbose #934 > >
00:00:43 verbose #935 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:43 verbose #936 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:43 verbose #937 > > │ ### utf8_error                                                               │
00:00:43 verbose #938 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:43 verbose #939 > >
00:00:43 verbose #940 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:43 verbose #941 > > nominal utf8_error =
00:00:43 verbose #942 > >     `(
00:00:43 verbose #943 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:00:43 verbose #944 > > Fable.Core.Emit(\"std::str::Utf8Error\")>]]\n#endif\ntype std_str_Utf8Error =
00:00:43 verbose #945 > > class end"
00:00:43 verbose #946 > >         $'' : $'std_str_Utf8Error'
00:00:43 verbose #947 > >     )
00:00:43 verbose #948 > 00:00:42   debug #71 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/bf3767f93b7e796f90ba0dbcea18443e1e8b2cb6701b83ef199f1c05b9953766/main.spi
00:00:43 verbose #949 > >
00:00:43 verbose #950 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:43 verbose #951 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:43 verbose #952 > > │ ### from_utf8_error                                                          │
00:00:43 verbose #953 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:43 verbose #954 > >
00:00:43 verbose #955 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:43 verbose #956 > > nominal from_utf8_error =
00:00:43 verbose #957 > >     `(
00:00:43 verbose #958 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:00:43 verbose #959 > > Fable.Core.Emit(\"std::string::FromUtf8Error\")>]]\n#endif\ntype
00:00:43 verbose #960 > > std_string_FromUtf8Error = class end"
00:00:43 verbose #961 > >         $'' : $'std_string_FromUtf8Error'
00:00:43 verbose #962 > >     )
00:00:43 verbose #963 > 00:00:43   debug #72 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/68f2e7481bc9dd59ec0f27a242cb1b96ed79345206111ede52f8111f27130b87/main.spi
00:00:44 verbose #964 > >
00:00:44 verbose #965 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:44 verbose #966 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:44 verbose #967 > > │ ### json_value                                                               │
00:00:44 verbose #968 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:44 verbose #969 > >
00:00:44 verbose #970 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:44 verbose #971 > > nominal json_value =
00:00:44 verbose #972 > >     `(
00:00:44 verbose #973 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:00:44 verbose #974 > > Fable.Core.Emit(\"serde_json::Value\")>]]\n#endif\ntype serde_json_Value = class
00:00:44 verbose #975 > > end"
00:00:44 verbose #976 > >         $'' : $'serde_json_Value'
00:00:44 verbose #977 > >     )
00:00:44 verbose #978 > 00:00:43   debug #73 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d3da7c164a52b5527dc11906a3a740be05684232336b9447d93b6224021bec27/main.spi
00:00:44 verbose #979 > >
00:00:44 verbose #980 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:44 verbose #981 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:44 verbose #982 > > │ ### json_error                                                               │
00:00:44 verbose #983 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:44 verbose #984 > >
00:00:44 verbose #985 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:44 verbose #986 > > nominal json_error =
00:00:44 verbose #987 > >     `(
00:00:44 verbose #988 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:00:44 verbose #989 > > Fable.Core.Emit(\"serde_json::Error\")>]]\n#endif\ntype serde_json_Error = class
00:00:44 verbose #990 > > end"
00:00:44 verbose #991 > >         $'' : $'serde_json_Error'
00:00:44 verbose #992 > >     )
00:00:44 verbose #993 > 00:00:43   debug #74 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9758d2102a2f064cee97b2a7af3662de349c5a0a0677d0fcbdbbc544a26d7757/main.spi
00:00:44 verbose #994 > >
00:00:44 verbose #995 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:44 verbose #996 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:44 verbose #997 > > │ ### serde_wasm_bindgen_error                                                 │
00:00:44 verbose #998 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:44 verbose #999 > >
00:00:44 verbose #1000 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:44 verbose #1001 > > nominal serde_wasm_bindgen_error =
00:00:44 verbose #1002 > >     `(
00:00:44 verbose #1003 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:00:44 verbose #1004 > > Fable.Core.Emit(\"serde_wasm_bindgen::Error\")>]]\n#endif\ntype
00:00:44 verbose #1005 > > serde_wasm_bindgen_Error = class end"
00:00:44 verbose #1006 > >         $'' : $'serde_wasm_bindgen_Error'
00:00:44 verbose #1007 > >     )
00:00:44 verbose #1008 > 00:00:44   debug #75 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5923cebf4bbb358dd84a63839e56ff0c41bb3b09e9e13c3f207ca9cf2e8dd323/main.spi
00:00:45 verbose #1009 > >
00:00:45 verbose #1010 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:45 verbose #1011 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:45 verbose #1012 > > │ ### js_string                                                                │
00:00:45 verbose #1013 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:45 verbose #1014 > >
00:00:45 verbose #1015 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:45 verbose #1016 > > nominal js_string =
00:00:45 verbose #1017 > >     `(
00:00:45 verbose #1018 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:00:45 verbose #1019 > > Fable.Core.Emit(\"js_sys::JsString\")>]]\n#endif\ntype js_sys_JsString = class
00:00:45 verbose #1020 > > end"
00:00:45 verbose #1021 > >         $'' : $'js_sys_JsString'
00:00:45 verbose #1022 > >     )
00:00:45 verbose #1023 > 00:00:44   debug #76 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/23749d9fb03bdb0d58ef3d267e88561158a3d649fe0a7a853202a2719ca4deb1/main.spi
00:00:45 verbose #1024 > >
00:00:45 verbose #1025 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:45 verbose #1026 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:45 verbose #1027 > > │ ### os_str                                                                   │
00:00:45 verbose #1028 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:45 verbose #1029 > >
00:00:45 verbose #1030 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:45 verbose #1031 > > nominal os_str =
00:00:45 verbose #1032 > >     `(
00:00:45 verbose #1033 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:00:45 verbose #1034 > > Fable.Core.Emit(\"std::ffi::OsStr\")>]]\n#endif\ntype std_ffi_OsStr = class end"
00:00:45 verbose #1035 > >         $'' : $'std_ffi_OsStr'
00:00:45 verbose #1036 > >     )
00:00:45 verbose #1037 > 00:00:44   debug #77 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6935c2474cf426721d8e7954f3b2b20a92cc1fe9ae258988aab6db3c02a8c12e/main.spi
00:00:45 verbose #1038 > >
00:00:45 verbose #1039 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:45 verbose #1040 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:45 verbose #1041 > > │ ### os_string                                                                │
00:00:45 verbose #1042 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:45 verbose #1043 > >
00:00:45 verbose #1044 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:45 verbose #1045 > > nominal os_string =
00:00:45 verbose #1046 > >     `(
00:00:45 verbose #1047 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:00:45 verbose #1048 > > Fable.Core.Emit(\"std::ffi::OsString\")>]]\n#endif\ntype std_ffi_OsString =
00:00:45 verbose #1049 > > class end"
00:00:45 verbose #1050 > >         $'' : $'std_ffi_OsString'
00:00:45 verbose #1051 > >     )
00:00:46 verbose #1052 > 00:00:45   debug #78 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e7e2f8ab7b7b0929e66feafdab10b6c1dd356a03df09c548bb6521d39c38946e/main.spi
00:00:46 verbose #1053 > >
00:00:46 verbose #1054 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:46 verbose #1055 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:46 verbose #1056 > > │ ### std_string                                                               │
00:00:46 verbose #1057 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:46 verbose #1058 > >
00:00:46 verbose #1059 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:46 verbose #1060 > > nominal std_string =
00:00:46 verbose #1061 > >     `(
00:00:46 verbose #1062 > >         backend_switch `(()) `({}) {
00:00:46 verbose #1063 > >             Fsharp =
00:00:46 verbose #1064 > >                 (fun () =>
00:00:46 verbose #1065 > >                     global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:00:46 verbose #1066 > > Fable.Core.Emit(\"std::string::String\")>]]\n#endif\ntype std_string_String =
00:00:46 verbose #1067 > > class end"
00:00:46 verbose #1068 > >                 ) : () -> ()
00:00:46 verbose #1069 > >         }
00:00:46 verbose #1070 > >         $'' : $'std_string_String'
00:00:46 verbose #1071 > >     )
00:00:46 verbose #1072 > 00:00:45   debug #79 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9171f579cab4b2e786c546b2e31df5c2e24dd9f795dc29cf43b9bb02d8c2092b/main.spi
00:00:46 verbose #1073 > >
00:00:46 verbose #1074 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:46 verbose #1075 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:46 verbose #1076 > > │ ### raw_string_literal                                                       │
00:00:46 verbose #1077 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:46 verbose #1078 > >
00:00:46 verbose #1079 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:46 verbose #1080 > > inl raw_string_literal (s : string) : rust.ref str =
00:00:46 verbose #1081 > >     !\($'"r#\\"" + !s + "\\"#"')
00:00:46 verbose #1082 > 00:00:45   debug #80 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/60ad3c9d762dddcb35614948b7d1fe32f6003ee5aa318392976966a2fe452b86/main.spi
00:00:46 verbose #1083 > >
00:00:46 verbose #1084 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:46 verbose #1085 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:46 verbose #1086 > > │ ### raw_string_literal_static                                                │
00:00:46 verbose #1087 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:46 verbose #1088 > >
00:00:46 verbose #1089 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:46 verbose #1090 > > inl raw_string_literal_static (s : string) : rust.static_ref str =
00:00:46 verbose #1091 > >     !\($'"r#\\"" + !s + "\\"#"')
00:00:47 verbose #1092 > 00:00:46   debug #81 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6e37f901d3757783023452f492034e984ccd15e768898302ad534d9f8f0e3a26/main.spi
00:00:47 verbose #1093 > >
00:00:47 verbose #1094 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:47 verbose #1095 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:47 verbose #1096 > > │ ### (~#)                                                                     │
00:00:47 verbose #1097 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:47 verbose #1098 > >
00:00:47 verbose #1099 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:47 verbose #1100 > > inl (~#) s =
00:00:47 verbose #1101 > >     s |> raw_string_literal
00:00:47 verbose #1102 > 00:00:46   debug #82 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0f76ac65b7cefb7f1743368cb49151ebe28d5296e2084846669f9a4e9a8e3387/main.spi
00:00:47 verbose #1103 > >
00:00:47 verbose #1104 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:47 verbose #1105 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:47 verbose #1106 > > │ ### (~##)                                                                    │
00:00:47 verbose #1107 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:47 verbose #1108 > >
00:00:47 verbose #1109 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:47 verbose #1110 > > inl (~##) s =
00:00:47 verbose #1111 > >     s |> raw_string_literal_static
00:00:47 verbose #1112 > 00:00:47   debug #83 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ec4197aa0df7bbcf41542ec2b8045bd032db145b38b6200dff9bd6b35ccd46c6/main.spi
00:00:48 verbose #1113 > >
00:00:48 verbose #1114 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:48 verbose #1115 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:48 verbose #1116 > > │ ### include_str                                                              │
00:00:48 verbose #1117 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:48 verbose #1118 > >
00:00:48 verbose #1119 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:48 verbose #1120 > > inl include_str (path : string) : rust.ref str =
00:00:48 verbose #1121 > >     !\($'"include_str\!(\\\"" + !path + "\\\")"')
00:00:48 verbose #1122 > 00:00:47   debug #84 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9e20ba937a12afa13b35cf7f31b16fb26f4d6f37209684728d1ebdba235ded38/main.spi
00:00:48 verbose #1123 > >
00:00:48 verbose #1124 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:48 verbose #1125 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:48 verbose #1126 > > │ ### as_str                                                                   │
00:00:48 verbose #1127 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:48 verbose #1128 > >
00:00:48 verbose #1129 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:48 verbose #1130 > > inl as_str (s : string) : rust.ref str =
00:00:48 verbose #1131 > >     // !\\(s, $'"fable_library_rust::String_::LrcStr::as_str(&$0)"')
00:00:48 verbose #1132 > >     !\\(s, $'"&*$0"')
00:00:48 verbose #1133 > 00:00:47   debug #85 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fe93c471826f541573bb911f12adb40f930bd2e95a0810882e70ce61e3115c4f/main.spi
00:00:48 verbose #1134 > >
00:00:48 verbose #1135 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:48 verbose #1136 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:48 verbose #1137 > > │ ### from_std_string                                                          │
00:00:48 verbose #1138 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:48 verbose #1139 > >
00:00:48 verbose #1140 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:48 verbose #1141 > > inl from_std_string (str : std_string) : string =
00:00:48 verbose #1142 > >     !\\(str, $'"fable_library_rust::String_::fromString($0)"')
00:00:48 verbose #1143 > 00:00:48   debug #86 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/111ef6d00884f3445aecafef1ff533908e868f14225ed4168324c67d5076f26c/main.spi
00:00:49 verbose #1144 > >
00:00:49 verbose #1145 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:49 verbose #1146 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:49 verbose #1147 > > │ ### ref_to_std_string                                                        │
00:00:49 verbose #1148 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:49 verbose #1149 > >
00:00:49 verbose #1150 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:49 verbose #1151 > > inl ref_to_std_string (str : rust.ref str) : std_string =
00:00:49 verbose #1152 > >     !\\(str, $'"String::from($0)"')
00:00:49 verbose #1153 > 00:00:48   debug #87 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/221723d0d626f45c252616ab545e8f3bf79157d18d3f653f0806b6fd7bca37ca/main.spi
00:00:49 verbose #1154 > >
00:00:49 verbose #1155 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:49 verbose #1156 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:49 verbose #1157 > > │ ### cow_to_std_string                                                        │
00:00:49 verbose #1158 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:49 verbose #1159 > >
00:00:49 verbose #1160 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:49 verbose #1161 > > inl cow_to_std_string (str : rust.cow str) : std_string =
00:00:49 verbose #1162 > >     !\\(str, $'"String::from($0)"')
00:00:49 verbose #1163 > 00:00:48   debug #88 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/34659c7b63804afe307156b9a545d4e195c9ec468d68e921917c6414ade38c82/main.spi
00:00:49 verbose #1164 > >
00:00:49 verbose #1165 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:49 verbose #1166 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:49 verbose #1167 > > │ ### to_std_string                                                            │
00:00:49 verbose #1168 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:49 verbose #1169 > >
00:00:49 verbose #1170 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:49 verbose #1171 > > inl to_std_string (s : string) : std_string =
00:00:49 verbose #1172 > >     s |> as_str |> ref_to_std_string
00:00:50 verbose #1173 > 00:00:49   debug #89 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/974706fafb0ef3483852e61d380cb2979a8f72ef0a3674ba8e6386f0c7855378/main.spi
00:00:50 verbose #1174 > >
00:00:50 verbose #1175 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:50 verbose #1176 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:50 verbose #1177 > > │ ### as_str_std                                                               │
00:00:50 verbose #1178 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:50 verbose #1179 > >
00:00:50 verbose #1180 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:50 verbose #1181 > > inl as_str_std (s : std_string) : rust.ref str =
00:00:50 verbose #1182 > >     !\\(s, $'"$0.as_str()"')
00:00:50 verbose #1183 > 00:00:49   debug #90 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f327c03c349528151983d508fbf0aaf7e1a1d9d64b060dbb60dec590cb23b707/main.spi
00:00:50 verbose #1184 > >
00:00:50 verbose #1185 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:50 verbose #1186 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:50 verbose #1187 > > │ ### into_boxed_str                                                           │
00:00:50 verbose #1188 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:50 verbose #1189 > >
00:00:50 verbose #1190 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:50 verbose #1191 > > inl into_boxed_str (s : std_string) : rust.box str =
00:00:50 verbose #1192 > >     !\\(s, $'"$0.into_boxed_str()"')
00:00:50 verbose #1193 > 00:00:49   debug #91 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fd75a7ab697c5e8313135f96e250509b419e28bbc1662d5720455a3d7c7d512e/main.spi
00:00:50 verbose #1194 > >
00:00:50 verbose #1195 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:50 verbose #1196 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:50 verbose #1197 > > │ ### os_string_as_ref                                                         │
00:00:50 verbose #1198 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:50 verbose #1199 > >
00:00:50 verbose #1200 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:50 verbose #1201 > > inl os_string_as_ref (s : os_string) : rust.ref os_str =
00:00:50 verbose #1202 > >     !\\(s, $'"$0.as_ref()"')
00:00:51 verbose #1203 > 00:00:50   debug #92 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6906873a2683bb00a0c60b7fa0dd1e63c5d80ff144fd46745b00efcb828c8616/main.spi
00:00:51 verbose #1204 > >
00:00:51 verbose #1205 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:51 verbose #1206 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:51 verbose #1207 > > │ ### to_os_string                                                             │
00:00:51 verbose #1208 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:51 verbose #1209 > >
00:00:51 verbose #1210 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:51 verbose #1211 > > inl to_os_string (s : rust.ref os_str) : os_string =
00:00:51 verbose #1212 > >     !\\(s, $'"$0.to_os_string()"')
00:00:51 verbose #1213 > 00:00:50   debug #93 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5eecc784658599df55db867f653ea903341ff90e521a30f83376b294c9e0bd84/main.spi
00:00:51 verbose #1214 > >
00:00:51 verbose #1215 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:51 verbose #1216 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:51 verbose #1217 > > │ ### os_to_str                                                                │
00:00:51 verbose #1218 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:51 verbose #1219 > >
00:00:51 verbose #1220 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:51 verbose #1221 > > inl os_to_str (s : os_string) : optionm'.option' (rust.ref str) =
00:00:51 verbose #1222 > >     !\\(s, $'"$0.to_str()"')
00:00:51 verbose #1223 > 00:00:51   debug #94 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b26218f54834bd99ded911df876570c5092448bc9d018a85131048a3f05d6ceb/main.spi
00:00:51 verbose #1224 > >
00:00:51 verbose #1225 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:51 verbose #1226 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:51 verbose #1227 > > │ ### from_os_str_ref                                                          │
00:00:51 verbose #1228 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:51 verbose #1229 > >
00:00:51 verbose #1230 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:51 verbose #1231 > > inl from_os_str_ref s =
00:00:51 verbose #1232 > >     s
00:00:51 verbose #1233 > >     |> to_os_string
00:00:51 verbose #1234 > >     |> os_to_str
00:00:51 verbose #1235 > >     |> optionm'.unwrap
00:00:51 verbose #1236 > >     |> ref_to_std_string
00:00:51 verbose #1237 > >     |> from_std_string
00:00:52 verbose #1238 > 00:00:51   debug #95 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/dbd6cbf41caa55a5091974ebc4e3be10bea4504f8cce7623fcb0b79353e6b545/main.spi
00:00:52 verbose #1239 > >
00:00:52 verbose #1240 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:52 verbose #1241 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:52 verbose #1242 > > │ ### format_custom'                                                           │
00:00:52 verbose #1243 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:52 verbose #1244 > >
00:00:52 verbose #1245 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:52 verbose #1246 > > inl format_custom' (format : string) x : std_string =
00:00:52 verbose #1247 > >     run_target function
00:00:52 verbose #1248 > >         | Rust _ => fun () =>
00:00:52 verbose #1249 > >             !\\(x, $'"format\!(\\\"" + !format + "\\\", $0)"')
00:00:52 verbose #1250 > >         | _ => fun () => null ()
00:00:52 verbose #1251 > 00:00:51   debug #96 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7f226bdb1eea74ab74c0e2769461574028a7cb5815adae39b63bbc6e5e410caf/main.spi
00:00:52 verbose #1252 > >
00:00:52 verbose #1253 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:52 verbose #1254 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:52 verbose #1255 > > │ ### format'                                                                  │
00:00:52 verbose #1256 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:52 verbose #1257 > >
00:00:52 verbose #1258 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:52 verbose #1259 > > inl format' x : std_string =
00:00:52 verbose #1260 > >     run_target function
00:00:52 verbose #1261 > >         | Rust _ => fun () =>
00:00:52 verbose #1262 > >             !\\(x, $'"format\!(\\\"{}\\\", $0)"')
00:00:52 verbose #1263 > >         | _ => fun () => null ()
00:00:52 verbose #1264 > 00:00:52   debug #97 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/752b4f9364b2460154e88661e19132b1376989bb4b2859be166be77177c0abd8/main.spi
00:00:53 verbose #1265 > >
00:00:53 verbose #1266 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:53 verbose #1267 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:53 verbose #1268 > > │ ### format_debug'                                                            │
00:00:53 verbose #1269 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:53 verbose #1270 > >
00:00:53 verbose #1271 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:53 verbose #1272 > > inl format_debug' x : std_string =
00:00:53 verbose #1273 > >     run_target function
00:00:53 verbose #1274 > >         | Rust _ => fun () =>
00:00:53 verbose #1275 > >             !\\(x, $'"format\!(\\\"{:?}\\\", $0)"')
00:00:53 verbose #1276 > >         | _ => fun () => null ()
00:00:53 verbose #1277 > 00:00:52   debug #98 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/394dc6dbbfe8c6d9f334192d995e5f267ef1ce3ee185aee9bc4fee25a18cc58d/main.spi
00:00:53 verbose #1278 > >
00:00:53 verbose #1279 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:53 verbose #1280 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:53 verbose #1281 > > │ ### format_pretty'                                                           │
00:00:53 verbose #1282 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:53 verbose #1283 > >
00:00:53 verbose #1284 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:53 verbose #1285 > > inl format_pretty' x : std_string =
00:00:53 verbose #1286 > >     run_target function
00:00:53 verbose #1287 > >         | Rust _ => fun () =>
00:00:53 verbose #1288 > >             !\\(x, $'"format\!(\\\"{:#?}\\\", $0)"')
00:00:53 verbose #1289 > >         | _ => fun () => null ()
00:00:53 verbose #1290 > 00:00:52   debug #99 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/80da0224b0d02b179cb84af106dabadaa89c8df701d359accd8c05b896707b0b/main.spi
00:00:53 verbose #1291 > >
00:00:53 verbose #1292 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:53 verbose #1293 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:53 verbose #1294 > > │ ### format_hex'                                                              │
00:00:53 verbose #1295 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:53 verbose #1296 > >
00:00:53 verbose #1297 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:53 verbose #1298 > > inl format_hex' x : std_string =
00:00:53 verbose #1299 > >     !\\(x, $'"format\!(\\\"{:02x}\\\", $0)"')
00:00:53 verbose #1300 > 00:00:53   debug #100 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6fdd602d74769d80f0e2c475fdae1b7d507bbe06f5ccc2b37c756044a4b8bbc6/main.spi
00:00:54 verbose #1301 > >
00:00:54 verbose #1302 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:54 verbose #1303 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:54 verbose #1304 > > │ ### format''                                                                 │
00:00:54 verbose #1305 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:54 verbose #1306 > >
00:00:54 verbose #1307 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:54 verbose #1308 > > inl format'' (format : string) : std_string =
00:00:54 verbose #1309 > >     !\($'@@$"format\!(" + !format + ")"')
00:00:54 verbose #1310 > 00:00:53   debug #101 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/bda3fbb92cc94dc64826c7cd9350231cdfc323f508b930dbe618ffc29c7a53c2/main.spi
00:00:54 verbose #1311 > >
00:00:54 verbose #1312 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:54 verbose #1313 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:54 verbose #1314 > > │ ### regex                                                                    │
00:00:54 verbose #1315 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:54 verbose #1316 > >
00:00:54 verbose #1317 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:54 verbose #1318 > > nominal regex =
00:00:54 verbose #1319 > >     `(
00:00:54 verbose #1320 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:00:54 verbose #1321 > > Fable.Core.Emit(\"regex::Regex\")>]]\n#endif\ntype regex_Regex = class end"
00:00:54 verbose #1322 > >         $'' : $'regex_Regex'
00:00:54 verbose #1323 > >     )
00:00:54 verbose #1324 > 00:00:53   debug #102 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/625906e36b2f9c7ee8a8ef67ab53b888665fbbb6724fa96c084fe380540cebde/main.spi
00:00:54 verbose #1325 > >
00:00:54 verbose #1326 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:54 verbose #1327 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:54 verbose #1328 > > │ ### regex_error                                                              │
00:00:54 verbose #1329 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:54 verbose #1330 > >
00:00:54 verbose #1331 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:54 verbose #1332 > > nominal regex_error =
00:00:54 verbose #1333 > >     `(
00:00:54 verbose #1334 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:00:54 verbose #1335 > > Fable.Core.Emit(\"regex::Error\")>]]\n#endif\ntype regex_Error = class end"
00:00:54 verbose #1336 > >         $'' : $'regex_Error'
00:00:54 verbose #1337 > >     )
00:00:55 verbose #1338 > 00:00:54   debug #103 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/686838b12fdf64cfea38de19158123570e5e2f5207541699d6e8dd8d07e3010f/main.spi
00:00:55 verbose #1339 > >
00:00:55 verbose #1340 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:55 verbose #1341 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:55 verbose #1342 > > │ ### new_regex                                                                │
00:00:55 verbose #1343 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:55 verbose #1344 > >
00:00:55 verbose #1345 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:55 verbose #1346 > > inl new_regex (pattern : string) : resultm.result' regex regex_error =
00:00:55 verbose #1347 > >     !\\(pattern, $'$"regex::Regex::new(&$0)"')
00:00:55 verbose #1348 > 00:00:54   debug #104 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/887ec99fa815249faf62bb9a495ccc0ce113e71bb80f649d9eade1abb11c0f3b/main.spi
00:00:55 verbose #1349 > >
00:00:55 verbose #1350 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:55 verbose #1351 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:55 verbose #1352 > > │ ### captures                                                                 │
00:00:55 verbose #1353 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:55 verbose #1354 > >
00:00:55 verbose #1355 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:55 verbose #1356 > > nominal regex_captures t =
00:00:55 verbose #1357 > >     `(
00:00:55 verbose #1358 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:00:55 verbose #1359 > > Fable.Core.Emit(\"regex::Captures<$0>\")>]]\n#endif\ntype regex_Captures<'T> =
00:00:55 verbose #1360 > > class end"
00:00:55 verbose #1361 > >         $'' : $'regex_Captures<`t>'
00:00:55 verbose #1362 > >     )
00:00:55 verbose #1363 > 00:00:54   debug #105 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/62acb341171e5d4943bf3525773bfc538fba77f6b1908f7c8ebbd2ad656c7b65/main.spi
00:00:55 verbose #1364 > >
00:00:55 verbose #1365 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:55 verbose #1366 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:55 verbose #1367 > > │ ### regex_capture_matches                                                    │
00:00:55 verbose #1368 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:55 verbose #1369 > >
00:00:55 verbose #1370 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:55 verbose #1371 > > nominal regex_capture_matches =
00:00:55 verbose #1372 > >     `(
00:00:55 verbose #1373 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:00:55 verbose #1374 > > Fable.Core.Emit(\"regex::CaptureMatches\")>]]\n#endif\ntype regex_CaptureMatches
00:00:55 verbose #1375 > > = class end"
00:00:55 verbose #1376 > >         $'' : $'regex_CaptureMatches'
00:00:55 verbose #1377 > >     )
00:00:56 verbose #1378 > 00:00:55   debug #106 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/81bc30f8b0a6f1096fb8be81bbecce2f7b8f6566110ce8e9dc8bcd682ee5cc72/main.spi
00:00:56 verbose #1379 > >
00:00:56 verbose #1380 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:56 verbose #1381 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:56 verbose #1382 > > │ ### regex_capture_names                                                      │
00:00:56 verbose #1383 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:56 verbose #1384 > >
00:00:56 verbose #1385 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:56 verbose #1386 > > nominal regex_capture_names =
00:00:56 verbose #1387 > >     `(
00:00:56 verbose #1388 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:00:56 verbose #1389 > > Fable.Core.Emit(\"regex::CaptureNames\")>]]\n#endif\ntype regex_CaptureNames =
00:00:56 verbose #1390 > > class end"
00:00:56 verbose #1391 > >         $'' : $'regex_CaptureNames'
00:00:56 verbose #1392 > >     )
00:00:56 verbose #1393 > >
00:00:56 verbose #1394 > > inl regex_capture_names (regex : regex) : regex_capture_names =
00:00:56 verbose #1395 > >     !\\(regex, $'$"$0.capture_names()"')
00:00:56 verbose #1396 > 00:00:55   debug #107 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/24c22f5c55e496242bdbac659fcb0aad8727cda887406acd63ae4b2118466c31/main.spi
00:00:56 verbose #1397 > >
00:00:56 verbose #1398 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:56 verbose #1399 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:56 verbose #1400 > > │ ### match'                                                                   │
00:00:56 verbose #1401 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:56 verbose #1402 > >
00:00:56 verbose #1403 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:56 verbose #1404 > > nominal match' =
00:00:56 verbose #1405 > >     `(
00:00:56 verbose #1406 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:00:56 verbose #1407 > > Fable.Core.Emit(\"regex::Match\")>]]\n#endif\ntype regex_Match = class end"
00:00:56 verbose #1408 > >         $'' : $'regex_Match'
00:00:56 verbose #1409 > >     )
00:00:56 verbose #1410 > 00:00:56   debug #108 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8ab15bcfacfc6887d5ca33c55977f88c5c868ab7b02f96f12462d1bd021d1bb7/main.spi
00:00:57 verbose #1411 > >
00:00:57 verbose #1412 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:57 verbose #1413 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:57 verbose #1414 > > │ ### regex_captures_iter                                                      │
00:00:57 verbose #1415 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:57 verbose #1416 > >
00:00:57 verbose #1417 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:57 verbose #1418 > > inl regex_captures_iter (s : rust.static_ref (rust.mut' std_string)) (regex :
00:00:57 verbose #1419 > > regex) : regex_capture_matches =
00:00:57 verbose #1420 > >     !\($'$"!regex.captures_iter(!s)"')
00:00:57 verbose #1421 > 00:00:56   debug #109 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3f915c7530120be25fe0573b65a5bc918b2e21f3eec63512d217c5abfbc4eb6e/main.spi
00:00:57 verbose #1422 > >
00:00:57 verbose #1423 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:57 verbose #1424 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:57 verbose #1425 > > │ ### regex_captures                                                           │
00:00:57 verbose #1426 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:57 verbose #1427 > >
00:00:57 verbose #1428 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:57 verbose #1429 > > inl regex_captures (s : string) (regex : regex) : am'.vec (mapm.hash_map string
00:00:57 verbose #1430 > > string) =
00:00:57 verbose #1431 > >     // inl s = join s
00:00:57 verbose #1432 > >     // !\\(regex, $'$"$0.captures_iter(&*!s).map(|caps|
00:00:57 verbose #1433 > > $0.capture_names().map(|x| x.and_then(|n| Some((n,
00:00:57 verbose #1434 > > caps.name(n)?.as_str())))).flatten().collect()).collect()"')
00:00:57 verbose #1435 > >
00:00:57 verbose #1436 > >     inl s = s |> to_std_string
00:00:57 verbose #1437 > >     fun () =>
00:00:57 verbose #1438 > >         inl matches =
00:00:57 verbose #1439 > >             inl s = s |> rust.new_box |> rust.box_leak
00:00:57 verbose #1440 > >             regex |> regex_captures_iter s
00:00:57 verbose #1441 > >
00:00:57 verbose #1442 > >         (!\($'"true; let _result : Vec<_> = !matches.map(|x| { //"') : bool) |>
00:00:57 verbose #1443 > > ignore
00:00:57 verbose #1444 > >
00:00:57 verbose #1445 > >         inl fn (match' : rust.static_ref (rust.mut' (regex_captures
00:00:57 verbose #1446 > > rust.static_lifetime))) : mapm.hash_map string string =
00:00:57 verbose #1447 > >
00:00:57 verbose #1448 > >             inl names = regex |> regex_capture_names
00:00:57 verbose #1449 > >
00:00:57 verbose #1450 > >             (!\($'"true; let _result : std::collections::HashMap<_, _> =
00:00:57 verbose #1451 > > !names.map(|x| { //"') : bool) |> ignore
00:00:57 verbose #1452 > >
00:00:57 verbose #1453 > >             inl fn (n : string) : pair string string =
00:00:57 verbose #1454 > >                 inl n' = n |> rust.clone
00:00:57 verbose #1455 > >
00:00:57 verbose #1456 > >                 new_pair n' !\\(n, $'$"!match'.name(&$0).map(|x|
00:00:57 verbose #1457 > > x.as_str()).unwrap_or(\\\"\\\").to_string().into()"')
00:00:57 verbose #1458 > >
00:00:57 verbose #1459 > >             (!\\(fn !\($'"x.unwrap_or(\\\"\\\").to_string().into()"'), $'"true;
00:00:57 verbose #1460 > > $0 }).map(|x| std::sync::Arc::try_unwrap(x).unwrap_or_else(|x|
00:00:57 verbose #1461 > > (*x).clone())).collect()"') : bool) |> ignore
00:00:57 verbose #1462 > >
00:00:57 verbose #1463 > >             !\($'"_result"')
00:00:57 verbose #1464 > >
00:00:57 verbose #1465 > >         inl x =
00:00:57 verbose #1466 > >             !\($'$"x"')
00:00:57 verbose #1467 > >             |> rust.new_box
00:00:57 verbose #1468 > >             |> rust.box_leak
00:00:57 verbose #1469 > >
00:00:57 verbose #1470 > >         (!\\(fn x, $'"true; $0 }).collect::<Vec<_>>()"') : bool) |> ignore
00:00:57 verbose #1471 > >
00:00:57 verbose #1472 > >         !\($'"_result"')
00:00:57 verbose #1473 > >
00:00:57 verbose #1474 > >     |> rust.capture_move
00:00:57 verbose #1475 > 00:00:56   debug #110 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fc947032ae4567c7063942140076b47e39e5a2be16f65b31fc025b8a350edc08/main.spi
00:00:57 verbose #1476 > >
00:00:57 verbose #1477 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:57 verbose #1478 > > //// test
00:00:57 verbose #1479 > > ///! rust -d regex
00:00:57 verbose #1480 > >
00:00:57 verbose #1481 > > "fable-library-ts\\.(?<a>[[\\d.]]+)$"
00:00:57 verbose #1482 > > |> new_regex
00:00:57 verbose #1483 > > |> resultm.unwrap'
00:00:57 verbose #1484 > > |> regex_captures "fable_modules/fable-library-ts.4.17.0"
00:00:57 verbose #1485 > > |> am'.vec_map (mapm.to_vec >> am'.vec_sort_by_key id)
00:00:57 verbose #1486 > > |> sm'.format_debug
00:00:57 verbose #1487 > > |> _assert_eq (
00:00:57 verbose #1488 > >     ;[[
00:00:57 verbose #1489 > >         ;[[ "", ""; "a", "4.17.0" ]]
00:00:57 verbose #1490 > >         |> am'.to_vec
00:00:57 verbose #1491 > >     ]]
00:00:57 verbose #1492 > >     |> am'.to_vec
00:00:57 verbose #1493 > >     |> sm'.format_debug
00:00:57 verbose #1494 > > )
00:00:58 verbose #1495 > 00:00:57   debug #111 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0141a45ab929676a28944bfbe6bbc6c2851f47e8deb8ff058622786db85af7c6/main.spi
00:01:00 verbose #1496 > >
00:01:00 verbose #1497 > > ╭─[ 2.31s - return value ]─────────────────────────────────────────────────────╮
00:01:00 verbose #1498 > > │ assert_eq / actual: "[[("", ""), ("a", "4.17.0")]]" / expected: "[[("", ""), │
00:01:00 verbose #1499 > > │ ("a", "4.17.0")]]"                                                           │
00:01:00 verbose #1500 > > │                                                                              │
00:01:00 verbose #1501 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:00 verbose #1502 > >
00:01:00 verbose #1503 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:00 verbose #1504 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:00 verbose #1505 > > │ ### replace_regex'                                                           │
00:01:00 verbose #1506 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:00 verbose #1507 > >
00:01:00 verbose #1508 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:00 verbose #1509 > > inl replace_regex' (pattern : string) (replacement : a i32 string) (s : string)
00:01:00 verbose #1510 > > : string =
00:01:00 verbose #1511 > >     run_target function
00:01:00 verbose #1512 > >         | Rust (Native) => fun () =>
00:01:00 verbose #1513 > >             inl s = join s
00:01:00 verbose #1514 > >             inl replacement = join replacement
00:01:00 verbose #1515 > >             inl regex = pattern |> new_regex |> resultm.unwrap'
00:01:00 verbose #1516 > >             !\\((regex, #s, replacement), $'$"$0.replace_all($1, &*$2)"')
00:01:00 verbose #1517 > >             |> cow_to_std_string
00:01:00 verbose #1518 > >             |> from_std_string
00:01:00 verbose #1519 > >         | _ => fun () => null ()
00:01:00 verbose #1520 > 00:00:59   debug #112 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/83a9f1e092fdb0343a2e204261bc8511b559f44d5084d382e68fb38a7b6f53f1/main.spi
00:01:00 verbose #1521 > >
00:01:00 verbose #1522 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:00 verbose #1523 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:00 verbose #1524 > > │ ### serialize                                                                │
00:01:00 verbose #1525 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:00 verbose #1526 > >
00:01:00 verbose #1527 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:00 verbose #1528 > > inl serialize forall t. (x : t) : resultm.result' std_string json_error =
00:01:00 verbose #1529 > >     !\($'"serde_json::to_string(&!x)"')
00:01:00 verbose #1530 > 00:00:59   debug #113 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a1ede79085903efe4540b05a0585e2a6edb09ce3ac1a3fcc0263658427647ddc/main.spi
00:01:00 verbose #1531 > >
00:01:00 verbose #1532 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:00 verbose #1533 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:00 verbose #1534 > > │ ### deserialize                                                              │
00:01:00 verbose #1535 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:00 verbose #1536 > >
00:01:00 verbose #1537 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:00 verbose #1538 > > inl deserialize forall t. (json : string) : resultm.result' t std_string =
00:01:00 verbose #1539 > >     inl json = join json
00:01:00 verbose #1540 > >     inl json = json |> as_str
00:01:00 verbose #1541 > >     !\($'"serde_json::from_str(&!json)"')
00:01:00 verbose #1542 > >     |> resultm.map_error' fun (x : json_error) => x |> format'
00:01:01 verbose #1543 > 00:01:00   debug #114 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d5ec541fed26b1657713447df956fb25d9c1d50cd690e22ef9f21472c800db49/main.spi
00:01:01 verbose #1544 > >
00:01:01 verbose #1545 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:01 verbose #1546 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:01 verbose #1547 > > │ ### borsh_deserialize                                                        │
00:01:01 verbose #1548 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:01 verbose #1549 > >
00:01:01 verbose #1550 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:01 verbose #1551 > > inl borsh_deserialize forall t. (data : array_base u8) : resultm.result' t
00:01:01 verbose #1552 > > std_string =
00:01:01 verbose #1553 > >     inl data = data |> am'.as_slice
00:01:01 verbose #1554 > >     (!\($'"true; let mut !data = !data"') : bool) |> ignore
00:01:01 verbose #1555 > >     inl result = !\($'"borsh::BorshDeserialize::deserialize(&mut !data)"')
00:01:01 verbose #1556 > >     result
00:01:01 verbose #1557 > >     |> resultm.map_error' fun (x : borsh_io_error) => x |> format'
00:01:01 verbose #1558 > 00:01:00   debug #115 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e8df5c6c43be8538bd6e165649f52248f2801172a48643c3333c367bee01290b/main.spi
00:01:01 verbose #1559 > >
00:01:01 verbose #1560 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:01 verbose #1561 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:01 verbose #1562 > > │ ### deserialize_vec                                                          │
00:01:01 verbose #1563 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:01 verbose #1564 > >
00:01:01 verbose #1565 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:01 verbose #1566 > > inl deserialize_vec (value : json_value) : resultm.result' (am'.vec u8)
00:01:01 verbose #1567 > > std_string =
00:01:01 verbose #1568 > >     inl value = join value
00:01:01 verbose #1569 > >     !\($'"serde_json::from_value(!value)"')
00:01:01 verbose #1570 > >     |> resultm.map_error' fun (x : json_error) => x |> format'
00:01:01 verbose #1571 > 00:01:00   debug #116 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ccdcb59477e3f07f254e72829d6e2162a3e9f8ac392d5ec9319719a3786e2aed/main.spi
00:01:01 verbose #1572 > >
00:01:01 verbose #1573 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:01 verbose #1574 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:01 verbose #1575 > > │ ### encode_uri_component                                                     │
00:01:01 verbose #1576 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:01 verbose #1577 > >
00:01:01 verbose #1578 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:01 verbose #1579 > > inl encode_uri_component (s : std_string) : js_string =
00:01:01 verbose #1580 > >     !\($'"js_sys::encode_uri_component(&!s)"')
00:01:02 verbose #1581 > 00:01:01   debug #117 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/be1e0ebbaf347ea6db42f8a147dd64a24001c391d62217ef43a1c8368395dbf9/main.spi
00:01:02 verbose #1582 > >
00:01:02 verbose #1583 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:02 verbose #1584 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:02 verbose #1585 > > │ ### strip_prefix                                                             │
00:01:02 verbose #1586 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:02 verbose #1587 > >
00:01:02 verbose #1588 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:02 verbose #1589 > > inl strip_prefix (prefix : char) (s : std_string) : optionm'.option' (rust.ref
00:01:02 verbose #1590 > > str) =
00:01:02 verbose #1591 > >     inl s = join s
00:01:02 verbose #1592 > >     !\($'"!s.strip_prefix(!prefix)"')
00:01:02 verbose #1593 > 00:01:01   debug #118 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/29ba9e1196498d5f37a164192116d8fbd5460635f147b1c9edc469b362d46259/main.spi
00:01:02 verbose #1594 > >
00:01:02 verbose #1595 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:02 verbose #1596 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:02 verbose #1597 > > │ ### str_from_utf8                                                            │
00:01:02 verbose #1598 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:02 verbose #1599 > >
00:01:02 verbose #1600 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:02 verbose #1601 > > inl str_from_utf8 (bytes : rust.ref (am'.slice u8)) : resultm.result' (rust.ref
00:01:02 verbose #1602 > > str) utf8_error =
00:01:02 verbose #1603 > >     !\\(bytes, $'"std::str::from_utf8($0)"')
00:01:02 verbose #1604 > 00:01:02   debug #119 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/92077a54af96cf7842acf321d92a992fac16cf91edbf780c88d4af0c7290668a/main.spi
00:01:03 verbose #1605 > >
00:01:03 verbose #1606 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:03 verbose #1607 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:03 verbose #1608 > > │ ### string_from_utf8                                                         │
00:01:03 verbose #1609 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:03 verbose #1610 > >
00:01:03 verbose #1611 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:03 verbose #1612 > > inl string_from_utf8 (bytes : am'.vec u8) : resultm.result' std_string
00:01:03 verbose #1613 > > from_utf8_error =
00:01:03 verbose #1614 > >     inl bytes = join bytes
00:01:03 verbose #1615 > >     !\\(bytes, $'"std::string::String::from_utf8($0)"')
00:01:03 verbose #1616 > 00:01:02   debug #120 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3e96a1d9bca7da3f950d557f61626430e2c09b6302f0cf45baf04113922bada7/main.spi
00:01:03 verbose #1617 > >
00:01:03 verbose #1618 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:03 verbose #1619 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:03 verbose #1620 > > │ ### base64_decode                                                            │
00:01:03 verbose #1621 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:03 verbose #1622 > >
00:01:03 verbose #1623 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:03 verbose #1624 > > inl base64_decode (s : std_string) : result std_string std_string =
00:01:03 verbose #1625 > >     fun () =>
00:01:03 verbose #1626 > >         inl s = join s
00:01:03 verbose #1627 > >         inl bytes : resultm.result' (am'.vec u8) base64_decode_error =
00:01:03 verbose #1628 > >
00:01:03 verbose #1629 > > !\($'"base64::Engine::decode(&base64::engine::general_purpose::STANDARD, !s)"')
00:01:03 verbose #1630 > >         bytes
00:01:03 verbose #1631 > >         |> resultm.map_error' format'
00:01:03 verbose #1632 > >         |> resultm.try'
00:01:03 verbose #1633 > >         |> string_from_utf8
00:01:03 verbose #1634 > >         |> resultm.map_error' format'
00:01:03 verbose #1635 > >     |> fun x =>
00:01:03 verbose #1636 > >         join x ()
00:01:03 verbose #1637 > >         |> resultm.unbox
00:01:03 verbose #1638 > 00:01:02   debug #121 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/06db44d7f33773eb1159248c5a434e51dba0ff1b02f6661e30cea66437385d07/main.spi
00:01:03 verbose #1639 > >
00:01:03 verbose #1640 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:03 verbose #1641 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:03 verbose #1642 > > │ ### encoding'                                                                │
00:01:03 verbose #1643 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:03 verbose #1644 > >
00:01:03 verbose #1645 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:03 verbose #1646 > > nominal encoding' =
00:01:03 verbose #1647 > >     `(
00:01:03 verbose #1648 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:01:03 verbose #1649 > > Fable.Core.Emit(\"encoding_rs::Encoding\")>]]\n#endif\ntype encoding_rs_Encoding
00:01:03 verbose #1650 > > = class end"
00:01:03 verbose #1651 > >         $'' : $'encoding_rs_Encoding'
00:01:03 verbose #1652 > >     )
00:01:04 verbose #1653 > 00:01:03   debug #122 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/64b791f5925c442fd391aa937c620c457bae37d739edbf402e6f95280d24b532/main.spi
00:01:04 verbose #1654 > >
00:01:04 verbose #1655 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:04 verbose #1656 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:04 verbose #1657 > > │ ### encoding_utf8'                                                           │
00:01:04 verbose #1658 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:04 verbose #1659 > >
00:01:04 verbose #1660 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:04 verbose #1661 > > inl encoding_utf8' () : rust.ref encoding' =
00:01:04 verbose #1662 > >     !\($'"encoding_rs::UTF_8"')
00:01:04 verbose #1663 > 00:01:03   debug #123 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2eaba810e1d18cc6cc515490940adc208b06f06f681ed8dc485e83854da3829e/main.spi
00:01:04 verbose #1664 > >
00:01:04 verbose #1665 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:04 verbose #1666 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:04 verbose #1667 > > │ ### encoding_1252                                                            │
00:01:04 verbose #1668 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:04 verbose #1669 > >
00:01:04 verbose #1670 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:04 verbose #1671 > > inl encoding_1252' () : rust.ref encoding' =
00:01:04 verbose #1672 > >     !\($'"encoding_rs::WINDOWS_1252"')
00:01:04 verbose #1673 > 00:01:03   debug #124 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ad6a6a72e0c5ce30f5244d709ac32f18b7024a2c4e93199a5aa60f896af97a96/main.spi
00:01:04 verbose #1674 > >
00:01:04 verbose #1675 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:04 verbose #1676 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:04 verbose #1677 > > │ ### encoding_encode                                                          │
00:01:04 verbose #1678 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:04 verbose #1679 > >
00:01:04 verbose #1680 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:04 verbose #1681 > > inl encoding_encode' (encoding : rust.ref encoding') (text : string) : rust.cow
00:01:04 verbose #1682 > > (am'.slice u8) =
00:01:04 verbose #1683 > >     !\\((encoding, text), $'"$0.encode(&*$1).0"')
00:01:05 verbose #1684 > 00:01:04   debug #125 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/411028a5f15b872d604d8fa611cd065f2708082c5e5a998967ad8c50222f4f4e/main.spi
00:01:05 verbose #1685 > >
00:01:05 verbose #1686 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:05 verbose #1687 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:05 verbose #1688 > > │ ### utf8_decode                                                              │
00:01:05 verbose #1689 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:05 verbose #1690 > >
00:01:05 verbose #1691 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:05 verbose #1692 > > inl utf8_decode (data : am'.vec u8) : resultm.result' std_string (rust.cow str)
00:01:05 verbose #1693 > > =
00:01:05 verbose #1694 > >     !\($'$"encoding::Encoding::decode(encoding::all::UTF_8, &!data,
00:01:05 verbose #1695 > > encoding::DecoderTrap::Replace)"')
00:01:05 verbose #1696 > 00:01:04   debug #126 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/613bc6c6bfea8945c4b900a20961f6b02c729826e87ee26af4d7827a79c971ab/main.spi
00:01:05 verbose #1697 > >
00:01:05 verbose #1698 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:05 verbose #1699 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:05 verbose #1700 > > │ ### windows                                                                  │
00:01:05 verbose #1701 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:05 verbose #1702 > >
00:01:05 verbose #1703 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:05 verbose #1704 > > nominal windows t =
00:01:05 verbose #1705 > >     `(
00:01:05 verbose #1706 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:01:05 verbose #1707 > > Fable.Core.Emit(\"std::slice::Windows<$0>\")>]]\n#endif\ntype
00:01:05 verbose #1708 > > std_slice_Windows<'T> = class end"
00:01:05 verbose #1709 > >         $'' : $'std_slice_Windows<`t>'
00:01:05 verbose #1710 > >     )
00:01:05 verbose #1711 > >
00:01:05 verbose #1712 > > inl windows (len : unativeint) (source : am'.vec u8) : windows u8 =
00:01:05 verbose #1713 > >     inl source = source |> rust.new_box |> rust.box_leak
00:01:05 verbose #1714 > >     // inl source' = source |> rust.clone
00:01:05 verbose #1715 > >     inl result = !\\(len, $'"<[[_]]>::windows(!source, $0)"')
00:01:05 verbose #1716 > >     // source |> rust.drop
00:01:05 verbose #1717 > >     result
00:01:05 verbose #1718 > 00:01:05   debug #127 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/629b748b566fe63817df3d6e7d51f351319141b377f71a32be9ce762347f9e68/main.spi
00:01:06 verbose #1719 > >
00:01:06 verbose #1720 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:06 verbose #1721 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:06 verbose #1722 > > │ ### any                                                                      │
00:01:06 verbose #1723 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:06 verbose #1724 > >
00:01:06 verbose #1725 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:06 verbose #1726 > > inl any forall t. (fn : string -> bool) (source : windows t) : bool =
00:01:06 verbose #1727 > >     (!\($'"true; let mut !source = !source"') : bool) |> ignore
00:01:06 verbose #1728 > >     inl fn' x =
00:01:06 verbose #1729 > >         x
00:01:06 verbose #1730 > >         |> str_from_utf8
00:01:06 verbose #1731 > >         |> resultm.unwrap_or' #""
00:01:06 verbose #1732 > >         |> ref_to_std_string
00:01:06 verbose #1733 > >         |> from_std_string
00:01:06 verbose #1734 > >         |> fn
00:01:06 verbose #1735 > >     !\\(fn', $'"!source.any(move |x| $0(x))"')
00:01:06 verbose #1736 > 00:01:05   debug #128 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/08baf23f85dc739ea7cffeec38b764c12ef46535a1099fca0686618232b110d1/main.spi
00:01:06 verbose #1737 > >
00:01:06 verbose #1738 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:06 verbose #1739 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:06 verbose #1740 > > │ ### slice_contains                                                           │
00:01:06 verbose #1741 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:06 verbose #1742 > >
00:01:06 verbose #1743 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:06 verbose #1744 > > inl slice_contains (text : string) (source : am'.vec u8) : bool =
00:01:06 verbose #1745 > >     fun () =>
00:01:06 verbose #1746 > >         inl source = join source
00:01:06 verbose #1747 > >         source
00:01:06 verbose #1748 > >         |> windows (text |> length |> (fun x => x : i32) |> convert)
00:01:06 verbose #1749 > >         |> any ((=.) text)
00:01:06 verbose #1750 > >     |> fun x => join x ()
00:01:06 verbose #1751 > 00:01:05   debug #129 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/70de662ee6bfa01a52807366c73eb281fe3eeb8119e28095123917a82e835203/main.spi
00:01:06 verbose #1752 > >
00:01:06 verbose #1753 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:06 verbose #1754 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:06 verbose #1755 > > │ ### as_bytes                                                                 │
00:01:06 verbose #1756 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:06 verbose #1757 > >
00:01:06 verbose #1758 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:06 verbose #1759 > > inl as_bytes (text : string) : rust.ref (am'.slice u8) =
00:01:06 verbose #1760 > >     inl text = join text
00:01:06 verbose #1761 > >     !\($'"!text.as_bytes()"')
00:01:07 verbose #1762 > 00:01:06   debug #130 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/83c4b1d42b18b897df70aaab37a65cca5149cc5d1815185af9923af047bd0f51/main.spi
00:01:07 verbose #1763 > >
00:01:07 verbose #1764 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:07 verbose #1765 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:07 verbose #1766 > > │ ## python                                                                    │
00:01:07 verbose #1767 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:07 verbose #1768 > >
00:01:07 verbose #1769 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:07 verbose #1770 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:07 verbose #1771 > > │ ### encode_utf8                                                              │
00:01:07 verbose #1772 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:07 verbose #1773 > >
00:01:07 verbose #1774 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:07 verbose #1775 > > inl encode_utf8 (s : string) : string =
00:01:07 verbose #1776 > >     inl encoding = "utf-8"
00:01:07 verbose #1777 > >     backend_switch {
00:01:07 verbose #1778 > >         Fsharp = fun () =>
00:01:07 verbose #1779 > >             open python_operators
00:01:07 verbose #1780 > >             !\\((s, encoding), $'"$0.encode($1)"') : string
00:01:07 verbose #1781 > >         Python = fun () =>
00:01:07 verbose #1782 > >             $'!s.encode(!encoding)' : string
00:01:07 verbose #1783 > >     }
00:01:07 verbose #1784 > 00:01:06   debug #131 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6252fe183b97384cf4e5783273620a30e2cf57a27e13d0dcb42add13a3431c95/main.spi
00:01:07 verbose #1785 > >
00:01:07 verbose #1786 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:07 verbose #1787 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:07 verbose #1788 > > │ ## sm'                                                                       │
00:01:07 verbose #1789 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:07 verbose #1790 > >
00:01:07 verbose #1791 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:07 verbose #1792 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:07 verbose #1793 > > │ ### contains                                                                 │
00:01:07 verbose #1794 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:07 verbose #1795 > >
00:01:07 verbose #1796 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:07 verbose #1797 > > inl contains (value : string) (s : string) : bool =
00:01:07 verbose #1798 > >     backend_switch {
00:01:07 verbose #1799 > >         Fsharp = fun () => $'!s.Contains !value ' : bool
00:01:07 verbose #1800 > >         Python = fun () => $'!value in !s ' : bool
00:01:07 verbose #1801 > >     }
00:01:07 verbose #1802 > 00:01:07   debug #132 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b3b686029ecf06f6841042ac4ef0cb1c65665e47546094b4fa0a0dc4728b0182/main.spi
00:01:07 verbose #1803 > >
00:01:07 verbose #1804 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:07 verbose #1805 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:07 verbose #1806 > > │ ### to_string result t u                                                     │
00:01:07 verbose #1807 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:07 verbose #1808 > >
00:01:07 verbose #1809 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:07 verbose #1810 > > instance to_string result t u = fun x =>
00:01:07 verbose #1811 > >     real
00:01:07 verbose #1812 > >         open rust
00:01:07 verbose #1813 > >         typecase (t * u) with
00:01:07 verbose #1814 > >         | string * string =>
00:01:07 verbose #1815 > >             match x with
00:01:07 verbose #1816 > >             | Ok x => x
00:01:07 verbose #1817 > >             | Error x => $'"sm\'.to_string result / Error: " + !x + ""' : string
00:01:07 verbose #1818 > >         | std_string * std_string =>
00:01:07 verbose #1819 > >             match x with
00:01:07 verbose #1820 > >             | Ok x => from_std_string x
00:01:07 verbose #1821 > >             | Error x => $'"sm\'.to_string result / Error: " + string !x + ""' :
00:01:07 verbose #1822 > > string
00:01:07 verbose #1823 > >         | _ => obj_to_string `u x
00:01:08 verbose #1824 > 00:01:07   debug #133 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/80ef13e4373452fa9d983eecd71ba90a35fc4a2a22070669891f2f62b752c8da/main.spi
00:01:08 verbose #1825 > >
00:01:08 verbose #1826 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:08 verbose #1827 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:08 verbose #1828 > > │ ### format_exception                                                         │
00:01:08 verbose #1829 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:08 verbose #1830 > >
00:01:08 verbose #1831 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:08 verbose #1832 > > inl format_exception (ex : exn) : string =
00:01:08 verbose #1833 > >     run_target function
00:01:08 verbose #1834 > >         | Fsharp (Native) => fun () => $'$"{!ex.GetType ()}: {!ex.Message}"'
00:01:08 verbose #1835 > >         | _ => fun () => ex |> format_debug
00:01:08 verbose #1836 > 00:01:07   debug #134 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8f73c19140eb119f9b99415ba00aeba97ca6c042a3057a39653dd167c2d2b6c2/main.spi
00:01:08 verbose #1837 > >
00:01:08 verbose #1838 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:08 verbose #1839 > > //// test
00:01:08 verbose #1840 > > ///! fsharp
00:01:08 verbose #1841 > > ///! rust
00:01:08 verbose #1842 > > ///! typescript
00:01:08 verbose #1843 > > ///! python
00:01:08 verbose #1844 > >
00:01:08 verbose #1845 > > fun () => failwith "test"
00:01:08 verbose #1846 > > |> _throws
00:01:08 verbose #1847 > > |> optionm.value
00:01:08 verbose #1848 > > |> sm'.format_exception
00:01:08 verbose #1849 > > |> _assert_eq (run_target function
00:01:08 verbose #1850 > >     | Fsharp _ => fun () => "System.Exception: test"
00:01:08 verbose #1851 > >     | Rust _ => fun () => "Exception { message: \"test\" }"
00:01:08 verbose #1852 > >     | TypeScript _ => fun () => "Error: test"
00:01:08 verbose #1853 > >     | Python _ => fun () => "test"
00:01:08 verbose #1854 > >     | _ => fun () => null ()
00:01:08 verbose #1855 > > )
00:01:09 verbose #1856 > 00:01:08   debug #135 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/953763f3a1644ed31e198cb40300e091268ec463bb4091f97de695fa9cfdc1bb/main.spi
00:01:11 verbose #1857 > >
00:01:11 verbose #1858 > > ╭─[ 2.64s - return value ]─────────────────────────────────────────────────────╮
00:01:11 verbose #1859 > > │ .rs output:                                                                  │
00:01:11 verbose #1860 > > │ assert_eq / actual: "Exception { message: "test" }" / expected: "Exception { │
00:01:11 verbose #1861 > > │ message: "test" }"                                                           │
00:01:11 verbose #1862 > > │                                                                              │
00:01:11 verbose #1863 > > │ .ts output:                                                                  │
00:01:11 verbose #1864 > > │ assert_eq / actual: Error: test / expected: Error: test                      │
00:01:11 verbose #1865 > > │                                                                              │
00:01:11 verbose #1866 > > │ .py output:                                                                  │
00:01:11 verbose #1867 > > │ assert_eq / actual: test / expected: test                                    │
00:01:11 verbose #1868 > > │                                                                              │
00:01:11 verbose #1869 > > │                                                                              │
00:01:11 verbose #1870 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:11 verbose #1871 > >
00:01:11 verbose #1872 > > ╭─[ 2.64s - stdout ]───────────────────────────────────────────────────────────╮
00:01:11 verbose #1873 > > │ .fsx output:                                                                 │
00:01:11 verbose #1874 > > │ assert_eq / actual: "System.Exception: test" / expected: "System.Exception:  │
00:01:11 verbose #1875 > > │ test"                                                                        │
00:01:11 verbose #1876 > > │                                                                              │
00:01:11 verbose #1877 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:11 verbose #1878 > >
00:01:11 verbose #1879 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:11 verbose #1880 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:11 verbose #1881 > > │ ### range                                                                    │
00:01:11 verbose #1882 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:11 verbose #1883 > >
00:01:11 verbose #1884 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:11 verbose #1885 > > inl range forall t. (start : am'.range t) (end : am'.range t) s =
00:01:11 verbose #1886 > >     inl start, end =
00:01:11 verbose #1887 > >         match start, end with
00:01:11 verbose #1888 > >         | Start start, End fn =>
00:01:11 verbose #1889 > >             start, s |> length' |> fn
00:01:11 verbose #1890 > >         | End start_fn, End end_fn =>
00:01:11 verbose #1891 > >             inl len = s |> length'
00:01:11 verbose #1892 > >             start_fn len, end_fn len
00:01:11 verbose #1893 > >     s |> slice (start |> i32) (end |> i32)
00:01:11 verbose #1894 > 00:01:10   debug #136 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e59216ec53b351b38f679a424446c905975fff9af4ac562304354e3a49568a89/main.spi
00:01:11 verbose #1895 > >
00:01:11 verbose #1896 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:11 verbose #1897 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:11 verbose #1898 > > │ ### concat_list                                                              │
00:01:11 verbose #1899 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:11 verbose #1900 > >
00:01:11 verbose #1901 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:11 verbose #1902 > > inl concat_list s list =
00:01:11 verbose #1903 > >     list
00:01:11 verbose #1904 > >     |> listm'.box
00:01:11 verbose #1905 > >     |> seq.of_list'
00:01:11 verbose #1906 > >     |> concat s
00:01:12 verbose #1907 > 00:01:11   debug #137 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/34345fcfa6e2a32c0d907cbcb734f11d73e4b862e0fb685b58b51405d0a51943/main.spi
00:01:12 verbose #1908 > >
00:01:12 verbose #1909 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:12 verbose #1910 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:12 verbose #1911 > > │ ### ellipsis_end                                                             │
00:01:12 verbose #1912 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:12 verbose #1913 > >
00:01:12 verbose #1914 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:12 verbose #1915 > > let ellipsis_end (max : i64) (s : string) =
00:01:12 verbose #1916 > >     inl len = sm.length s
00:01:12 verbose #1917 > >     if len <= max
00:01:12 verbose #1918 > >     then s
00:01:12 verbose #1919 > >     else
00:01:12 verbose #1920 > >         inl half = f64 max / 2
00:01:12 verbose #1921 > >         inl start_half = half |> math.ceil |> i64
00:01:12 verbose #1922 > >         inl end_half = half |> math.floor |> i64
00:01:12 verbose #1923 > >         inl start = s |> slice 0 (start_half - 1)
00:01:12 verbose #1924 > >         inl end = s |> slice (len - end_half) (len - 1)
00:01:12 verbose #1925 > >         (a ;[[start; "..."; end]] : _ i32 _)
00:01:12 verbose #1926 > >         |> seq.of_array
00:01:12 verbose #1927 > >         |> concat ""
00:01:12 verbose #1928 > 00:01:11   debug #138 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8f922475ddd6678a151327b9a9ee0dacaca78ddbf3f581f7d66710e03b268307/main.spi
00:01:12 verbose #1929 > >
00:01:12 verbose #1930 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:12 verbose #1931 > > //// test
00:01:12 verbose #1932 > >
00:01:12 verbose #1933 > > "12345"
00:01:12 verbose #1934 > > |> ellipsis_end 2
00:01:12 verbose #1935 > > |> _assert_eq "1...5"
00:01:12 verbose #1936 > >
00:01:12 verbose #1937 > > "12345"
00:01:12 verbose #1938 > > |> ellipsis_end 3
00:01:12 verbose #1939 > > |> _assert_eq "12...5"
00:01:12 verbose #1940 > >
00:01:12 verbose #1941 > > "1234567"
00:01:12 verbose #1942 > > |> ellipsis_end 4
00:01:12 verbose #1943 > > |> _assert_eq "12...67"
00:01:12 verbose #1944 > 00:01:12   debug #139 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9270a3d495e398cab91d6a1af2a4478e4c5738f2807d47e8720d1536fdd31a4d/main.spi
00:01:13 verbose #1945 > >
00:01:13 verbose #1946 > > ╭─[ 561.70ms - stdout ]────────────────────────────────────────────────────────╮
00:01:13 verbose #1947 > > │ assert_eq / actual: "1...5" / expected: "1...5"                              │
00:01:13 verbose #1948 > > │ assert_eq / actual: "12...5" / expected: "12...5"                            │
00:01:13 verbose #1949 > > │ assert_eq / actual: "12...67" / expected: "12...67"                          │
00:01:13 verbose #1950 > > │                                                                              │
00:01:13 verbose #1951 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:13 verbose #1952 > >
00:01:13 verbose #1953 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:13 verbose #1954 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:13 verbose #1955 > > │ ### format_ellipsis                                                          │
00:01:13 verbose #1956 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:13 verbose #1957 > >
00:01:13 verbose #1958 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:13 verbose #1959 > > inl format_ellipsis s =
00:01:13 verbose #1960 > >     s
00:01:13 verbose #1961 > >     |> format_debug
00:01:13 verbose #1962 > >     |> ellipsis_end 400
00:01:13 verbose #1963 > 00:01:12   debug #140 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b7ea8b610d62ed196606b8db01d0909d8509caa902ede2e1d76507f1df859dac/main.spi
00:01:13 verbose #1964 > >
00:01:13 verbose #1965 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:13 verbose #1966 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:13 verbose #1967 > > │ ### replace_regex                                                            │
00:01:13 verbose #1968 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:13 verbose #1969 > >
00:01:13 verbose #1970 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:13 verbose #1971 > > inl replace_regex (pattern : string) (replacement : string) (s : string) :
00:01:13 verbose #1972 > > string =
00:01:13 verbose #1973 > >     inl replacement = join replacement
00:01:13 verbose #1974 > >     run_target function
00:01:13 verbose #1975 > >         | Fsharp (Native) => fun () =>
00:01:13 verbose #1976 > >             inl pattern = join pattern
00:01:13 verbose #1977 > >             $'System.Text.RegularExpressions.Regex.Replace (!s, !pattern,
00:01:13 verbose #1978 > > !replacement)'
00:01:13 verbose #1979 > >         | Rust (Native) => fun () =>
00:01:13 verbose #1980 > >             inl s = join s
00:01:13 verbose #1981 > >             inl regex = pattern |> new_regex |> resultm.unwrap'
00:01:13 verbose #1982 > >             !\\((regex, s, replacement), $'$"$0.replace_all(&$1, &*$2)"')
00:01:13 verbose #1983 > >             |> cow_to_std_string
00:01:13 verbose #1984 > >             |> from_std_string
00:01:13 verbose #1985 > >         | _ => fun () => null ()
00:01:13 verbose #1986 > 00:01:13   debug #141 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/86a841bad6ba20a6aec14bad8b4c45bd2880f0de4fa5e63ac04d8cedf74e25f6/main.spi
00:01:13 verbose #1987 > >
00:01:13 verbose #1988 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:13 verbose #1989 > > //// test
00:01:13 verbose #1990 > >
00:01:13 verbose #1991 > > " 123"
00:01:13 verbose #1992 > > |> replace_regex "\\s\\w2" ""
00:01:13 verbose #1993 > > |> _assert_eq "3"
00:01:14 verbose #1994 > 00:01:13   debug #142 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b5ed7c77cbd5d2934dcd2e052b8aaf6aa32c16fbae0f39feda8393e9cdedefbc/main.spi
00:01:14 verbose #1995 > >
00:01:14 verbose #1996 > > ╭─[ 422.41ms - stdout ]────────────────────────────────────────────────────────╮
00:01:14 verbose #1997 > > │ assert_eq / actual: "3" / expected: "3"                                      │
00:01:14 verbose #1998 > > │                                                                              │
00:01:14 verbose #1999 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:14 verbose #2000 > >
00:01:14 verbose #2001 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:14 verbose #2002 > > //// test
00:01:14 verbose #2003 > > ///! rust -d regex
00:01:14 verbose #2004 > >
00:01:14 verbose #2005 > > " 123"
00:01:14 verbose #2006 > > |> replace_regex "\\s\\w2" ""
00:01:14 verbose #2007 > > |> _assert_eq "3"
00:01:14 verbose #2008 > 00:01:13   debug #143 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/19a452848cda66d884f42936d826229df857b41380e16c634cf8ef67fb099304/main.spi
00:01:16 verbose #2009 > >
00:01:16 verbose #2010 > > ╭─[ 2.43s - return value ]─────────────────────────────────────────────────────╮
00:01:16 verbose #2011 > > │ assert_eq / actual: "3" / expected: "3"                                      │
00:01:16 verbose #2012 > > │                                                                              │
00:01:16 verbose #2013 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:16 verbose #2014 > >
00:01:16 verbose #2015 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:16 verbose #2016 > > //// test
00:01:16 verbose #2017 > > ///! rust -d regex
00:01:16 verbose #2018 > >
00:01:16 verbose #2019 > > "    let main args =\n        ()\n"
00:01:16 verbose #2020 > > |> replace_regex $'@@"(?P<a> *)(?P<b>let\\s+main\\s+.*?\\s*=)"'
00:01:16 verbose #2021 > > "$a[[<EntryPoint>]]\n$a$b"
00:01:16 verbose #2022 > > |> _assert_eq "    [[<EntryPoint>]]\n    let main args =\n        ()\n"
00:01:17 verbose #2023 > 00:01:16   debug #144 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b0ece4c90b9722011c69d9521b2373ffd497063b2fb8d2c561913ad9b60efe44/main.spi
00:01:19 verbose #2024 > >
00:01:19 verbose #2025 > > ╭─[ 2.23s - return value ]─────────────────────────────────────────────────────╮
00:01:19 verbose #2026 > > │ assert_eq / actual: "    [<EntryPoint>]                                      │
00:01:19 verbose #2027 > > │     let main args =                                                          │
00:01:19 verbose #2028 > > │         ()                                                                   │
00:01:19 verbose #2029 > > │ " / expected: "    [<EntryPoint>]                                            │
00:01:19 verbose #2030 > > │     let main args =                                                          │
00:01:19 verbose #2031 > > │         ()                                                                   │
00:01:19 verbose #2032 > > │ "                                                                            │
00:01:19 verbose #2033 > > │                                                                              │
00:01:19 verbose #2034 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:19 verbose #2035 > >
00:01:19 verbose #2036 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:19 verbose #2037 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:19 verbose #2038 > > │ ## main                                                                      │
00:01:19 verbose #2039 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:19 verbose #2040 > >
00:01:19 verbose #2041 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:19 verbose #2042 > > inl main () =
00:01:19 verbose #2043 > >     $'let contains x = !contains x' : ()
00:01:19 verbose #2044 > >     $'let ends_with x = !ends_with x' : ()
00:01:19 verbose #2045 > >     $'let pad_left x = !pad_left x' : ()
00:01:19 verbose #2046 > >     $'let pad_right x = !pad_right x' : ()
00:01:19 verbose #2047 > >     $'let replace x = !replace x' : ()
00:01:19 verbose #2048 > >     $'let replace_regex x = !replace_regex x' : ()
00:01:19 verbose #2049 > >     inl slice (a : i32) (b : i32) c = slice a b c
00:01:19 verbose #2050 > >     $'let slice x = !slice x' : ()
00:01:19 verbose #2051 > >     $'let split x = !split x' : ()
00:01:19 verbose #2052 > >     $'let split_string x = !split_string x' : ()
00:01:19 verbose #2053 > >     $'let starts_with x = !starts_with x' : ()
00:01:19 verbose #2054 > >     $'let substring x = !substring x' : ()
00:01:19 verbose #2055 > >     $'let to_lower x = !to_lower x' : ()
00:01:19 verbose #2056 > >     $'let to_upper x = !to_upper x' : ()
00:01:19 verbose #2057 > >     $'let trim x = !trim x' : ()
00:01:19 verbose #2058 > >     inl trim_end x = (a x : _ int _) |> am'.to_list' |> listm'.unbox |> trim_end
00:01:19 verbose #2059 > >     $'let trim_end x = !trim_end x' : ()
00:01:19 verbose #2060 > >     inl trim_start x = (a x : _ int _) |> am'.to_list' |> listm'.unbox |>
00:01:19 verbose #2061 > > trim_start
00:01:19 verbose #2062 > >     $'let trim_start x = !trim_start x' : ()
00:01:19 verbose #2063 > >     $'let ellipsis x = !ellipsis x' : ()
00:01:19 verbose #2064 > >     $'let ellipsis_end x = !ellipsis_end x' : ()
00:01:19 verbose #2065 > >     $'let format_exception x = !format_exception x' : ()
00:01:19 verbose #2066 > >     $'let concat_array_trailing x = !concat_array_trailing x' : ()
00:01:19 verbose #2067 > >     inl concat a (b : seq.seq' string) = concat a b
00:01:19 verbose #2068 > >     $'let concat x = !concat x' : ()
00:01:19 verbose #2069 > >     $'let join\' x = !join' x' : ()
00:01:19 verbose #2070 > >     $'let to_char_array x = !to_char_array x' : ()
00:01:19 verbose #2071 > 00:01:18   debug #145 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c56aa9f3014c6999cef3a9bd3087ec1ad8278a4b4ffd098737a94fa0e07de630/main.spi
00:01:19 verbose #2072 > >
00:01:19 verbose #2073 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:19 verbose #2074 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:19 verbose #2075 > > │ ## rust                                                                      │
00:01:19 verbose #2076 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:19 verbose #2077 > >
00:01:19 verbose #2078 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:19 verbose #2079 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:19 verbose #2080 > > │ ### to_string std_string                                                     │
00:01:19 verbose #2081 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:19 verbose #2082 > >
00:01:19 verbose #2083 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:19 verbose #2084 > > open rust
00:01:19 verbose #2085 > > instance to_string std_string = from_std_string
00:01:19 verbose #2086 > 00:01:19   debug #146 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/69d3108e7d00eea06b6c90b7ec39269c242475d3d82d79256fc2ada6ba7b2150/main.spi
00:01:20 verbose #2087 > 00:01:18 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 92029 }
00:01:20 verbose #2088 > 00:01:18   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/spiral/sm'.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/sm'.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:01:22 verbose #2089 > 00:01:20 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/sm'.dib.ipynb to html
00:01:22 verbose #2090 > 00:01:20 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:01:22 verbose #2091 > 00:01:20 verbose #7 !   validate(nb)
00:01:24 verbose #2092 > 00:01:22 verbose #8 ! [NbConvertApp] Writing 562093 bytes to c:\home\git\polyglot\lib\spiral\sm'.dib.html
00:01:25 verbose #2093 > 00:01:23 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 637 }
00:01:25 verbose #2094 > 00:01:23   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 637 }
00:01:25 verbose #2095 > 00:01:23   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/sm''.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/sm''.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:01:25 verbose #2096 > 00:01:23 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:01:25 verbose #2097 > 00:01:23   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:01:26 verbose #2098 > 00:01:24   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 92725 }
00:01:26   debug #2099 runtime.execute_with_options_async / { exit_code = 0; output_length = 99185 }
00:01:26   debug #3 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path sm'.dib --retries 3
00:01:26   debug #2100 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path rust.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:01:26 verbose #2101 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "rust.dib", "--retries", "3"])) }
00:01:26 verbose #2102 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/spiral/rust.dib", "--output-path", "c:/home/git/polyglot/lib/spiral/rust.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/rust.dib" --output-path "c:/home/git/polyglot/lib/spiral/rust.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:01:28 verbose #2103 > >
00:01:28 verbose #2104 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:28 verbose #2105 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:28 verbose #2106 > > │ # rust                                                                       │
00:01:28 verbose #2107 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:32 verbose #2108 > >
00:01:32 verbose #2109 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:32 verbose #2110 > > //// test
00:01:32 verbose #2111 > >
00:01:32 verbose #2112 > > open testing
00:01:32 verbose #2113 > 00:01:32   debug #147 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fa7845de436c12d0ca65282fe0cd65832468ca943e72feba50e6b1bb441e251a/main.spi
00:01:33 verbose #2114 > >
00:01:33 verbose #2115 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:33 verbose #2116 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:33 verbose #2117 > > │ ## rust                                                                      │
00:01:33 verbose #2118 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:33 verbose #2119 > >
00:01:33 verbose #2120 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:33 verbose #2121 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:33 verbose #2122 > > │ ### any                                                                      │
00:01:33 verbose #2123 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:33 verbose #2124 > >
00:01:33 verbose #2125 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:33 verbose #2126 > > nominal any =
00:01:33 verbose #2127 > >     `(
00:01:33 verbose #2128 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:01:33 verbose #2129 > > Fable.Core.Emit(\"core::any::Any\")>]]\n#endif\ntype core_any_Any = class end"
00:01:33 verbose #2130 > >         $'' : $'core_any_Any'
00:01:33 verbose #2131 > >     )
00:01:33 verbose #2132 > 00:01:32   debug #148 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/89d0819ea9ec1e6d59d903e15f8db8d23ce0b5138b80a1be06aac7e51f31c6d5/main.spi
00:01:33 verbose #2133 > >
00:01:33 verbose #2134 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:33 verbose #2135 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:33 verbose #2136 > > │ ### try                                                                      │
00:01:33 verbose #2137 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:33 verbose #2138 > >
00:01:33 verbose #2139 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:33 verbose #2140 > > nominal try t =
00:01:33 verbose #2141 > >     `(
00:01:33 verbose #2142 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:01:33 verbose #2143 > > Fable.Core.Emit(\"_\")>]]\n#endif\ntype core_ops_Try<'T> = class end"
00:01:33 verbose #2144 > >         $'' : $'core_ops_Try<`t>'
00:01:33 verbose #2145 > >     )
00:01:33 verbose #2146 > 00:01:33   debug #149 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/004efb92b41e0c851981c2a915f8467b7e64a69eff14781d46006573576a7c0c/main.spi
00:01:34 verbose #2147 > >
00:01:34 verbose #2148 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:34 verbose #2149 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:34 verbose #2150 > > │ ### cow                                                                      │
00:01:34 verbose #2151 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:34 verbose #2152 > >
00:01:34 verbose #2153 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:34 verbose #2154 > > nominal cow t =
00:01:34 verbose #2155 > >     `(
00:01:34 verbose #2156 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:01:34 verbose #2157 > > Fable.Core.Emit(\"std::borrow::Cow<$0>\")>]]\n#endif\ntype std_borrow_Cow<'T> =
00:01:34 verbose #2158 > > class end"
00:01:34 verbose #2159 > >         $'' : $'std_borrow_Cow<`t>'
00:01:34 verbose #2160 > >     )
00:01:34 verbose #2161 > 00:01:33   debug #150 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3132a5062f23954f50aa3668b85a3be8a0f17ff19b9e144568ae0948a73f17f4/main.spi
00:01:34 verbose #2162 > >
00:01:34 verbose #2163 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:34 verbose #2164 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:34 verbose #2165 > > │ ### ref_cell                                                                 │
00:01:34 verbose #2166 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:34 verbose #2167 > >
00:01:34 verbose #2168 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:34 verbose #2169 > > nominal ref_cell t =
00:01:34 verbose #2170 > >     `(
00:01:34 verbose #2171 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:01:34 verbose #2172 > > Fable.Core.Emit(\"std::cell::RefCell<$0>\")>]]\n#endif\ntype
00:01:34 verbose #2173 > > std_cell_RefCell<'T> = class end"
00:01:34 verbose #2174 > >         $'' : $'std_cell_RefCell<`t>'
00:01:34 verbose #2175 > >     )
00:01:34 verbose #2176 > 00:01:33   debug #151 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/bcb236c0affd321b2a10f551e7531464bb33b94701f1b4f53d8a50335589ec10/main.spi
00:01:34 verbose #2177 > >
00:01:34 verbose #2178 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:34 verbose #2179 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:34 verbose #2180 > > │ ### rc                                                                       │
00:01:34 verbose #2181 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:34 verbose #2182 > >
00:01:34 verbose #2183 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:34 verbose #2184 > > nominal rc t =
00:01:34 verbose #2185 > >     `(
00:01:34 verbose #2186 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:01:34 verbose #2187 > > Fable.Core.Emit(\"std::rc::Rc<$0>\")>]]\n#endif\ntype std_rc_Rc<'T> = class end"
00:01:34 verbose #2188 > >         $'' : $'std_rc_Rc<`t>'
00:01:34 verbose #2189 > >     )
00:01:34 verbose #2190 > 00:01:34   debug #152 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b8beb0908bdf7e61a99fcd622d2b946d0dbd58e6923f78d7963cecae42227e46/main.spi
00:01:35 verbose #2191 > >
00:01:35 verbose #2192 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:35 verbose #2193 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:35 verbose #2194 > > │ ### lifetime_ref                                                             │
00:01:35 verbose #2195 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:35 verbose #2196 > >
00:01:35 verbose #2197 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:35 verbose #2198 > > nominal lifetime_ref (t : * -> *) u =
00:01:35 verbose #2199 > >     `(
00:01:35 verbose #2200 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:01:35 verbose #2201 > > Fable.Core.Emit(\"$0\")>]]\n#endif\ntype LifetimeRef<'T> = class end"
00:01:35 verbose #2202 > >         $'' : $'LifetimeRef<`(t u)>'
00:01:35 verbose #2203 > >     )
00:01:35 verbose #2204 > 00:01:34   debug #153 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d9d79564f301211e2e27dda8f12b09a24e0c347a768942bfb0266ba8d23e005c/main.spi
00:01:35 verbose #2205 > >
00:01:35 verbose #2206 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:35 verbose #2207 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:35 verbose #2208 > > │ ### lifetime_join                                                            │
00:01:35 verbose #2209 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:35 verbose #2210 > >
00:01:35 verbose #2211 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:35 verbose #2212 > > nominal lifetime_join t u =
00:01:35 verbose #2213 > >     `(
00:01:35 verbose #2214 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase; Fable.Core.Emit(\"$0 +
00:01:35 verbose #2215 > > $1\")>]]\n#endif\ntype LifetimeJoin<'T, 'U> = class end"
00:01:35 verbose #2216 > >         $'' : $'LifetimeJoin<`t, `u>'
00:01:35 verbose #2217 > >     )
00:01:35 verbose #2218 > 00:01:34   debug #154 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d1ab57fbd78cff02d3b9cfb43dceaea9a5fc5a716211ede6ce82aafd6af5de2d/main.spi
00:01:35 verbose #2219 > >
00:01:35 verbose #2220 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:35 verbose #2221 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:35 verbose #2222 > > │ ### lifetime                                                                 │
00:01:35 verbose #2223 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:35 verbose #2224 > >
00:01:35 verbose #2225 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:35 verbose #2226 > > nominal lifetime t u =
00:01:35 verbose #2227 > >     `(
00:01:35 verbose #2228 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase; Fable.Core.Emit(\"$0
00:01:35 verbose #2229 > > $1\")>]]\n#endif\ntype Lifetime<'T, 'U> = class end"
00:01:35 verbose #2230 > >         $'' : $'Lifetime<`t, `u>'
00:01:35 verbose #2231 > >     )
00:01:36 verbose #2232 > 00:01:35   debug #155 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e47dd73a90a32bcb54884ff919615a5833323b3cb1e78f06db22f60671b12a8c/main.spi
00:01:36 verbose #2233 > >
00:01:36 verbose #2234 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:36 verbose #2235 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:36 verbose #2236 > > │ ### static_lifetime                                                          │
00:01:36 verbose #2237 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:36 verbose #2238 > >
00:01:36 verbose #2239 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:36 verbose #2240 > > nominal static_lifetime =
00:01:36 verbose #2241 > >     `(
00:01:36 verbose #2242 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:01:36 verbose #2243 > > Fable.Core.Emit(\"'static\")>]]\n#endif\ntype StaticLifetime = class end"
00:01:36 verbose #2244 > >         $'' : $'StaticLifetime'
00:01:36 verbose #2245 > >     )
00:01:36 verbose #2246 > 00:01:35   debug #156 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c4922a5325c5b000c59a3ca4a425e68ae5a76f86ad7135f247d5562e87da5bb1/main.spi
00:01:36 verbose #2247 > >
00:01:36 verbose #2248 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:36 verbose #2249 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:36 verbose #2250 > > │ ### ref                                                                      │
00:01:36 verbose #2251 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:36 verbose #2252 > >
00:01:36 verbose #2253 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:36 verbose #2254 > > nominal ref t =
00:01:36 verbose #2255 > >     `(
00:01:36 verbose #2256 > >         backend_switch `(()) `({}) {
00:01:36 verbose #2257 > >             Fsharp =
00:01:36 verbose #2258 > >                 (fun () =>
00:01:36 verbose #2259 > >                     global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:01:36 verbose #2260 > > Fable.Core.Emit(\"&$0\")>]]\n#endif\ntype Ref<'T> = class end"
00:01:36 verbose #2261 > >                 ) : () -> ()
00:01:36 verbose #2262 > >         }
00:01:36 verbose #2263 > >         $'' : $'Ref<`t>'
00:01:36 verbose #2264 > >     )
00:01:36 verbose #2265 > 00:01:35   debug #157 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/dbaf2eaf0f46bf19fe4bbb9898c652c2bb3a04bf70c4cb522d110724accb4122/main.spi
00:01:36 verbose #2266 > >
00:01:36 verbose #2267 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:36 verbose #2268 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:36 verbose #2269 > > │ ### static_ref                                                               │
00:01:36 verbose #2270 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:36 verbose #2271 > >
00:01:36 verbose #2272 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:36 verbose #2273 > > nominal static_ref t = ref (lifetime static_lifetime t)
00:01:37 verbose #2274 > 00:01:36   debug #158 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/83a0b47c39562ee273172de92b8ac6106dc8fb753b4a3de7107422ebc1787938/main.spi
00:01:37 verbose #2275 > >
00:01:37 verbose #2276 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:37 verbose #2277 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:37 verbose #2278 > > │ ### weak_rc                                                                  │
00:01:37 verbose #2279 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:37 verbose #2280 > >
00:01:37 verbose #2281 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:37 verbose #2282 > > nominal weak_rc t =
00:01:37 verbose #2283 > >     `(
00:01:37 verbose #2284 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:01:37 verbose #2285 > > Fable.Core.Emit(\"std::rc::Weak<$0>\")>]]\n#endif\ntype std_rc_Weak<'T> = class
00:01:37 verbose #2286 > > end"
00:01:37 verbose #2287 > >         $'' : $'std_rc_Weak<`t>'
00:01:37 verbose #2288 > >     )
00:01:37 verbose #2289 > 00:01:36   debug #159 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1dacc665c1e5ee9bf15a020b333c874d1304bcf85a5cf17da376f50a953805ba/main.spi
00:01:37 verbose #2290 > >
00:01:37 verbose #2291 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:37 verbose #2292 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:37 verbose #2293 > > │ ### box                                                                      │
00:01:37 verbose #2294 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:37 verbose #2295 > >
00:01:37 verbose #2296 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:37 verbose #2297 > > nominal box t =
00:01:37 verbose #2298 > >     `(
00:01:37 verbose #2299 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:01:37 verbose #2300 > > Fable.Core.Emit(\"Box<$0>\")>]]\n#endif\ntype Box<'T> = class end"
00:01:37 verbose #2301 > >         $'' : $'Box<`t>'
00:01:37 verbose #2302 > >     )
00:01:37 verbose #2303 > 00:01:36   debug #160 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0d7a9159e795d76dc42f8ba6906fad78a98b85aa9ebb59f43918cf820c07f339/main.spi
00:01:37 verbose #2304 > >
00:01:37 verbose #2305 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:37 verbose #2306 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:37 verbose #2307 > > │ ### mut_cell                                                                 │
00:01:37 verbose #2308 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:37 verbose #2309 > >
00:01:37 verbose #2310 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:37 verbose #2311 > > nominal mut_cell t =
00:01:37 verbose #2312 > >     `(
00:01:37 verbose #2313 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:01:37 verbose #2314 > > Fable.Core.Emit(\"MutCell<$0>\")>]]\n#endif\ntype MutCell<'T> = class end"
00:01:37 verbose #2315 > >         $'' : $'MutCell<`t>'
00:01:37 verbose #2316 > >     )
00:01:38 verbose #2317 > 00:01:37   debug #161 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d0bd8c133577dc135f5ec4283dcfaf5aa3696a858d82a3800c450e2a4a1e605d/main.spi
00:01:38 verbose #2318 > >
00:01:38 verbose #2319 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:38 verbose #2320 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:38 verbose #2321 > > │ ### pin                                                                      │
00:01:38 verbose #2322 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:38 verbose #2323 > >
00:01:38 verbose #2324 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:38 verbose #2325 > > nominal pin t =
00:01:38 verbose #2326 > >     `(
00:01:38 verbose #2327 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:01:38 verbose #2328 > > Fable.Core.Emit(\"std::pin::Pin<$0>\")>]]\n#endif\ntype std_pin_Pin<'T> = class
00:01:38 verbose #2329 > > end"
00:01:38 verbose #2330 > >         $'' : $'std_pin_Pin<`t>'
00:01:38 verbose #2331 > >     )
00:01:38 verbose #2332 > 00:01:37   debug #162 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5a727803675cf5588a451699bd151c3d4cd5d838a1ff55d4cfbfde34e50215a6/main.spi
00:01:38 verbose #2333 > >
00:01:38 verbose #2334 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:38 verbose #2335 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:38 verbose #2336 > > │ ### dyn'                                                                     │
00:01:38 verbose #2337 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:38 verbose #2338 > >
00:01:38 verbose #2339 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:38 verbose #2340 > > nominal dyn' t =
00:01:38 verbose #2341 > >     `(
00:01:38 verbose #2342 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase; Fable.Core.Emit(\"dyn
00:01:38 verbose #2343 > > $0\")>]]\n#endif\ntype Dyn<'T> = class end"
00:01:38 verbose #2344 > >         $'' : $'Dyn<`t>'
00:01:38 verbose #2345 > >     )
00:01:38 verbose #2346 > 00:01:37   debug #163 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d47c80e4c2280aad542b8d87a5352ccae8033d14dd9666e5b2d72f9920b36893/main.spi
00:01:38 verbose #2347 > >
00:01:38 verbose #2348 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:38 verbose #2349 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:38 verbose #2350 > > │ ### fn'                                                                      │
00:01:38 verbose #2351 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:38 verbose #2352 > >
00:01:38 verbose #2353 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:38 verbose #2354 > > nominal fn' t =
00:01:38 verbose #2355 > >     `(
00:01:38 verbose #2356 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase; Fable.Core.Emit(\"Fn()
00:01:38 verbose #2357 > > -> $0\")>]]\n#endif\ntype Fn<'T> = class end"
00:01:38 verbose #2358 > >         $'' : $'Fn<`t>'
00:01:38 verbose #2359 > >     )
00:01:39 verbose #2360 > 00:01:38   debug #164 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8fef277ece319cfd51f58103b8ef87132c778a142fa96bf8a4c89ea0f283ec64/main.spi
00:01:39 verbose #2361 > >
00:01:39 verbose #2362 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:39 verbose #2363 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:39 verbose #2364 > > │ ### action_fn                                                                │
00:01:39 verbose #2365 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:39 verbose #2366 > >
00:01:39 verbose #2367 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:39 verbose #2368 > > nominal action_fn t =
00:01:39 verbose #2369 > >     `(
00:01:39 verbose #2370 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:01:39 verbose #2371 > > Fable.Core.Emit(\"Fn($0)\")>]]\n#endif\ntype ActionFn<'T> = class end"
00:01:39 verbose #2372 > >         $'' : $'ActionFn<`t>'
00:01:39 verbose #2373 > >     )
00:01:39 verbose #2374 > 00:01:38   debug #165 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3e56ae656f29419f4606d1e4874982fd19403ac5b7749dbd0fe4d1c71f3512b2/main.spi
00:01:39 verbose #2375 > >
00:01:39 verbose #2376 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:39 verbose #2377 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:39 verbose #2378 > > │ ### action_fn2                                                               │
00:01:39 verbose #2379 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:39 verbose #2380 > >
00:01:39 verbose #2381 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:39 verbose #2382 > > nominal action_fn2 t u =
00:01:39 verbose #2383 > >     `(
00:01:39 verbose #2384 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:01:39 verbose #2385 > > Fable.Core.Emit(\"Fn($0, $1)\")>]]\n#endif\ntype ActionFn2<'T, 'U> = class end"
00:01:39 verbose #2386 > >         $'' : $'ActionFn2<`t, `u>'
00:01:39 verbose #2387 > >     )
00:01:39 verbose #2388 > 00:01:39   debug #166 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c4cc6c9cdfe9b7cac393241ccb2aee36472918f54cfbfd72a70db08a70b24375/main.spi
00:01:39 verbose #2389 > >
00:01:39 verbose #2390 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:39 verbose #2391 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:39 verbose #2392 > > │ ### fn_once                                                                  │
00:01:39 verbose #2393 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:39 verbose #2394 > >
00:01:39 verbose #2395 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:39 verbose #2396 > > nominal fn_once t =
00:01:39 verbose #2397 > >     `(
00:01:39 verbose #2398 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:01:39 verbose #2399 > > Fable.Core.Emit(\"FnOnce() -> $0\")>]]\n#endif\ntype FnOnce<'T> = class end"
00:01:39 verbose #2400 > >         $'' : $'FnOnce<`t>'
00:01:39 verbose #2401 > >     )
00:01:40 verbose #2402 > 00:01:39   debug #167 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5a5b890ecc0ef97f8223b2b6c280939a2beb35e0041262846d0f54d61ab6dfe5/main.spi
00:01:40 verbose #2403 > >
00:01:40 verbose #2404 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:40 verbose #2405 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:40 verbose #2406 > > │ ### fn_unit                                                                  │
00:01:40 verbose #2407 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:40 verbose #2408 > >
00:01:40 verbose #2409 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:40 verbose #2410 > > nominal fn_unit =
00:01:40 verbose #2411 > >     `(
00:01:40 verbose #2412 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:01:40 verbose #2413 > > Fable.Core.Emit(\"Fn()\")>]]\n#endif\ntype FnUnit = class end"
00:01:40 verbose #2414 > >         $'' : $'FnUnit'
00:01:40 verbose #2415 > >     )
00:01:40 verbose #2416 > 00:01:39   debug #168 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7588293f139a2464a930bdab131722ef3f712776f98c3a9ebf29264f948e43f9/main.spi
00:01:40 verbose #2417 > >
00:01:40 verbose #2418 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:40 verbose #2419 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:40 verbose #2420 > > │ ### func0                                                                    │
00:01:40 verbose #2421 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:40 verbose #2422 > >
00:01:40 verbose #2423 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:40 verbose #2424 > > nominal func0 t =
00:01:40 verbose #2425 > >     `(
00:01:40 verbose #2426 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:01:40 verbose #2427 > > Fable.Core.Emit(\"Func0<$0>\")>]]\n#endif\ntype Func0<'T> = class end"
00:01:40 verbose #2428 > >         $'' : $'Func0<`t>'
00:01:40 verbose #2429 > >     )
00:01:40 verbose #2430 > 00:01:40   debug #169 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fce8f9de56e561d2dc66fbd7d0aa68b0573c9bb4c4e6605b9baf766174edc196/main.spi
00:01:40 verbose #2431 > >
00:01:40 verbose #2432 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:40 verbose #2433 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:40 verbose #2434 > > │ ### func1                                                                    │
00:01:40 verbose #2435 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:40 verbose #2436 > >
00:01:40 verbose #2437 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:40 verbose #2438 > > nominal func1 t u =
00:01:40 verbose #2439 > >     `(
00:01:40 verbose #2440 > >         typecase t with
00:01:40 verbose #2441 > >         | () => `func0 `u
00:01:40 verbose #2442 > >         | _ =>
00:01:40 verbose #2443 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:01:40 verbose #2444 > > Fable.Core.Emit(\"Func1<$0, $1>\")>]]\n#endif\ntype Func0<'T, 'U> = class end"
00:01:40 verbose #2445 > >             $'' : $'Func0<`t, `u>'
00:01:40 verbose #2446 > >     )
00:01:41 verbose #2447 > 00:01:40   debug #170 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d840144e35ab9c14dfa10d811b461540aaa494858359d4a129623913d778e366/main.spi
00:01:41 verbose #2448 > >
00:01:41 verbose #2449 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:41 verbose #2450 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:41 verbose #2451 > > │ ### impl                                                                     │
00:01:41 verbose #2452 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:41 verbose #2453 > >
00:01:41 verbose #2454 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:41 verbose #2455 > > nominal impl t =
00:01:41 verbose #2456 > >     `(
00:01:41 verbose #2457 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase; Fable.Core.Emit(\"impl
00:01:41 verbose #2458 > > $0\")>]]\n#endif\ntype Impl<'T> = class end"
00:01:41 verbose #2459 > >         $'' : $'Impl<`t>'
00:01:41 verbose #2460 > >     )
00:01:41 verbose #2461 > 00:01:40   debug #171 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c7f597e684e492b219fe976c8ff391aa1f864c4d8d12af10c75259a70346847f/main.spi
00:01:41 verbose #2462 > >
00:01:41 verbose #2463 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:41 verbose #2464 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:41 verbose #2465 > > │ ### mut'                                                                     │
00:01:41 verbose #2466 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:41 verbose #2467 > >
00:01:41 verbose #2468 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:41 verbose #2469 > > nominal mut' t =
00:01:41 verbose #2470 > >     `(
00:01:41 verbose #2471 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase; Fable.Core.Emit(\"mut
00:01:41 verbose #2472 > > $0\")>]]\n#endif\ntype Mut<'T> = class end"
00:01:41 verbose #2473 > >         $'' : $'Mut<`t>'
00:01:41 verbose #2474 > >     )
00:01:41 verbose #2475 > 00:01:41   debug #172 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d8d83925607a44820c9dfd86e929e509a40f96916563f40ebe3b812d02dd9fd2/main.spi
00:01:41 verbose #2476 > >
00:01:41 verbose #2477 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:41 verbose #2478 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:41 verbose #2479 > > │ ### send                                                                     │
00:01:41 verbose #2480 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:41 verbose #2481 > >
00:01:41 verbose #2482 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:41 verbose #2483 > > nominal send t =
00:01:41 verbose #2484 > >     `(
00:01:41 verbose #2485 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:01:41 verbose #2486 > > Fable.Core.Emit(\"Send\")>]]\n#endif\ntype Send<'T> = class end"
00:01:41 verbose #2487 > >         $'' : lifetime_join t $'Send<`t>'
00:01:41 verbose #2488 > >     )
00:01:42 verbose #2489 > 00:01:41   debug #173 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/acec227c403ef5f605fd2994cd4e6144ef339dc17a6e7905db44be2a4a500b0a/main.spi
00:01:42 verbose #2490 > >
00:01:42 verbose #2491 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:42 verbose #2492 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:42 verbose #2493 > > │ ### emit_expr                                                                │
00:01:42 verbose #2494 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:42 verbose #2495 > >
00:01:42 verbose #2496 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:42 verbose #2497 > > inl emit_expr forall a t. (args : a) (code : string) : t =
00:01:42 verbose #2498 > >     $'Fable.Core.RustInterop.emitRustExpr !args !code '
00:01:42 verbose #2499 > 00:01:41   debug #174 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b2dcc35f9e3ed6ff8746ce921830da26cd9b68ec0ecc34bc9079d3831ff5c047/main.spi
00:01:42 verbose #2500 > >
00:01:42 verbose #2501 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:42 verbose #2502 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:42 verbose #2503 > > │ ### (~!\\)                                                                   │
00:01:42 verbose #2504 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:42 verbose #2505 > >
00:01:42 verbose #2506 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:42 verbose #2507 > > inl (~!\) forall t. (code : string) : t =
00:01:42 verbose #2508 > >     emit_expr () code
00:01:42 verbose #2509 > 00:01:42   debug #175 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9d3568ea2772f1490accc066ec11071fe436dd25722fba064803ebdb85c710d8/main.spi
00:01:43 verbose #2510 > >
00:01:43 verbose #2511 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:43 verbose #2512 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:43 verbose #2513 > > │ ### (~!\\\\)                                                                 │
00:01:43 verbose #2514 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:43 verbose #2515 > >
00:01:43 verbose #2516 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:43 verbose #2517 > > inl (~!\\) forall t u. ((args : t), (code : string)) : u =
00:01:43 verbose #2518 > >     emit_expr args code
00:01:43 verbose #2519 > 00:01:42   debug #176 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/52edab8b403db56e140fc5aab07f5175fdb0b2e2dc05a77fe3f2c590a92bfbea/main.spi
00:01:43 verbose #2520 > >
00:01:43 verbose #2521 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:43 verbose #2522 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:43 verbose #2523 > > │ ### emit                                                                     │
00:01:43 verbose #2524 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:43 verbose #2525 > >
00:01:43 verbose #2526 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:43 verbose #2527 > > inl emit forall t. (x : t) : t =
00:01:43 verbose #2528 > >     !\\(x, $'"$0"')
00:01:43 verbose #2529 > 00:01:42   debug #177 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1b7953ecd6af954d4f322aa9f9c353a6e1c380e67b27d05c22e0d334833d342d/main.spi
00:01:43 verbose #2530 > >
00:01:43 verbose #2531 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:43 verbose #2532 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:43 verbose #2533 > > │ ### emit'                                                                    │
00:01:43 verbose #2534 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:43 verbose #2535 > >
00:01:43 verbose #2536 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:43 verbose #2537 > > inl emit' forall t. (x : t) : t =
00:01:43 verbose #2538 > >     !\\(x, $'"let !x = $0"')
00:01:43 verbose #2539 > >     x
00:01:43 verbose #2540 > 00:01:43   debug #178 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/204ba6cb2f9ec702c207a6042618e7f9920812df9d8f0416b7fe0e9f52fbbbc7/main.spi
00:01:44 verbose #2541 > >
00:01:44 verbose #2542 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:44 verbose #2543 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:44 verbose #2544 > > │ ### clone                                                                    │
00:01:44 verbose #2545 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:44 verbose #2546 > >
00:01:44 verbose #2547 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:44 verbose #2548 > > inl clone forall t. (x : t) : t =
00:01:44 verbose #2549 > >     !\\(x, $'"$0.clone()"')
00:01:44 verbose #2550 > 00:01:43   debug #179 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/aed8ffa91c937c5044d5d7e4a47ab49d4008252715a4ba54f9798d431310e28e/main.spi
00:01:44 verbose #2551 > >
00:01:44 verbose #2552 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:44 verbose #2553 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:44 verbose #2554 > > │ ### dbg                                                                      │
00:01:44 verbose #2555 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:44 verbose #2556 > >
00:01:44 verbose #2557 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:44 verbose #2558 > > inl dbg forall t. (x : t) : t =
00:01:44 verbose #2559 > >     !\\(x, $'"dbg\!($0)"')
00:01:44 verbose #2560 > 00:01:43   debug #180 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/56513f39b75cbbf9c404d316ed23fa09f023cb8d8526abf134578cbe56e69dc8/main.spi
00:01:44 verbose #2561 > >
00:01:44 verbose #2562 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:44 verbose #2563 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:44 verbose #2564 > > │ ### new_box                                                                  │
00:01:44 verbose #2565 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:44 verbose #2566 > >
00:01:44 verbose #2567 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:44 verbose #2568 > > inl new_box forall t. (x : t) : box t =
00:01:44 verbose #2569 > >     !\\(x, $'"Box::new($0)"')
00:01:45 verbose #2570 > 00:01:44   debug #181 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b0d417db5061b1587b4bcd70901c98399a2ab190267c2cb29a3346fd1c1c28a6/main.spi
00:01:45 verbose #2571 > >
00:01:45 verbose #2572 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:45 verbose #2573 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:45 verbose #2574 > > │ ### new_rc                                                                   │
00:01:45 verbose #2575 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:45 verbose #2576 > >
00:01:45 verbose #2577 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:45 verbose #2578 > > inl new_rc forall t. (x : t) : rc t =
00:01:45 verbose #2579 > >     !\\(x, $'"std::rc::Rc::new($0)"')
00:01:45 verbose #2580 > 00:01:44   debug #182 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/42c45b90cb5e07c99f69efaf4da1422c7d643e909ba2b280742022e1314166ab/main.spi
00:01:45 verbose #2581 > >
00:01:45 verbose #2582 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:45 verbose #2583 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:45 verbose #2584 > > │ ### rc_clone                                                                 │
00:01:45 verbose #2585 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:45 verbose #2586 > >
00:01:45 verbose #2587 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:45 verbose #2588 > > inl rc_clone forall t. (x : rc t) : rc t =
00:01:45 verbose #2589 > >     !\\(x, $'"std::rc::Rc::clone(&$0)"')
00:01:45 verbose #2590 > 00:01:44   debug #183 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/744a02198b55660c50205de1608d8145f28c5fd843fac0d0aaa4d7bc6312fdad/main.spi
00:01:45 verbose #2591 > >
00:01:45 verbose #2592 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:45 verbose #2593 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:45 verbose #2594 > > │ ### rc_unwrap_or_clone                                                       │
00:01:45 verbose #2595 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:45 verbose #2596 > >
00:01:45 verbose #2597 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:45 verbose #2598 > > inl rc_unwrap_or_clone forall t. (x : rc t) : t =
00:01:45 verbose #2599 > >     !\\(x, $'"std::rc::Rc::unwrap_or_clone($0)"')
00:01:46 verbose #2600 > 00:01:45   debug #184 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ead939232b1c73a7e77cedbe54393c474269dab19c54483553011a21c5be7feb/main.spi
00:01:46 verbose #2601 > >
00:01:46 verbose #2602 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:46 verbose #2603 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:46 verbose #2604 > > │ ### rc_downgrade                                                             │
00:01:46 verbose #2605 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:46 verbose #2606 > >
00:01:46 verbose #2607 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:46 verbose #2608 > > inl rc_downgrade forall t. (x : rc t) : weak_rc t =
00:01:46 verbose #2609 > >     !\\(x, $'"std::rc::Rc::downgrade(&$0)"')
00:01:46 verbose #2610 > 00:01:45   debug #185 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6a333d9c4946253364d905ba3d259e61d2bbb259f26aba6ac7373075cb04caff/main.spi
00:01:46 verbose #2611 > >
00:01:46 verbose #2612 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:46 verbose #2613 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:46 verbose #2614 > > │ ### new_ref_cell                                                             │
00:01:46 verbose #2615 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:46 verbose #2616 > >
00:01:46 verbose #2617 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:46 verbose #2618 > > inl new_ref_cell forall t. (x : t) : ref_cell t =
00:01:46 verbose #2619 > >     !\\(x, $'"std::cell::RefCell::new($0)"')
00:01:46 verbose #2620 > 00:01:46   debug #186 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0ad93aaad8ec072026826e45624cffa5cd63b99a51f3450b85a4dbf2a2761b19/main.spi
00:01:47 verbose #2621 > >
00:01:47 verbose #2622 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:47 verbose #2623 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:47 verbose #2624 > > │ ### ref_cell_borrow                                                          │
00:01:47 verbose #2625 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:47 verbose #2626 > >
00:01:47 verbose #2627 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:47 verbose #2628 > > inl ref_cell_borrow forall t. (x : rc (ref_cell t)) : t =
00:01:47 verbose #2629 > >     !\\(x, $'"*std::cell::RefCell::borrow(&std::rc::Rc::clone(&$0))"')
00:01:47 verbose #2630 > 00:01:46   debug #187 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/265b4d5de2b3d666fb5bc0af5d4b92a5fcc87b36abff4599c5cb3ece24710794/main.spi
00:01:47 verbose #2631 > >
00:01:47 verbose #2632 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:47 verbose #2633 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:47 verbose #2634 > > │ ### ref_cell_borrow_mut                                                      │
00:01:47 verbose #2635 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:47 verbose #2636 > >
00:01:47 verbose #2637 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:47 verbose #2638 > > inl ref_cell_borrow_mut forall t. (x : rc (ref_cell t)) : mut' t =
00:01:47 verbose #2639 > >     !\\(x, $'"*std::cell::RefCell::borrow_mut(&std::rc::Rc::clone(&$0))"')
00:01:47 verbose #2640 > 00:01:46   debug #188 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e6af5ccdb87d3f485ed3f02969b925f29e5a3cb409b278401dd1e180cd355416/main.spi
00:01:47 verbose #2641 > >
00:01:47 verbose #2642 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:47 verbose #2643 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:47 verbose #2644 > > │ ### to_mut                                                                   │
00:01:47 verbose #2645 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:47 verbose #2646 > >
00:01:47 verbose #2647 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:47 verbose #2648 > > inl to_mut forall t. (x : t) : t =
00:01:47 verbose #2649 > >     (!\($'"true; // 1"') : bool) |> ignore
00:01:47 verbose #2650 > >     (!\($'"true; let mut !x = !x"') : bool) |> ignore
00:01:47 verbose #2651 > >     (!\($'"true; !x"') : bool) |> ignore
00:01:47 verbose #2652 > >     !\($'"!x"')
00:01:47 verbose #2653 > >     // inl result = !\($'"!x"') : mut' t
00:01:47 verbose #2654 > >     // !\($'"!result"')
00:01:47 verbose #2655 > >     // inl result = !\($'"*/ // a"') : mut' t
00:01:47 verbose #2656 > >     // inl result = !\($'"!x"') : mut' t
00:01:47 verbose #2657 > >     // result |> fun x => $'!x |> unbox // b'
00:01:48 verbose #2658 > 00:01:47   debug #189 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fe06c672d5f5442b39e705a5c6a33184af6adf61b49d601e2abe5ca3df04646a/main.spi
00:01:48 verbose #2659 > >
00:01:48 verbose #2660 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:48 verbose #2661 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:48 verbose #2662 > > │ ### ref_map                                                                  │
00:01:48 verbose #2663 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:48 verbose #2664 > >
00:01:48 verbose #2665 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:48 verbose #2666 > > inl ref_map forall t u. (fn : t -> u) (x : ref t) : ref u =
00:01:48 verbose #2667 > >     !\($'"!fn(!x)"')
00:01:48 verbose #2668 > 00:01:47   debug #190 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/724f3c5ab16eccb2be295ba639217ec0c96a7e636b2e9c3469afaf0830820789/main.spi
00:01:48 verbose #2669 > >
00:01:48 verbose #2670 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:48 verbose #2671 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:48 verbose #2672 > > │ ### ref_invoke                                                               │
00:01:48 verbose #2673 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:48 verbose #2674 > >
00:01:48 verbose #2675 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:48 verbose #2676 > > inl ref_invoke forall t u. (fn : t -> u) (ref : ref t) : u =
00:01:48 verbose #2677 > >     !\\(fn, $'"$0(!ref.clone())"')
00:01:48 verbose #2678 > 00:01:47   debug #191 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8a30b766bf8c7ed573830e1101be35ad5cd22614bc0ee71ec0edfc9e1b25ad44/main.spi
00:01:48 verbose #2679 > >
00:01:48 verbose #2680 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:48 verbose #2681 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:48 verbose #2682 > > │ ### cow_as_ref                                                               │
00:01:48 verbose #2683 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:48 verbose #2684 > >
00:01:48 verbose #2685 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:48 verbose #2686 > > inl cow_as_ref forall t. (s : cow t) : ref t =
00:01:48 verbose #2687 > >     !\\(s, $'"$0.as_ref()"')
00:01:49 verbose #2688 > 00:01:48   debug #192 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5c0e1db63a9e2c781b3413964856da0714ee5f85d67d2636e660cacac309eb4a/main.spi
00:01:49 verbose #2689 > >
00:01:49 verbose #2690 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:49 verbose #2691 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:49 verbose #2692 > > │ ### from_mut                                                                 │
00:01:49 verbose #2693 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:49 verbose #2694 > >
00:01:49 verbose #2695 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:49 verbose #2696 > > inl from_mut forall t. (x : mut' t) : t =
00:01:49 verbose #2697 > >     !\($'"!x"')
00:01:49 verbose #2698 > 00:01:48   debug #193 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2a21416a3d227f2fc09ca33d3f64719f3eb8c8fee2a668342400f637f8a1ac6a/main.spi
00:01:49 verbose #2699 > >
00:01:49 verbose #2700 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:49 verbose #2701 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:49 verbose #2702 > > │ ### box_fn                                                                   │
00:01:49 verbose #2703 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:49 verbose #2704 > >
00:01:49 verbose #2705 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:49 verbose #2706 > > inl box_fn forall t. (x : () -> ()) : box t =
00:01:49 verbose #2707 > >     inl x = join x
00:01:49 verbose #2708 > >     !\($'"Box::new(move || !x())"')
00:01:49 verbose #2709 > 00:01:48   debug #194 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/df3b6f9298365e61abc83529ef0c5a510218ce687f206200fb2fba3ffb7818ca/main.spi
00:01:49 verbose #2710 > >
00:01:49 verbose #2711 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:49 verbose #2712 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:49 verbose #2713 > > │ ### box_pin                                                                  │
00:01:49 verbose #2714 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:49 verbose #2715 > >
00:01:49 verbose #2716 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:49 verbose #2717 > > inl box_pin forall t. (x : t) : pin (box t) =
00:01:49 verbose #2718 > >     !\\(x, $'"Box::pin($0)"')
00:01:50 verbose #2719 > 00:01:49   debug #195 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/bdf97473534335c189679ab39df773f90c2d954a36b6dc6f7642d6c6fc892971/main.spi
00:01:50 verbose #2720 > >
00:01:50 verbose #2721 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:50 verbose #2722 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:50 verbose #2723 > > │ ### to_ref                                                                   │
00:01:50 verbose #2724 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:50 verbose #2725 > >
00:01:50 verbose #2726 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:50 verbose #2727 > > inl to_ref forall t. (x : t) : ref t =
00:01:50 verbose #2728 > >     !\\(x, $'"&$0"')
00:01:50 verbose #2729 > 00:01:49   debug #196 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/84b0de0b775848f44371a20cdc77f72e0f00ed032446de7915c42715f118e969/main.spi
00:01:50 verbose #2730 > >
00:01:50 verbose #2731 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:50 verbose #2732 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:50 verbose #2733 > > │ ### deref                                                                    │
00:01:50 verbose #2734 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:50 verbose #2735 > >
00:01:50 verbose #2736 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:50 verbose #2737 > > inl deref forall t. (ref : ref t) : t =
00:01:50 verbose #2738 > >     !\\(ref, $'"*$0"')
00:01:50 verbose #2739 > 00:01:50   debug #197 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1efe3c4f3f7194d0e9be85768a5687772e5f0c834316e05a268eec39ea480002/main.spi
00:01:51 verbose #2740 > >
00:01:51 verbose #2741 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:51 verbose #2742 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:51 verbose #2743 > > │ ### ops_deref                                                                │
00:01:51 verbose #2744 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:51 verbose #2745 > >
00:01:51 verbose #2746 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:51 verbose #2747 > > inl ops_deref forall t. (ref : t) : t =
00:01:51 verbose #2748 > >     !\\(ref, $'"core::ops::Deref::deref(&$0)"')
00:01:51 verbose #2749 > 00:01:50   debug #198 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/93a2ccb2a118ff350861000c488740ad91e381926d063aec62a832e34bccca8c/main.spi
00:01:51 verbose #2750 > >
00:01:51 verbose #2751 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:51 verbose #2752 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:51 verbose #2753 > > │ ### func0_invoke                                                             │
00:01:51 verbose #2754 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:51 verbose #2755 > >
00:01:51 verbose #2756 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:51 verbose #2757 > > inl func0_invoke forall t. (x : func0 t) : t =
00:01:51 verbose #2758 > >     !\\(x, $'"$0()"')
00:01:51 verbose #2759 > 00:01:50   debug #199 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/375d6636bbdbc6cd159d347675878534e970449894fa64cb976242218cb0ba61/main.spi
00:01:51 verbose #2760 > >
00:01:51 verbose #2761 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:51 verbose #2762 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:51 verbose #2763 > > │ ### func0_move                                                               │
00:01:51 verbose #2764 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:51 verbose #2765 > >
00:01:51 verbose #2766 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:51 verbose #2767 > > inl func0_move forall t. (fn : func0 t) : t =
00:01:51 verbose #2768 > >     inl fn = join fn
00:01:51 verbose #2769 > >     !\($'"(move || !fn())()"')
00:01:51 verbose #2770 > 00:01:51   debug #200 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5a26a2b039af5cdc60d7132eb605d874fcc45d747802de42e674e295568cb46d/main.spi
00:01:52 verbose #2771 > >
00:01:52 verbose #2772 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:52 verbose #2773 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:52 verbose #2774 > > │ ### move                                                                     │
00:01:52 verbose #2775 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:52 verbose #2776 > >
00:01:52 verbose #2777 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:52 verbose #2778 > > inl move forall t. (fn : () -> t) : func0 t =
00:01:52 verbose #2779 > >     !\\(fn, $'"Func0::new(move || $0())"')
00:01:52 verbose #2780 > 00:01:51   debug #201 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2b38c98ad26e2f56a0c8281110fca52a8e99714b19f3dea741c7542589a4c7c4/main.spi
00:01:52 verbose #2781 > >
00:01:52 verbose #2782 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:52 verbose #2783 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:52 verbose #2784 > > │ ### to_static_ref_unbox                                                      │
00:01:52 verbose #2785 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:52 verbose #2786 > >
00:01:52 verbose #2787 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:52 verbose #2788 > > inl to_static_ref_unbox forall t. (x : ref t) : static_ref t =
00:01:52 verbose #2789 > >     x |> unbox
00:01:52 verbose #2790 > 00:01:51   debug #202 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3321ff64752d9a5054ee221d59a7be9b2a09bc06d18bda233e6b91038e9b28d0/main.spi
00:01:52 verbose #2791 > >
00:01:52 verbose #2792 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:52 verbose #2793 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:52 verbose #2794 > > │ ### from_static_ref_unbox                                                    │
00:01:52 verbose #2795 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:52 verbose #2796 > >
00:01:52 verbose #2797 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:52 verbose #2798 > > inl from_static_ref_unbox forall t. (x : static_ref t) : ref t =
00:01:52 verbose #2799 > >     x |> unbox
00:01:52 verbose #2800 > 00:01:52   debug #203 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/74b92dfae68da881284ec97dc9c7298669d16943cb5d72d91be597be522b35c1/main.spi
00:01:53 verbose #2801 > >
00:01:53 verbose #2802 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:53 verbose #2803 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:53 verbose #2804 > > │ ### box_leak                                                                 │
00:01:53 verbose #2805 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:53 verbose #2806 > >
00:01:53 verbose #2807 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:53 verbose #2808 > > inl box_leak forall t. (x : box t) : static_ref (mut' t) =
00:01:53 verbose #2809 > >     !\\(x, $'"Box::leak($0)"')
00:01:53 verbose #2810 > 00:01:52   debug #204 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/090305294ce563f278ee90d8e9c3419ba09e8bf2a0e1e2447d0632431e1c21a6/main.spi
00:01:53 verbose #2811 > >
00:01:53 verbose #2812 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:53 verbose #2813 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:53 verbose #2814 > > │ ### drop                                                                     │
00:01:53 verbose #2815 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:53 verbose #2816 > >
00:01:53 verbose #2817 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:53 verbose #2818 > > inl drop forall t. (x : t) : () =
00:01:53 verbose #2819 > >     !\\(x, $'"drop($0)"')
00:01:53 verbose #2820 > 00:01:52   debug #205 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a79dcb5de359f0808d9c7b06522db7dc14bd19c193bee9e08205fc1dd5fb4c58/main.spi
00:01:53 verbose #2821 > >
00:01:53 verbose #2822 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:53 verbose #2823 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:53 verbose #2824 > > │ ### break                                                                    │
00:01:53 verbose #2825 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:53 verbose #2826 > >
00:01:53 verbose #2827 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:53 verbose #2828 > > inl break () : () =
00:01:53 verbose #2829 > >     (!\($'"true; break"') : bool) |> ignore
00:01:53 verbose #2830 > 00:01:53   debug #206 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/128103198a8c1371aaa44ee9441e86795dfec0ed713c1316fcc2d00a90b4f026/main.spi
00:01:54 verbose #2831 > >
00:01:54 verbose #2832 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:54 verbose #2833 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:54 verbose #2834 > > │ ### fix_closure'                                                             │
00:01:54 verbose #2835 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:54 verbose #2836 > >
00:01:54 verbose #2837 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:54 verbose #2838 > > inl fix_closure' (depth : u8 * u8) x =
00:01:54 verbose #2839 > >     inl rec loop text (acc : string) n : string =
00:01:54 verbose #2840 > >         if n <= 0
00:01:54 verbose #2841 > >         then acc
00:01:54 verbose #2842 > >         else loop text (acc +. text) (n - 1)
00:01:54 verbose #2843 > >     inl a = depth |> fst |> loop "}" ""
00:01:54 verbose #2844 > >     inl b = depth |> snd |> loop "{" ""
00:01:54 verbose #2845 > >     $'"!x " + !a + "); " + !b + " //"'
00:01:54 verbose #2846 > 00:01:53   debug #207 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/38edb7f641b2fc5090f7bcd31ca3f18d1563ac808af3cd7a2bd6d7087af3148a/main.spi
00:01:54 verbose #2847 > >
00:01:54 verbose #2848 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:54 verbose #2849 > > //// test
00:01:54 verbose #2850 > >
00:01:54 verbose #2851 > > fix_closure' (3, 2) 0i32
00:01:54 verbose #2852 > > |> _assert_eq "0 }}}); {{ //"
00:01:54 verbose #2853 > 00:01:53   debug #208 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c1f8f170fcfb148352ed51fb8fe404e22825b466a786a93d1f2515bdda748ad2/main.spi
00:01:55 verbose #2854 > >
00:01:55 verbose #2855 > > ╭─[ 1.10s - stdout ]───────────────────────────────────────────────────────────╮
00:01:55 verbose #2856 > > │ assert_eq / actual: "0 }}}); {{ //" / expected: "0 }}}); {{ //"              │
00:01:55 verbose #2857 > > │                                                                              │
00:01:55 verbose #2858 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:55 verbose #2859 > >
00:01:55 verbose #2860 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:55 verbose #2861 > > //// test
00:01:55 verbose #2862 > >
00:01:55 verbose #2863 > > fix_closure' (0, 0) ()
00:01:55 verbose #2864 > > |> _assert_eq "() );  //"
00:01:55 verbose #2865 > 00:01:54   debug #209 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/36891adb03d92be68cf6ced81317bc3ebc780b139f220bf0f48ee5b78b3f1af7/main.spi
00:01:55 verbose #2866 > >
00:01:55 verbose #2867 > > ╭─[ 357.71ms - stdout ]────────────────────────────────────────────────────────╮
00:01:55 verbose #2868 > > │ assert_eq / actual: "() );  //" / expected: "() );  //"                      │
00:01:55 verbose #2869 > > │                                                                              │
00:01:55 verbose #2870 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:55 verbose #2871 > >
00:01:55 verbose #2872 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:55 verbose #2873 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:55 verbose #2874 > > │ ### fix_closure                                                              │
00:01:55 verbose #2875 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:55 verbose #2876 > >
00:01:55 verbose #2877 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:55 verbose #2878 > > inl fix_closure depth x =
00:01:55 verbose #2879 > >     inl code = fix_closure' depth x
00:01:55 verbose #2880 > >     !\code
00:01:56 verbose #2881 > 00:01:55   debug #210 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/70c3b2000b8cea631804718ff040bee48c7aeb7f57b6cfa3148b1d807fbea7d7/main.spi
00:01:56 verbose #2882 > >
00:01:56 verbose #2883 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:56 verbose #2884 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:56 verbose #2885 > > │ ### loop                                                                     │
00:01:56 verbose #2886 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:56 verbose #2887 > >
00:01:56 verbose #2888 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:56 verbose #2889 > > inl loop (depth : i32) (fn : () -> ()) : () =
00:01:56 verbose #2890 > >     (!\($'"true; loop { // rust.loop"') : bool) |> ignore
00:01:56 verbose #2891 > >     fn ()
00:01:56 verbose #2892 > >
00:01:56 verbose #2893 > >     listm.init depth id
00:01:56 verbose #2894 > >     |> listm.iter fun n =>
00:01:56 verbose #2895 > >         (!\($'"true; } // rust.loop"') : bool) |> ignore
00:01:56 verbose #2896 > >
00:01:56 verbose #2897 > >     (!\($'"true; } // rust.loop"') : bool) |> ignore
00:01:56 verbose #2898 > >
00:01:56 verbose #2899 > >     listm.init depth id
00:01:56 verbose #2900 > >     |> listm.iter fun n =>
00:01:56 verbose #2901 > >         (!\($'"true; { // rust.loop"') : bool) |> ignore
00:01:56 verbose #2902 > 00:01:55   debug #211 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/770cb5157227dad6b0a7b0a7573ba0af56705253710dc1efeff7a76d718aac31/main.spi
00:01:56 verbose #2903 > >
00:01:56 verbose #2904 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:56 verbose #2905 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:56 verbose #2906 > > │ ### run_tests                                                                │
00:01:56 verbose #2907 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:56 verbose #2908 > >
00:01:56 verbose #2909 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:56 verbose #2910 > > inl run_tests tests =
00:01:56 verbose #2911 > >     (!\($'"true; () //"') : bool) |> ignore
00:01:56 verbose #2912 > >
00:01:56 verbose #2913 > >     tests
00:01:56 verbose #2914 > >     |> listm.iter fun name, fn =>
00:01:56 verbose #2915 > >         !\($'"} /* /*"')
00:01:56 verbose #2916 > >         (!\($'$"*/ #[[test]] fn " + !name + "() { //"') : bool) |> ignore
00:01:56 verbose #2917 > >         fn name |> ignore
00:01:56 verbose #2918 > >
00:01:56 verbose #2919 > >     tests
00:01:56 verbose #2920 > >     |> listm.iter fun name, fn =>
00:01:56 verbose #2921 > >         !\($'"{ //"') : ()
00:01:56 verbose #2922 > 00:01:56   debug #212 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/da3cf530b48f1012d6ce2c533d3b13f7062f74a1b26faef3f024e7aefeded2a6/main.spi
00:01:56 verbose #2923 > >
00:01:56 verbose #2924 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:56 verbose #2925 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:56 verbose #2926 > > │ ### capture                                                                  │
00:01:56 verbose #2927 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:56 verbose #2928 > >
00:01:56 verbose #2929 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:56 verbose #2930 > > inl capture forall t. (fn : () -> t) : t =
00:01:56 verbose #2931 > >     (!\($'"true; let _result = (|| { //"') : bool) |> ignore
00:01:56 verbose #2932 > >     (!\\(fn (), $'"true; $0 })()"') : bool) |> ignore
00:01:56 verbose #2933 > >     !\($'"_result"')
00:01:57 verbose #2934 > 00:01:56   debug #213 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c455de16bdbb7cec6c82bd1e6358773ca13bbb3c801f59424921c21f41f51cac/main.spi
00:01:57 verbose #2935 > >
00:01:57 verbose #2936 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:57 verbose #2937 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:57 verbose #2938 > > │ ### capture_move                                                             │
00:01:57 verbose #2939 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:57 verbose #2940 > >
00:01:57 verbose #2941 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:57 verbose #2942 > > inl capture_move forall t. (fn : () -> t) : t =
00:01:57 verbose #2943 > >     (!\($'"true; let _result = (move || { //"') : bool) |> ignore
00:01:57 verbose #2944 > >     (!\\(fn (), $'"true; $0 })()"') : bool) |> ignore
00:01:57 verbose #2945 > >     !\($'"_result"')
00:01:57 verbose #2946 > 00:01:56   debug #214 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c7a39529476db7aa486a0066aa54811123b5cfcb121eee22093457f930b75949/main.spi
00:01:57 verbose #2947 > 00:00:31 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 37758 }
00:01:57 verbose #2948 > 00:00:31   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/spiral/rust.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/rust.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:02:00 verbose #2949 > 00:00:33 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/rust.dib.ipynb to html
00:02:00 verbose #2950 > 00:00:33 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:02:00 verbose #2951 > 00:00:33 verbose #7 !   validate(nb)
00:02:02 verbose #2952 > 00:00:35 verbose #8 ! [NbConvertApp] Writing 392186 bytes to c:\home\git\polyglot\lib\spiral\rust.dib.html
00:02:02 verbose #2953 > 00:00:35 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 639 }
00:02:02 verbose #2954 > 00:00:35   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 639 }
00:02:02 verbose #2955 > 00:00:35   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/rust.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/rust.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:02:03 verbose #2956 > 00:00:36 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:02:03 verbose #2957 > 00:00:36   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:02:03 verbose #2958 > 00:00:37   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 38456 }
00:02:03   debug #2959 runtime.execute_with_options_async / { exit_code = 0; output_length = 42607 }
00:02:03   debug #4 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path rust.dib --retries 3
00:02:03   debug #2960 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path testing.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:02:03 verbose #2961 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "testing.dib", "--retries", "3"])) }
00:02:03 verbose #2962 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/spiral/testing.dib", "--output-path", "c:/home/git/polyglot/lib/spiral/testing.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/testing.dib" --output-path "c:/home/git/polyglot/lib/spiral/testing.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:02:06 verbose #2963 > >
00:02:06 verbose #2964 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:06 verbose #2965 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:06 verbose #2966 > > │ # testing                                                                    │
00:02:06 verbose #2967 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:06 verbose #2968 > >
00:02:06 verbose #2969 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:06 verbose #2970 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:06 verbose #2971 > > │ ## testing                                                                   │
00:02:06 verbose #2972 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:06 verbose #2973 > >
00:02:06 verbose #2974 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:06 verbose #2975 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:06 verbose #2976 > > │ ### __expect                                                                 │
00:02:06 verbose #2977 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:10 verbose #2978 > >
00:02:10 verbose #2979 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:10 verbose #2980 > > inl __expect fn log name b a =
00:02:10 verbose #2981 > >     inl result = fn a b
00:02:10 verbose #2982 > >     inl result =
00:02:10 verbose #2983 > >         result || join result
00:02:10 verbose #2984 > >     if log |> not
00:02:10 verbose #2985 > >     then "__expect"
00:02:10 verbose #2986 > >     else
00:02:10 verbose #2987 > >         inl text =
00:02:10 verbose #2988 > >             backend_switch {
00:02:10 verbose #2989 > >                 Fsharp = fun () => $'$"{!name} / actual: %A{!a} / expected:
00:02:10 verbose #2990 > > %A{!b}"' : string
00:02:10 verbose #2991 > >                 Python = fun () => $'f"{!name} / actual: {!a} / expected: {!b}"'
00:02:10 verbose #2992 > > : string
00:02:10 verbose #2993 > >             }
00:02:10 verbose #2994 > >         text |> console.write_line
00:02:10 verbose #2995 > >         text
00:02:10 verbose #2996 > >     |> assert result
00:02:11 verbose #2997 > 00:02:10   debug #215 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a908bb2db39526528c19bb3504f98c802a7f801ed253d940ec83b2c996dccfd7/main.spi
00:02:11 verbose #2998 > >
00:02:11 verbose #2999 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:11 verbose #3000 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:11 verbose #3001 > > │ ### __assert_approx_eq                                                       │
00:02:11 verbose #3002 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:11 verbose #3003 > >
00:02:11 verbose #3004 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:11 verbose #3005 > > inl __assert_approx_eq log e b a = __expect (fun a b => abs (b - a) < (e |>
00:02:11 verbose #3006 > > optionm.defaultWith 0.00000001)) log "assert_approx_eq" b a
00:02:11 verbose #3007 > > inl _assert_approx_eq e b a = __assert_approx_eq true e b a
00:02:11 verbose #3008 > 00:02:10   debug #216 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/630fb695a15641a87e56cf037b7f376efbbeff5f33c382b053d9791321a2a022/main.spi
00:02:11 verbose #3009 > >
00:02:11 verbose #3010 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:11 verbose #3011 > > //// test
00:02:11 verbose #3012 > > ///! fsharp
00:02:11 verbose #3013 > > ///! cuda
00:02:11 verbose #3014 > > ///! rust
00:02:11 verbose #3015 > > ///! typescript
00:02:11 verbose #3016 > > ///! python
00:02:11 verbose #3017 > >
00:02:11 verbose #3018 > > 12.345f64
00:02:11 verbose #3019 > > |> _assert_approx_eq (Some 0.0001f64) 12.345f64
00:02:12 verbose #3020 > 00:02:11   debug #217 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e7c5cdb3c55b5b1c640b7ad8a80ec6dd1664e6e21dd71a28f87fe71593e5da4c/main.spi
00:02:12 verbose #3021 > 00:02:11   debug #218 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/750711c3b0c624220af68a0911e1f8c71f3f78fedd45281fdbd42ffe7c45fa80/main.spi
00:02:17 verbose #3022 > >
00:02:17 verbose #3023 > > ╭─[ 5.29s - return value ]─────────────────────────────────────────────────────╮
00:02:17 verbose #3024 > > │ .py output (Cuda):                                                           │
00:02:17 verbose #3025 > > │ assert_approx_eq / actual: 12.345 / expected: 12.345                         │
00:02:17 verbose #3026 > > │                                                                              │
00:02:17 verbose #3027 > > │ .rs output:                                                                  │
00:02:17 verbose #3028 > > │ assert_approx_eq / actual: 12.345 / expected: 12.345                         │
00:02:17 verbose #3029 > > │                                                                              │
00:02:17 verbose #3030 > > │ .ts output:                                                                  │
00:02:17 verbose #3031 > > │ assert_approx_eq / actual: 12.345 / expected: 12.345                         │
00:02:17 verbose #3032 > > │                                                                              │
00:02:17 verbose #3033 > > │ .py output:                                                                  │
00:02:17 verbose #3034 > > │ assert_approx_eq / actual: 12.345 / expected: 12.345                         │
00:02:17 verbose #3035 > > │                                                                              │
00:02:17 verbose #3036 > > │                                                                              │
00:02:17 verbose #3037 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:17 verbose #3038 > >
00:02:17 verbose #3039 > > ╭─[ 5.30s - stdout ]───────────────────────────────────────────────────────────╮
00:02:17 verbose #3040 > > │ .fsx output:                                                                 │
00:02:17 verbose #3041 > > │ assert_approx_eq / actual: 12.345 / expected: 12.345                         │
00:02:17 verbose #3042 > > │                                                                              │
00:02:17 verbose #3043 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:17 verbose #3044 > >
00:02:17 verbose #3045 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:17 verbose #3046 > > //// test
00:02:17 verbose #3047 > >
00:02:17 verbose #3048 > > 1f64
00:02:17 verbose #3049 > > |> _assert_approx_eq (Some 3) 2
00:02:17 verbose #3050 > 00:02:16   debug #219 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f7e3225d53652f951fe7e7657c1582d108d8bb65ead49fff933851ddd4a9a745/main.spi
00:02:17 verbose #3051 > >
00:02:17 verbose #3052 > > ╭─[ 448.47ms - stdout ]────────────────────────────────────────────────────────╮
00:02:17 verbose #3053 > > │ assert_approx_eq / actual: 1.0 / expected: 2.0                               │
00:02:17 verbose #3054 > > │                                                                              │
00:02:17 verbose #3055 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:17 verbose #3056 > >
00:02:17 verbose #3057 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:17 verbose #3058 > > //// test
00:02:17 verbose #3059 > >
00:02:17 verbose #3060 > > (dyn 1f64)
00:02:17 verbose #3061 > > |> _assert_approx_eq (Some 3) 2
00:02:17 verbose #3062 > 00:02:17   debug #220 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ba490665bf8812731ea625ddf4012a10c9dcab2cd5018002fd3d7f06c3e17300/main.spi
00:02:18 verbose #3063 > >
00:02:18 verbose #3064 > > ╭─[ 550.95ms - stdout ]────────────────────────────────────────────────────────╮
00:02:18 verbose #3065 > > │ assert_approx_eq / actual: 1.0 / expected: 2.0                               │
00:02:18 verbose #3066 > > │                                                                              │
00:02:18 verbose #3067 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:18 verbose #3068 > >
00:02:18 verbose #3069 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:18 verbose #3070 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:18 verbose #3071 > > │ ### __assert_eq                                                              │
00:02:18 verbose #3072 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:18 verbose #3073 > >
00:02:18 verbose #3074 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:18 verbose #3075 > > inl __assert_eq log b a = __expect (=) log "assert_eq" b a
00:02:18 verbose #3076 > > inl _assert_eq b a = __assert_eq true b a
00:02:18 verbose #3077 > 00:02:17   debug #221 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0536e123a98842b73c72be4d18c09334a318550c66ba1c298e5059b6e663f972/main.spi
00:02:18 verbose #3078 > >
00:02:18 verbose #3079 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:18 verbose #3080 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:18 verbose #3081 > > │ ### __assert_eq'                                                             │
00:02:18 verbose #3082 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:18 verbose #3083 > >
00:02:18 verbose #3084 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:18 verbose #3085 > > inl __assert_eq' log b a = __expect (=.) log "assert_eq'" b a
00:02:18 verbose #3086 > > inl _assert_eq' b a = __assert_eq' true b a
00:02:18 verbose #3087 > 00:02:18   debug #222 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/25f50f527335a824ae6ab8ca015d3bd520fd702098841a54b6a3b42a22ba9d14/main.spi
00:02:18 verbose #3088 > >
00:02:18 verbose #3089 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:18 verbose #3090 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:18 verbose #3091 > > │ ### __assert_ne                                                              │
00:02:18 verbose #3092 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:18 verbose #3093 > >
00:02:18 verbose #3094 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:18 verbose #3095 > > inl __assert_ne log b a = __expect (<>.) log "assert_ne" b a
00:02:18 verbose #3096 > > inl _assert_ne b a = __assert_ne true b a
00:02:19 verbose #3097 > 00:02:18   debug #223 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7c3b545a37d40672182f34fc97f9e39928f0d1366b943e66e5bb212db10799d3/main.spi
00:02:19 verbose #3098 > >
00:02:19 verbose #3099 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:19 verbose #3100 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:19 verbose #3101 > > │ ### __assert_gt                                                              │
00:02:19 verbose #3102 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:19 verbose #3103 > >
00:02:19 verbose #3104 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:19 verbose #3105 > > inl __assert_gt log b a = __expect (>) log "assert_gt" b a
00:02:19 verbose #3106 > > inl _assert_gt b a = __assert_gt true b a
00:02:19 verbose #3107 > 00:02:18   debug #224 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c35535827852d46bf121f79ffa8c841b6df08aa172a720761eac028194910135/main.spi
00:02:19 verbose #3108 > >
00:02:19 verbose #3109 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:19 verbose #3110 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:19 verbose #3111 > > │ ### __assert_ge                                                              │
00:02:19 verbose #3112 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:19 verbose #3113 > >
00:02:19 verbose #3114 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:19 verbose #3115 > > inl __assert_ge log b a = __expect (>=) log "assert_ge" b a
00:02:19 verbose #3116 > > inl _assert_ge b a = __assert_ge true b a
00:02:19 verbose #3117 > 00:02:19   debug #225 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ad0d5e41e8fbf265d02cd17394551150955653c85a09878bc5708b25566ac7d2/main.spi
00:02:20 verbose #3118 > >
00:02:20 verbose #3119 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:20 verbose #3120 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:20 verbose #3121 > > │ ### __assert_lt                                                              │
00:02:20 verbose #3122 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:20 verbose #3123 > >
00:02:20 verbose #3124 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:20 verbose #3125 > > inl __assert_lt log b a = __expect (<) log "assert_lt" b a
00:02:20 verbose #3126 > > inl _assert_lt b a = __assert_lt true b a
00:02:20 verbose #3127 > 00:02:19   debug #226 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/cdea3448765b81b4703fb4449b21426a6601408a827a235b566beb566660b43e/main.spi
00:02:20 verbose #3128 > >
00:02:20 verbose #3129 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:20 verbose #3130 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:20 verbose #3131 > > │ ### __assert_le                                                              │
00:02:20 verbose #3132 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:20 verbose #3133 > >
00:02:20 verbose #3134 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:20 verbose #3135 > > inl __assert_le log b a = __expect (<=) log "assert_le" b a
00:02:20 verbose #3136 > > inl _assert_le b a = __assert_le true b a
00:02:20 verbose #3137 > 00:02:20   debug #227 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c62b926dbb2a354a1358f1bbfe934319789ddb7869c1c6bfd21e25da20927b21/main.spi
00:02:20 verbose #3138 > >
00:02:20 verbose #3139 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:20 verbose #3140 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:20 verbose #3141 > > │ ### __assert_string_contains                                                 │
00:02:20 verbose #3142 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:20 verbose #3143 > >
00:02:20 verbose #3144 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:20 verbose #3145 > > inl __assert_string_contains log b a = __expect sm'.contains log
00:02:20 verbose #3146 > > "assert_string_contains" a b
00:02:20 verbose #3147 > > inl _assert_string_contains b a = __assert_string_contains true b a
00:02:21 verbose #3148 > 00:02:20   debug #228 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/13dfb239e9e67fa86d2ff5d23982efc32b332d650ff954e902059daaf23e1ebf/main.spi
00:02:21 verbose #3149 > >
00:02:21 verbose #3150 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:21 verbose #3151 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:21 verbose #3152 > > │ ### __assert_between                                                         │
00:02:21 verbose #3153 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:21 verbose #3154 > >
00:02:21 verbose #3155 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:21 verbose #3156 > > inl __assert_between log a b actual =
00:02:21 verbose #3157 > >     inl assert_between actual (a, b) =
00:02:21 verbose #3158 > >         __assert_ge false a actual
00:02:21 verbose #3159 > >         __assert_le false b actual
00:02:21 verbose #3160 > >         true
00:02:21 verbose #3161 > >     __expect assert_between log "assert_between" (a, b) actual
00:02:21 verbose #3162 > > inl _assert_between a b actual = __assert_between true a b actual
00:02:21 verbose #3163 > 00:02:20   debug #229 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/444298354c32f35d51cca2c1fd77cedc9a8f918bb2afb0c9c045752474828e18/main.spi
00:02:21 verbose #3164 > >
00:02:21 verbose #3165 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:21 verbose #3166 > > inl _assert_fn fn list =
00:02:21 verbose #3167 > >     list
00:02:21 verbose #3168 > >     |> listm.rev
00:02:21 verbose #3169 > >     |> listm.map fun input, expected => join
00:02:21 verbose #3170 > >         input
00:02:21 verbose #3171 > >         |> fn
00:02:21 verbose #3172 > >         |> resultm.get
00:02:21 verbose #3173 > >         |> fun x =>
00:02:21 verbose #3174 > >             inl expected' = join expected
00:02:21 verbose #3175 > >             try
00:02:21 verbose #3176 > >                 fun () =>
00:02:21 verbose #3177 > >                     console.write_line ""
00:02:21 verbose #3178 > >                     trace Verbose
00:02:21 verbose #3179 > >                         fun () => $'$"testing._assert_fn"'
00:02:21 verbose #3180 > >                         fun () => { input }
00:02:21 verbose #3181 > >                     x
00:02:21 verbose #3182 > >                     |> _assert_eq' expected'
00:02:21 verbose #3183 > >                     true
00:02:21 verbose #3184 > >                 fun ex =>
00:02:21 verbose #3185 > >                     trace Critical
00:02:21 verbose #3186 > >                         fun () => $'$"testing._assert_fn / error"'
00:02:21 verbose #3187 > >                         fun () => { ex expected }
00:02:21 verbose #3188 > >                     Some false
00:02:21 verbose #3189 > >             |> optionm.value
00:02:21 verbose #3190 > >     |> listm'.filter not
00:02:21 verbose #3191 > >     |> function
00:02:21 verbose #3192 > >         | [[]] => ()
00:02:21 verbose #3193 > >         | x => failwith $'$"{!x}"'
00:02:21 verbose #3194 > 00:02:21   debug #230 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/38bffb536ef81a037c7ac12d325611f0809cf5dc3b9de9c042b5d30bced06c03/main.spi
00:02:22 verbose #3195 > >
00:02:22 verbose #3196 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:22 verbose #3197 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:22 verbose #3198 > > │ ## fsharp                                                                    │
00:02:22 verbose #3199 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:22 verbose #3200 > >
00:02:22 verbose #3201 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:22 verbose #3202 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:22 verbose #3203 > > │ ### __assert_contains                                                        │
00:02:22 verbose #3204 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:22 verbose #3205 > >
00:02:22 verbose #3206 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:22 verbose #3207 > > inl __assert_contains forall t. log (b : t) a =
00:02:22 verbose #3208 > >     __expect
00:02:22 verbose #3209 > >         fun a b =>
00:02:22 verbose #3210 > >             a
00:02:22 verbose #3211 > >             |> $'List.ofSeq'
00:02:22 verbose #3212 > >             |> fun x => x : listm'.list' t
00:02:22 verbose #3213 > >             |> $'List.tryFind' ((=) b)
00:02:22 verbose #3214 > >             |> optionm'.unbox
00:02:22 verbose #3215 > >             |> fun (x : _ t) => x <> None
00:02:22 verbose #3216 > >         log "assert_contains" b a
00:02:22 verbose #3217 > > inl _assert_contains b a = __assert_contains true b a
00:02:22 verbose #3218 > 00:02:21   debug #231 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/cc56497bb98fedc2ca14e27881c82ad8e84bcb960df89c52f7a3f2f509a373c2/main.spi
00:02:22 verbose #3219 > >
00:02:22 verbose #3220 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:22 verbose #3221 > > //// test
00:02:22 verbose #3222 > >
00:02:22 verbose #3223 > > "abcd"
00:02:22 verbose #3224 > > |> _assert_contains 'b'
00:02:22 verbose #3225 > 00:02:21   debug #232 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e55bf3578dffdd39f7c7b8990b0ff63ffabd527077c8becffb33b9f6012d9d77/main.spi
00:02:23 verbose #3226 > >
00:02:23 verbose #3227 > > ╭─[ 909.22ms - stdout ]────────────────────────────────────────────────────────╮
00:02:23 verbose #3228 > > │ assert_contains / actual: "abcd" / expected: 'b'                             │
00:02:23 verbose #3229 > > │                                                                              │
00:02:23 verbose #3230 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:23 verbose #3231 > >
00:02:23 verbose #3232 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:23 verbose #3233 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:23 verbose #3234 > > │ ### _throws                                                                  │
00:02:23 verbose #3235 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:23 verbose #3236 > >
00:02:23 verbose #3237 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:23 verbose #3238 > > inl _throws (fn : () -> ()) : option exn =
00:02:23 verbose #3239 > >     inl none = None : option exn
00:02:23 verbose #3240 > >     inl some (s : exn) = Some s
00:02:23 verbose #3241 > >     $'try !fn (); !none with ex -> ex |> !some '
00:02:23 verbose #3242 > 00:02:22   debug #233 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/88ebd76b9479253fc7c2377c34a60bcc8991623680f360dcef18fc97d34ef719/main.spi
00:02:23 verbose #3243 > >
00:02:23 verbose #3244 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:23 verbose #3245 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:23 verbose #3246 > > │ ### print_and_return                                                         │
00:02:23 verbose #3247 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:23 verbose #3248 > >
00:02:23 verbose #3249 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:23 verbose #3250 > > inl print_and_return x =
00:02:23 verbose #3251 > >     $'printfn $"print_and_return / x: {!x}"'
00:02:23 verbose #3252 > >     x
00:02:23 verbose #3253 > 00:02:23   debug #234 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e9a63a960305e81ce0b131dbb842b3914805a5d5bcfd1d25fb0ccad6dcd0f5c5/main.spi
00:02:24 verbose #3254 > 00:00:20 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 13237 }
00:02:24 verbose #3255 > 00:00:20   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/spiral/testing.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/testing.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:02:26 verbose #3256 > 00:00:22 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/testing.dib.ipynb to html
00:02:26 verbose #3257 > 00:00:22 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:02:26 verbose #3258 > 00:00:22 verbose #7 !   validate(nb)
00:02:28 verbose #3259 > 00:00:24 verbose #8 ! [NbConvertApp] Writing 308251 bytes to c:\home\git\polyglot\lib\spiral\testing.dib.html
00:02:28 verbose #3260 > 00:00:24 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 645 }
00:02:28 verbose #3261 > 00:00:24   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 645 }
00:02:28 verbose #3262 > 00:00:24   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/testing.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/testing.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:02:29 verbose #3263 > 00:00:25 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:02:29 verbose #3264 > 00:00:25   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:02:30 verbose #3265 > 00:00:26   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 13941 }
00:02:30   debug #3266 runtime.execute_with_options_async / { exit_code = 0; output_length = 17109 }
00:02:30   debug #5 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path testing.dib --retries 3
00:02:30   debug #3267 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path guid.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:02:30 verbose #3268 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "guid.dib", "--retries", "3"])) }
00:02:30 verbose #3269 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/spiral/guid.dib", "--output-path", "c:/home/git/polyglot/lib/spiral/guid.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/guid.dib" --output-path "c:/home/git/polyglot/lib/spiral/guid.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:02:33 verbose #3270 > >
00:02:33 verbose #3271 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:33 verbose #3272 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:33 verbose #3273 > > │ # guid                                                                       │
00:02:33 verbose #3274 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:38 verbose #3275 > >
00:02:38 verbose #3276 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:38 verbose #3277 > > //// test
00:02:38 verbose #3278 > >
00:02:38 verbose #3279 > > open testing
00:02:39 verbose #3280 > 00:02:38   debug #235 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fa7845de436c12d0ca65282fe0cd65832468ca943e72feba50e6b1bb441e251a/main.spi
00:02:39 verbose #3281 > >
00:02:39 verbose #3282 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:39 verbose #3283 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:39 verbose #3284 > > │ ## guid                                                                      │
00:02:39 verbose #3285 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:39 verbose #3286 > >
00:02:39 verbose #3287 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:39 verbose #3288 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:39 verbose #3289 > > │ ### guid                                                                     │
00:02:39 verbose #3290 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:39 verbose #3291 > >
00:02:39 verbose #3292 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:39 verbose #3293 > > nominal guid_python =
00:02:39 verbose #3294 > >     `(
00:02:39 verbose #3295 > >         global "import uuid"
00:02:39 verbose #3296 > >         $'' : $'uuid.UUID'
00:02:39 verbose #3297 > >     )
00:02:39 verbose #3298 > > type guid_switch =
00:02:39 verbose #3299 > >     {
00:02:39 verbose #3300 > >         Fsharp : $'System.Guid'
00:02:39 verbose #3301 > >         Python : guid_python
00:02:39 verbose #3302 > >     }
00:02:39 verbose #3303 > > nominal guid = $'backend_switch `(guid_switch)'
00:02:40 verbose #3304 > 00:02:39   debug #236 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/76f39c2d3bb155a3e49cc7814ea62906913b7ef6d73d63733323d3f176bbcd8e/main.spi
00:02:40 verbose #3305 > >
00:02:40 verbose #3306 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:40 verbose #3307 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:40 verbose #3308 > > │ ### new_guid                                                                 │
00:02:40 verbose #3309 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:40 verbose #3310 > >
00:02:40 verbose #3311 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:40 verbose #3312 > > inl new_guid (x : string) : guid =
00:02:40 verbose #3313 > >     x |> convert
00:02:40 verbose #3314 > 00:02:39   debug #237 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/01d0cb264dec434da1d6d41bde7f4bfcbd45b373e83a133a6851f76e8489b81c/main.spi
00:02:40 verbose #3315 > >
00:02:40 verbose #3316 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:40 verbose #3317 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:40 verbose #3318 > > │ ### new_raw_guid                                                             │
00:02:40 verbose #3319 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:40 verbose #3320 > >
00:02:40 verbose #3321 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:40 verbose #3322 > > inl new_raw_guid () : guid =
00:02:40 verbose #3323 > >     backend_switch {
00:02:40 verbose #3324 > >         Fsharp = fun () => $'System.Guid.NewGuid' () : guid
00:02:40 verbose #3325 > >         Python = fun () => $'uuid.uuid4()' : guid
00:02:40 verbose #3326 > >     }
00:02:40 verbose #3327 > 00:02:39   debug #238 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4581c26dc5a5bb3dffc1b00d3d164cbaa472cbdcaad2a170f0dc05fcb25973fa/main.spi
00:02:40 verbose #3328 > >
00:02:40 verbose #3329 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:40 verbose #3330 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:40 verbose #3331 > > │ ### hash_guid                                                                │
00:02:40 verbose #3332 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:40 verbose #3333 > >
00:02:40 verbose #3334 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:40 verbose #3335 > > type hash_guid = guid
00:02:40 verbose #3336 > >
00:02:40 verbose #3337 > > let hash_guid (~hash : string) : hash_guid =
00:02:40 verbose #3338 > >     run_target function
00:02:40 verbose #3339 > >         | Rust (Contract) => fun () => null ()
00:02:40 verbose #3340 > >         | _ => fun () =>
00:02:40 verbose #3341 > >             inl hash = hash |> sm'.pad_left 32i32 '0'
00:02:40 verbose #3342 > >             backend_switch {
00:02:40 verbose #3343 > >                 Fsharp = fun () =>
00:02:40 verbose #3344 > >                     $'`hash_guid
00:02:40 verbose #3345 > > $"{!hash.[[0..7]]}-{!hash.[[8..11]]}-{!hash.[[12..15]]}-{!hash.[[16..19]]}-{!has
00:02:40 verbose #3346 > > h.[[20..31]]}"' : hash_guid
00:02:40 verbose #3347 > >                 Python = fun () =>
00:02:40 verbose #3348 > > $'f"{!hash[[0:8]]}-{!hash[[8:12]]}-{!hash[[12:16]]}-{!hash[[16:20]]}-{!hash[[20:
00:02:40 verbose #3349 > > 32]]}"' : hash_guid
00:02:40 verbose #3350 > >             }
00:02:41 verbose #3351 > 00:02:40   debug #239 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/14de12f0a51462c69996aa1670a6623acbb48dbc08c6e23caf4f26b57897ed42/main.spi
00:02:41 verbose #3352 > >
00:02:41 verbose #3353 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:41 verbose #3354 > > //// test
00:02:41 verbose #3355 > > ///! fsharp
00:02:41 verbose #3356 > > ///! cuda
00:02:41 verbose #3357 > > ///! rust
00:02:41 verbose #3358 > > ///! typescript
00:02:41 verbose #3359 > > ///! python
00:02:41 verbose #3360 > >
00:02:41 verbose #3361 > > ""
00:02:41 verbose #3362 > > |> hash_guid
00:02:41 verbose #3363 > > |> _assert_eq' (new_guid "00000000-0000-0000-0000-000000000000")
00:02:41 verbose #3364 > >
00:02:41 verbose #3365 > > "123456789012345678901234567890123"
00:02:41 verbose #3366 > > |> hash_guid
00:02:41 verbose #3367 > > |> _assert_eq' (new_guid "12345678-9012-3456-7890-123456789012")
00:02:41 verbose #3368 > 00:02:40   debug #240 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/029223bcab6fd474a1c6ded9d32f89c5c5ccb7725726d0dd4eb4f806d1ed0361/main.spi
00:02:41 verbose #3369 > 00:02:40   debug #241 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2a624d9e41158d1eaf1cae26c62273d35a36788b40f4a6aaa020223dfd3e93b6/main.spi
00:02:47 verbose #3370 > >
00:02:47 verbose #3371 > > ╭─[ 6.66s - return value ]─────────────────────────────────────────────────────╮
00:02:47 verbose #3372 > > │                                                                              │
00:02:47 verbose #3373 > > │ .py output (Cuda):                                                           │
00:02:47 verbose #3374 > > │ assert_eq' / actual: 00000000-0000-0000-0000-000000000000 / expected:        │
00:02:47 verbose #3375 > > │ 00000000-0000-0000-0000-000000000000                                         │
00:02:47 verbose #3376 > > │ assert_eq' / actual: 12345678-9012-3456-7890-123456789012 / expected:        │
00:02:47 verbose #3377 > > │ 12345678-9012-3456-7890-123456789012                                         │
00:02:47 verbose #3378 > > │                                                                              │
00:02:47 verbose #3379 > > │                                                                              │
00:02:47 verbose #3380 > > │ .rs output:                                                                  │
00:02:47 verbose #3381 > > │ assert_eq' / actual: Guid(00000000-0000-0000-0000-000000000000) / expected:  │
00:02:47 verbose #3382 > > │ Guid(00000000-0000-0000-0000-000000000000)                                   │
00:02:47 verbose #3383 > > │ assert_eq' / actual: Guid(12345678-9012-3456-7890-123456789012) / expected:  │
00:02:47 verbose #3384 > > │ Guid(12345678-9012-3456-7890-123456789012)                                   │
00:02:47 verbose #3385 > > │                                                                              │
00:02:47 verbose #3386 > > │                                                                              │
00:02:47 verbose #3387 > > │ .ts output:                                                                  │
00:02:47 verbose #3388 > > │ assert_eq' / actual: 00000000-0000-0000-0000-000000000000 / expected:        │
00:02:47 verbose #3389 > > │ 00000000-0000-0000-0000-000000000000                                         │
00:02:47 verbose #3390 > > │ assert_eq' / actual: 12345678-9012-3456-7890-123456789012 / expected:        │
00:02:47 verbose #3391 > > │ 12345678-9012-3456-7890-123456789012                                         │
00:02:47 verbose #3392 > > │                                                                              │
00:02:47 verbose #3393 > > │                                                                              │
00:02:47 verbose #3394 > > │ .py output:                                                                  │
00:02:47 verbose #3395 > > │ assert_eq' / actual: 00000000-0000-0000-0000-000000000000 / expected:        │
00:02:47 verbose #3396 > > │ 00000000-0000-0000-0000-000000000000                                         │
00:02:47 verbose #3397 > > │ assert_eq' / actual: 12345678-9012-3456-7890-123456789012 / expected:        │
00:02:47 verbose #3398 > > │ 12345678-9012-3456-7890-123456789012                                         │
00:02:47 verbose #3399 > > │                                                                              │
00:02:47 verbose #3400 > > │                                                                              │
00:02:47 verbose #3401 > > │                                                                              │
00:02:47 verbose #3402 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:47 verbose #3403 > >
00:02:47 verbose #3404 > > ╭─[ 6.67s - stdout ]───────────────────────────────────────────────────────────╮
00:02:47 verbose #3405 > > │ .fsx output:                                                                 │
00:02:47 verbose #3406 > > │ assert_eq' / actual: 00000000-0000-0000-0000-000000000000 / expected:        │
00:02:47 verbose #3407 > > │ 00000000-0000-0000-0000-000000000000                                         │
00:02:47 verbose #3408 > > │ assert_eq' / actual: 12345678-9012-3456-7890-123456789012 / expected:        │
00:02:47 verbose #3409 > > │ 12345678-9012-3456-7890-123456789012                                         │
00:02:47 verbose #3410 > > │                                                                              │
00:02:47 verbose #3411 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:47 verbose #3412 > >
00:02:47 verbose #3413 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:47 verbose #3414 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:47 verbose #3415 > > │ ## main                                                                      │
00:02:47 verbose #3416 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:47 verbose #3417 > >
00:02:47 verbose #3418 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:47 verbose #3419 > > inl main () =
00:02:47 verbose #3420 > >     $'let new_guid x = !new_guid x' : ()
00:02:47 verbose #3421 > >     $'let hash_guid x = !hash_guid x' : ()
00:02:47 verbose #3422 > >     $'let new_raw_guid x = !new_raw_guid x' : ()
00:02:48 verbose #3423 > 00:02:47   debug #242 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/50e870ed3113fa38d48999c67f0885e6d6f6e39278589a7e78ac83294059b436/main.spi
00:02:48 verbose #3424 > 00:00:18 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 7553 }
00:02:48 verbose #3425 > 00:00:18   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/spiral/guid.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/guid.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:02:51 verbose #3426 > 00:00:21 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/guid.dib.ipynb to html
00:02:51 verbose #3427 > 00:00:21 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:02:51 verbose #3428 > 00:00:21 verbose #7 !   validate(nb)
00:02:53 verbose #3429 > 00:00:22 verbose #8 ! [NbConvertApp] Writing 284633 bytes to c:\home\git\polyglot\lib\spiral\guid.dib.html
00:02:53 verbose #3430 > 00:00:22 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 639 }
00:02:53 verbose #3431 > 00:00:22   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 639 }
00:02:53 verbose #3432 > 00:00:22   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/guid.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/guid.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:02:54 verbose #3433 > 00:00:24 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:02:54 verbose #3434 > 00:00:24   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:02:55 verbose #3435 > 00:00:24   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 8251 }
00:02:55   debug #3436 runtime.execute_with_options_async / { exit_code = 0; output_length = 11140 }
00:02:55   debug #6 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path guid.dib --retries 3
00:02:55   debug #3437 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path async.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:02:55 verbose #3438 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "async.dib", "--retries", "3"])) }
00:02:55 verbose #3439 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/spiral/async.dib", "--output-path", "c:/home/git/polyglot/lib/spiral/async.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/async.dib" --output-path "c:/home/git/polyglot/lib/spiral/async.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:02:58 verbose #3440 > >
00:02:58 verbose #3441 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:58 verbose #3442 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:58 verbose #3443 > > │ # async                                                                      │
00:02:58 verbose #3444 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:03 verbose #3445 > >
00:03:03 verbose #3446 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:03 verbose #3447 > > //// test
00:03:03 verbose #3448 > >
00:03:03 verbose #3449 > > open testing
00:03:03 verbose #3450 > 00:03:03   debug #243 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fa7845de436c12d0ca65282fe0cd65832468ca943e72feba50e6b1bb441e251a/main.spi
00:03:04 verbose #3451 > >
00:03:04 verbose #3452 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:04 verbose #3453 > > open rust_operators
00:03:04 verbose #3454 > 00:03:03   debug #244 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/14cf64024e1ad1cf52eeaf1af91f17c5c545fa6f0f762576c8f04b96249ae9ed/main.spi
00:03:04 verbose #3455 > >
00:03:04 verbose #3456 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:04 verbose #3457 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:04 verbose #3458 > > │ ## rust                                                                      │
00:03:04 verbose #3459 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:04 verbose #3460 > >
00:03:04 verbose #3461 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:04 verbose #3462 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:04 verbose #3463 > > │ ### future                                                                   │
00:03:04 verbose #3464 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:04 verbose #3465 > >
00:03:04 verbose #3466 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:04 verbose #3467 > > nominal future t =
00:03:04 verbose #3468 > >     `(
00:03:04 verbose #3469 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:03:04 verbose #3470 > > Fable.Core.Emit(\"std::future::Future<Output = $0>\")>]]\n#endif\ntype
00:03:04 verbose #3471 > > std_future_Future<'T> = class end"
00:03:04 verbose #3472 > >         $'' : $'std_future_Future<`t>'
00:03:04 verbose #3473 > >     )
00:03:05 verbose #3474 > 00:03:04   debug #245 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e7ffc9ef7c7d0be50c86f3e94982edd887a1aca7ea4cd3990a23cc3a84d5425e/main.spi
00:03:05 verbose #3475 > >
00:03:05 verbose #3476 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:05 verbose #3477 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:05 verbose #3478 > > │ ### future_pin                                                               │
00:03:05 verbose #3479 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:05 verbose #3480 > >
00:03:05 verbose #3481 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:05 verbose #3482 > > type future_pin t = rust.pin (rust.box (rust.dyn' (future t)))
00:03:05 verbose #3483 > 00:03:04   debug #246 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/878d63c9703f9eeeab460ed53d5d8c1493ff6623d17deaaf7ca21f47c124369c/main.spi
00:03:05 verbose #3484 > >
00:03:05 verbose #3485 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:05 verbose #3486 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:05 verbose #3487 > > │ ### future_pin_send                                                          │
00:03:05 verbose #3488 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:05 verbose #3489 > >
00:03:05 verbose #3490 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:05 verbose #3491 > > type future_pin_send t = rust.pin (rust.box (rust.send (rust.dyn' (future t))))
00:03:05 verbose #3492 > 00:03:05   debug #247 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b369f74688e3bf51b87d56ece31a414548c772c673ff407fde209259550f8343/main.spi
00:03:05 verbose #3493 > >
00:03:05 verbose #3494 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:05 verbose #3495 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:05 verbose #3496 > > │ ### block_on                                                                 │
00:03:05 verbose #3497 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:05 verbose #3498 > >
00:03:05 verbose #3499 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:05 verbose #3500 > > inl block_on forall t. (fn : future_pin t) : t =
00:03:05 verbose #3501 > >     inl runtime : infer =
00:03:05 verbose #3502 > >
00:03:05 verbose #3503 > > !\($'$"tokio::runtime::Builder::new_multi_thread().enable_all().build().unwrap()
00:03:05 verbose #3504 > > "')
00:03:05 verbose #3505 > >     !\\(fn, $'"!runtime.handle().block_on($0)"')
00:03:06 verbose #3506 > 00:03:05   debug #248 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/580c28408589599be50cfee7b47e7afd2af438a022d6a935892073c8e8884152/main.spi
00:03:06 verbose #3507 > >
00:03:06 verbose #3508 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:06 verbose #3509 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:06 verbose #3510 > > │ ### block_on'                                                                │
00:03:06 verbose #3511 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:06 verbose #3512 > >
00:03:06 verbose #3513 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:06 verbose #3514 > > inl block_on' forall t. (fn : future_pin t) : t =
00:03:06 verbose #3515 > >     !\\(fn, $'"futures_lite::future::block_on($0)"')
00:03:06 verbose #3516 > 00:03:05   debug #249 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/36f6cc24ebdfd18f16309903e37e917f9bcdad5c7a1a505098f2887e03075346/main.spi
00:03:06 verbose #3517 > >
00:03:06 verbose #3518 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:06 verbose #3519 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:06 verbose #3520 > > │ ### block_on''                                                               │
00:03:06 verbose #3521 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:06 verbose #3522 > >
00:03:06 verbose #3523 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:06 verbose #3524 > > inl block_on'' forall t. (fn : future_pin t) : t =
00:03:06 verbose #3525 > >     !\\(fn, $'"futures::executor::block_on($0)"')
00:03:06 verbose #3526 > 00:03:06   debug #250 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/70439343cc159c63d44b8417b701a73b6a212ad7735feda5f631f3a0c9bb52b8/main.spi
00:03:07 verbose #3527 > >
00:03:07 verbose #3528 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:07 verbose #3529 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:07 verbose #3530 > > │ ### block_on'''                                                              │
00:03:07 verbose #3531 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:07 verbose #3532 > >
00:03:07 verbose #3533 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:07 verbose #3534 > > inl block_on''' forall t. (fn : future_pin t) : t =
00:03:07 verbose #3535 > >     !\\(fn, $'"async_std::task::block_on($0)"')
00:03:07 verbose #3536 > 00:03:06   debug #251 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fb7ddc8f25576e06b621dba597bf3e29359cdfb9b9e072d9fb32f72430032c76/main.spi
00:03:07 verbose #3537 > >
00:03:07 verbose #3538 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:07 verbose #3539 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:07 verbose #3540 > > │ ### block_on_send                                                            │
00:03:07 verbose #3541 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:07 verbose #3542 > >
00:03:07 verbose #3543 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:07 verbose #3544 > > inl block_on_send forall t. (fn : future_pin_send t) : t =
00:03:07 verbose #3545 > >     !\($'"tokio::runtime::block_on(!fn)"')
00:03:07 verbose #3546 > 00:03:06   debug #252 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0bd3a48df26c0c3d8b5e7ee9bb3d73bc47abc2f5d93a8ec422a6b263fe202e70/main.spi
00:03:07 verbose #3547 > >
00:03:07 verbose #3548 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:07 verbose #3549 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:07 verbose #3550 > > │ ### stream_ext                                                               │
00:03:07 verbose #3551 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:07 verbose #3552 > >
00:03:07 verbose #3553 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:07 verbose #3554 > > nominal stream_ext =
00:03:07 verbose #3555 > >     `(
00:03:07 verbose #3556 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:03:07 verbose #3557 > > Fable.Core.Emit(\"tokio_stream::StreamExt\")>]]\n#endif\ntype
00:03:07 verbose #3558 > > tokio_stream_StreamExt = class end"
00:03:07 verbose #3559 > >         $'' : $'tokio_stream_StreamExt'
00:03:07 verbose #3560 > >     )
00:03:08 verbose #3561 > 00:03:07   debug #253 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4490be271140724faa5e2a7cd0ae5c4c033a44d1497f1cd2ae7f3b1729502ce6/main.spi
00:03:08 verbose #3562 > >
00:03:08 verbose #3563 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:08 verbose #3564 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:08 verbose #3565 > > │ ### join_handle                                                              │
00:03:08 verbose #3566 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:08 verbose #3567 > >
00:03:08 verbose #3568 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:08 verbose #3569 > > nominal join_handle t =
00:03:08 verbose #3570 > >     `(
00:03:08 verbose #3571 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:03:08 verbose #3572 > > Fable.Core.Emit(\"tokio::task::JoinHandle<$0>\")>]]\n#endif\ntype
00:03:08 verbose #3573 > > tokio_task_JoinHandle<'T> = class end"
00:03:08 verbose #3574 > >         $'' : $'tokio_task_JoinHandle<`t>'
00:03:08 verbose #3575 > >     )
00:03:08 verbose #3576 > 00:03:07   debug #254 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/bcaf0d62abe715814a8f12fac3b042876dbedaef02c9aff476bcf8735422319d/main.spi
00:03:08 verbose #3577 > >
00:03:08 verbose #3578 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:08 verbose #3579 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:08 verbose #3580 > > │ ### spawn                                                                    │
00:03:08 verbose #3581 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:08 verbose #3582 > >
00:03:08 verbose #3583 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:08 verbose #3584 > > inl spawn forall t. (fn : future_pin_send t) : join_handle t =
00:03:08 verbose #3585 > >     !\($'"tokio::runtime::spawn(!fn)"')
00:03:08 verbose #3586 > 00:03:08   debug #255 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3a2bfcf6e14bb6fab20ae19d618397224b8d04716e165302398595227a33074e/main.spi
00:03:08 verbose #3587 > >
00:03:08 verbose #3588 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:08 verbose #3589 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:08 verbose #3590 > > │ ### try_join_all                                                             │
00:03:08 verbose #3591 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:08 verbose #3592 > >
00:03:08 verbose #3593 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:08 verbose #3594 > > nominal try_join_all t =
00:03:08 verbose #3595 > >     `(
00:03:08 verbose #3596 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:03:08 verbose #3597 > > Fable.Core.Emit(\"futures::future::TryJoinAll<$0>\")>]]\n#endif\ntype
00:03:08 verbose #3598 > > futures_future_TryJoinAll<'T> = class end"
00:03:08 verbose #3599 > >         $'' : $'futures_future_TryJoinAll<`t>'
00:03:08 verbose #3600 > >     )
00:03:08 verbose #3601 > >
00:03:08 verbose #3602 > > inl try_join_all forall t. (x : am'.vec (future_pin (resultm.result' t
00:03:08 verbose #3603 > > sm'.std_string))) : try_join_all (future_pin (resultm.result' t sm'.std_string))
00:03:08 verbose #3604 > > =
00:03:08 verbose #3605 > >     inl x = join x
00:03:08 verbose #3606 > >     !\($'"futures::future::try_join_all(!x)"')
00:03:09 verbose #3607 > 00:03:08   debug #256 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8cffd1f358747b5b30a14ab2ea9ef2688589b3ec1df5febd1b2db19b804f27e3/main.spi
00:03:09 verbose #3608 > >
00:03:09 verbose #3609 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:09 verbose #3610 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:09 verbose #3611 > > │ ### fuse                                                                     │
00:03:09 verbose #3612 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:09 verbose #3613 > >
00:03:09 verbose #3614 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:09 verbose #3615 > > nominal fuse t =
00:03:09 verbose #3616 > >     `(
00:03:09 verbose #3617 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:03:09 verbose #3618 > > Fable.Core.Emit(\"tokio::prelude::stream::Fuse<$0>\")>]]\n#endif\ntype
00:03:09 verbose #3619 > > tokio_prelude_stream_Fuse<'T> = class end"
00:03:09 verbose #3620 > >         $'' : $'tokio_prelude_stream_Fuse<`t>'
00:03:09 verbose #3621 > >     )
00:03:09 verbose #3622 > 00:03:08   debug #257 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/00ab959753ccfe43b8c097baa47fe821a0e30d9f4003bb8c2e87d773c77483a2/main.spi
00:03:09 verbose #3623 > >
00:03:09 verbose #3624 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:09 verbose #3625 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:09 verbose #3626 > > │ ### future_fuse                                                              │
00:03:09 verbose #3627 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:09 verbose #3628 > >
00:03:09 verbose #3629 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:09 verbose #3630 > > inl future_fuse forall t. (x : future_pin t) : fuse (future_pin t) =
00:03:09 verbose #3631 > >     !\($'"futures::future::FutureExt::fuse(!x)"')
00:03:09 verbose #3632 > 00:03:09   debug #258 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f192a30a8c64fadb4c169fc9d1ae540fcbbf4de20d4d87858e33292fb0206ad9/main.spi
00:03:09 verbose #3633 > >
00:03:09 verbose #3634 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:09 verbose #3635 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:09 verbose #3636 > > │ ### join_all                                                                 │
00:03:09 verbose #3637 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:09 verbose #3638 > >
00:03:09 verbose #3639 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:09 verbose #3640 > > nominal join_all t =
00:03:09 verbose #3641 > >     `(
00:03:09 verbose #3642 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:03:09 verbose #3643 > > Fable.Core.Emit(\"futures::future::JoinAll<$0>\")>]]\n#endif\ntype
00:03:09 verbose #3644 > > futures_future_JoinAll<'T> = class end"
00:03:09 verbose #3645 > >         $'' : $'futures_future_JoinAll<`t>'
00:03:09 verbose #3646 > >     )
00:03:09 verbose #3647 > >
00:03:09 verbose #3648 > > inl join_all forall t. (x : am'.vec (future_pin t)) : join_all (future_pin t) =
00:03:09 verbose #3649 > >     inl x = join x
00:03:09 verbose #3650 > >     !\($'"futures::future::join_all(!x)"')
00:03:10 verbose #3651 > 00:03:09   debug #259 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5057540b64071591b4f772b349f4f5fac8e5081beaf0c76d70ca0c1f50ad3a9a/main.spi
00:03:10 verbose #3652 > >
00:03:10 verbose #3653 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:10 verbose #3654 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:10 verbose #3655 > > │ ### join_all_send                                                            │
00:03:10 verbose #3656 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:10 verbose #3657 > >
00:03:10 verbose #3658 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:10 verbose #3659 > > inl join_all_send forall t. (x : am'.vec (future_pin_send t)) : join_all
00:03:10 verbose #3660 > > (future_pin_send t) =
00:03:10 verbose #3661 > >     inl x = join x
00:03:10 verbose #3662 > >     !\($'"futures::future::join_all(!x)"')
00:03:10 verbose #3663 > 00:03:09   debug #260 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/15094437f60592df8bd13d3da2568ddf2d0fb262f44966603f6b7035215feeb8/main.spi
00:03:10 verbose #3664 > >
00:03:10 verbose #3665 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:10 verbose #3666 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:10 verbose #3667 > > │ ### await_handle                                                             │
00:03:10 verbose #3668 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:10 verbose #3669 > >
00:03:10 verbose #3670 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:10 verbose #3671 > > inl await_handle forall t. (x : join_handle t) : t =
00:03:10 verbose #3672 > >     !\($'"!x.await"')
00:03:10 verbose #3673 > 00:03:10   debug #261 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/122f9a509ed9d33d08376e6968547d753b0ccb6daea2e71eb6c5f8ce1fe45f8a/main.spi
00:03:11 verbose #3674 > >
00:03:11 verbose #3675 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:11 verbose #3676 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:11 verbose #3677 > > │ ### await_all                                                                │
00:03:11 verbose #3678 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:11 verbose #3679 > >
00:03:11 verbose #3680 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:11 verbose #3681 > > inl await_all forall t. (x : join_all (future_pin t)) : am'.vec t =
00:03:11 verbose #3682 > >     !\($'"!x.await"')
00:03:11 verbose #3683 > 00:03:10   debug #262 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f117b59766171fbf817c55811ac83730773f5739b6939dfc53f9f0b1cafa1f8e/main.spi
00:03:11 verbose #3684 > >
00:03:11 verbose #3685 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:11 verbose #3686 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:11 verbose #3687 > > │ ### await_all_send                                                           │
00:03:11 verbose #3688 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:11 verbose #3689 > >
00:03:11 verbose #3690 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:11 verbose #3691 > > inl await_all_send forall t. (x : join_all (future_pin_send t)) : am'.vec t =
00:03:11 verbose #3692 > >     !\($'"!x.await"')
00:03:11 verbose #3693 > 00:03:10   debug #263 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c063e1e321fe006a19f46053f2b651aa5f5ff6d685b7c9d30d007eadbbab2c32/main.spi
00:03:11 verbose #3694 > >
00:03:11 verbose #3695 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:11 verbose #3696 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:11 verbose #3697 > > │ ### try_await_all                                                            │
00:03:11 verbose #3698 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:11 verbose #3699 > >
00:03:11 verbose #3700 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:11 verbose #3701 > > inl try_await_all forall t. (x : try_join_all (future_pin (resultm.result' t
00:03:11 verbose #3702 > > sm'.std_string))) : resultm.result' (am'.vec t) sm'.std_string =
00:03:11 verbose #3703 > >     !\($'"!x.await"')
00:03:11 verbose #3704 > 00:03:11   debug #264 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a4fa0731110a1a9bab94d28945e42b8ca35d726fff584dcfda24eeb0a10d8163/main.spi
00:03:12 verbose #3705 > >
00:03:12 verbose #3706 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:12 verbose #3707 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:12 verbose #3708 > > │ ### try_await_all_send                                                       │
00:03:12 verbose #3709 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:12 verbose #3710 > >
00:03:12 verbose #3711 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:12 verbose #3712 > > inl try_await_all_send forall t. (x : try_join_all (future_pin_send
00:03:12 verbose #3713 > > (resultm.result' t sm'.std_string))) : resultm.result' (am'.vec t)
00:03:12 verbose #3714 > > sm'.std_string =
00:03:12 verbose #3715 > >     !\($'"!x.await"')
00:03:12 verbose #3716 > 00:03:11   debug #265 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/de3e6823b1f8191baa1e4a2ba170bbc2f709854ce2cf076eac56a3d6231794e8/main.spi
00:03:12 verbose #3717 > >
00:03:12 verbose #3718 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:12 verbose #3719 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:12 verbose #3720 > > │ ### await                                                                    │
00:03:12 verbose #3721 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:12 verbose #3722 > >
00:03:12 verbose #3723 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:12 verbose #3724 > > inl await forall t. (x : future_pin t) : t =
00:03:12 verbose #3725 > >     !\($'"!x.await"')
00:03:12 verbose #3726 > 00:03:11   debug #266 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8cce4bc42d3f9b47851f897286a17b53a7068ec910517c71c8fbdac2e11049fb/main.spi
00:03:12 verbose #3727 > >
00:03:12 verbose #3728 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:12 verbose #3729 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:12 verbose #3730 > > │ ### await                                                                    │
00:03:12 verbose #3731 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:12 verbose #3732 > >
00:03:12 verbose #3733 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:12 verbose #3734 > > inl await_send forall t. (x : future_pin_send t) : t =
00:03:12 verbose #3735 > >     !\($'"!x.await"')
00:03:13 verbose #3736 > 00:03:12   debug #267 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/caafab6fc7903074f4e34f83b8dddbcdcaeb47fd7beada566a44d91b6b2e99f4/main.spi
00:03:13 verbose #3737 > >
00:03:13 verbose #3738 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:13 verbose #3739 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:13 verbose #3740 > > │ ### into_iter                                                                │
00:03:13 verbose #3741 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:13 verbose #3742 > >
00:03:13 verbose #3743 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:13 verbose #3744 > > nominal into_iter t =
00:03:13 verbose #3745 > >     `(
00:03:13 verbose #3746 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:03:13 verbose #3747 > > Fable.Core.Emit(\"rayon::vec::IntoIter<$0>\")>]]\n#endif\ntype
00:03:13 verbose #3748 > > rayon_vec_IntoIter<'T> = class end"
00:03:13 verbose #3749 > >         $'' : $'rayon_vec_IntoIter<`t>'
00:03:13 verbose #3750 > >     )
00:03:13 verbose #3751 > 00:03:12   debug #268 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3177a20adb9fc5d63f8c2e62c578707d0d0b64ebb1fbd1f9f95286252465c4a9/main.spi
00:03:13 verbose #3752 > >
00:03:13 verbose #3753 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:13 verbose #3754 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:13 verbose #3755 > > │ ### into_par_iter                                                            │
00:03:13 verbose #3756 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:13 verbose #3757 > >
00:03:13 verbose #3758 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:13 verbose #3759 > > inl into_par_iter forall t. (x : am'.vec t) : into_iter t =
00:03:13 verbose #3760 > >     !\($'"rayon::iter::IntoParallelIterator::into_par_iter(!x)"')
00:03:13 verbose #3761 > 00:03:13   debug #269 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/11db7336e546189accdc1bf15f888c4d1635137cc7e476736b2210c64e867888/main.spi
00:03:13 verbose #3762 > >
00:03:13 verbose #3763 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:13 verbose #3764 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:13 verbose #3765 > > │ ### par_iter                                                                 │
00:03:13 verbose #3766 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:13 verbose #3767 > >
00:03:13 verbose #3768 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:13 verbose #3769 > > inl par_iter forall t. (x : am'.vec t) : into_iter t =
00:03:13 verbose #3770 > >     !\($'"rayon::iter::IntoParallelIterator::par_iter(!x)"')
00:03:14 verbose #3771 > 00:03:13   debug #270 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1d816bd9d452a787d150d887575deeb21be5f952708271c000fab5908f3cb1d3/main.spi
00:03:14 verbose #3772 > >
00:03:14 verbose #3773 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:14 verbose #3774 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:14 verbose #3775 > > │ ### iter_map                                                                 │
00:03:14 verbose #3776 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:14 verbose #3777 > >
00:03:14 verbose #3778 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:14 verbose #3779 > > nominal iter_map t u =
00:03:14 verbose #3780 > >     `(
00:03:14 verbose #3781 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:03:14 verbose #3782 > > Fable.Core.Emit(\"rayon::iter::Map<$0, _>\")>]]\n#endif\ntype rayon_iter_Map<'T>
00:03:14 verbose #3783 > > = class end"
00:03:14 verbose #3784 > >         $'' : $'rayon_iter_Map<`t>'
00:03:14 verbose #3785 > >     )
00:03:14 verbose #3786 > 00:03:13   debug #271 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b64c17e4912085fa62d69c7a458d8fdbe053e0718c1a800136df9c862a0ec947/main.spi
00:03:14 verbose #3787 > >
00:03:14 verbose #3788 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:14 verbose #3789 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:14 verbose #3790 > > │ ### par_map                                                                  │
00:03:14 verbose #3791 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:14 verbose #3792 > >
00:03:14 verbose #3793 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:14 verbose #3794 > > inl par_map forall t u. (fn : t -> u) (ar : into_iter t) : iter_map (into_iter
00:03:14 verbose #3795 > > t) u =
00:03:14 verbose #3796 > >     !\\((ar, fn), $'"rayon::iter::ParallelIterator::map($0, |x| $1(x))"')
00:03:14 verbose #3797 > 00:03:14   debug #272 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/26ba537270c7b123fd2fdcae0e93ee8dd9ab903c551c547e62703446f35bf81e/main.spi
00:03:14 verbose #3798 > >
00:03:14 verbose #3799 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:14 verbose #3800 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:14 verbose #3801 > > │ ### par_collect                                                              │
00:03:14 verbose #3802 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:14 verbose #3803 > >
00:03:14 verbose #3804 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:14 verbose #3805 > > inl par_collect forall t u. (iter : iter_map (into_iter t) u) : am'.vec u =
00:03:14 verbose #3806 > >     !\\(iter, $'"rayon::iter::ParallelIterator::collect($0)"')
00:03:15 verbose #3807 > 00:03:14   debug #273 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3f04e81965beb4d8454b7b2acc50660d151cb1cfa57c8e841ad455bd6e959e0f/main.spi
00:03:15 verbose #3808 > >
00:03:15 verbose #3809 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:15 verbose #3810 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:15 verbose #3811 > > │ ### try_join_all_iter                                                        │
00:03:15 verbose #3812 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:15 verbose #3813 > >
00:03:15 verbose #3814 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:15 verbose #3815 > > inl try_join_all_iter forall t. (x : am'.vec (future_pin_send (resultm.result' t
00:03:15 verbose #3816 > > sm'.std_string))) : try_join_all (future_pin_send (resultm.result' t
00:03:15 verbose #3817 > > sm'.std_string)) =
00:03:15 verbose #3818 > >     inl x = join x
00:03:15 verbose #3819 > >     !\($'"futures::future::try_join_all(!x)"')
00:03:15 verbose #3820 > 00:03:14   debug #274 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/46e658b9815d5fce5681365dd712e3d9a3b1c7538d6ead09abb97971893655f0/main.spi
00:03:15 verbose #3821 > >
00:03:15 verbose #3822 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:15 verbose #3823 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:15 verbose #3824 > > │ ### new_future                                                               │
00:03:15 verbose #3825 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:15 verbose #3826 > >
00:03:15 verbose #3827 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:15 verbose #3828 > > inl new_future forall t. (x : () -> t) : future_pin t =
00:03:15 verbose #3829 > >     join
00:03:15 verbose #3830 > >         !\($'"{Box::pin(async { //"')
00:03:15 verbose #3831 > >         x () |> fun x => join $'!x '
00:03:15 verbose #3832 > >         !\($'"}}) //"')
00:03:15 verbose #3833 > 00:03:15   debug #275 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ae49f9750bab0e411a6fd2cba9633ad74b504c700ca4837e7e871d150e67b2c9/main.spi
00:03:16 verbose #3834 > >
00:03:16 verbose #3835 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:16 verbose #3836 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:16 verbose #3837 > > │ ### new_future_move                                                          │
00:03:16 verbose #3838 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:16 verbose #3839 > >
00:03:16 verbose #3840 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:16 verbose #3841 > > inl new_future_move forall t. (x : () -> t) : future_pin t =
00:03:16 verbose #3842 > >     join
00:03:16 verbose #3843 > >         !\($'"{Box::pin(async move { //"')
00:03:16 verbose #3844 > >         x () |> fun x => join $'!x '
00:03:16 verbose #3845 > >         !\($'"}}) //"')
00:03:16 verbose #3846 > 00:03:15   debug #276 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f77873fbc2e231ea5927a9fbbfca58f3ff81fe2882d6d76c5238847ee139e9c2/main.spi
00:03:16 verbose #3847 > >
00:03:16 verbose #3848 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:16 verbose #3849 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:16 verbose #3850 > > │ ### future_init                                                              │
00:03:16 verbose #3851 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:16 verbose #3852 > >
00:03:16 verbose #3853 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:16 verbose #3854 > > inl future_init forall t. (depth : (u8 * u8)) (flag : u8) (x : () -> t) :
00:03:16 verbose #3855 > > future_pin t =
00:03:16 verbose #3856 > >     // join
00:03:16 verbose #3857 > >     //     if flag = 1
00:03:16 verbose #3858 > >     //     then new_future_move x
00:03:16 verbose #3859 > >     //     else new_future x
00:03:16 verbose #3860 > >     if flag = 1
00:03:16 verbose #3861 > >     then !\($'"let __result = Box::pin(async move { //"')
00:03:16 verbose #3862 > >     else !\($'"let __result = Box::pin(async { //"')
00:03:16 verbose #3863 > >
00:03:16 verbose #3864 > >     let x' = x ()
00:03:16 verbose #3865 > >     inl x' = join x'
00:03:16 verbose #3866 > >
00:03:16 verbose #3867 > >     x' |> rust.fix_closure depth
00:03:16 verbose #3868 > >
00:03:16 verbose #3869 > >     !\($'"__result"')
00:03:16 verbose #3870 > 00:03:15   debug #277 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0146d1b128cd733b59c9d2b4a36674b5d4b47fa5fd5ab70132eec8949650f020/main.spi
00:03:16 verbose #3871 > >
00:03:16 verbose #3872 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:16 verbose #3873 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:16 verbose #3874 > > │ ### future_init_send                                                         │
00:03:16 verbose #3875 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:16 verbose #3876 > >
00:03:16 verbose #3877 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:16 verbose #3878 > > inl future_init_send forall t. (depth : (u8 * u8)) (flag : u8) (x : () -> t) :
00:03:16 verbose #3879 > > future_pin_send t =
00:03:16 verbose #3880 > >     // join
00:03:16 verbose #3881 > >     //     if flag = 1
00:03:16 verbose #3882 > >     //     then new_future_move x
00:03:16 verbose #3883 > >     //     else new_future x
00:03:16 verbose #3884 > >     join
00:03:16 verbose #3885 > >         if flag = 1
00:03:16 verbose #3886 > >         then !\($'"let __result = Box::pin(async move { //"')
00:03:16 verbose #3887 > >         else !\($'"let __result = Box::pin(async { //"')
00:03:16 verbose #3888 > >
00:03:16 verbose #3889 > >         let x' = x ()
00:03:16 verbose #3890 > >         inl x' = join x'
00:03:16 verbose #3891 > >
00:03:16 verbose #3892 > >         x' |> rust.fix_closure depth
00:03:16 verbose #3893 > >
00:03:16 verbose #3894 > >         !\($'"__result"')
00:03:17 verbose #3895 > 00:03:16   debug #278 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1bbde596cfd161d769c1838d14d0fb60ef11e84c6ca50c9486bec9930a4e4acd/main.spi
00:03:17 verbose #3896 > >
00:03:17 verbose #3897 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:17 verbose #3898 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:17 verbose #3899 > > │ ### new_future_move_init                                                     │
00:03:17 verbose #3900 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:17 verbose #3901 > >
00:03:17 verbose #3902 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:17 verbose #3903 > > inl new_future_move_init forall t. (depth : (u8 * u8)) (flag : u8) (x : () -> t)
00:03:17 verbose #3904 > > : future_pin t =
00:03:17 verbose #3905 > >     future_init depth flag x
00:03:17 verbose #3906 > >     // join
00:03:17 verbose #3907 > >     //     !\($'"{Box::pin(async move { //"')
00:03:17 verbose #3908 > >     //     inl x' = x () |> fun x => join $'!x '
00:03:17 verbose #3909 > >     //         inl depth = depth |> fst
00:03:17 verbose #3910 > >     //         if depth = 1
00:03:17 verbose #3911 > >     //         then !\($'"!x' })"')
00:03:17 verbose #3912 > >     //         elif depth = 2
00:03:17 verbose #3913 > >     //         then !\($'"!x' }})"')
00:03:17 verbose #3914 > >     //         elif depth = 3
00:03:17 verbose #3915 > >     //         then !\($'"!x' }}})"')
00:03:17 verbose #3916 > >     //         elif depth = 4
00:03:17 verbose #3917 > >     //         then !\($'"!x' }}}})"')
00:03:17 verbose #3918 > >
00:03:17 verbose #3919 > >     //         !\($'"// 1"')
00:03:17 verbose #3920 > 00:03:16   debug #279 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8b733bc2c0ce458e41cb78e5693f2c9268dded67ed078ca9e9ff4a165b04b833/main.spi
00:03:17 verbose #3921 > >
00:03:17 verbose #3922 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:17 verbose #3923 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:17 verbose #3924 > > │ ## fsharp                                                                    │
00:03:17 verbose #3925 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:17 verbose #3926 > >
00:03:17 verbose #3927 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:17 verbose #3928 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:17 verbose #3929 > > │ ### async                                                                    │
00:03:17 verbose #3930 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:17 verbose #3931 > >
00:03:17 verbose #3932 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:17 verbose #3933 > > nominal async t = $'Async<`t>'
00:03:17 verbose #3934 > 00:03:16   debug #280 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/47989016e3409b246f9b24dd88ad45d2812f5038ad37554b1f59037f3bb1d27e/main.spi
00:03:17 verbose #3935 > >
00:03:17 verbose #3936 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:17 verbose #3937 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:17 verbose #3938 > > │ ### task                                                                     │
00:03:17 verbose #3939 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:17 verbose #3940 > >
00:03:17 verbose #3941 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:17 verbose #3942 > > nominal task t =
00:03:17 verbose #3943 > >     `(
00:03:17 verbose #3944 > >         typecase t with
00:03:17 verbose #3945 > >         | () => $'' : $'System.Threading.Tasks.Task'
00:03:17 verbose #3946 > >         | _ => $'' : $'System.Threading.Tasks.Task<`t>'
00:03:17 verbose #3947 > >     )
00:03:18 verbose #3948 > 00:03:17   debug #281 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/37949af4b9a338f270e71920bcbce3eafd62b6ee835deb3ecb42defcfe201355/main.spi
00:03:18 verbose #3949 > >
00:03:18 verbose #3950 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:18 verbose #3951 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:18 verbose #3952 > > │ ### new_async_unit                                                           │
00:03:18 verbose #3953 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:18 verbose #3954 > >
00:03:18 verbose #3955 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:18 verbose #3956 > > inl new_async_unit forall t. (fn : () -> ()) : async t =
00:03:18 verbose #3957 > >     run_target function
00:03:18 verbose #3958 > >         | Fsharp (Native) => fun () =>
00:03:18 verbose #3959 > >             inl result : optionm'.option' (async t) = optionm'.none' ()
00:03:18 verbose #3960 > >             $'let mutable _!result = !result '
00:03:18 verbose #3961 > >             $'async {'
00:03:18 verbose #3962 > >             fn ()
00:03:18 verbose #3963 > >             $'}'
00:03:18 verbose #3964 > >             $'|> fun x -> _!result <- Some x'
00:03:18 verbose #3965 > >             $'match _!result with Some x -> x | None -> failwith
00:03:18 verbose #3966 > > "async.new_async_unit / _!result=None"'
00:03:18 verbose #3967 > >         | _ => fun () => null ()
00:03:18 verbose #3968 > 00:03:17   debug #282 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e1e56812f0dc189383d5b81bb809e9c7f68ebec6e9586af71b048d220e80ef29/main.spi
00:03:18 verbose #3969 > >
00:03:18 verbose #3970 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:18 verbose #3971 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:18 verbose #3972 > > │ ### new_async                                                                │
00:03:18 verbose #3973 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:18 verbose #3974 > >
00:03:18 verbose #3975 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:18 verbose #3976 > > inl new_async forall t. (fn : () -> t) : async t =
00:03:18 verbose #3977 > >     new_async_unit (fn >> ignore)
00:03:18 verbose #3978 > 00:03:18   debug #283 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/eecfe83c3f3afd937fb0b7cd94715d20718bd95aaa7aab8325c35f6783945241/main.spi
00:03:19 verbose #3979 > >
00:03:19 verbose #3980 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:19 verbose #3981 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:19 verbose #3982 > > │ ### new_task                                                                 │
00:03:19 verbose #3983 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:19 verbose #3984 > >
00:03:19 verbose #3985 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:19 verbose #3986 > > inl new_task forall t. (fn : () -> t) : task t =
00:03:19 verbose #3987 > >     run_target function
00:03:19 verbose #3988 > >         | Fsharp (Native) => fun () =>
00:03:19 verbose #3989 > >             inl result : optionm'.option' (task t) = optionm'.none' ()
00:03:19 verbose #3990 > >             $'let mutable _!result = !result '
00:03:19 verbose #3991 > >             $'task {'
00:03:19 verbose #3992 > >             fn () |> ignore
00:03:19 verbose #3993 > >             $'}'
00:03:19 verbose #3994 > >             $'|> fun x -> _!result <- Some x'
00:03:19 verbose #3995 > >             $'match _!result with Some x -> x | None -> failwith "async.new_task
00:03:19 verbose #3996 > > / _!result=None"'
00:03:19 verbose #3997 > >         | _ => fun () => null ()
00:03:19 verbose #3998 > 00:03:18   debug #284 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/57b3c475cf00a812801796ff70a288ad7d04416e8fc0402f715b08397e75a285/main.spi
00:03:19 verbose #3999 > >
00:03:19 verbose #4000 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:19 verbose #4001 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:19 verbose #4002 > > │ ### await_task                                                               │
00:03:19 verbose #4003 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:19 verbose #4004 > >
00:03:19 verbose #4005 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:19 verbose #4006 > > inl await_task forall t. (a : task t) : async t =
00:03:19 verbose #4007 > >     run_target function
00:03:19 verbose #4008 > >         | Fsharp (Native) => fun () =>
00:03:19 verbose #4009 > >             a |> $'Async.AwaitTask'
00:03:19 verbose #4010 > >         | _ => fun () => null ()
00:03:19 verbose #4011 > 00:03:18   debug #285 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/247387c235ba03d837adee39fee61ca7619780da72ab06ba8b92962566872d81/main.spi
00:03:19 verbose #4012 > >
00:03:19 verbose #4013 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:19 verbose #4014 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:19 verbose #4015 > > │ ### ignore                                                                   │
00:03:19 verbose #4016 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:19 verbose #4017 > >
00:03:19 verbose #4018 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:19 verbose #4019 > > inl ignore forall t. (a : async t) : async () =
00:03:19 verbose #4020 > >     run_target function
00:03:19 verbose #4021 > >         | Fsharp (Native) => fun () =>
00:03:19 verbose #4022 > >             a |> $'Async.Ignore'
00:03:19 verbose #4023 > >         | _ => fun () => null ()
00:03:20 verbose #4024 > 00:03:19   debug #286 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/dca2f186e736ab7f7d1d8794d1e9ac4e7ffedf678b4a24add0a2736c36c1b464/main.spi
00:03:20 verbose #4025 > >
00:03:20 verbose #4026 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:20 verbose #4027 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:20 verbose #4028 > > │ ### run_synchronously                                                        │
00:03:20 verbose #4029 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:20 verbose #4030 > >
00:03:20 verbose #4031 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:20 verbose #4032 > > inl run_synchronously forall t. (a : async t) : t =
00:03:20 verbose #4033 > >     run_target function
00:03:20 verbose #4034 > >         | Fsharp (Native) => fun () =>
00:03:20 verbose #4035 > >             a |> $'Async.RunSynchronously'
00:03:20 verbose #4036 > >         | _ => fun () => null ()
00:03:20 verbose #4037 > 00:03:19   debug #287 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4f5590a644a28d235f24dfe19f3d75ce469829289c14f5fea79f9b0e93f0d9b2/main.spi
00:03:20 verbose #4038 > >
00:03:20 verbose #4039 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:20 verbose #4040 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:20 verbose #4041 > > │ ### start                                                                    │
00:03:20 verbose #4042 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:20 verbose #4043 > >
00:03:20 verbose #4044 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:20 verbose #4045 > > inl start (a : async ()) : () =
00:03:20 verbose #4046 > >     run_target function
00:03:20 verbose #4047 > >         | Fsharp (Native) => fun () =>
00:03:20 verbose #4048 > >             a |> $'Async.Start'
00:03:20 verbose #4049 > >         | _ => fun () => null ()
00:03:20 verbose #4050 > 00:03:20   debug #288 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f92c6012fc53042e18b4be3f24b557ab9e74d5bd69b369380d7dc0bc2a4ecdc9/main.spi
00:03:21 verbose #4051 > >
00:03:21 verbose #4052 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:21 verbose #4053 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:21 verbose #4054 > > │ ### start_child                                                              │
00:03:21 verbose #4055 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:21 verbose #4056 > >
00:03:21 verbose #4057 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:21 verbose #4058 > > inl start_child forall t. (a : async t) : async (async t) =
00:03:21 verbose #4059 > >     run_target function
00:03:21 verbose #4060 > >         | Fsharp (Native) => fun () =>
00:03:21 verbose #4061 > >             a |> $'Async.StartChild'
00:03:21 verbose #4062 > >         | _ => fun () => null ()
00:03:21 verbose #4063 > 00:03:20   debug #289 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1a26b9f3ab7f745b3e9e1f07fc3d1c985fc2d714ccf400c708aed94d00c1cd66/main.spi
00:03:21 verbose #4064 > >
00:03:21 verbose #4065 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:21 verbose #4066 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:21 verbose #4067 > > │ ### start_child_timeout                                                      │
00:03:21 verbose #4068 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:21 verbose #4069 > >
00:03:21 verbose #4070 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:21 verbose #4071 > > inl start_child_timeout forall t. (timeout : i32) (a : async t) : async (async
00:03:21 verbose #4072 > > t) =
00:03:21 verbose #4073 > >     run_target function
00:03:21 verbose #4074 > >         | Fsharp (Native) => fun () =>
00:03:21 verbose #4075 > >             $'Async.StartChild (!a, !timeout)'
00:03:21 verbose #4076 > >         | _ => fun () => null ()
00:03:21 verbose #4077 > 00:03:20   debug #290 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/44aaf9f14c5bd051020f50961f0dc1ba8fe6958236a34837964a7266194008fb/main.spi
00:03:21 verbose #4078 > >
00:03:21 verbose #4079 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:21 verbose #4080 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:21 verbose #4081 > > │ ### start_immediate                                                          │
00:03:21 verbose #4082 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:21 verbose #4083 > >
00:03:21 verbose #4084 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:21 verbose #4085 > > inl start_immediate forall t. (a : async t) : () =
00:03:21 verbose #4086 > >     run_target function
00:03:21 verbose #4087 > >         | Fsharp (Native) => fun () =>
00:03:21 verbose #4088 > >             a |> $'Async.StartImmediate'
00:03:21 verbose #4089 > >         | _ => fun () => null ()
00:03:22 verbose #4090 > 00:03:21   debug #291 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ae53e479957b26cec45d4aea134f38d6f9d1c10a993c8ea806fd108f45402aee/main.spi
00:03:22 verbose #4091 > >
00:03:22 verbose #4092 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:22 verbose #4093 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:22 verbose #4094 > > │ ### task_canceled_exception                                                  │
00:03:22 verbose #4095 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:22 verbose #4096 > >
00:03:22 verbose #4097 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:22 verbose #4098 > > nominal task_canceled_exception =
00:03:22 verbose #4099 > > $'System.Threading.Tasks.TaskCanceledException'
00:03:22 verbose #4100 > 00:03:21   debug #292 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9366ee8f89c27e44f415047380c871b7280137ad61672e918a1751efb34d8dc6/main.spi
00:03:22 verbose #4101 > >
00:03:22 verbose #4102 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:22 verbose #4103 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:22 verbose #4104 > > │ ### sleep                                                                    │
00:03:22 verbose #4105 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:22 verbose #4106 > >
00:03:22 verbose #4107 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:22 verbose #4108 > > inl sleep (ms : i32) : async () =
00:03:22 verbose #4109 > >     run_target function
00:03:22 verbose #4110 > >         | Fsharp (Native) => fun () =>
00:03:22 verbose #4111 > >             ms |> $'Async.Sleep'
00:03:22 verbose #4112 > >         | _ => fun () => null ()
00:03:22 verbose #4113 > 00:03:22   debug #293 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d2eeb1347c866152498ebc1d4108f9e880dbde82f63940e433ada285b436bca4/main.spi
00:03:23 verbose #4114 > >
00:03:23 verbose #4115 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:23 verbose #4116 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:23 verbose #4117 > > │ ### do                                                                       │
00:03:23 verbose #4118 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:23 verbose #4119 > >
00:03:23 verbose #4120 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:23 verbose #4121 > > inl do (a : async ()) : () =
00:03:23 verbose #4122 > >     $'do\! !a '
00:03:23 verbose #4123 > 00:03:22   debug #294 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e559b71331bc49efbf795b54ed0c6bbc198f9252c824c410f89ccdc1ae2b7677/main.spi
00:03:23 verbose #4124 > >
00:03:23 verbose #4125 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:23 verbose #4126 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:23 verbose #4127 > > │ ### let'                                                                     │
00:03:23 verbose #4128 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:23 verbose #4129 > >
00:03:23 verbose #4130 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:23 verbose #4131 > > inl let' forall t. (a : async t) : t =
00:03:23 verbose #4132 > >     $'let\! !a = !a '
00:03:23 verbose #4133 > >     $'!a '
00:03:23 verbose #4134 > 00:03:22   debug #295 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/73f93826e6896a024c01cea24b89ea3fb418b658544c4c106d8eccecb38618c6/main.spi
00:03:23 verbose #4135 > >
00:03:23 verbose #4136 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:23 verbose #4137 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:23 verbose #4138 > > │ ### return_await                                                             │
00:03:23 verbose #4139 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:23 verbose #4140 > >
00:03:23 verbose #4141 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:23 verbose #4142 > > inl return_await forall t. (a : async t) : () =
00:03:23 verbose #4143 > >     $'return\! !a '
00:03:24 verbose #4144 > 00:03:23   debug #296 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/50ff0441ca887d8cda1722e3853294a7f3dbf4efc34b9bb4b0da2db39ac91077/main.spi
00:03:24 verbose #4145 > >
00:03:24 verbose #4146 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:24 verbose #4147 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:24 verbose #4148 > > │ ### return_await'                                                            │
00:03:24 verbose #4149 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:24 verbose #4150 > >
00:03:24 verbose #4151 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:24 verbose #4152 > > inl return_await' forall t. (a : async t) : t =
00:03:24 verbose #4153 > >     $'return\! !a '
00:03:24 verbose #4154 > 00:03:23   debug #297 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9a13fddd2c9d295ab218a2aeb1021a33086271ea263d1606626f4522de4f1f5e/main.spi
00:03:24 verbose #4155 > >
00:03:24 verbose #4156 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:24 verbose #4157 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:24 verbose #4158 > > │ ### map                                                                      │
00:03:24 verbose #4159 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:24 verbose #4160 > >
00:03:24 verbose #4161 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:24 verbose #4162 > > inl map forall t u. (fn : t -> u) (a : async t) : async u =
00:03:24 verbose #4163 > >     fun () =>
00:03:24 verbose #4164 > >         inl x = a |> let'
00:03:24 verbose #4165 > >         fn x |> return
00:03:24 verbose #4166 > >     |> new_async_unit
00:03:24 verbose #4167 > 00:03:24   debug #298 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/081172056cca2e454ccf23a547e5da56f794975b7c93ff8e4722baf1316b5e56/main.spi
00:03:24 verbose #4168 > >
00:03:24 verbose #4169 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:24 verbose #4170 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:24 verbose #4171 > > │ ### catch'                                                                   │
00:03:24 verbose #4172 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:24 verbose #4173 > >
00:03:24 verbose #4174 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:24 verbose #4175 > > inl catch' forall t e. (a : async t) : async (choice2' t e) =
00:03:24 verbose #4176 > >     run_target function
00:03:24 verbose #4177 > >         | Fsharp (Native) => fun () =>
00:03:24 verbose #4178 > >             a |> $'Async.Catch'
00:03:24 verbose #4179 > >         | _ => fun () => null ()
00:03:25 verbose #4180 > 00:03:24   debug #299 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2e1604b8ffb3f18a794c32cdcc9f9cd458cacdf30b930915e740034cfdeb65da/main.spi
00:03:25 verbose #4181 > >
00:03:25 verbose #4182 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:25 verbose #4183 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:25 verbose #4184 > > │ ### catch                                                                    │
00:03:25 verbose #4185 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:25 verbose #4186 > >
00:03:25 verbose #4187 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:25 verbose #4188 > > inl catch forall t e. (a : async t) : async (result t e) =
00:03:25 verbose #4189 > >     a
00:03:25 verbose #4190 > >     |> catch'
00:03:25 verbose #4191 > >     |> map choice2_unbox
00:03:25 verbose #4192 > >     |> map function
00:03:25 verbose #4193 > >         | C1of2 result => Ok result
00:03:25 verbose #4194 > >         | C2of2 ex => Error ex
00:03:25 verbose #4195 > 00:03:24   debug #300 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/68ba26a47a5d386ef89fa9716f6cc9e93dbc8f0dc161372c59236a84e3972b3a/main.spi
00:03:25 verbose #4196 > >
00:03:25 verbose #4197 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:25 verbose #4198 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:25 verbose #4199 > > │ ### run_with_timeout_async                                                   │
00:03:25 verbose #4200 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:25 verbose #4201 > >
00:03:25 verbose #4202 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:25 verbose #4203 > > inl run_with_timeout_async forall t. (timeout : i32) (fn : async t) : async
00:03:25 verbose #4204 > > (option t) =
00:03:25 verbose #4205 > >     run_target function
00:03:25 verbose #4206 > >         | Fsharp (Native) => fun () =>
00:03:25 verbose #4207 > >             fun () =>
00:03:25 verbose #4208 > >                 inl child = fn |> start_child_timeout timeout |> let'
00:03:25 verbose #4209 > >                 child
00:03:25 verbose #4210 > >                 |> catch
00:03:25 verbose #4211 > >                 |> map function
00:03:25 verbose #4212 > >                     | Ok result => Some result
00:03:25 verbose #4213 > >                     | Error ex when ex |> sm'.format_debug |> sm'.contains
00:03:25 verbose #4214 > > "System.TimeoutException" =>
00:03:25 verbose #4215 > >                         trace Verbose
00:03:25 verbose #4216 > >                             fun () => $'"async.run_with_timeout_async"'
00:03:25 verbose #4217 > >                             fun () => { timeout }
00:03:25 verbose #4218 > >                         None
00:03:25 verbose #4219 > >                     | Error (ex : exn) =>
00:03:25 verbose #4220 > >                         trace Critical
00:03:25 verbose #4221 > >                             fun () => $'$"async.run_with_timeout_async**"'
00:03:25 verbose #4222 > >                             fun () => { timeout ex = ex |> sm'.format_exception
00:03:25 verbose #4223 > > }
00:03:25 verbose #4224 > >                         None
00:03:25 verbose #4225 > >                 |> return_await
00:03:25 verbose #4226 > >             |> new_async_unit
00:03:25 verbose #4227 > >         | _ => fun () => null ()
00:03:25 verbose #4228 > 00:03:25   debug #301 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6035fb947581c1509218982fbf1c66184d29b360175c96461b2d60e1ebcf7c6d/main.spi
00:03:26 verbose #4229 > >
00:03:26 verbose #4230 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:26 verbose #4231 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:26 verbose #4232 > > │ ### run_with_timeout                                                         │
00:03:26 verbose #4233 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:26 verbose #4234 > >
00:03:26 verbose #4235 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:26 verbose #4236 > > inl run_with_timeout timeout fn =
00:03:26 verbose #4237 > >     fn
00:03:26 verbose #4238 > >     |> run_with_timeout_async timeout
00:03:26 verbose #4239 > >     |> run_synchronously
00:03:26 verbose #4240 > 00:03:25   debug #302 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/37bed1d9911df307e2500f3638ef3f68f13ec50558a2a6c2a1072f68985a9569/main.spi
00:03:26 verbose #4241 > >
00:03:26 verbose #4242 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:26 verbose #4243 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:26 verbose #4244 > > │ ### cancellation_token                                                       │
00:03:26 verbose #4245 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:26 verbose #4246 > >
00:03:26 verbose #4247 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:26 verbose #4248 > > inl cancellation_token () : async threading.cancellation_token =
00:03:26 verbose #4249 > >     $'Async.CancellationToken'
00:03:26 verbose #4250 > 00:03:25   debug #303 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c3da050efcc32a1424954bc4047f216f8dd31829c6f5f4653af421d5320c1d12/main.spi
00:03:26 verbose #4251 > >
00:03:26 verbose #4252 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:26 verbose #4253 > > inl default_cancellation_token () : threading.cancellation_token =
00:03:26 verbose #4254 > >     $'Async.DefaultCancellationToken'
00:03:27 verbose #4255 > 00:03:26   debug #304 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b8e2eb76989287ea49308b2988edfc8fb7808348723d3b7781ca0317b63ae8a0/main.spi
00:03:27 verbose #4256 > >
00:03:27 verbose #4257 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:27 verbose #4258 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:27 verbose #4259 > > │ ### merge_cancellation_token_with_default_async                              │
00:03:27 verbose #4260 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:27 verbose #4261 > >
00:03:27 verbose #4262 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:27 verbose #4263 > > inl merge_cancellation_token_with_default_async
00:03:27 verbose #4264 > >     (token : threading.cancellation_token)
00:03:27 verbose #4265 > >     : async threading.cancellation_token
00:03:27 verbose #4266 > >     =
00:03:27 verbose #4267 > >     run_target function
00:03:27 verbose #4268 > >         | Fsharp (Native) => fun () =>
00:03:27 verbose #4269 > >             fun () =>
00:03:27 verbose #4270 > >                 inl ct = cancellation_token () |> let'
00:03:27 verbose #4271 > >                 inl dct = default_cancellation_token ()
00:03:27 verbose #4272 > >                 inl cts = threading.create_linked_token_source ;[[ ct; dct;
00:03:27 verbose #4273 > > token ]]
00:03:27 verbose #4274 > >                 cts |> threading.cancellation_source_token |> return
00:03:27 verbose #4275 > >             |> new_async_unit
00:03:27 verbose #4276 > >         | _ => fun () => null ()
00:03:27 verbose #4277 > 00:03:26   debug #305 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e5b98cd83c4295f856f17116f3be1de35692e3e53b6522823d6899991acf9e84/main.spi
00:03:27 verbose #4278 > >
00:03:27 verbose #4279 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:27 verbose #4280 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:27 verbose #4281 > > │ ### with_trace_level                                                         │
00:03:27 verbose #4282 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:27 verbose #4283 > >
00:03:27 verbose #4284 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:27 verbose #4285 > > inl with_trace_level forall t. level fn : _ t = new_async fun () =>
00:03:27 verbose #4286 > >     inl trace_state = get_trace_state_or_init None
00:03:27 verbose #4287 > >     inl old_trace_level = *trace_state.level
00:03:27 verbose #4288 > >     inl trace_level = trace_state.level
00:03:27 verbose #4289 > >     try_finally
00:03:27 verbose #4290 > >         fun () =>
00:03:27 verbose #4291 > >             trace_level <- level
00:03:27 verbose #4292 > >             fn |> return_await
00:03:27 verbose #4293 > >         fun () =>
00:03:27 verbose #4294 > >             trace_level <- old_trace_level
00:03:27 verbose #4295 > 00:03:27   debug #306 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5a2ac5d503c38ef6baff5954543330fb1aeb44c1bdcb6bdbed50856e347897ed/main.spi
00:03:28 verbose #4296 > >
00:03:28 verbose #4297 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:28 verbose #4298 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:28 verbose #4299 > > │ ### value_task                                                               │
00:03:28 verbose #4300 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:28 verbose #4301 > >
00:03:28 verbose #4302 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:28 verbose #4303 > > nominal value_task = $'System.Threading.Tasks.ValueTask'
00:03:28 verbose #4304 > 00:03:27   debug #307 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8bbda2a5811e4e0668a5d1ffd309708a3b016738b774116406990849e15c02ee/main.spi
00:03:28 verbose #4305 > >
00:03:28 verbose #4306 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:28 verbose #4307 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:28 verbose #4308 > > │ ### value_task_as_task                                                       │
00:03:28 verbose #4309 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:28 verbose #4310 > >
00:03:28 verbose #4311 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:28 verbose #4312 > > inl value_task_as_task (task : value_task) : task () =
00:03:28 verbose #4313 > >     $'!task.AsTask' ()
00:03:28 verbose #4314 > 00:03:27   debug #308 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7c775414b633fcd27ef801a3b9fc8275479c24ac3ecd68b660553b95a7bc8503/main.spi
00:03:28 verbose #4315 > >
00:03:28 verbose #4316 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:28 verbose #4317 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:28 verbose #4318 > > │ ### await_value_task_unit                                                    │
00:03:28 verbose #4319 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:28 verbose #4320 > >
00:03:28 verbose #4321 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:28 verbose #4322 > > inl await_value_task_unit (task : value_task) : async () =
00:03:28 verbose #4323 > >     task |> value_task_as_task |> await_task
00:03:28 verbose #4324 > 00:03:28   debug #309 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/22366b115814fc91b0f73c86e8f575d28e430387cd85c0f389f3c43684ae4eb8/main.spi
00:03:29 verbose #4325 > >
00:03:29 verbose #4326 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:29 verbose #4327 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:29 verbose #4328 > > │ ## main                                                                      │
00:03:29 verbose #4329 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:29 verbose #4330 > >
00:03:29 verbose #4331 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:29 verbose #4332 > > inl main () =
00:03:29 verbose #4333 > >     $'let merge_cancellation_token_with_default_async x =
00:03:29 verbose #4334 > > !merge_cancellation_token_with_default_async x' : ()
00:03:29 verbose #4335 > 00:03:28   debug #310 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1c8cef3960575d2478230607bab458683578e8628412bf3d3e11ffba9d145ffb/main.spi
00:03:30 verbose #4336 > 00:00:35 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 40652 }
00:03:30 verbose #4337 > 00:00:35   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/spiral/async.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/async.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:03:33 verbose #4338 > 00:00:37 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/async.dib.ipynb to html
00:03:33 verbose #4339 > 00:00:37 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:03:33 verbose #4340 > 00:00:37 verbose #7 !   validate(nb)
00:03:35 verbose #4341 > 00:00:39 verbose #8 ! [NbConvertApp] Writing 401120 bytes to c:\home\git\polyglot\lib\spiral\async.dib.html
00:03:35 verbose #4342 > 00:00:40 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 641 }
00:03:35 verbose #4343 > 00:00:40   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 641 }
00:03:35 verbose #4344 > 00:00:40   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/async.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/async.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:03:36 verbose #4345 > 00:00:41 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:03:36 verbose #4346 > 00:00:41   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:03:37 verbose #4347 > 00:00:42   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 41352 }
00:03:37   debug #4348 runtime.execute_with_options_async / { exit_code = 0; output_length = 45616 }
00:03:37   debug #7 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path async.dib --retries 3
00:03:37   debug #4349 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path runtime.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:03:37 verbose #4350 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "runtime.dib", "--retries", "3"])) }
00:03:37 verbose #4351 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/spiral/runtime.dib", "--output-path", "c:/home/git/polyglot/lib/spiral/runtime.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/runtime.dib" --output-path "c:/home/git/polyglot/lib/spiral/runtime.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:03:40 verbose #4352 > >
00:03:40 verbose #4353 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:40 verbose #4354 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:40 verbose #4355 > > │ # runtime                                                                    │
00:03:40 verbose #4356 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:44 verbose #4357 > >
00:03:44 verbose #4358 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:44 verbose #4359 > > open rust_operators
00:03:44 verbose #4360 > > open sm'_operators
00:03:45 verbose #4361 > 00:03:44   debug #311 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/bf61618f8655d8e50dd31f6ed591bb82f1f3131ec57d5c0ea9955695867e89ad/main.spi
00:03:46 verbose #4362 > >
00:03:46 verbose #4363 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:46 verbose #4364 > > //// test
00:03:46 verbose #4365 > >
00:03:46 verbose #4366 > > open testing
00:03:46 verbose #4367 > > open file_system_operators
00:03:46 verbose #4368 > 00:03:45   debug #312 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0e119223e9360fc4abe96a6c8703bff66065bb7a405d81adc1703702d0520ef9/main.spi
00:03:46 verbose #4369 > >
00:03:46 verbose #4370 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:46 verbose #4371 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:46 verbose #4372 > > │ ## runtime                                                                   │
00:03:46 verbose #4373 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:46 verbose #4374 > >
00:03:46 verbose #4375 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:46 verbose #4376 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:46 verbose #4377 > > │ ### split_args                                                               │
00:03:46 verbose #4378 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:46 verbose #4379 > >
00:03:46 verbose #4380 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:46 verbose #4381 > > let split_args (args : string) : result (array_base string) string =
00:03:46 verbose #4382 > >     open parsing
00:03:46 verbose #4383 > >     inl esc = [[ '\\'; '`' ]]
00:03:46 verbose #4384 > >     inl quotes = [[ '"' ]]
00:03:46 verbose #4385 > >     inl special = esc ++ quotes
00:03:46 verbose #4386 > >     inl p_esc_char c =
00:03:46 verbose #4387 > >         p_char c >>. any_char () |>> fun c' => $'$"{!c}{!c'}"'
00:03:46 verbose #4388 > >     inl p_word = special |> none_of |>> sm'.obj_to_string
00:03:46 verbose #4389 > >     inl p_plain = special ++ [[ ' ' ]] |> none_of |> many1_chars
00:03:46 verbose #4390 > >     inl p_text = p_word |> many1_strings
00:03:46 verbose #4391 > >     inl p_esc = esc |> listm.map p_esc_char |> choice
00:03:46 verbose #4392 > >     inl p_quoted = (p_word <|> p_esc) |> many |>> sm'.concat_list ""
00:03:46 verbose #4393 > >     inl p_quoted_all = p_quoted |> between (p_char '"') (p_char '"')
00:03:46 verbose #4394 > >     inl p_esc_root = p_esc >>% "" >>. (p_word |> many) |>> sm'.concat_list ""
00:03:46 verbose #4395 > >     inl p_content = p_plain <|> p_quoted_all <|> p_esc_root
00:03:46 verbose #4396 > >     inl p_args = spaces1 () |> sep_by p_content
00:03:46 verbose #4397 > >     args
00:03:46 verbose #4398 > >     |> parse p_args
00:03:46 verbose #4399 > >     |> resultm.map (fst >> listm'.box >> listm'.to_array')
00:03:46 verbose #4400 > 00:03:45   debug #313 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ef3877d037a909901d37a03478b1216283b78aeef322184af852d47e05fc4a01/main.spi
00:03:46 verbose #4401 > >
00:03:46 verbose #4402 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:46 verbose #4403 > > //// test
00:03:46 verbose #4404 > > ///! fsharp
00:03:46 verbose #4405 > > ////! cuda // Only stack allocated primitive types (i8,i16,i32,i64 and
00:03:46 verbose #4406 > > u8,u16,u32,u64 and f32,f64 and bool) are allowed in CuPy arrays.
00:03:46 verbose #4407 > > ///! rust
00:03:46 verbose #4408 > > ///! typescript
00:03:46 verbose #4409 > > ///! python
00:03:46 verbose #4410 > >
00:03:46 verbose #4411 > > [[
00:03:46 verbose #4412 > >     "a b c",
00:03:46 verbose #4413 > >     ;[[ "a"; "b"; "c" ]]
00:03:46 verbose #4414 > >
00:03:46 verbose #4415 > >     "e f \"g h\" i",
00:03:46 verbose #4416 > >     ;[[ "e"; "f"; "g h"; "i" ]]
00:03:46 verbose #4417 > >
00:03:46 verbose #4418 > >     "\"j k\" \"l\" \"m\"",
00:03:46 verbose #4419 > >     ;[[ "j k"; "l"; "m" ]]
00:03:46 verbose #4420 > >
00:03:46 verbose #4421 > >     "s -t \"u \`\"v\`\" w\"",
00:03:46 verbose #4422 > >     ;[[ "s"; "-t"; "u \`\"v\`\" w" ]]
00:03:46 verbose #4423 > >
00:03:46 verbose #4424 > >     "n -o \"p \\\"q\\\" r\"",
00:03:46 verbose #4425 > >     ;[[ "n"; "-o"; "p \\\"q\\\" r" ]]
00:03:46 verbose #4426 > >
00:03:46 verbose #4427 > >     "r -s \"t \\\"u\\\"\"",
00:03:46 verbose #4428 > >     ;[[ "r"; "-s"; "t \\\"u\\\"" ]]
00:03:46 verbose #4429 > >
00:03:46 verbose #4430 > >     $'$"x -y \\\"$z -a \'(b=\\\\\\"c-id=)[[a-fA-F0-9]]{{8}}\', {{ \`$_[[1]] +
00:03:46 verbose #4431 > > \`$d++ }}\\\""',
00:03:46 verbose #4432 > >     ;[[ "x"; "-y"; "$z -a '(b=\\\"c-id=)[[a-fA-F0-9]]{8}', { `$_[[1]] + `$d++ }"
00:03:46 verbose #4433 > > ]]
00:03:46 verbose #4434 > >
00:03:46 verbose #4435 > >     "e -f \"$g -h '(i=`\"j-id=)[[a-fA-F0-9]]{8}', { `$_[[1]] + `$k++ }\"",
00:03:46 verbose #4436 > >     ;[[ "e"; "-f"; "$g -h '(i=`\"j-id=)[[a-fA-F0-9]]{8}', { `$_[[1]] + `$k++ }"
00:03:46 verbose #4437 > > ]]
00:03:46 verbose #4438 > >
00:03:46 verbose #4439 > >     $'$"--l \\\\\\"\'\'\' m \'\'\'\\\\\\" "',
00:03:46 verbose #4440 > >     ;[[ "--l"; "''' m '''" ]]
00:03:46 verbose #4441 > >
00:03:46 verbose #4442 > >     $'$"n --o --p q --r \\\"s:/t u/v.w\\\" --x \\\"y:/z.a\\\" --b c.d
00:03:46 verbose #4443 > > \\\"\\\\e{{f-g}}\\\" h.i \\\"j (k)\\\""',
00:03:46 verbose #4444 > >     ;[[ "n"; "--o"; "--p"; "q"; "--r"; "s:/t u/v.w"; "--x"; "y:/z.a"; "--b";
00:03:46 verbose #4445 > > "c.d"; "\\e{f-g}"; "h.i"; "j (k)" ]]
00:03:46 verbose #4446 > >
00:03:46 verbose #4447 > >     $'\@$"l ""m n:\\o.p"""',
00:03:46 verbose #4448 > >     ;[[ "l"; "m n:\\o.p" ]]
00:03:46 verbose #4449 > > ]]
00:03:46 verbose #4450 > > |> _assert_fn split_args
00:03:47 verbose #4451 > 00:03:46   debug #314 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2b4c94affe6712ff72f1b05ec7893e7b467c9f26cc944f610187bf35f9ec7ce2/main.spi
00:03:55 verbose #4452 > >
00:03:55 verbose #4453 > > ╭─[ 8.79s - return value ]─────────────────────────────────────────────────────╮
00:03:55 verbose #4454 > > │                                                                              │
00:03:55 verbose #4455 > > │ .rs output:                                                                  │
00:03:55 verbose #4456 > > │                                                                              │
00:03:55 verbose #4457 > > │ 00:00:00 verbose #1 testing._assert_fn / { input = a b c }             │
00:03:55 verbose #4458 > > │ assert_eq' / actual: Array(MutCell(["a", "b", "c"])) / expected:             │
00:03:55 verbose #4459 > > │ Array(MutCell(["a", "b", "c"]))                                              │
00:03:55 verbose #4460 > > │                                                                              │
00:03:55 verbose #4461 > > │ 00:00:00 verbose #2 testing._assert_fn / { input = e f "g h" i }       │
00:03:55 verbose #4462 > > │ assert_eq' / actual: Array(MutCell(["e", "f", "g h", "i"])) / expected:      │
00:03:55 verbose #4463 > > │ Array(MutCell(["e", "f", "g h", "i"]))                                       │
00:03:55 verbose #4464 > > │                                                                              │
00:03:55 verbose #4465 > > │ 00:00:00 verbose #3 testing._assert_fn / { input = "j k" "l" "m" }     │
00:03:55 verbose #4466 > > │ assert_eq' / actual: Array(MutCell(["j k", "l", "m"])) / expected:           │
00:03:55 verbose #4467 > > │ Array(MutCell(["j k", "l", "m"]))                                            │
00:03:55 verbose #4468 > > │                                                                              │
00:03:55 verbose #4469 > > │ 00:00:00 verbose #4 testing._assert_fn / { input = s -t "u `"v`" w" }  │
00:03:55 verbose #4470 > > │ assert_eq' / actual: Array(MutCell(["s", "-t", "u `"v`" w"])) / expected:    │
00:03:55 verbose #4471 > > │ Array(MutCell(["s", "-t", "u `"v`" w"]))                                     │
00:03:55 verbose #4472 > > │                                                                              │
00:03:55 verbose #4473 > > │ 00:00:00 verbose #5 testing._assert_fn / { input = n -o "p \"q\" r" }  │
00:03:55 verbose #4474 > > │ assert_eq' / actual: Array(MutCell(["n", "-o", "p \"q\" r"])) / expected:    │
00:03:55 verbose #4475 > > │ Array(MutCell(["n", "-o", "p \"q\" r"]))                                     │
00:03:55 verbose #4476 > > │                                                                              │
00:03:55 verbose #4477 > > │ 00:00:00 verbose #6 testing._assert_fn / { input = r -s "t \"u\"" }    │
00:03:55 verbose #4478 > > │ assert_eq' / actual: Array(MutCell(["r", "-s", "t \"u\""])) / expected:      │
00:03:55 verbose #4479 > > │ Array(MutCell(["r", "-s", "t \"u\""]))                                       │
00:03:55 verbose #4480 > > │                                                                              │
00:03:55 verbose #4481 > > │ 00:00:00 verbose #7 testing._assert_fn / { input = x -y "$z -a         │
00:03:55 verbose #4482 > > │ '(b=\"c-id=)[a-fA-F0-9]{8}', { `$_[1] + `$d++ }" }                           │
00:03:55 verbose #4483 > > │ assert_eq' / actual: Array(MutCell(["x", "-y", "$z -a '(b=\"c-id=)[          │
00:03:55 verbose #4484 > > │ a-fA-F0-9]{8}', { `$_[1] + `$d++ }"])) / expected: Array(MutCell(["x", "-y", │
00:03:55 verbose #4485 > > │ "$z -a '(b=\"c-id=)[a-fA-F0-9]{8}', { `$_[1] + `$d++ }"]))                   │
00:03:55 verbose #4486 > > │                                                                              │
00:03:55 verbose #4487 > > │ 00:00:00 verbose #8 testing._ass...p \\"q\\" r'] / expected: ['n',     │
00:03:55 verbose #4488 > > │ '-o', 'p \\"q\\" r']                                                         │
00:03:55 verbose #4489 > > │                                                                              │
00:03:55 verbose #4490 > > │ 00:00:00 verbose #6 testing._assert_fn / { input = r -s "t \"u\"" }     │
00:03:55 verbose #4491 > > │ assert_eq' / actual: ['r', '-s', 't \\"u\\"'] / expected: ['r', '-s', 't     │
00:03:55 verbose #4492 > > │ \\"u\\"']                                                                    │
00:03:55 verbose #4493 > > │                                                                              │
00:03:55 verbose #4494 > > │ 00:00:00 verbose #7 testing._assert_fn / { input = x -y "$z -a          │
00:03:55 verbose #4495 > > │ '(b=\"c-id=)[a-fA-F0-9]{8}', { `$_[1] + `$d++ }" }                           │
00:03:55 verbose #4496 > > │ assert_eq' / actual: ['x', '-y', '$z -a \'(b=\\"c-id=)[a-fA-F0-9]{8}\', {    │
00:03:55 verbose #4497 > > │ `$_[1] + `$d++ }'] / expected: ['x', '-y', '$z -a \'(b=\\"c-id=)[            │
00:03:55 verbose #4498 > > │ a-fA-F0-9]{8}\', { `$_[1] + `$d++ }']                                        │
00:03:55 verbose #4499 > > │                                                                              │
00:03:55 verbose #4500 > > │ 00:00:00 verbose #8 testing._assert_fn / { input = e -f "$g -h          │
00:03:55 verbose #4501 > > │ '(i=`"j-id=)[a-fA-F0-9]{8}', { `$_[1] + `$k++ }" }                           │
00:03:55 verbose #4502 > > │ assert_eq' / actual: ['e', '-f', '$g -h \'(i=`"j-id=)[a-fA-F0-9]{8}\', { `$_ │
00:03:55 verbose #4503 > > │ [1] + `$k++ }'] / expected: ['e', '-f', '$g -h \'(i=`"j-id=)[                │
00:03:55 verbose #4504 > > │ a-fA-F0-9]{8}\', { `$_[1] + `$k++ }']                                        │
00:03:55 verbose #4505 > > │                                                                              │
00:03:55 verbose #4506 > > │ 00:00:00 verbose #9 testing._assert_fn / { input = --l \"''' m '''\"  } │
00:03:55 verbose #4507 > > │ assert_eq' / actual: ['--l', "''' m '''"] / expected: ['--l', "''' m '''"]   │
00:03:55 verbose #4508 > > │                                                                              │
00:03:55 verbose #4509 > > │ 00:00:00 verbose #10 testing._assert_fn / { input = n --o --p q --r     │
00:03:55 verbose #4510 > > │ "s:/t u/v.w" --x "y:/z.a" --b c.d "\e{f-g}" h.i "j (k)" }                    │
00:03:55 verbose #4511 > > │ assert_eq' / actual: ['n', '--o', '--p', 'q', '--r', 's:/t u/v.w', '--x',    │
00:03:55 verbose #4512 > > │ 'y:/z.a', '--b', 'c.d', '\\e{f-g}', 'h.i', 'j (k)'] / expected: ['n', '--o', │
00:03:55 verbose #4513 > > │ '--p', 'q', '--r', 's:/t u/v.w', '--x', 'y:/z.a', '--b', 'c.d', '\\e{f-g}',  │
00:03:55 verbose #4514 > > │ 'h.i', 'j (k)']                                                              │
00:03:55 verbose #4515 > > │                                                                              │
00:03:55 verbose #4516 > > │ 00:00:00 verbose #11 testing._assert_fn / { input = l "m n:\o.p" }      │
00:03:55 verbose #4517 > > │ assert_eq' / actual: ['l', 'm n:\\o.p'] / expected: ['l', 'm n:\\o.p']       │
00:03:55 verbose #4518 > > │                                                                              │
00:03:55 verbose #4519 > > │                                                                              │
00:03:55 verbose #4520 > > │                                                                              │
00:03:55 verbose #4521 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:55 verbose #4522 > >
00:03:55 verbose #4523 > > ╭─[ 8.82s - stdout ]───────────────────────────────────────────────────────────╮
00:03:55 verbose #4524 > > │ .fsx output:                                                                 │
00:03:55 verbose #4525 > > │                                                                              │
00:03:55 verbose #4526 > > │ 00:00:00 verbose #1 testing._assert_fn / { input = a b c }              │
00:03:55 verbose #4527 > > │ assert_eq' / actual: [|"a"; "b"; "c"|] / expected: [|"a"; "b"; "c"|]         │
00:03:55 verbose #4528 > > │                                                                              │
00:03:55 verbose #4529 > > │ 00:00:00 verbose #2 testing._assert_fn / { input = e f "g h" i }        │
00:03:55 verbose #4530 > > │ assert_eq' / actual: [|"e"; "f"; "g h"; "i"|] / expected: [|"e"; "f"; "g h"; │
00:03:55 verbose #4531 > > │ "i"|]                                                                        │
00:03:55 verbose #4532 > > │                                                                              │
00:03:55 verbose #4533 > > │ 00:00:00 verbose #3 testing._assert_fn / { input = "j k" "l" "m" }      │
00:03:55 verbose #4534 > > │ assert_eq' / actual: [|"j k"; "l"; "m"|] / expected: [|"j k"; "l"; "m"|]     │
00:03:55 verbose #4535 > > │                                                                              │
00:03:55 verbose #4536 > > │ 00:00:00 verbose #4 testing._assert_fn / { input = s -t "u `"v`" w" }   │
00:03:55 verbose #4537 > > │ assert_eq' / actual: [|"s"; "-t"; "u `"v`" w"|] / expected: [|"s"; "-t"; "u  │
00:03:55 verbose #4538 > > │ `"v`" w"|]                                                                   │
00:03:55 verbose #4539 > > │                                                                              │
00:03:55 verbose #4540 > > │ 00:00:00 verbose #5 testing._assert_fn / { input = n -o "p \"q\" r" }   │
00:03:55 verbose #4541 > > │ assert_eq' / actual: [|"n"; "-o"; "p \"q\" r"|] / expected: [|"n"; "-o"; "p  │
00:03:55 verbose #4542 > > │ \"q\" r"|]                                                                   │
00:03:55 verbose #4543 > > │                                                                              │
00:03:55 verbose #4544 > > │ 00:00:00 verbose #6 testing._assert_fn / { input = r -s "t \"u\"" }     │
00:03:55 verbose #4545 > > │ assert_eq' / actual: [|"r"; "-s"; "t \"u\""|] / expected: [|"r"; "-s"; "t    │
00:03:55 verbose #4546 > > │ \"u\""|]                                                                     │
00:03:55 verbose #4547 > > │                                                                              │
00:03:55 verbose #4548 > > │ 00:00:00 verbose #7 testing._assert_fn / { input = x -y "$z -a          │
00:03:55 verbose #4549 > > │ '(b=\"c-id=)[a-fA-F0-9]{8}', { `$_[1] + `$d++ }" }                           │
00:03:55 verbose #4550 > > │ assert_eq' / actual: [|"x"; "-y"; "$z -a '(b=\"c-id=)[a-fA-F0-9]{8}', { `$_[ │
00:03:55 verbose #4551 > > │ 1] + `$d++ }"|] / expected: [|"x"; "-y"; "$z -a '(b=\"c-id=)[a-fA-F0-9]{8}', │
00:03:55 verbose #4552 > > │ { `$_[1] + `$d++ }"|]                                                        │
00:03:55 verbose #4553 > > │                                                                              │
00:03:55 verbose #4554 > > │ 00:00:00 verbose #8 testing._assert_fn / { input = e -f "$g -h          │
00:03:55 verbose #4555 > > │ '(i=`"j-id=)[a-fA-F0-9]{8}', { `$_[1] + `$k++ }" }                           │
00:03:55 verbose #4556 > > │ assert_eq' / actual: [|"e"; "-f"; "$g -h '(i=`"j-id=)[a-fA-F0-9]{8}', { `$_[ │
00:03:55 verbose #4557 > > │ 1] + `$k++ }"|] / expected: [|"e"; "-f"; "$g -h '(i=`"j-id=)[a-fA-F0-9]{8}', │
00:03:55 verbose #4558 > > │ { `$_[1] + `$k++ }"|]                                                        │
00:03:55 verbose #4559 > > │                                                                              │
00:03:55 verbose #4560 > > │ 00:00:00 verbose #9 testing._assert_fn / { input = --l \"''' m '''\"  } │
00:03:55 verbose #4561 > > │ assert_eq' / actual: [|"--l"; "''' m '''"|] / expected: [|"--l"; "''' m      │
00:03:55 verbose #4562 > > │ '''"|]                                                                       │
00:03:55 verbose #4563 > > │                                                                              │
00:03:55 verbose #4564 > > │ 00:00:00 verbose #10 testing._assert_fn / { input = n --o --p q --r     │
00:03:55 verbose #4565 > > │ "s:/t u/v.w" --x "y:/z.a" --b c.d "\e{f-g}" h.i "j (k)" }                    │
00:03:55 verbose #4566 > > │ assert_eq' / actual: [|"n"; "--o"; "--p"; "q"; "--r"; "s:/t u/v.w"; "--x";   │
00:03:55 verbose #4567 > > │ "y:/z.a"; "--b"; "c.d";                                                      │
00:03:55 verbose #4568 > > │   "\e{f-g}"; "h.i"; "j (k)"|] / expected: [|"n"; "--o"; "--p"; "q"; "--r";   │
00:03:55 verbose #4569 > > │ "s:/t u/v.w"; "--x"; "y:/z.a"; "--b"; "c.d";                                 │
00:03:55 verbose #4570 > > │   "\e{f-g}"; "h.i"; "j (k)"|]                                                │
00:03:55 verbose #4571 > > │                                                                              │
00:03:55 verbose #4572 > > │ 00:00:00 verbose #11 testing._assert_fn / { input = l "m n:\o.p" }      │
00:03:55 verbose #4573 > > │ assert_eq' / actual: [|"l"; "m n:\o.p"|] / expected: [|"l"; "m n:\o.p"|]     │
00:03:55 verbose #4574 > > │                                                                              │
00:03:55 verbose #4575 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:55 verbose #4576 > >
00:03:55 verbose #4577 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:55 verbose #4578 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:55 verbose #4579 > > │ ### split_command                                                            │
00:03:55 verbose #4580 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:55 verbose #4581 > >
00:03:55 verbose #4582 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:55 verbose #4583 > > let split_command (command : string) : result (string * option string) string =
00:03:55 verbose #4584 > >     open parsing
00:03:55 verbose #4585 > >     inl quotes = [[ '"'; '\'' ]]
00:03:55 verbose #4586 > >     inl p_quoted_char = quotes |> listm.map p_char |> choice
00:03:55 verbose #4587 > >     inl normalize = function '\\' => '/' | c => c
00:03:55 verbose #4588 > >     inl p_quoted = quotes |> none_of |>> normalize |> many_chars |> between
00:03:55 verbose #4589 > > p_quoted_char p_quoted_char
00:03:55 verbose #4590 > >     inl p_unquoted = quotes ++ [[ ' ' ]] |> none_of |>> normalize |> many1_chars
00:03:55 verbose #4591 > >     inl p_path = p_quoted <|> p_unquoted <|> eof () >>% "" .>> spaces ()
00:03:55 verbose #4592 > >     inl p_args = p_char ' ' |> opt >>. (any_char () |> many1_chars)
00:03:55 verbose #4593 > >     inl p_command = p_path .>>. (p_args |> opt)
00:03:55 verbose #4594 > >     command
00:03:55 verbose #4595 > >     |> parse p_command
00:03:55 verbose #4596 > >     |> resultm.map fst
00:03:55 verbose #4597 > 00:03:55   debug #315 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/23ed7ebe6f34aed79c750c57cfc5877c69e8adb8b47ab369993789876f6be66f/main.spi
00:03:56 verbose #4598 > >
00:03:56 verbose #4599 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:56 verbose #4600 > > //// test
00:03:56 verbose #4601 > > ///! fsharp
00:03:56 verbose #4602 > > ////! cuda // Only stack allocated primitive types (i8,i16,i32,i64 and
00:03:56 verbose #4603 > > u8,u16,u32,u64 and f32,f64 and bool) are allowed in CuPy arrays.
00:03:56 verbose #4604 > > ///! rust
00:03:56 verbose #4605 > > ///! typescript
00:03:56 verbose #4606 > > ///! python
00:03:56 verbose #4607 > >
00:03:56 verbose #4608 > > [[
00:03:56 verbose #4609 > >     "",
00:03:56 verbose #4610 > >     ("", None)
00:03:56 verbose #4611 > >
00:03:56 verbose #4612 > >     "/a/b/c",
00:03:56 verbose #4613 > >     ("/a/b/c", None)
00:03:56 verbose #4614 > >
00:03:56 verbose #4615 > >     "d e.f",
00:03:56 verbose #4616 > >     ("d", Some "e.f")
00:03:56 verbose #4617 > >
00:03:56 verbose #4618 > >     $'"""..\\..\\g.h i.j k.l"""',
00:03:56 verbose #4619 > >     ("../../g.h", Some "i.j k.l")
00:03:56 verbose #4620 > >
00:03:56 verbose #4621 > >     $'\@"m:\\n\\o.p ""q.r s.t"""',
00:03:56 verbose #4622 > >     ("m:/n/o.p", Some $'\@"""q.r s.t"""')
00:03:56 verbose #4623 > >
00:03:56 verbose #4624 > >     $'\@"""..\\..\\u v\\w.x"" ""y z.a"" b.c"',
00:03:56 verbose #4625 > >     ("../../u v/w.x", Some $'\@"""y z.a"" b.c"')
00:03:56 verbose #4626 > >
00:03:56 verbose #4627 > >     $'\@"""..\\..\\d e.f"" -g \\\\""h i\\\\"""',
00:03:56 verbose #4628 > >     ("../../d e.f", Some $'\@"-g \\\\""h i\\\\"""')
00:03:56 verbose #4629 > >
00:03:56 verbose #4630 > >     $'\@"..\\..\\j k.l -m \\\\""n o\\\\"""',
00:03:56 verbose #4631 > >     ("../../j", Some $'\@"k.l -m \\\\""n o\\\\"""')
00:03:56 verbose #4632 > > ]]
00:03:56 verbose #4633 > > |> _assert_fn split_command
00:03:56 verbose #4634 > 00:03:55   debug #316 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fda0da0d043750e856898bbf5be716454162a82b6c706933b9f726830e6ecf73/main.spi
00:04:03 verbose #4635 > >
00:04:03 verbose #4636 > > ╭─[ 7.74s - return value ]─────────────────────────────────────────────────────╮
00:04:03 verbose #4637 > > │                                                                              │
00:04:03 verbose #4638 > > │ .rs output:                                                                  │
00:04:03 verbose #4639 > > │                                                                              │
00:04:03 verbose #4640 > > │ 00:00:00 verbose #1 testing._assert_fn / { input =  }                  │
00:04:03 verbose #4641 > > │ assert_eq' / actual: ("", US1_1) / expected: ("", US1_1)                     │
00:04:03 verbose #4642 > > │                                                                              │
00:04:03 verbose #4643 > > │ 00:00:00 verbose #2 testing._assert_fn / { input = /a/b/c }            │
00:04:03 verbose #4644 > > │ assert_eq' / actual: ("/a/b/c", US1_1) / expected: ("/a/b/c", US1_1)         │
00:04:03 verbose #4645 > > │                                                                              │
00:04:03 verbose #4646 > > │ 00:00:00 verbose #3 testing._assert_fn / { input = d e.f }             │
00:04:03 verbose #4647 > > │ assert_eq' / actual: ("d", US1_0("e.f")) / expected: ("d", US1_0("e.f"))     │
00:04:03 verbose #4648 > > │                                                                              │
00:04:03 verbose #4649 > > │ 00:00:00 verbose #4 testing._assert_fn / { input = ..\..\g.h i.j k.l } │
00:04:03 verbose #4650 > > │ assert_eq' / actual: ("../../g.h", US1_0("i.j k.l")) / expected:             │
00:04:03 verbose #4651 > > │ ("../../g.h", US1_0("i.j k.l"))                                              │
00:04:03 verbose #4652 > > │                                                                              │
00:04:03 verbose #4653 > > │ 00:00:00 verbose #5 testing._assert_fn / { input = m:\n\o.p "q.r s.t"  │
00:04:03 verbose #4654 > > │ }                                                                            │
00:04:03 verbose #4655 > > │ assert_eq' / actual: ("m:/n/o.p", US1_0(""q.r s.t"")) / expected:            │
00:04:03 verbose #4656 > > │ ("m:/n/o.p", US1_0(""q.r s.t""))                                             │
00:04:03 verbose #4657 > > │                                                                              │
00:04:03 verbose #4658 > > │ 00:00:00 verbose #6 testing._assert_fn / { input = "..\..\u v\w.x" "y  │
00:04:03 verbose #4659 > > │ z.a" b.c }                                                                   │
00:04:03 verbose #4660 > > │ assert_eq' / actual: ("../../u v/w.x", US1_0(""y z.a" b.c")) / expected:     │
00:04:03 verbose #4661 > > │ ("../../u v/w.x", US1_0(""y z.a" b.c"))                                      │
00:04:03 verbose #4662 > > │                                                                              │
00:04:03 verbose #4663 > > │ 00:00:00 verbose #7 testing._assert_fn / { input = "..\..\d e.f" -g    │
00:04:03 verbose #4664 > > │ \\"h i\\" }                                                                  │
00:04:03 verbose #4665 > > │ assert_eq' / actual: ("../../d e.f", US1_0("-g \\"h i\\"")) / expected:      │
00:04:03 verbose #4666 > > │ ("../../d e.f", US1_0("-g \\"h i\\""))                                       │
00:04:03 verbose #4667 > > │                                                                              │
00:04:03 verbose #4668 > > │ 00:00:00 verbose #8 testing._assert_fn / { input = ..\..\j k.l -m \\"n │
00:04:03 verbose #4669 > > │ o\\" }                                                                       │
00:04:03 verbose #4670 > > │ assert_eq' / actual: ("../../j", US1_0("k.l -m \\"n o\\"")) / expected:      │
00:04:03 verbose #4671 > > │ ("../../j", US1_0("k.l -m \\"n o\\""))                                       │
00:04:03 verbose #4672 > > │                                                                              │
00:04:03 verbose #4673 > > │                                                                              │
00:04:03 verbose #4674 > > │ .ts output:                                                                  │
00:04:03 verbose #4675 > > │                                                                              │
00:04:03 verbose #4676 > > │ 00:00:00 verbose #1 testing._assert_fn / { input =  }                   │
00:04:03 verbose #4677 > > │ assert_eq' / actual: ,US1_1 / expec...\\"n o\\" }                            │
00:04:03 verbose #4678 > > │ assert_eq' / actual: ../../j,US1_0 (k.l -m \\"n o\\") / expected:            │
00:04:03 verbose #4679 > > │ ../../j,US1_0 (k.l -m \\"n o\\")                                             │
00:04:03 verbose #4680 > > │                                                                              │
00:04:03 verbose #4681 > > │                                                                              │
00:04:03 verbose #4682 > > │ .py output:                                                                  │
00:04:03 verbose #4683 > > │                                                                              │
00:04:03 verbose #4684 > > │ 00:00:00 verbose #1 testing._assert_fn / { input =  }                   │
00:04:03 verbose #4685 > > │ assert_eq' / actual: ('', US1_1) / expected: ('', US1_1)                     │
00:04:03 verbose #4686 > > │                                                                              │
00:04:03 verbose #4687 > > │ 00:00:00 verbose #2 testing._assert_fn / { input = /a/b/c }             │
00:04:03 verbose #4688 > > │ assert_eq' / actual: ('/a/b/c', US1_1) / expected: ('/a/b/c', US1_1)         │
00:04:03 verbose #4689 > > │                                                                              │
00:04:03 verbose #4690 > > │ 00:00:00 verbose #3 testing._assert_fn / { input = d e.f }              │
00:04:03 verbose #4691 > > │ assert_eq' / actual: ('d', US1_0 "e.f") / expected: ('d', US1_0 "e.f")       │
00:04:03 verbose #4692 > > │                                                                              │
00:04:03 verbose #4693 > > │ 00:00:00 verbose #4 testing._assert_fn / { input = ..\..\g.h i.j k.l }  │
00:04:03 verbose #4694 > > │ assert_eq' / actual: ('../../g.h', US1_0 ("i.j k.l")) / expected:            │
00:04:03 verbose #4695 > > │ ('../../g.h', US1_0 ("i.j k.l"))                                             │
00:04:03 verbose #4696 > > │                                                                              │
00:04:03 verbose #4697 > > │ 00:00:00 verbose #5 testing._assert_fn / { input = m:\n\o.p "q.r s.t" } │
00:04:03 verbose #4698 > > │ assert_eq' / actual: ('m:/n/o.p', US1_0 (""q.r s.t"")) / expected:           │
00:04:03 verbose #4699 > > │ ('m:/n/o.p', US1_0 (""q.r s.t""))                                            │
00:04:03 verbose #4700 > > │                                                                              │
00:04:03 verbose #4701 > > │ 00:00:00 verbose #6 testing._assert_fn / { input = "..\..\u v\w.x" "y   │
00:04:03 verbose #4702 > > │ z.a" b.c }                                                                   │
00:04:03 verbose #4703 > > │ assert_eq' / actual: ('../../u v/w.x', US1_0 (""y z.a" b.c")) / expected:    │
00:04:03 verbose #4704 > > │ ('../../u v/w.x', US1_0 (""y z.a" b.c"))                                     │
00:04:03 verbose #4705 > > │                                                                              │
00:04:03 verbose #4706 > > │ 00:00:00 verbose #7 testing._assert_fn / { input = "..\..\d e.f" -g     │
00:04:03 verbose #4707 > > │ \\"h i\\" }                                                                  │
00:04:03 verbose #4708 > > │ assert_eq' / actual: ('../../d e.f', US1_0 ("-g \\"h i\\"")) / expected:     │
00:04:03 verbose #4709 > > │ ('../../d e.f', US1_0 ("-g \\"h i\\""))                                      │
00:04:03 verbose #4710 > > │                                                                              │
00:04:03 verbose #4711 > > │ 00:00:00 verbose #8 testing._assert_fn / { input = ..\..\j k.l -m \\"n  │
00:04:03 verbose #4712 > > │ o\\" }                                                                       │
00:04:03 verbose #4713 > > │ assert_eq' / actual: ('../../j', US1_0 ("k.l -m \\"n o\\"")) / expected:     │
00:04:03 verbose #4714 > > │ ('../../j', US1_0 ("k.l -m \\"n o\\""))                                      │
00:04:03 verbose #4715 > > │                                                                              │
00:04:03 verbose #4716 > > │                                                                              │
00:04:03 verbose #4717 > > │                                                                              │
00:04:03 verbose #4718 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:03 verbose #4719 > >
00:04:03 verbose #4720 > > ╭─[ 7.75s - stdout ]───────────────────────────────────────────────────────────╮
00:04:03 verbose #4721 > > │ .fsx output:                                                                 │
00:04:03 verbose #4722 > > │                                                                              │
00:04:03 verbose #4723 > > │ 00:00:00 verbose #1 testing._assert_fn / { input =  }                   │
00:04:03 verbose #4724 > > │ assert_eq' / actual: struct ("", US1_1) / expected: struct ("", US1_1)       │
00:04:03 verbose #4725 > > │                                                                              │
00:04:03 verbose #4726 > > │ 00:00:00 verbose #2 testing._assert_fn / { input = /a/b/c }             │
00:04:03 verbose #4727 > > │ assert_eq' / actual: struct ("/a/b/c", US1_1) / expected: struct ("/a/b/c",  │
00:04:03 verbose #4728 > > │ US1_1)                                                                       │
00:04:03 verbose #4729 > > │                                                                              │
00:04:03 verbose #4730 > > │ 00:00:00 verbose #3 testing._assert_fn / { input = d e.f }              │
00:04:03 verbose #4731 > > │ assert_eq' / actual: struct ("d", US1_0 "e.f") / expected: struct ("d",      │
00:04:03 verbose #4732 > > │ US1_0 "e.f")                                                                 │
00:04:03 verbose #4733 > > │                                                                              │
00:04:03 verbose #4734 > > │ 00:00:00 verbose #4 testing._assert_fn / { input = ..\..\g.h i.j k.l }  │
00:04:03 verbose #4735 > > │ assert_eq' / actual: struct ("../../g.h", US1_0 "i.j k.l") / expected:       │
00:04:03 verbose #4736 > > │ struct ("../../g.h", US1_0 "i.j k.l")                                        │
00:04:03 verbose #4737 > > │                                                                              │
00:04:03 verbose #4738 > > │ 00:00:00 verbose #5 testing._assert_fn / { input = m:\n\o.p "q.r s.t" } │
00:04:03 verbose #4739 > > │ assert_eq' / actual: struct ("m:/n/o.p", US1_0 ""q.r s.t"") / expected:      │
00:04:03 verbose #4740 > > │ struct ("m:/n/o.p", US1_0 ""q.r s.t"")                                       │
00:04:03 verbose #4741 > > │                                                                              │
00:04:03 verbose #4742 > > │ 00:00:00 verbose #6 testing._assert_fn / { input = "..\..\u v\w.x" "y   │
00:04:03 verbose #4743 > > │ z.a" b.c }                                                                   │
00:04:03 verbose #4744 > > │ assert_eq' / actual: struct ("../../u v/w.x", US1_0 ""y z.a" b.c") /         │
00:04:03 verbose #4745 > > │ expected: struct ("../../u v/w.x", US1_0 ""y z.a" b.c")                      │
00:04:03 verbose #4746 > > │                                                                              │
00:04:03 verbose #4747 > > │ 00:00:00 verbose #7 testing._assert_fn / { input = "..\..\d e.f" -g     │
00:04:03 verbose #4748 > > │ \\"h i\\" }                                                                  │
00:04:03 verbose #4749 > > │ assert_eq' / actual: struct ("../../d e.f", US1_0 "-g \\"h i\\"") /          │
00:04:03 verbose #4750 > > │ expected: struct ("../../d e.f", US1_0 "-g \\"h i\\"")                       │
00:04:03 verbose #4751 > > │                                                                              │
00:04:03 verbose #4752 > > │ 00:00:00 verbose #8 testing._assert_fn / { input = ..\..\j k.l -m \\"n  │
00:04:03 verbose #4753 > > │ o\\" }                                                                       │
00:04:03 verbose #4754 > > │ assert_eq' / actual: struct ("../../j", US1_0 "k.l -m \\"n o\\"") /          │
00:04:03 verbose #4755 > > │ expected: struct ("../../j", US1_0 "k.l -m \\"n o\\"")                       │
00:04:03 verbose #4756 > > │                                                                              │
00:04:03 verbose #4757 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:03 verbose #4758 > >
00:04:03 verbose #4759 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:03 verbose #4760 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:03 verbose #4761 > > │ ### execution_line                                                           │
00:04:03 verbose #4762 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:03 verbose #4763 > >
00:04:03 verbose #4764 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:03 verbose #4765 > > type execution_line =
00:04:03 verbose #4766 > >     {
00:04:03 verbose #4767 > >         process_id : int
00:04:03 verbose #4768 > >         line : string
00:04:03 verbose #4769 > >         error : bool
00:04:03 verbose #4770 > >     }
00:04:04 verbose #4771 > 00:04:03   debug #317 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a962a6b6e66d1e6a60c8196d0c657367ed77c6d68fe58b82a8a369eb0839ae3f/main.spi
00:04:04 verbose #4772 > >
00:04:04 verbose #4773 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:04 verbose #4774 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:04 verbose #4775 > > │ ## rust                                                                      │
00:04:04 verbose #4776 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:04 verbose #4777 > >
00:04:04 verbose #4778 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:04 verbose #4779 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:04 verbose #4780 > > │ ### process_child                                                            │
00:04:04 verbose #4781 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:04 verbose #4782 > >
00:04:04 verbose #4783 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:04 verbose #4784 > > nominal process_child =
00:04:04 verbose #4785 > >     `(
00:04:04 verbose #4786 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:04:04 verbose #4787 > > Fable.Core.Emit(\"std::process::Child\")>]]\n#endif\ntype std_process_Child =
00:04:04 verbose #4788 > > class end"
00:04:04 verbose #4789 > >         $'' : $'std_process_Child'
00:04:04 verbose #4790 > >     )
00:04:04 verbose #4791 > 00:04:03   debug #318 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/249b80a54ca3a3c2de1723a3e721b4c4f104c1fd81d11099d2d216487738e3fc/main.spi
00:04:04 verbose #4792 > >
00:04:04 verbose #4793 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:04 verbose #4794 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:04 verbose #4795 > > │ ### process_child_stdin                                                      │
00:04:04 verbose #4796 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:04 verbose #4797 > >
00:04:04 verbose #4798 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:04 verbose #4799 > > nominal process_child_stdin =
00:04:04 verbose #4800 > >     `(
00:04:04 verbose #4801 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:04:04 verbose #4802 > > Fable.Core.Emit(\"std::process::ChildStdin\")>]]\n#endif\ntype
00:04:04 verbose #4803 > > std_process_ChildStdin = class end"
00:04:04 verbose #4804 > >         $'' : $'std_process_ChildStdin'
00:04:04 verbose #4805 > >     )
00:04:04 verbose #4806 > >
00:04:04 verbose #4807 > > inl process_child_stdin
00:04:04 verbose #4808 > >     (child : rust.ref (rust.mut' process_child))
00:04:04 verbose #4809 > >     : rust.ref (rust.mut' (optionm'.option' process_child_stdin))
00:04:04 verbose #4810 > >     =
00:04:04 verbose #4811 > >     !\\(child, $'"&mut $0.stdin"')
00:04:04 verbose #4812 > 00:04:04   debug #319 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4bd0dbc6b4fa7ae69e4dd5baab901e8b286b148e2f12222592775c6f6186bb62/main.spi
00:04:05 verbose #4813 > >
00:04:05 verbose #4814 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:05 verbose #4815 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:05 verbose #4816 > > │ ## runtime                                                                   │
00:04:05 verbose #4817 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:05 verbose #4818 > >
00:04:05 verbose #4819 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:05 verbose #4820 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:05 verbose #4821 > > │ ### execution_options                                                        │
00:04:05 verbose #4822 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:05 verbose #4823 > >
00:04:05 verbose #4824 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:05 verbose #4825 > > type execution_options =
00:04:05 verbose #4826 > >     {
00:04:05 verbose #4827 > >         command : string
00:04:05 verbose #4828 > >         cancellation_token : optionm'.option' threading.cancellation_token
00:04:05 verbose #4829 > >         environment_variables : array_base (string * string)
00:04:05 verbose #4830 > >         on_line : optionm'.option' (execution_line -> async.async ())
00:04:05 verbose #4831 > >         stdin : optionm'.option' (threading.arc (threading.mutex
00:04:05 verbose #4832 > > process_child_stdin) -> ())
00:04:05 verbose #4833 > >         trace : bool
00:04:05 verbose #4834 > >         working_directory : optionm'.option' string
00:04:05 verbose #4835 > >     }
00:04:05 verbose #4836 > >
00:04:05 verbose #4837 > > inl execution_options (fn : execution_options -> execution_options) :
00:04:05 verbose #4838 > > execution_options =
00:04:05 verbose #4839 > >     {
00:04:05 verbose #4840 > >         command = ""
00:04:05 verbose #4841 > >         cancellation_token = None |> optionm'.box
00:04:05 verbose #4842 > >         environment_variables = ;[[]]
00:04:05 verbose #4843 > >         on_line = None |> optionm'.box
00:04:05 verbose #4844 > >         stdin = None |> optionm'.box
00:04:05 verbose #4845 > >         trace = true
00:04:05 verbose #4846 > >         working_directory = None |> optionm'.box
00:04:05 verbose #4847 > >     }
00:04:05 verbose #4848 > >     |> fn
00:04:05 verbose #4849 > 00:04:04   debug #320 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/64fbc3557ca8bd7d3bf70ddfe67954c864636bddc7cdb03a5037417a864c59ec/main.spi
00:04:05 verbose #4850 > >
00:04:05 verbose #4851 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:05 verbose #4852 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:05 verbose #4853 > > │ ## rust                                                                      │
00:04:05 verbose #4854 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:05 verbose #4855 > >
00:04:05 verbose #4856 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:05 verbose #4857 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:05 verbose #4858 > > │ ### process_child_stderr                                                     │
00:04:05 verbose #4859 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:05 verbose #4860 > >
00:04:05 verbose #4861 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:05 verbose #4862 > > nominal process_child_stderr =
00:04:05 verbose #4863 > >     `(
00:04:05 verbose #4864 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:04:05 verbose #4865 > > Fable.Core.Emit(\"std::process::ChildStderr\")>]]\n#endif\ntype
00:04:05 verbose #4866 > > std_process_ChildStderr = class end"
00:04:05 verbose #4867 > >         $'' : $'std_process_ChildStderr'
00:04:05 verbose #4868 > >     )
00:04:05 verbose #4869 > >
00:04:05 verbose #4870 > > inl process_child_stderr
00:04:05 verbose #4871 > >     (child : rust.ref (rust.mut' process_child))
00:04:05 verbose #4872 > >     : rust.ref (rust.mut' (optionm'.option' process_child_stderr))
00:04:05 verbose #4873 > >     =
00:04:05 verbose #4874 > >     !\($'"&mut !child.stderr"')
00:04:05 verbose #4875 > 00:04:05   debug #321 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7304fc1bf2ccbd0cca1df47045b1fbed01ff46cb2afffbcc43e641c7b75327cd/main.spi
00:04:06 verbose #4876 > >
00:04:06 verbose #4877 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:06 verbose #4878 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:06 verbose #4879 > > │ ### process_child_stdout                                                     │
00:04:06 verbose #4880 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:06 verbose #4881 > >
00:04:06 verbose #4882 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:06 verbose #4883 > > nominal process_child_stdout =
00:04:06 verbose #4884 > >     `(
00:04:06 verbose #4885 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:04:06 verbose #4886 > > Fable.Core.Emit(\"std::process::ChildStdout\")>]]\n#endif\ntype
00:04:06 verbose #4887 > > std_process_ChildStdout = class end"
00:04:06 verbose #4888 > >         $'' : $'std_process_ChildStdout'
00:04:06 verbose #4889 > >     )
00:04:06 verbose #4890 > >
00:04:06 verbose #4891 > > inl process_child_stdout
00:04:06 verbose #4892 > >     (child : rust.ref (rust.mut' process_child))
00:04:06 verbose #4893 > >     : rust.ref (rust.mut' (optionm'.option' process_child_stdout))
00:04:06 verbose #4894 > >     =
00:04:06 verbose #4895 > >     !\($'"&mut !child.stdout"')
00:04:06 verbose #4896 > 00:04:05   debug #322 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6b81e106c69abbf267a6c628505e8bfef313af239eae5b043b8477ed8695d0b6/main.spi
00:04:06 verbose #4897 > >
00:04:06 verbose #4898 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:06 verbose #4899 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:06 verbose #4900 > > │ ### process_command                                                          │
00:04:06 verbose #4901 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:06 verbose #4902 > >
00:04:06 verbose #4903 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:06 verbose #4904 > > nominal process_command =
00:04:06 verbose #4905 > >     `(
00:04:06 verbose #4906 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:04:06 verbose #4907 > > Fable.Core.Emit(\"std::process::Command\")>]]\n#endif\ntype std_process_Command
00:04:06 verbose #4908 > > = class end"
00:04:06 verbose #4909 > >         $'' : $'std_process_Command'
00:04:06 verbose #4910 > >     )
00:04:06 verbose #4911 > 00:04:06   debug #323 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fd10f10253a8b9bf608327b7b8e19587d23b0c9d8ff306936e01812767266fe5/main.spi
00:04:07 verbose #4912 > >
00:04:07 verbose #4913 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:07 verbose #4914 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:07 verbose #4915 > > │ ### process_stdio                                                            │
00:04:07 verbose #4916 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:07 verbose #4917 > >
00:04:07 verbose #4918 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:07 verbose #4919 > > nominal process_stdio =
00:04:07 verbose #4920 > >     `(
00:04:07 verbose #4921 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:04:07 verbose #4922 > > Fable.Core.Emit(\"std::process::Stdio\")>]]\n#endif\ntype std_process_Stdio =
00:04:07 verbose #4923 > > class end"
00:04:07 verbose #4924 > >         $'' : $'std_process_Stdio'
00:04:07 verbose #4925 > >     )
00:04:07 verbose #4926 > 00:04:06   debug #324 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2f5b0d4a36f12337197e672a109ff8d15aa90137149ebed6585bacc08bb8f40c/main.spi
00:04:07 verbose #4927 > >
00:04:07 verbose #4928 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:07 verbose #4929 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:07 verbose #4930 > > │ ### process_output                                                           │
00:04:07 verbose #4931 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:07 verbose #4932 > >
00:04:07 verbose #4933 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:07 verbose #4934 > > nominal process_output =
00:04:07 verbose #4935 > >     `(
00:04:07 verbose #4936 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:04:07 verbose #4937 > > Fable.Core.Emit(\"std::process::Output\")>]]\n#endif\ntype std_process_Output =
00:04:07 verbose #4938 > > class end"
00:04:07 verbose #4939 > >         $'' : $'std_process_Output'
00:04:07 verbose #4940 > >     )
00:04:07 verbose #4941 > 00:04:07   debug #325 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c4f4efe0f336718474d1c630c79f256f702ef1f0ef58411edf6502876dea3e90/main.spi
00:04:08 verbose #4942 > >
00:04:08 verbose #4943 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:08 verbose #4944 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:08 verbose #4945 > > │ ### process_exit_status                                                      │
00:04:08 verbose #4946 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:08 verbose #4947 > >
00:04:08 verbose #4948 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:08 verbose #4949 > > nominal process_exit_status =
00:04:08 verbose #4950 > >     `(
00:04:08 verbose #4951 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:04:08 verbose #4952 > > Fable.Core.Emit(\"std::process::ExitStatus\")>]]\n#endif\ntype
00:04:08 verbose #4953 > > std_process_ExitStatus = class end"
00:04:08 verbose #4954 > >         $'' : $'std_process_ExitStatus'
00:04:08 verbose #4955 > >     )
00:04:08 verbose #4956 > 00:04:07   debug #326 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9b850af6ee47410d287fb474b44d9337f0910394f7519e1052df1bb8960c45aa/main.spi
00:04:08 verbose #4957 > >
00:04:08 verbose #4958 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:08 verbose #4959 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:08 verbose #4960 > > │ ### process_output_status                                                    │
00:04:08 verbose #4961 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:08 verbose #4962 > >
00:04:08 verbose #4963 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:08 verbose #4964 > > inl process_output_status (output : process_output) : process_exit_status =
00:04:08 verbose #4965 > >     !\\(output, $'"$0.status"')
00:04:08 verbose #4966 > 00:04:08   debug #327 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5a697768fbd93f14c7f91a473d343f85a855fae7daf869fe569d878cc5dce02b/main.spi
00:04:09 verbose #4967 > >
00:04:09 verbose #4968 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:09 verbose #4969 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:09 verbose #4970 > > │ ### process_exit_status_code                                                 │
00:04:09 verbose #4971 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:09 verbose #4972 > >
00:04:09 verbose #4973 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:09 verbose #4974 > > inl process_exit_status_code (status : process_exit_status) : optionm'.option'
00:04:09 verbose #4975 > > i32 =
00:04:09 verbose #4976 > >     !\\(status, $'"$0.code()"')
00:04:09 verbose #4977 > 00:04:08   debug #328 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/cccb919163c6aba3031f677a45b3ca6edcf889271bc48d43f9ccc6ff2a874b27/main.spi
00:04:09 verbose #4978 > >
00:04:09 verbose #4979 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:09 verbose #4980 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:09 verbose #4981 > > │ ### stdin_write_all                                                          │
00:04:09 verbose #4982 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:09 verbose #4983 > >
00:04:09 verbose #4984 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:09 verbose #4985 > > inl stdin_write_all (stdin : threading.mutex_guard process_child_stdin) (text :
00:04:09 verbose #4986 > > string) : () =
00:04:09 verbose #4987 > >     inl stream = text |> sm'.as_bytes
00:04:09 verbose #4988 > >     inl stdin = join stdin
00:04:09 verbose #4989 > >     (!\($'"true; let mut !stdin = !stdin"') : bool) |> ignore
00:04:09 verbose #4990 > >     (!\\(stdin, $'"true; std::io::Write::write_all(&mut *$0,
00:04:09 verbose #4991 > > !stream).unwrap()"') : bool) |> ignore
00:04:10 verbose #4992 > 00:04:09   debug #329 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/721b47f25c016718f8e7e4b1d8c2dbbbac29a98efe1aa442b596f89480419383/main.spi
00:04:10 verbose #4993 > >
00:04:10 verbose #4994 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:10 verbose #4995 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:10 verbose #4996 > > │ ### stdin_flush                                                              │
00:04:10 verbose #4997 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:10 verbose #4998 > >
00:04:10 verbose #4999 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:10 verbose #5000 > > inl stdin_flush (stdin : threading.mutex_guard process_child_stdin) : () =
00:04:10 verbose #5001 > >     inl stdin = join stdin
00:04:10 verbose #5002 > >     (!\($'"true; let mut !stdin = !stdin"') : bool) |> ignore
00:04:10 verbose #5003 > >     (!\\(stdin, $'"true; std::io::Write::flush(&mut *$0).unwrap()"') : bool) |>
00:04:10 verbose #5004 > > ignore
00:04:10 verbose #5005 > 00:04:09   debug #330 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/441c3f62138e6bd1718826edc8ed43fbcc060bd8eb730a6540ddd8b2af089b99/main.spi
00:04:11 verbose #5006 > >
00:04:11 verbose #5007 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:11 verbose #5008 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:11 verbose #5009 > > │ ### new_process_command                                                      │
00:04:11 verbose #5010 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:11 verbose #5011 > >
00:04:11 verbose #5012 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:11 verbose #5013 > > inl new_process_command (file_name : string) : process_command =
00:04:11 verbose #5014 > >     !\\(file_name, $'"std::process::Command::new(&*$0)"')
00:04:11 verbose #5015 > 00:04:10   debug #331 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a76ec1f9244660f284d3021f3478f22f208b0840dc4d9c2bfc5d21f2eb2fcb7c/main.spi
00:04:11 verbose #5016 > >
00:04:11 verbose #5017 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:11 verbose #5018 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:11 verbose #5019 > > │ ### process_stdio_piped                                                      │
00:04:11 verbose #5020 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:11 verbose #5021 > >
00:04:11 verbose #5022 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:11 verbose #5023 > > inl process_stdio_piped () : process_stdio =
00:04:11 verbose #5024 > >     !\($'"std::process::Stdio::piped()"')
00:04:12 verbose #5025 > 00:04:11   debug #332 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/487b2bd3c67498174179a154614f44caf5980e15dccc38824a4b063c7d3c103c/main.spi
00:04:12 verbose #5026 > >
00:04:12 verbose #5027 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:12 verbose #5028 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:12 verbose #5029 > > │ ### process_command_args                                                     │
00:04:12 verbose #5030 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:12 verbose #5031 > >
00:04:12 verbose #5032 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:12 verbose #5033 > > inl process_command_args (args : am'.vec sm'.std_string) (c : process_command) :
00:04:12 verbose #5034 > > rust.ref (rust.mut' process_command) =
00:04:12 verbose #5035 > >     (!\($'"true; let mut !c = !c"') : bool) |> ignore
00:04:12 verbose #5036 > >     !\\((c, args), $'"std::process::Command::args(&mut $0, &*$1)"')
00:04:13 verbose #5037 > 00:04:12   debug #333 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a974eafd3b4e2136dce32bffc872a6eb14b09aa0c5796784c6491ed52215a6dc/main.spi
00:04:14 verbose #5038 > >
00:04:14 verbose #5039 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:14 verbose #5040 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:14 verbose #5041 > > │ ### process_command_stdout                                                   │
00:04:14 verbose #5042 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:14 verbose #5043 > >
00:04:14 verbose #5044 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:14 verbose #5045 > > inl process_command_stdout (stdio : process_stdio) (c : rust.ref (rust.mut'
00:04:14 verbose #5046 > > process_command)) : rust.ref (rust.mut' process_command) =
00:04:14 verbose #5047 > >     !\\(c, $'"std::process::Command::stdout($0, std::process::Stdio::piped())"')
00:04:14 verbose #5048 > 00:04:13   debug #334 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b65cacac0fa07e597aeecf67e2a693213be93b291b06aafc1e90a737196a08c2/main.spi
00:04:14 verbose #5049 > >
00:04:14 verbose #5050 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:14 verbose #5051 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:14 verbose #5052 > > │ ### process_command_stderr                                                   │
00:04:14 verbose #5053 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:14 verbose #5054 > >
00:04:14 verbose #5055 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:14 verbose #5056 > > inl process_command_stderr (stdio : process_stdio) (c : rust.ref (rust.mut'
00:04:14 verbose #5057 > > process_command)) : rust.ref (rust.mut' process_command) =
00:04:14 verbose #5058 > >     !\\(c, $'"std::process::Command::stderr($0, std::process::Stdio::piped())"')
00:04:15 verbose #5059 > 00:04:14   debug #335 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9c806420cb470e9a066c1637810cf88e2f842bd4db449211f5e62e6eb90b4bfc/main.spi
00:04:15 verbose #5060 > >
00:04:15 verbose #5061 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:15 verbose #5062 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:15 verbose #5063 > > │ ### process_command_stdin                                                    │
00:04:15 verbose #5064 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:15 verbose #5065 > >
00:04:15 verbose #5066 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:15 verbose #5067 > > inl process_command_stdin (stdio : process_stdio) (c : rust.ref (rust.mut'
00:04:15 verbose #5068 > > process_command)) : rust.ref (rust.mut' process_command) =
00:04:15 verbose #5069 > >     !\\(c, $'"std::process::Command::stdin($0, std::process::Stdio::piped())"')
00:04:15 verbose #5070 > 00:04:15   debug #336 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7cf343a97715419d3d10732916df735e870d842ae32f7025be3406a02447132d/main.spi
00:04:16 verbose #5071 > >
00:04:16 verbose #5072 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:16 verbose #5073 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:16 verbose #5074 > > │ ### process_command_current_dir                                              │
00:04:16 verbose #5075 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:16 verbose #5076 > >
00:04:16 verbose #5077 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:16 verbose #5078 > > inl process_command_current_dir
00:04:16 verbose #5079 > >     (dir : string)
00:04:16 verbose #5080 > >     (c : rust.ref (rust.mut' process_command))
00:04:16 verbose #5081 > >     : rust.ref (rust.mut' process_command)
00:04:16 verbose #5082 > >     =
00:04:16 verbose #5083 > >     !\\(dir, $'"std::process::Command::current_dir(!c, &*$0)"')
00:04:17 verbose #5084 > 00:04:16   debug #337 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/152a00e81e6ee61a18b8cfbf83b8f70abce2dfedbf8ae8aa70a091c71a44482e/main.spi
00:04:17 verbose #5085 > >
00:04:17 verbose #5086 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:17 verbose #5087 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:17 verbose #5088 > > │ ### process_command_env                                                      │
00:04:17 verbose #5089 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:17 verbose #5090 > >
00:04:17 verbose #5091 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:17 verbose #5092 > > inl process_command_env
00:04:17 verbose #5093 > >     (key : string)
00:04:17 verbose #5094 > >     (value : string)
00:04:17 verbose #5095 > >     (c : rust.ref (rust.mut' process_command))
00:04:17 verbose #5096 > >     : rust.ref (rust.mut' process_command)
00:04:17 verbose #5097 > >     =
00:04:17 verbose #5098 > >     !\\((key, value), $'"std::process::Command::env(!c, &*$0, &*$1)"')
00:04:17 verbose #5099 > 00:04:17   debug #338 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/98b668b879fad1374a2bb630f4952fd48b87195328b83ea0382aac9d023ccfe1/main.spi
00:04:18 verbose #5100 > >
00:04:18 verbose #5101 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:18 verbose #5102 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:18 verbose #5103 > > │ ### process_command_spawn                                                    │
00:04:18 verbose #5104 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:18 verbose #5105 > >
00:04:18 verbose #5106 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:18 verbose #5107 > > inl process_command_spawn
00:04:18 verbose #5108 > >     (c : rust.ref (rust.mut' process_command))
00:04:18 verbose #5109 > >     : resultm.result' process_child stream.io_error
00:04:18 verbose #5110 > >     =
00:04:18 verbose #5111 > >     !\\(c, $'"std::process::Command::spawn($0)"')
00:04:19 verbose #5112 > 00:04:18   debug #339 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/83e5d8cb6c9658815aeea217ee4fea511a9e2874a8bfe862fd24557ff9e2cb1f/main.spi
00:04:19 verbose #5113 > >
00:04:19 verbose #5114 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:19 verbose #5115 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:19 verbose #5116 > > │ ### child_wait_with_output                                                   │
00:04:19 verbose #5117 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:19 verbose #5118 > >
00:04:19 verbose #5119 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:19 verbose #5120 > > inl child_wait_with_output
00:04:19 verbose #5121 > >     (child : process_child)
00:04:19 verbose #5122 > >     : resultm.result' process_output stream.io_error
00:04:19 verbose #5123 > >     =
00:04:19 verbose #5124 > >     !\\(child, $'"$0.wait_with_output()"')
00:04:20 verbose #5125 > 00:04:19   debug #340 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2a81f8ae53788cbc7bae6025c788b06405674398a90c10abbf1d8a835ee5df86/main.spi
00:04:20 verbose #5126 > >
00:04:20 verbose #5127 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:20 verbose #5128 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:20 verbose #5129 > > │ ### stdio_line                                                               │
00:04:20 verbose #5130 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:20 verbose #5131 > >
00:04:20 verbose #5132 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:20 verbose #5133 > > inl stdio_line
00:04:20 verbose #5134 > >     (stdio : result () ())
00:04:20 verbose #5135 > >     (trace' : bool)
00:04:20 verbose #5136 > >     (channel_sender : threading.arc (threading.mutex (threading.channel_sender
00:04:20 verbose #5137 > > sm'.std_string)))
00:04:20 verbose #5138 > >     (line : resultm.result' sm'.std_string stream.io_error)
00:04:20 verbose #5139 > >     : resultm.result' () sm'.std_string
00:04:20 verbose #5140 > >     =
00:04:20 verbose #5141 > >     inl highlight text =
00:04:20 verbose #5142 > >         $'$"\\u001b[[4;7m{!text}\\u001b[[0m"'
00:04:20 verbose #5143 > >     inl line =
00:04:20 verbose #5144 > >         match
00:04:20 verbose #5145 > >             line
00:04:20 verbose #5146 > >             |> resultm.map_error' sm'.format'
00:04:20 verbose #5147 > >             |> resultm.unbox'
00:04:20 verbose #5148 > >         with
00:04:20 verbose #5149 > >         | Ok line =>
00:04:20 verbose #5150 > >             inl line =
00:04:20 verbose #5151 > >                 line
00:04:20 verbose #5152 > >                 |> sm'.from_std_string
00:04:20 verbose #5153 > >                 // |> sm'.as_bytes
00:04:20 verbose #5154 > >                 // |> am'.slice_to_vec
00:04:20 verbose #5155 > >                 |> sm'.encoding_encode' (sm'.encoding_utf8' ())
00:04:20 verbose #5156 > >                 |> rust.cow_as_ref
00:04:20 verbose #5157 > >                 |> sm'.str_from_utf8
00:04:20 verbose #5158 > >                 // |> sm'.utf8_decode
00:04:20 verbose #5159 > >                 |> resultm.unwrap'
00:04:20 verbose #5160 > >                 |> sm'.ref_to_std_string
00:04:20 verbose #5161 > >                 // String::from_utf8_lossy(line.as_bytes()).into()
00:04:20 verbose #5162 > >             inl line_log = line |> sm'.from_std_string
00:04:20 verbose #5163 > >             inl text =
00:04:20 verbose #5164 > >                 match stdio with
00:04:20 verbose #5165 > >                 | Ok () => $'$"> {!line_log}"'
00:04:20 verbose #5166 > >                 | Error () => $'$"\! {!line_log}"'
00:04:20 verbose #5167 > >             if trace'
00:04:20 verbose #5168 > >             then trace Verbose (fun () => text) id
00:04:20 verbose #5169 > >             else text |> console.write_line
00:04:20 verbose #5170 > >             match stdio with
00:04:20 verbose #5171 > >             | Ok () => line
00:04:20 verbose #5172 > >             | Error () => line |> highlight |> sm'.to_std_string
00:04:20 verbose #5173 > >         | Error e =>
00:04:20 verbose #5174 > >             trace Critical
00:04:20 verbose #5175 > >                 fun () => $'$"runtime.stdio_line"'
00:04:20 verbose #5176 > >                 fun () => { e }
00:04:20 verbose #5177 > >             e |> highlight |> sm'.to_std_string
00:04:20 verbose #5178 > >     channel_sender
00:04:20 verbose #5179 > >     |> threading.arc_mutex_lock
00:04:20 verbose #5180 > >     |> resultm.unwrap'
00:04:20 verbose #5181 > >     |> threading.mutex_guard_ref
00:04:20 verbose #5182 > >     |> threading.channel_send line
00:04:20 verbose #5183 > >     |> resultm.map_error' sm'.format'
00:04:20 verbose #5184 > 00:04:19   debug #341 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9a111cfd9c66a8a2ec68e286e671b6650175dc00e236a231beb48fb33c8764f0/main.spi
00:04:20 verbose #5185 > >
00:04:20 verbose #5186 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:20 verbose #5187 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:20 verbose #5188 > > │ ### command                                                                  │
00:04:20 verbose #5189 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:20 verbose #5190 > >
00:04:20 verbose #5191 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:20 verbose #5192 > > nominal command =
00:04:20 verbose #5193 > >     `(
00:04:20 verbose #5194 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:04:20 verbose #5195 > > Fable.Core.Emit(\"clap::Command\")>]]\n#endif\ntype clap_Command = class end"
00:04:20 verbose #5196 > >         $'' : $'clap_Command'
00:04:20 verbose #5197 > >     )
00:04:21 verbose #5198 > 00:04:20   debug #342 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a7824b4f3506566cd208c3f2c9fca47085201d0c6c3204a650168be556acc1e1/main.spi
00:04:21 verbose #5199 > >
00:04:21 verbose #5200 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:21 verbose #5201 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:21 verbose #5202 > > │ ### new_command                                                              │
00:04:21 verbose #5203 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:21 verbose #5204 > >
00:04:21 verbose #5205 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:21 verbose #5206 > > inl new_command (s : rust.static_ref sm'.str) : command =
00:04:21 verbose #5207 > >     !\\(s, $'"clap::Command::new($0)"')
00:04:21 verbose #5208 > 00:04:20   debug #343 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0bfc9c122fd0e1ed70d84a6500660d0ccf1ba10b2cea49a1b81158d3e283ac50/main.spi
00:04:21 verbose #5209 > >
00:04:21 verbose #5210 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:21 verbose #5211 > > //// test
00:04:21 verbose #5212 > > ///! rust -d clap
00:04:21 verbose #5213 > >
00:04:21 verbose #5214 > > ##"command"
00:04:21 verbose #5215 > > |> new_command
00:04:21 verbose #5216 > > |> sm'.format_pretty'
00:04:21 verbose #5217 > > |> sm'.from_std_string
00:04:21 verbose #5218 > > |> _assert_string_contains "\"command\""
00:04:22 verbose #5219 > 00:04:21   debug #344 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c36a6f5d0296291d97669930fef88c76b27a331ff0c521b58c8cad102e9f35a3/main.spi
00:04:25 verbose #5220 > >
00:04:25 verbose #5221 > > ╭─[ 3.53s - return value ]─────────────────────────────────────────────────────╮
00:04:25 verbose #5222 > > │ assert_string_contains / actual: ""command"" / expected: "Command {          │
00:04:25 verbose #5223 > > │     name: "command",                                                         │
00:04:25 verbose #5224 > > │     long_flag: None,                                                         │
00:04:25 verbose #5225 > > │     short_flag: None,                                                        │
00:04:25 verbose #5226 > > │     display_name: None,                                                      │
00:04:25 verbose #5227 > > │     bin_name: None,                                                          │
00:04:25 verbose #5228 > > │     author: None,                                                            │
00:04:25 verbose #5229 > > │     version: None,                                                           │
00:04:25 verbose #5230 > > │     long_version: None,                                                      │
00:04:25 verbose #5231 > > │     about: None,                                                             │
00:04:25 verbose #5232 > > │     long_about: None,                                                        │
00:04:25 verbose #5233 > > │     before_help: None,                                                       │
00:04:25 verbose #5234 > > │     before_long_help: None,                                                  │
00:04:25 verbose #5235 > > │     after_help: None,                                                        │
00:04:25 verbose #5236 > > │     after_long_help: None,                                                   │
00:04:25 verbose #5237 > > │     aliases: [],                                                             │
00:04:25 verbose #5238 > > │     short_flag_aliases: [],                                                  │
00:04:25 verbose #5239 > > │     long_flag_aliases: [],                                                   │
00:04:25 verbose #5240 > > │     usage_str: None,                                                         │
00:04:25 verbose #5241 > > │     usage_name: None,                                                        │
00:04:25 verbose #5242 > > │     help_str: None,                                                          │
00:04:25 verbose #5243 > > │     disp_ord: None,                                                          │
00:04:25 verbose #5244 > > │     template: None,                                                          │
00:04:25 verbose #5245 > > │     settings: AppFlags(                                                      │
00:04:25 verbose #5246 > > │         0,                                                                   │
00:04:25 verbose #5247 > > │     ),                                                                       │
00:04:25 verbose #5248 > > │     g_settings: AppFlags(                                                    │
00:04:25 verbose #5249 > > │         0,                                                                   │
00:04:25 verbose #5250 > > │     ),                                                                       │
00:04:25 verbose #5251 > > │     args: MKeyMap {                                                          │
00:04:25 verbose #5252 > > │         args: [],                                                            │
00:04:25 verbose #5253 > > │         keys: [],                                                            │
00:04:25 verbose #5254 > > │     },                                                                       │
00:04:25 verbose #5255 > > │     subcommands: [],                                                         │
00:04:25 verbose #5256 > > │     groups: [],                                                              │
00:04:25 verbose #5257 > > │     current_help_heading: None,                                              │
00:04:25 verbose #5258 > > │     current_disp_ord: Some(                                                  │
00:04:25 verbose #5259 > > │         0,                                                                   │
00:04:25 verbose #5260 > > │     ),                                                                       │
00:04:25 verbose #5261 > > │     subcommand_value_name: None,                                             │
00:04:25 verbose #5262 > > │     subcommand_heading: None,                                                │
00:04:25 verbose #5263 > > │     external_value_parser: None,                                             │
00:04:25 verbose #5264 > > │     long_help_exists: false,                                                 │
00:04:25 verbose #5265 > > │     deferred: None,                                                          │
00:04:25 verbose #5266 > > │     app_ext: Extensions {                                                    │
00:04:25 verbose #5267 > > │         extensions: FlatMap {                                                │
00:04:25 verbose #5268 > > │             keys: [],                                                        │
00:04:25 verbose #5269 > > │             values: [],                                                      │
00:04:25 verbose #5270 > > │         },                                                                   │
00:04:25 verbose #5271 > > │     },                                                                       │
00:04:25 verbose #5272 > > │ }"                                                                           │
00:04:25 verbose #5273 > > │                                                                              │
00:04:25 verbose #5274 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:25 verbose #5275 > >
00:04:25 verbose #5276 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:25 verbose #5277 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:25 verbose #5278 > > │ ### arg                                                                      │
00:04:25 verbose #5279 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:25 verbose #5280 > >
00:04:25 verbose #5281 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:25 verbose #5282 > > nominal arg =
00:04:25 verbose #5283 > >     `(
00:04:25 verbose #5284 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:04:25 verbose #5285 > > Fable.Core.Emit(\"clap::Arg\")>]]\n#endif\ntype clap_Arg = class end"
00:04:25 verbose #5286 > >         $'' : $'clap_Arg'
00:04:25 verbose #5287 > >     )
00:04:25 verbose #5288 > 00:04:24   debug #345 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fd9551beb3667cf0df8e6a5cda0091068d7a078b8e131db23c5713c89ea8e857/main.spi
00:04:25 verbose #5289 > >
00:04:25 verbose #5290 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:25 verbose #5291 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:25 verbose #5292 > > │ ### new_arg                                                                  │
00:04:25 verbose #5293 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:25 verbose #5294 > >
00:04:25 verbose #5295 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:25 verbose #5296 > > inl new_arg (s : rust.static_ref sm'.str) : arg =
00:04:25 verbose #5297 > >     !\\(s, $'"clap::Arg::new($0)"')
00:04:26 verbose #5298 > 00:04:25   debug #346 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2cb6661c79349607e50d146d9be49e90305ffcdbeeb829a250dffad0545c2ecf/main.spi
00:04:26 verbose #5299 > >
00:04:26 verbose #5300 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:26 verbose #5301 > > //// test
00:04:26 verbose #5302 > > ///! rust -d clap
00:04:26 verbose #5303 > >
00:04:26 verbose #5304 > > ##"arg"
00:04:26 verbose #5305 > > |> new_arg
00:04:26 verbose #5306 > > |> sm'.format_pretty'
00:04:26 verbose #5307 > > |> sm'.from_std_string
00:04:26 verbose #5308 > > |> _assert_string_contains "\"arg\""
00:04:26 verbose #5309 > 00:04:25   debug #347 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f1cbe654e5c281d884777684b46afc7d1c5cd09d1ae7bec73b110262b29914f7/main.spi
00:04:28 verbose #5310 > >
00:04:28 verbose #5311 > > ╭─[ 2.38s - return value ]─────────────────────────────────────────────────────╮
00:04:28 verbose #5312 > > │ assert_string_contains / actual: ""arg"" / expected: "Arg {                  │
00:04:28 verbose #5313 > > │     id: "arg",                                                               │
00:04:28 verbose #5314 > > │     help: None,                                                              │
00:04:28 verbose #5315 > > │     long_help: None,                                                         │
00:04:28 verbose #5316 > > │     action: None,                                                            │
00:04:28 verbose #5317 > > │     value_parser: None,                                                      │
00:04:28 verbose #5318 > > │     blacklist: [],                                                           │
00:04:28 verbose #5319 > > │     settings: ArgFlags(                                                      │
00:04:28 verbose #5320 > > │         0,                                                                   │
00:04:28 verbose #5321 > > │     ),                                                                       │
00:04:28 verbose #5322 > > │     overrides: [],                                                           │
00:04:28 verbose #5323 > > │     groups: [],                                                              │
00:04:28 verbose #5324 > > │     requires: [],                                                            │
00:04:28 verbose #5325 > > │     r_ifs: [],                                                               │
00:04:28 verbose #5326 > > │     r_unless: [],                                                            │
00:04:28 verbose #5327 > > │     short: None,                                                             │
00:04:28 verbose #5328 > > │     long: None,                                                              │
00:04:28 verbose #5329 > > │     aliases: [],                                                             │
00:04:28 verbose #5330 > > │     short_aliases: [],                                                       │
00:04:28 verbose #5331 > > │     disp_ord: None,                                                          │
00:04:28 verbose #5332 > > │     val_names: [],                                                           │
00:04:28 verbose #5333 > > │     num_vals: None,                                                          │
00:04:28 verbose #5334 > > │     val_delim: None,                                                         │
00:04:28 verbose #5335 > > │     default_vals: [],                                                        │
00:04:28 verbose #5336 > > │     default_vals_ifs: [],                                                    │
00:04:28 verbose #5337 > > │     terminator: None,                                                        │
00:04:28 verbose #5338 > > │     index: None,                                                             │
00:04:28 verbose #5339 > > │     help_heading: None,                                                      │
00:04:28 verbose #5340 > > │     value_hint: None,                                                        │
00:04:28 verbose #5341 > > │     default_missing_vals: [],                                                │
00:04:28 verbose #5342 > > │ }"                                                                           │
00:04:28 verbose #5343 > > │                                                                              │
00:04:28 verbose #5344 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:28 verbose #5345 > >
00:04:28 verbose #5346 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:28 verbose #5347 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:28 verbose #5348 > > │ ### command_arg                                                              │
00:04:28 verbose #5349 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:28 verbose #5350 > >
00:04:28 verbose #5351 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:28 verbose #5352 > > inl command_arg (arg : arg) (command : command) : command =
00:04:28 verbose #5353 > >     !\\((command, arg), $'"clap::Command::arg($0, $1)"')
00:04:28 verbose #5354 > 00:04:28   debug #348 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5621800147c02e3462c7fb2e879e354b266b8f3d8e12c9d49e449ea2f1f30528/main.spi
00:04:29 verbose #5355 > >
00:04:29 verbose #5356 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:29 verbose #5357 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:29 verbose #5358 > > │ ### arg_required                                                             │
00:04:29 verbose #5359 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:29 verbose #5360 > >
00:04:29 verbose #5361 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:29 verbose #5362 > > inl arg_required (value : bool) (arg : arg) : arg =
00:04:29 verbose #5363 > >     !\\((arg, value), $'"$0.required($1)"')
00:04:29 verbose #5364 > 00:04:28   debug #349 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2868d894ebff4c98e0e5c0ebf67075059fdcec29d83f8c894811ad538ac41852/main.spi
00:04:29 verbose #5365 > >
00:04:29 verbose #5366 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:29 verbose #5367 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:29 verbose #5368 > > │ ### arg_short                                                                │
00:04:29 verbose #5369 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:29 verbose #5370 > >
00:04:29 verbose #5371 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:29 verbose #5372 > > inl arg_short (value : char) (arg : arg) : arg =
00:04:29 verbose #5373 > >     !\\((arg, value), $'"$0.short($1)"')
00:04:29 verbose #5374 > 00:04:28   debug #350 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c9f7ab8e6959f2b32e08a0f534f5b0aed83faa51c71f222dcdb127a4af299d12/main.spi
00:04:29 verbose #5375 > >
00:04:29 verbose #5376 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:29 verbose #5377 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:29 verbose #5378 > > │ ### arg_long                                                                 │
00:04:29 verbose #5379 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:29 verbose #5380 > >
00:04:29 verbose #5381 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:29 verbose #5382 > > inl arg_long (value : rust.static_ref sm'.str) (arg : arg) : arg =
00:04:29 verbose #5383 > >     !\\((arg, value), $'"$0.long($1)"')
00:04:30 verbose #5384 > 00:04:29   debug #351 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b293c6ae16ba4eb3c3d1f0b9817a93e6847c401c103d8e613350b3881d988e75/main.spi
00:04:30 verbose #5385 > >
00:04:30 verbose #5386 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:30 verbose #5387 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:30 verbose #5388 > > │ ### arg_value_names                                                          │
00:04:30 verbose #5389 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:30 verbose #5390 > >
00:04:30 verbose #5391 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:30 verbose #5392 > > inl arg_value_names (values : array_base (rust.static_ref sm'.str)) (arg : arg)
00:04:30 verbose #5393 > > : arg =
00:04:30 verbose #5394 > >     inl values = values |> am'.to_vec
00:04:30 verbose #5395 > >     !\\((arg, values), $'"$0.value_names($1)"')
00:04:30 verbose #5396 > 00:04:29   debug #352 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c75801b31d4c6502a556d3c4f3feba12293468d0d2165b7b83e28db1cfb07a3a/main.spi
00:04:30 verbose #5397 > >
00:04:30 verbose #5398 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:30 verbose #5399 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:30 verbose #5400 > > │ ### arg_num_args                                                             │
00:04:30 verbose #5401 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:30 verbose #5402 > >
00:04:30 verbose #5403 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:30 verbose #5404 > > inl arg_num_args (value : i32) (arg : arg) : arg =
00:04:30 verbose #5405 > >     !\\((arg, value), $'"$0.num_args($1)"')
00:04:30 verbose #5406 > 00:04:29   debug #353 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/48935664621d7be9bc260ff8d8fa81d0850f0b3be3f05f5b3a704b229da50107/main.spi
00:04:30 verbose #5407 > >
00:04:30 verbose #5408 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:30 verbose #5409 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:30 verbose #5410 > > │ ### value_range                                                              │
00:04:30 verbose #5411 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:30 verbose #5412 > >
00:04:30 verbose #5413 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:30 verbose #5414 > > nominal value_range =
00:04:30 verbose #5415 > >     `(
00:04:30 verbose #5416 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:04:30 verbose #5417 > > Fable.Core.Emit(\"clap::builder::ValueRange\")>]]\n#endif\ntype
00:04:30 verbose #5418 > > clap_builder_ValueRange = class end"
00:04:30 verbose #5419 > >         $'' : $'clap_builder_ValueRange'
00:04:30 verbose #5420 > >     )
00:04:31 verbose #5421 > 00:04:30   debug #354 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d46e4f2c26e13a9a7a57030e5411b097fd43f3df214a23ff3dea91d172c7e1e8/main.spi
00:04:31 verbose #5422 > >
00:04:31 verbose #5423 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:31 verbose #5424 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:31 verbose #5425 > > │ ### new_value_range                                                          │
00:04:31 verbose #5426 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:31 verbose #5427 > >
00:04:31 verbose #5428 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:31 verbose #5429 > > inl new_value_range start end : value_range =
00:04:31 verbose #5430 > >     inl len = 0i32 |> convert
00:04:31 verbose #5431 > >     inl start, end =
00:04:31 verbose #5432 > >         open am'
00:04:31 verbose #5433 > >         match start, end with
00:04:31 verbose #5434 > >         | Start start, End fn =>
00:04:31 verbose #5435 > >             start, len |> fn
00:04:31 verbose #5436 > >         | End start_fn, End end_fn =>
00:04:31 verbose #5437 > >             start_fn len, end_fn len
00:04:31 verbose #5438 > >     match start, end with
00:04:31 verbose #5439 > >     | start, end when end =. len =>
00:04:31 verbose #5440 > > !\($'"clap::builder::ValueRange::new(!start..)"')
00:04:31 verbose #5441 > >     | start, end => !\($'"clap::builder::ValueRange::new(!start..!end)"')
00:04:31 verbose #5442 > 00:04:30   debug #355 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/385b7fd32ee099c5198bb11515aef00eaf37b921571b59aa2504c011ab7ca65e/main.spi
00:04:31 verbose #5443 > >
00:04:31 verbose #5444 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:31 verbose #5445 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:31 verbose #5446 > > │ ### arg_num_args_range                                                       │
00:04:31 verbose #5447 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:31 verbose #5448 > >
00:04:31 verbose #5449 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:31 verbose #5450 > > inl arg_num_args_range (value : value_range) (arg : arg) : arg =
00:04:31 verbose #5451 > >     !\\((arg, value), $'"$0.num_args($1)"')
00:04:31 verbose #5452 > 00:04:31   debug #356 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/321da1de07b3bd8bcfed7d63bc9caf3839643fdc6fed12634c219a2d92e3a690/main.spi
00:04:32 verbose #5453 > >
00:04:32 verbose #5454 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:32 verbose #5455 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:32 verbose #5456 > > │ ### arg_value_name                                                           │
00:04:32 verbose #5457 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:32 verbose #5458 > >
00:04:32 verbose #5459 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:32 verbose #5460 > > inl arg_value_name (value : string) (arg : arg) : arg =
00:04:32 verbose #5461 > >     inl value = value |> sm'.as_str
00:04:32 verbose #5462 > >     !\\((arg, value), $'"$0.value_name($1)"')
00:04:32 verbose #5463 > 00:04:31   debug #357 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c34a56b32029f5d53b1c219c855d6be6b957cee5729525886573d5c5b51235c5/main.spi
00:04:32 verbose #5464 > >
00:04:32 verbose #5465 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:32 verbose #5466 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:32 verbose #5467 > > │ ### value_parser                                                             │
00:04:32 verbose #5468 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:32 verbose #5469 > >
00:04:32 verbose #5470 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:32 verbose #5471 > > nominal value_parser =
00:04:32 verbose #5472 > >     `(
00:04:32 verbose #5473 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:04:32 verbose #5474 > > Fable.Core.Emit(\"clap::builder::ValueParser\")>]]\n#endif\ntype
00:04:32 verbose #5475 > > clap_builder_ValueParser = class end"
00:04:32 verbose #5476 > >         $'' : $'clap_builder_ValueParser'
00:04:32 verbose #5477 > >     )
00:04:32 verbose #5478 > 00:04:31   debug #358 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/be3e96afa5e8cdc48afbc8532fff017569a4f25296ae8ee4e39e1945dcc59a6e/main.spi
00:04:32 verbose #5479 > >
00:04:32 verbose #5480 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:32 verbose #5481 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:32 verbose #5482 > > │ ### possible_value                                                           │
00:04:32 verbose #5483 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:32 verbose #5484 > >
00:04:32 verbose #5485 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:32 verbose #5486 > > nominal possible_value =
00:04:32 verbose #5487 > >     `(
00:04:32 verbose #5488 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:04:32 verbose #5489 > > Fable.Core.Emit(\"clap::builder::PossibleValue\")>]]\n#endif\ntype
00:04:32 verbose #5490 > > clap_builder_PossibleValue = class end"
00:04:32 verbose #5491 > >         $'' : $'clap_builder_PossibleValue'
00:04:32 verbose #5492 > >     )
00:04:33 verbose #5493 > 00:04:32   debug #359 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ac0560258cdf6d78fbbbd90bea8ded3b36b763e506ac8a3c501c815b77a79f81/main.spi
00:04:33 verbose #5494 > >
00:04:33 verbose #5495 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:33 verbose #5496 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:33 verbose #5497 > > │ ### new_possible_value                                                       │
00:04:33 verbose #5498 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:33 verbose #5499 > >
00:04:33 verbose #5500 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:33 verbose #5501 > > inl new_possible_value forall t. (x : t) : possible_value =
00:04:33 verbose #5502 > >     !\\(x, $'"clap::builder::PossibleValue::new(&**$0)"')
00:04:33 verbose #5503 > 00:04:32   debug #360 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7bb134deafcf5f8d3c1707a10a4f351383f65e644f8bdd140646eb4908231828/main.spi
00:04:33 verbose #5504 > >
00:04:33 verbose #5505 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:33 verbose #5506 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:33 verbose #5507 > > │ ### value_parser_path_buf                                                    │
00:04:33 verbose #5508 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:33 verbose #5509 > >
00:04:33 verbose #5510 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:33 verbose #5511 > > inl value_parser_path_buf () : value_parser =
00:04:33 verbose #5512 > >     !\($'"clap::value_parser\!(std::path::PathBuf)"')
00:04:33 verbose #5513 > 00:04:33   debug #361 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/26936aeb6db21bf547dd660fad244996e5787c5f5d8fb742aa203f7afcc51491/main.spi
00:04:34 verbose #5514 > >
00:04:34 verbose #5515 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:34 verbose #5516 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:34 verbose #5517 > > │ ### value_parser_expr                                                        │
00:04:34 verbose #5518 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:34 verbose #5519 > >
00:04:34 verbose #5520 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:34 verbose #5521 > > inl value_parser_expr (expr : string) : value_parser =
00:04:34 verbose #5522 > >     !\($'"clap::value_parser\!(" + !expr + ").into()"')
00:04:34 verbose #5523 > 00:04:33   debug #362 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e5195783f09824f26d011d9d2e83a9ad3f2c700787ee629084c197730cf72aac/main.spi
00:04:34 verbose #5524 > >
00:04:34 verbose #5525 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:34 verbose #5526 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:34 verbose #5527 > > │ ### arg_value_parser                                                         │
00:04:34 verbose #5528 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:34 verbose #5529 > >
00:04:34 verbose #5530 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:34 verbose #5531 > > inl arg_value_parser (values : value_parser) (arg : arg) : arg =
00:04:34 verbose #5532 > >     !\\((arg, values), $'"$0.value_parser($1)"')
00:04:34 verbose #5533 > 00:04:33   debug #363 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2c595f38fdfddd5f646b22cdc3451f2a8161c26b548c12975a820cb0535181dc/main.spi
00:04:34 verbose #5534 > >
00:04:34 verbose #5535 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:34 verbose #5536 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:34 verbose #5537 > > │ ### arg_action                                                               │
00:04:34 verbose #5538 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:34 verbose #5539 > >
00:04:34 verbose #5540 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:34 verbose #5541 > > nominal arg_action' =
00:04:34 verbose #5542 > >     `(
00:04:34 verbose #5543 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:04:34 verbose #5544 > > Fable.Core.Emit(\"clap::ArgAction\")>]]\n#endif\ntype clap_ArgAction = class
00:04:34 verbose #5545 > > end"
00:04:34 verbose #5546 > >         $'' : $'clap_ArgAction'
00:04:34 verbose #5547 > >     )
00:04:34 verbose #5548 > >
00:04:34 verbose #5549 > > union arg_action =
00:04:34 verbose #5550 > >     | Set
00:04:34 verbose #5551 > >     | Append
00:04:34 verbose #5552 > >     | SetTrue
00:04:34 verbose #5553 > >     | SetFalse
00:04:34 verbose #5554 > >     | Count
00:04:34 verbose #5555 > >     | Help
00:04:34 verbose #5556 > >     | HelpShort
00:04:34 verbose #5557 > >     | HelpLong
00:04:34 verbose #5558 > >     | Version
00:04:34 verbose #5559 > >
00:04:34 verbose #5560 > > inl arg_action = function
00:04:34 verbose #5561 > >     | Set => !\($'"clap::ArgAction::Set"') : arg_action'
00:04:34 verbose #5562 > >     | Append => !\($'"clap::ArgAction::Append"') : arg_action'
00:04:34 verbose #5563 > >     | SetTrue => !\($'"clap::ArgAction::SetTrue"') : arg_action'
00:04:34 verbose #5564 > >     | SetFalse => !\($'"clap::ArgAction::SetFalse"') : arg_action'
00:04:34 verbose #5565 > >     | Count => !\($'"clap::ArgAction::Count"') : arg_action'
00:04:34 verbose #5566 > >     | Help => !\($'"clap::ArgAction::Help"') : arg_action'
00:04:34 verbose #5567 > >     | HelpShort => !\($'"clap::ArgAction::HelpShort"') : arg_action'
00:04:34 verbose #5568 > >     | HelpLong => !\($'"clap::ArgAction::HelpLong"') : arg_action'
00:04:34 verbose #5569 > >     | Version => !\($'"clap::ArgAction::Version"') : arg_action'
00:04:34 verbose #5570 > >
00:04:34 verbose #5571 > > inl arg_action (value : arg_action) (arg : arg) : arg =
00:04:34 verbose #5572 > >     inl value = value |> arg_action
00:04:34 verbose #5573 > >     !\\((arg, value), $'"$0.action($1)"')
00:04:35 verbose #5574 > 00:04:34   debug #364 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8b528e0c3a82f7af1d1c4092a087f065745753bd7aa4e4236ba45b19e9d5df47/main.spi
00:04:35 verbose #5575 > >
00:04:35 verbose #5576 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:35 verbose #5577 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:35 verbose #5578 > > │ ### arg_index                                                                │
00:04:35 verbose #5579 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:35 verbose #5580 > >
00:04:35 verbose #5581 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:35 verbose #5582 > > inl arg_index (value : i32) (arg : arg) : arg =
00:04:35 verbose #5583 > >     !\\((arg, value), $'"$0.index($1)"')
00:04:35 verbose #5584 > 00:04:34   debug #365 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/98c754229f74ff19e43804b7eb0c9589312590b75bc445bc5904af3d4bf69d02/main.spi
00:04:35 verbose #5585 > >
00:04:35 verbose #5586 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:35 verbose #5587 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:35 verbose #5588 > > │ ### arg_matches                                                              │
00:04:35 verbose #5589 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:35 verbose #5590 > >
00:04:35 verbose #5591 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:35 verbose #5592 > > nominal arg_matches =
00:04:35 verbose #5593 > >     `(
00:04:35 verbose #5594 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:04:35 verbose #5595 > > Fable.Core.Emit(\"clap::ArgMatches\")>]]\n#endif\ntype clap_ArgMatches = class
00:04:35 verbose #5596 > > end"
00:04:35 verbose #5597 > >         $'' : $'clap_ArgMatches'
00:04:35 verbose #5598 > >     )
00:04:35 verbose #5599 > 00:04:35   debug #366 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d28d3ca09e158c033fd752cfaee8334db54232620b8976aaa97a1b879370e49c/main.spi
00:04:35 verbose #5600 > >
00:04:35 verbose #5601 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:35 verbose #5602 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:35 verbose #5603 > > │ ### command_get_matches                                                      │
00:04:35 verbose #5604 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:35 verbose #5605 > >
00:04:35 verbose #5606 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:35 verbose #5607 > > inl command_get_matches (command : command) : arg_matches =
00:04:35 verbose #5608 > >     !\\(command, $'"clap::Command::get_matches($0)"')
00:04:36 verbose #5609 > 00:04:35   debug #367 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e70c450497c3a4c123d93183b478204d198755a47f257f0cccd734bd07606601/main.spi
00:04:36 verbose #5610 > >
00:04:36 verbose #5611 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:36 verbose #5612 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:36 verbose #5613 > > │ ### command_get_matches_from                                                 │
00:04:36 verbose #5614 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:36 verbose #5615 > >
00:04:36 verbose #5616 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:36 verbose #5617 > > inl command_get_matches_from (args : array_base string) (command : command) :
00:04:36 verbose #5618 > > arg_matches =
00:04:36 verbose #5619 > >     inl args = args |> am'.to_vec |> am'.vec_map sm'.to_std_string
00:04:36 verbose #5620 > >     !\\(command, $'"clap::Command::get_matches_from($0, !args)"')
00:04:36 verbose #5621 > 00:04:35   debug #368 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/706ba7f35f034ed8eb5344d2295e2d6e9bfcd64faf4571094d5a74a041425567/main.spi
00:04:36 verbose #5622 > >
00:04:36 verbose #5623 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:36 verbose #5624 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:36 verbose #5625 > > │ ### command_init_arg                                                         │
00:04:36 verbose #5626 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:36 verbose #5627 > >
00:04:36 verbose #5628 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:36 verbose #5629 > > inl command_init_arg (long, short) fn command =
00:04:36 verbose #5630 > >     command
00:04:36 verbose #5631 > >     |> command_arg (
00:04:36 verbose #5632 > >         new_arg ##long
00:04:36 verbose #5633 > >         |> arg_short short
00:04:36 verbose #5634 > >         |> arg_long ##long
00:04:36 verbose #5635 > >         |> fn
00:04:36 verbose #5636 > >     )
00:04:37 verbose #5637 > 00:04:36   debug #369 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2d560bcaa0111c5176c6e32da2d7c026147fd56357dac0c2c730fb0c94c5a1fc/main.spi
00:04:37 verbose #5638 > >
00:04:37 verbose #5639 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:37 verbose #5640 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:37 verbose #5641 > > │ ### matches_get_one                                                          │
00:04:37 verbose #5642 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:37 verbose #5643 > >
00:04:37 verbose #5644 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:37 verbose #5645 > > inl matches_get_one forall t. (x : string) (matches : arg_matches) :
00:04:37 verbose #5646 > > optionm'.option' t =
00:04:37 verbose #5647 > >     inl x = join x
00:04:37 verbose #5648 > >     inl x = x |> sm'.as_str
00:04:37 verbose #5649 > >     !\\(matches, $'"clap::ArgMatches::get_one(&$0, !x).cloned()"')
00:04:37 verbose #5650 > 00:04:36   debug #370 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2be1db5367d46797fe7433fab9b70e2db1406595fdd83df663f658325f7018ce/main.spi
00:04:37 verbose #5651 > >
00:04:37 verbose #5652 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:37 verbose #5653 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:37 verbose #5654 > > │ ### matches_get_flag                                                         │
00:04:37 verbose #5655 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:37 verbose #5656 > >
00:04:37 verbose #5657 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:37 verbose #5658 > > inl matches_get_flag (x : string) (matches : arg_matches) : bool =
00:04:37 verbose #5659 > >     inl x = join x
00:04:37 verbose #5660 > >     inl x = x |> sm'.as_str
00:04:37 verbose #5661 > >     !\($'"clap::ArgMatches::get_flag(&!matches, !x)"')
00:04:37 verbose #5662 > 00:04:36   debug #371 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9d65123e02e569b00ced07ad3204d93007be42f237e3ed5c2811b7521a6539b6/main.spi
00:04:37 verbose #5663 > >
00:04:37 verbose #5664 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:37 verbose #5665 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:37 verbose #5666 > > │ ### matches_get_many                                                         │
00:04:37 verbose #5667 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:37 verbose #5668 > >
00:04:37 verbose #5669 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:37 verbose #5670 > > inl matches_get_many forall t. (x : string) (matches : arg_matches) :
00:04:37 verbose #5671 > > optionm'.option' (am'.vec t) =
00:04:37 verbose #5672 > >     inl x = join x
00:04:37 verbose #5673 > >     inl x = x |> sm'.as_str
00:04:37 verbose #5674 > >     !\\(matches, $'"clap::ArgMatches::get_many(&$0, !x).map(|x|
00:04:37 verbose #5675 > > x.cloned().into_iter().collect())"')
00:04:38 verbose #5676 > 00:04:37   debug #372 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0cd4baeadba3e2480521819b8af2cd2f410b20d4d5304f85af156e469ec2499b/main.spi
00:04:38 verbose #5677 > >
00:04:38 verbose #5678 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:38 verbose #5679 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:38 verbose #5680 > > │ ### matches_get_occurrences                                                  │
00:04:38 verbose #5681 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:38 verbose #5682 > >
00:04:38 verbose #5683 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:38 verbose #5684 > > inl matches_get_occurrences (x : string) (matches : arg_matches) :
00:04:38 verbose #5685 > > optionm'.option' (array_base sm'.std_string) =
00:04:38 verbose #5686 > >     inl x = join x
00:04:38 verbose #5687 > >     inl x = x |> sm'.as_str
00:04:38 verbose #5688 > >     !\($'"clap::ArgMatches::get_occurrences(&!matches, !x).cloned()"')
00:04:38 verbose #5689 > 00:04:37   debug #373 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/cab7adbb6c7c781f5ac8005e47d77f6f5ceda467bed5db65eb5ec78a05f55d2d/main.spi
00:04:38 verbose #5690 > >
00:04:38 verbose #5691 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:38 verbose #5692 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:38 verbose #5693 > > │ ### matches_subcommand                                                       │
00:04:38 verbose #5694 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:38 verbose #5695 > >
00:04:38 verbose #5696 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:38 verbose #5697 > > inl matches_subcommand (matches : arg_matches) : optionm'.option'
00:04:38 verbose #5698 > > (sm'.std_string * arg_matches) =
00:04:38 verbose #5699 > >     !\\((matches, sm'.ref_to_std_string),
00:04:38 verbose #5700 > > $'"clap::ArgMatches::subcommand(Box::leak(Box::new($0))).map(|(a, b)| ($1(a),
00:04:38 verbose #5701 > > b.clone()))"')
00:04:38 verbose #5702 > 00:04:38   debug #374 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/647feb5dd02a5bb15d630e16d91e3c82fefcd39efbfff5859c1ba53d882e622d/main.spi
00:04:39 verbose #5703 > >
00:04:39 verbose #5704 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:39 verbose #5705 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:39 verbose #5706 > > │ ### matches_values_of                                                        │
00:04:39 verbose #5707 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:39 verbose #5708 > >
00:04:39 verbose #5709 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:39 verbose #5710 > > inl matches_values_of (x : string) (matches : arg_matches) : array_base
00:04:39 verbose #5711 > > sm'.std_string =
00:04:39 verbose #5712 > >     !\\((matches, x), $'"clap::ArgMatches::values_of($0, &*$1)"')
00:04:39 verbose #5713 > 00:04:38   debug #375 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ad9266653dcca245173853c6ca115b800111e7082c8b8cd6adc014f61f4c47fb/main.spi
00:04:39 verbose #5714 > >
00:04:39 verbose #5715 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:39 verbose #5716 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:39 verbose #5717 > > │ ### command_subcommand_required                                              │
00:04:39 verbose #5718 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:39 verbose #5719 > >
00:04:39 verbose #5720 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:39 verbose #5721 > > inl command_subcommand_required (value : bool) (command : command) : command =
00:04:39 verbose #5722 > >     !\\(command, $'"clap::Command::subcommand_required($0, !value)"')
00:04:39 verbose #5723 > 00:04:38   debug #376 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c85611439a08653c5d6a34f5f2731e85c3e2c46adfbd60182b32b30314d3bfd7/main.spi
00:04:39 verbose #5724 > >
00:04:39 verbose #5725 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:39 verbose #5726 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:39 verbose #5727 > > │ ### command_subcommand                                                       │
00:04:39 verbose #5728 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:39 verbose #5729 > >
00:04:39 verbose #5730 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:39 verbose #5731 > > inl command_subcommand (subcommand : command) (command : command) : command =
00:04:39 verbose #5732 > >     !\\(command, $'"clap::Command::subcommand($0, !subcommand)"')
00:04:40 verbose #5733 > 00:04:39   debug #377 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f2d4bd730d408a5764bcfbd77b0fa146daa86403dae93c55d01d907adefcffcb/main.spi
00:04:40 verbose #5734 > >
00:04:40 verbose #5735 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:40 verbose #5736 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:40 verbose #5737 > > │ ### value_parser_possible_values                                             │
00:04:40 verbose #5738 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:40 verbose #5739 > >
00:04:40 verbose #5740 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:40 verbose #5741 > > inl value_parser_possible_values (values : array_base string) : value_parser =
00:04:40 verbose #5742 > >     inl values =
00:04:40 verbose #5743 > >         values
00:04:40 verbose #5744 > >         |> am'.to_vec
00:04:40 verbose #5745 > >         |> am'.vec_map (sm'.to_std_string >> rust.new_box >> rust.box_leak >>
00:04:40 verbose #5746 > > new_possible_value)
00:04:40 verbose #5747 > >     !\\(values,
00:04:40 verbose #5748 > > $'"Into::<clap::builder::ValueParser>::into(clap::builder::PossibleValuesParser:
00:04:40 verbose #5749 > > :new($0))"')
00:04:40 verbose #5750 > 00:04:39   debug #378 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9475b394e6e1e12b35ffaa9c5edc54da32cc9b6e094ffd2bd0efc8c35fb06562/main.spi
00:04:40 verbose #5751 > >
00:04:40 verbose #5752 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:40 verbose #5753 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:40 verbose #5754 > > │ ### arg_union                                                                │
00:04:40 verbose #5755 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:40 verbose #5756 > >
00:04:40 verbose #5757 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:40 verbose #5758 > > inl arg_union forall union_type. (fn : union_type -> ()) (arg : arg) : arg =
00:04:40 verbose #5759 > >     arg
00:04:40 verbose #5760 > >     |> arg_value_parser (
00:04:40 verbose #5761 > >         real reflection.get_union_fields_untag `union_type ()
00:04:40 verbose #5762 > >         |> fun x => x : _ (string * union_type)
00:04:40 verbose #5763 > >         |> listm.map fst
00:04:40 verbose #5764 > >         |> listm'.box
00:04:40 verbose #5765 > >         |> listm'.to_array'
00:04:40 verbose #5766 > >         |> value_parser_possible_values
00:04:40 verbose #5767 > >     )
00:04:40 verbose #5768 > 00:04:40   debug #379 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/db6413afe2753011c8442e64105281451c199d8a755ef0986d8f744d3d113f63/main.spi
00:04:41 verbose #5769 > >
00:04:41 verbose #5770 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:41 verbose #5771 > > //// test
00:04:41 verbose #5772 > > ///! rust -d clap
00:04:41 verbose #5773 > >
00:04:41 verbose #5774 > > ##"command"
00:04:41 verbose #5775 > > |> new_command
00:04:41 verbose #5776 > > |> command_init_arg ("trace-level", 't') (
00:04:41 verbose #5777 > >     real arg_union `trace_level ignore
00:04:41 verbose #5778 > > )
00:04:41 verbose #5779 > > |> command_get_matches_from ;[[ "_"; "--trace-level"; "Critical" ]]
00:04:41 verbose #5780 > > |> matches_get_one "trace-level"
00:04:41 verbose #5781 > > |> optionm'.unwrap
00:04:41 verbose #5782 > > |> sm'.from_std_string
00:04:41 verbose #5783 > > |> reflection.union_try_pick
00:04:41 verbose #5784 > > |> optionm.value
00:04:41 verbose #5785 > > |> _assert_eq Critical
00:04:41 verbose #5786 > 00:04:40   debug #380 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d3a916a04d8fff983a74f60243f137597648673564fc260e411f060f47fb3f0b/main.spi
00:04:43 verbose #5787 > >
00:04:43 verbose #5788 > > ╭─[ 2.53s - return value ]─────────────────────────────────────────────────────╮
00:04:43 verbose #5789 > > │ assert_eq / actual: US1_4 / expected: US1_4                                  │
00:04:43 verbose #5790 > > │                                                                              │
00:04:43 verbose #5791 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:43 verbose #5792 > >
00:04:43 verbose #5793 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:43 verbose #5794 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:43 verbose #5795 > > │ ### command_debug_assert                                                     │
00:04:43 verbose #5796 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:43 verbose #5797 > >
00:04:43 verbose #5798 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:43 verbose #5799 > > inl command_debug_assert (command : command) : () =
00:04:43 verbose #5800 > >     !\\(command, $'"clap::Command::debug_assert($0)"')
00:04:43 verbose #5801 > 00:04:43   debug #381 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6ddd55a3ca5eea5a32e52a62a3aed254f85fefa710971190fc11763d19ceb487/main.spi
00:04:44 verbose #5802 > >
00:04:44 verbose #5803 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:44 verbose #5804 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:44 verbose #5805 > > │ ## fsharp                                                                    │
00:04:44 verbose #5806 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:44 verbose #5807 > >
00:04:44 verbose #5808 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:44 verbose #5809 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:44 verbose #5810 > > │ ### process                                                                  │
00:04:44 verbose #5811 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:44 verbose #5812 > >
00:04:44 verbose #5813 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:44 verbose #5814 > > nominal process = $'System.Diagnostics.Process'
00:04:44 verbose #5815 > 00:04:43   debug #382 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d15e7ada72b41273834acf0a27dc510fb29aa7bf522324ab39f16ec73d0f8267/main.spi
00:04:44 verbose #5816 > >
00:04:44 verbose #5817 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:44 verbose #5818 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:44 verbose #5819 > > │ ### process_start_info                                                       │
00:04:44 verbose #5820 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:44 verbose #5821 > >
00:04:44 verbose #5822 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:44 verbose #5823 > > nominal process_start_info = $'System.Diagnostics.ProcessStartInfo'
00:04:44 verbose #5824 > 00:04:43   debug #383 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6474a3983cdff71db884ac70971b0305eb10e5a583c223dede90500471b67db4/main.spi
00:04:44 verbose #5825 > >
00:04:44 verbose #5826 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:44 verbose #5827 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:44 verbose #5828 > > │ ### data_received_event_args                                                 │
00:04:44 verbose #5829 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:44 verbose #5830 > >
00:04:44 verbose #5831 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:44 verbose #5832 > > nominal data_received_event_args = $'System.Diagnostics.DataReceivedEventArgs'
00:04:45 verbose #5833 > 00:04:44   debug #384 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/87c8129cf8ad27e13ae8f9f300b9efbd60e3b1aaebbc3dd460bc8eb711feab26/main.spi
00:04:45 verbose #5834 > >
00:04:45 verbose #5835 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:45 verbose #5836 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:45 verbose #5837 > > │ ### new_process                                                              │
00:04:45 verbose #5838 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:45 verbose #5839 > >
00:04:45 verbose #5840 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:45 verbose #5841 > > inl new_process (process_start_info : process_start_info) : process =
00:04:45 verbose #5842 > >     $'new `process (StartInfo = !process_start_info)'
00:04:45 verbose #5843 > 00:04:44   debug #385 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d8448921a1e57f817096cbaf3f3c54a09a4326b76a2401b0db5ed3d8be57bc1a/main.spi
00:04:45 verbose #5844 > >
00:04:45 verbose #5845 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:45 verbose #5846 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:45 verbose #5847 > > │ ### process_start                                                            │
00:04:45 verbose #5848 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:45 verbose #5849 > >
00:04:45 verbose #5850 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:45 verbose #5851 > > inl process_start (process : process) : bool =
00:04:45 verbose #5852 > >     $'!process.Start' ()
00:04:45 verbose #5853 > 00:04:45   debug #386 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/bbd8b38c917f59d7b85ea994135767e2a2537cf838bae7552f0349ab62319c06/main.spi
00:04:46 verbose #5854 > >
00:04:46 verbose #5855 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:46 verbose #5856 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:46 verbose #5857 > > │ ### process_exit_code                                                        │
00:04:46 verbose #5858 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:46 verbose #5859 > >
00:04:46 verbose #5860 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:46 verbose #5861 > > inl process_exit_code (process : process) : i32 =
00:04:46 verbose #5862 > >     $'!process.ExitCode'
00:04:46 verbose #5863 > 00:04:45   debug #387 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/06f8cd0f4901f0c33b2286a1d00cbec49b309a53df0f85c561260188c9c4bec1/main.spi
00:04:46 verbose #5864 > >
00:04:46 verbose #5865 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:46 verbose #5866 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:46 verbose #5867 > > │ ### process_id                                                               │
00:04:46 verbose #5868 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:46 verbose #5869 > >
00:04:46 verbose #5870 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:46 verbose #5871 > > inl process_id (process : process) : i32 =
00:04:46 verbose #5872 > >     $'!process.Id'
00:04:46 verbose #5873 > 00:04:45   debug #388 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5427aa1c84564bafe0f916092bbff44408c0d04cc68a6cd2da55d4a478f157db/main.spi
00:04:46 verbose #5874 > >
00:04:46 verbose #5875 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:46 verbose #5876 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:46 verbose #5877 > > │ ### process_has_exited                                                       │
00:04:46 verbose #5878 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:46 verbose #5879 > >
00:04:46 verbose #5880 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:46 verbose #5881 > > inl process_has_exited (process : process) : bool =
00:04:46 verbose #5882 > >     run_target function
00:04:46 verbose #5883 > >         | Fsharp (Native) => fun () =>
00:04:46 verbose #5884 > >             $'!process.HasExited'
00:04:46 verbose #5885 > >         | _ => fun () => null ()
00:04:47 verbose #5886 > 00:04:46   debug #389 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5f270de608d9f7d04ca549d328d835326197e5373a7193db1a50ae88ba7f3e5e/main.spi
00:04:47 verbose #5887 > >
00:04:47 verbose #5888 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:47 verbose #5889 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:47 verbose #5890 > > │ ### process_kill                                                             │
00:04:47 verbose #5891 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:47 verbose #5892 > >
00:04:47 verbose #5893 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:47 verbose #5894 > > inl process_kill (process : process) : () =
00:04:47 verbose #5895 > >     run_target function
00:04:47 verbose #5896 > >         | Fsharp (Native) => fun () =>
00:04:47 verbose #5897 > >             $'!process.Kill' ()
00:04:47 verbose #5898 > >         | _ => fun () => null ()
00:04:47 verbose #5899 > 00:04:46   debug #390 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/28c093d4efea1cd663fabf95cf510fcd5bfa4ee7fc98984536299dcee3a0e574/main.spi
00:04:47 verbose #5900 > >
00:04:47 verbose #5901 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:47 verbose #5902 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:47 verbose #5903 > > │ ### process_begin_error_read_line                                            │
00:04:47 verbose #5904 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:47 verbose #5905 > >
00:04:47 verbose #5906 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:47 verbose #5907 > > inl process_begin_error_read_line (process : process) : () =
00:04:47 verbose #5908 > >     $'!process.BeginErrorReadLine' ()
00:04:47 verbose #5909 > 00:04:47   debug #391 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6efef42531ede26b69efd6120363f6d584ddf4e09236e475523993c10717344f/main.spi
00:04:48 verbose #5910 > >
00:04:48 verbose #5911 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:48 verbose #5912 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:48 verbose #5913 > > │ ### process_begin_output_read_line                                           │
00:04:48 verbose #5914 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:48 verbose #5915 > >
00:04:48 verbose #5916 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:48 verbose #5917 > > inl process_begin_output_read_line (process : process) : () =
00:04:48 verbose #5918 > >     $'!process.BeginOutputReadLine' ()
00:04:48 verbose #5919 > 00:04:47   debug #392 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/47e9720db20df05aad92a349bb5bec80245548c0aff24041b770858081dfdca1/main.spi
00:04:48 verbose #5920 > >
00:04:48 verbose #5921 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:48 verbose #5922 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:48 verbose #5923 > > │ ### process_add_output_data_received                                         │
00:04:48 verbose #5924 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:48 verbose #5925 > >
00:04:48 verbose #5926 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:48 verbose #5927 > > inl process_add_output_data_received fn (process : process) : () =
00:04:48 verbose #5928 > >     $'!process.OutputDataReceived.Add !fn '
00:04:48 verbose #5929 > 00:04:47   debug #393 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e2fcbb74cf838ae674b2581227dd94219fd8a25efe6a350ea3a112b28e431c38/main.spi
00:04:48 verbose #5930 > >
00:04:48 verbose #5931 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:48 verbose #5932 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:48 verbose #5933 > > │ ### process_add_error_data_received                                          │
00:04:48 verbose #5934 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:48 verbose #5935 > >
00:04:48 verbose #5936 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:48 verbose #5937 > > inl process_add_error_data_received fn (process : process) : () =
00:04:48 verbose #5938 > >     $'!process.ErrorDataReceived.Add !fn '
00:04:49 verbose #5939 > 00:04:48   debug #394 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f457e50da9a16309d2a64eccf37c48e4618b1e9bb4a7afd91cd278021595af1b/main.spi
00:04:49 verbose #5940 > >
00:04:49 verbose #5941 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:49 verbose #5942 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:49 verbose #5943 > > │ ### process_wait_for_exit_async                                              │
00:04:49 verbose #5944 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:49 verbose #5945 > >
00:04:49 verbose #5946 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:49 verbose #5947 > > inl process_wait_for_exit_async (ct : threading.cancellation_token) (process :
00:04:49 verbose #5948 > > process) : async.task () =
00:04:49 verbose #5949 > >     $'!process.WaitForExitAsync !ct '
00:04:49 verbose #5950 > 00:04:48   debug #395 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2ac7d55be0a71d5e672bded056499a39672e853029081c7f3ee267b5678d333b/main.spi
00:04:49 verbose #5951 > >
00:04:49 verbose #5952 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:49 verbose #5953 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:49 verbose #5954 > > │ ### event_data                                                               │
00:04:49 verbose #5955 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:49 verbose #5956 > >
00:04:49 verbose #5957 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:49 verbose #5958 > > inl event_data (e : data_received_event_args) : string =
00:04:49 verbose #5959 > >     $'!e.Data'
00:04:49 verbose #5960 > 00:04:49   debug #396 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b26d292290bf6d2774642722544ee0b15ee34b821ac281d92b44baff28514a99/main.spi
00:04:50 verbose #5961 > >
00:04:50 verbose #5962 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:50 verbose #5963 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:50 verbose #5964 > > │ ### execute_with_options_async                                               │
00:04:50 verbose #5965 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:50 verbose #5966 > >
00:04:50 verbose #5967 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:50 verbose #5968 > > let execute_with_options_async (options : execution_options) : _ (i32 * string)
00:04:50 verbose #5969 > > =
00:04:50 verbose #5970 > >     run_target function
00:04:50 verbose #5971 > >         | Fsharp (Native) => fun () =>
00:04:50 verbose #5972 > >             fun () =>
00:04:50 verbose #5973 > >                 inl file_name, arguments = options.command |> split_command |>
00:04:50 verbose #5974 > > resultm.get
00:04:50 verbose #5975 > >                 inl working_directory = options.working_directory |>
00:04:50 verbose #5976 > > optionm'.unbox |> optionm'.default_value ""
00:04:50 verbose #5977 > >
00:04:50 verbose #5978 > >                 trace Debug
00:04:50 verbose #5979 > >                     fun () => $'$"runtime.execute_with_options_async"'
00:04:50 verbose #5980 > >                     fun () => { options }
00:04:50 verbose #5981 > >
00:04:50 verbose #5982 > >                 inl utf8 = sm'.encoding_utf8 ()
00:04:50 verbose #5983 > >                 inl arguments = arguments |> optionm'.default_value ""
00:04:50 verbose #5984 > >
00:04:50 verbose #5985 > >                 $'let start_info = System.Diagnostics.ProcessStartInfo ('
00:04:50 verbose #5986 > >                 $'  Arguments = !arguments,'
00:04:50 verbose #5987 > >                 $'  StandardOutputEncoding = !utf8,'
00:04:50 verbose #5988 > >                 $'  WorkingDirectory = !working_directory,'
00:04:50 verbose #5989 > >                 $'  FileName = !file_name,'
00:04:50 verbose #5990 > >                 $'  CreateNoWindow = true,'
00:04:50 verbose #5991 > >                 $'  RedirectStandardError = true,'
00:04:50 verbose #5992 > >                 $'  RedirectStandardOutput = true,'
00:04:50 verbose #5993 > >                 $'  UseShellExecute = false'
00:04:50 verbose #5994 > >                 $')'
00:04:50 verbose #5995 > >                 inl start_info : process_start_info = $'start_info'
00:04:50 verbose #5996 > >
00:04:50 verbose #5997 > >                 (a options.environment_variables : _ i32 _)
00:04:50 verbose #5998 > >                 |> am.iter fun key, value =>
00:04:50 verbose #5999 > >                     $'!start_info.EnvironmentVariables.[[!key]] <- !value '
00:04:50 verbose #6000 > >
00:04:50 verbose #6001 > >                 inl proc = start_info |> new_process |> use
00:04:50 verbose #6002 > >                 inl output : _ string = threading.new_concurrent_stack ()
00:04:50 verbose #6003 > >
00:04:50 verbose #6004 > >                 inl event error (e : data_received_event_args) = async.new_async
00:04:50 verbose #6005 > > fun () =>
00:04:50 verbose #6006 > >                     inl data = e |> event_data
00:04:50 verbose #6007 > >                     if data <> null () then
00:04:50 verbose #6008 > >                         match options.on_line |> optionm'.unbox with
00:04:50 verbose #6009 > >                         | Some on_line =>
00:04:50 verbose #6010 > >                             on_line
00:04:50 verbose #6011 > >                                 {
00:04:50 verbose #6012 > >                                     process_id = proc |> process_id
00:04:50 verbose #6013 > >                                     line = data
00:04:50 verbose #6014 > >                                     error = error
00:04:50 verbose #6015 > >                                 }
00:04:50 verbose #6016 > >                             |> async.do
00:04:50 verbose #6017 > >                         | None => ()
00:04:50 verbose #6018 > >
00:04:50 verbose #6019 > >                         inl text =
00:04:50 verbose #6020 > >                             if error
00:04:50 verbose #6021 > >                             then $'$"\! {!data}"'
00:04:50 verbose #6022 > >                             else $'$"> {!data}"'
00:04:50 verbose #6023 > >                         if options.trace
00:04:50 verbose #6024 > >                         then trace Verbose (fun () => text) id
00:04:50 verbose #6025 > >                         else text |> console.write_line
00:04:50 verbose #6026 > >
00:04:50 verbose #6027 > >                         inl l = if error then $'"\\u001b[[7;4m"' else ""
00:04:50 verbose #6028 > >                         inl r = if error then $'"\\u001b[[0m"' else ""
00:04:50 verbose #6029 > >                         output |> threading.concurrent_stack_push
00:04:50 verbose #6030 > > $'$"{!l}{!data}{!r}"'
00:04:50 verbose #6031 > >
00:04:50 verbose #6032 > >                 proc |> process_add_output_data_received (event false >>
00:04:50 verbose #6033 > > async.start_immediate)
00:04:50 verbose #6034 > >                 proc |> process_add_error_data_received (event true >>
00:04:50 verbose #6035 > > async.start_immediate)
00:04:50 verbose #6036 > >
00:04:50 verbose #6037 > >                 if proc |> process_start |> not
00:04:50 verbose #6038 > >                 then failwith $'$"runtime.execute_with_options_async
00:04:50 verbose #6039 > > process_start error"'
00:04:50 verbose #6040 > >
00:04:50 verbose #6041 > >                 proc |> process_begin_error_read_line
00:04:50 verbose #6042 > >                 proc |> process_begin_output_read_line
00:04:50 verbose #6043 > >
00:04:50 verbose #6044 > >                 inl ct =
00:04:50 verbose #6045 > >                     options.cancellation_token
00:04:50 verbose #6046 > >                     |> optionm'.unbox
00:04:50 verbose #6047 > >                     |> optionm'.default_with threading.token_none
00:04:50 verbose #6048 > >                     |> async.merge_cancellation_token_with_default_async
00:04:50 verbose #6049 > >                     |> async.let'
00:04:50 verbose #6050 > >
00:04:50 verbose #6051 > >                 ct |> threading.token_register fun () =>
00:04:50 verbose #6052 > >                     if proc |> process_has_exited |> not
00:04:50 verbose #6053 > >                     then proc |> process_kill
00:04:50 verbose #6054 > >                 |> use
00:04:50 verbose #6055 > >                 |> ignore
00:04:50 verbose #6056 > >
00:04:50 verbose #6057 > >                 inl exit_code : i32 =
00:04:50 verbose #6058 > >                     fun () =>
00:04:50 verbose #6059 > >                         try_unit
00:04:50 verbose #6060 > >                             fun () =>
00:04:50 verbose #6061 > >                                 proc
00:04:50 verbose #6062 > >                                 |> process_wait_for_exit_async ct
00:04:50 verbose #6063 > >                                 |> async.await_task
00:04:50 verbose #6064 > >                                 |> async.do
00:04:50 verbose #6065 > >                                 proc |> process_exit_code |> return
00:04:50 verbose #6066 > >                             fun ex =>
00:04:50 verbose #6067 > >                                 // with :?
00:04:50 verbose #6068 > > System.Threading.Tasks.TaskCanceledException as ex =>
00:04:50 verbose #6069 > >                                 inl ex' = ex |> sm'.format_exception
00:04:50 verbose #6070 > >                                 output |> threading.concurrent_stack_push ex'
00:04:50 verbose #6071 > >                                 inl ex : async.task_canceled_exception = ex |>
00:04:50 verbose #6072 > > unbox
00:04:50 verbose #6073 > >                                 trace Warning
00:04:50 verbose #6074 > >                                     fun () =>
00:04:50 verbose #6075 > > $'$"runtime.execute_with_options_async / WaitForExitAsync"'
00:04:50 verbose #6076 > >                                     fun () => { ex }
00:04:50 verbose #6077 > >                                 (limit.min : i32) |> return
00:04:50 verbose #6078 > >                     |> async.new_async_unit
00:04:50 verbose #6079 > >                     |> async.let'
00:04:50 verbose #6080 > >
00:04:50 verbose #6081 > >                 inl output =
00:04:50 verbose #6082 > >                     output
00:04:50 verbose #6083 > >                     |> seq.rev''
00:04:50 verbose #6084 > >                     |> fun x => x : seq.seq' string
00:04:50 verbose #6085 > >                     |> sm'.concat "\n"
00:04:50 verbose #6086 > >
00:04:50 verbose #6087 > >                 trace Debug
00:04:50 verbose #6088 > >                     fun () => $'$"runtime.execute_with_options_async"'
00:04:50 verbose #6089 > >                     fun () => { exit_code output_length = output |> sm'.length :
00:04:50 verbose #6090 > > i32 }
00:04:50 verbose #6091 > >
00:04:50 verbose #6092 > >                 (exit_code, output) |> return
00:04:50 verbose #6093 > >             |> async.new_async_unit
00:04:50 verbose #6094 > >         | _ => fun () =>
00:04:50 verbose #6095 > >             global "#if FABLE_COMPILER\n[[<CompilationRepresentation
00:04:50 verbose #6096 > > (CompilationRepresentationFlags.ModuleSuffix)>]]\nmodule System =\n module
00:04:50 verbose #6097 > > Diagnostics =\n  type Process = unit\n  type DataReceivedEventArgs =
00:04:50 verbose #6098 > > unit\n#endif"
00:04:50 verbose #6099 > >             null ()
00:04:50 verbose #6100 > 00:04:49   debug #397 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/47b21d1f7e22e49a552d04c5b8d59969928ff7d1481286b9e39100e7a6a98075/main.spi
00:04:50 verbose #6101 > >
00:04:50 verbose #6102 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:50 verbose #6103 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:50 verbose #6104 > > │ ### execute_async                                                            │
00:04:50 verbose #6105 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:50 verbose #6106 > >
00:04:50 verbose #6107 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:50 verbose #6108 > > inl execute_async command =
00:04:50 verbose #6109 > >     execution_options fun x => { x with
00:04:50 verbose #6110 > >         command = command
00:04:50 verbose #6111 > >     }
00:04:50 verbose #6112 > >     |> execute_with_options_async
00:04:50 verbose #6113 > 00:04:49   debug #398 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/280060a9b203263a716c4124a15ea2f823ee9827e43abb37ff0ea08b8744b6d3/main.spi
00:04:50 verbose #6114 > >
00:04:50 verbose #6115 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:50 verbose #6116 > > //// test
00:04:50 verbose #6117 > >
00:04:50 verbose #6118 > > inl content = "╭─[[ 你好,世界!こんにちは世界! ]]─╮"
00:04:50 verbose #6119 > > fun () =>
00:04:50 verbose #6120 > >     inl file_name = "test.txt"
00:04:50 verbose #6121 > >     inl temp_dir, disposable =
00:04:50 verbose #6122 > >         (file_name, content)
00:04:50 verbose #6123 > >         |> sm'.format_debug
00:04:50 verbose #6124 > >         |> crypto.hash_text
00:04:50 verbose #6125 > >         |> file_system.create_temp_dir'
00:04:50 verbose #6126 > >     disposable |> use |> ignore
00:04:50 verbose #6127 > >
00:04:50 verbose #6128 > >     inl path = temp_dir </> file_name
00:04:50 verbose #6129 > >
00:04:50 verbose #6130 > >     inl exit_code, result = execute_async $'\@$"pwsh -c ""Get-Content
00:04:50 verbose #6131 > > {!path}"""' |> async.let'
00:04:50 verbose #6132 > >     exit_code |> join _assert_eq 1
00:04:50 verbose #6133 > >     result |> _assert_string_contains "not exist"
00:04:50 verbose #6134 > >
00:04:50 verbose #6135 > >     content |> file_system.write_all_text_async path |> async.do
00:04:50 verbose #6136 > >
00:04:50 verbose #6137 > >     execution_options fun x => { x with
00:04:50 verbose #6138 > >         command = $'\@$"cat ""{!file_name}"""'
00:04:50 verbose #6139 > >         working_directory = Some temp_dir |> optionm'.box
00:04:50 verbose #6140 > >     }
00:04:50 verbose #6141 > >     |> execute_with_options_async
00:04:50 verbose #6142 > >     |> async.let'
00:04:50 verbose #6143 > >     |> ignore
00:04:50 verbose #6144 > >
00:04:50 verbose #6145 > >     execution_options fun x => { x with
00:04:50 verbose #6146 > >         command = $'\@$"pwsh -c ""[[System.Console]]::OutputEncoding =
00:04:50 verbose #6147 > > [[System.Text.Encoding]]::UTF8; Get-Content {!file_name}"""'
00:04:50 verbose #6148 > >         working_directory = Some temp_dir |> optionm'.box
00:04:50 verbose #6149 > >     }
00:04:50 verbose #6150 > >     |> execute_with_options_async
00:04:50 verbose #6151 > >     |> async.return_await
00:04:50 verbose #6152 > > |> async.new_async_unit
00:04:50 verbose #6153 > > |> async.run_with_timeout 10000
00:04:50 verbose #6154 > > |> function
00:04:50 verbose #6155 > >     | Some (exit_code, output) =>
00:04:50 verbose #6156 > >         exit_code |> join _assert_eq 0i32
00:04:50 verbose #6157 > >         output |> join _assert_eq content
00:04:50 verbose #6158 > >         true
00:04:50 verbose #6159 > >     | _ => false
00:04:50 verbose #6160 > > |> _assert_eq true
00:04:51 verbose #6161 > 00:04:50   debug #399 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3cc27fd4298d509943f7c6e046ab01b86861286e2ee49d34afb5628f21be90a4/main.spi
00:04:56 verbose #6162 > >
00:04:56 verbose #6163 > > ╭─[ 5.12s - stdout ]───────────────────────────────────────────────────────────╮
00:04:56 verbose #6164 > > │ 00:00:00   debug #1 runtime.execute_with_options_async / { options = {  │
00:04:56 verbose #6165 > > │ command = pwsh -c "Get-Content                                               │
00:04:56 verbose #6166 > > │ C:\Users\i574n\AppData\Local\Temp\!create_temp_path_\dotnet-repl\76793606-81 │
00:04:56 verbose #6167 > > │ 3b-88ad-7791-7ce2871edce9\test.txt"; cancellation_token = None;              │
00:04:56 verbose #6168 > > │ environment_variables = [||]; on_line = None; stdin = None; trace = true;    │
00:04:56 verbose #6169 > > │ working_directory = None } }                                                 │
00:04:56 verbose #6170 > > │ 00:00:00 verbose #2 ! Get-Content: Cannot find path           │
00:04:56 verbose #6171 > > │ 'C:\Users\i574n\AppData\Local\Temp\!create_temp_path_\dotnet-repl\76793606-8 │
00:04:56 verbose #6172 > > │ 13b-88ad-7791-7ce2871edce9\test.txt' because it does not exist.            │
00:04:56 verbose #6173 > > │ 00:00:00   debug #3 runtime.execute_with_options_async / { exit_code =  │
00:04:56 verbose #6174 > > │ 1; output_length = 197 }                                                     │
00:04:56 verbose #6175 > > │ assert_eq / actual: 1 / expected: 1                                          │
00:04:56 verbose #6176 > > │ assert_string_contains / actual: "not exist" / expected: "[               │
00:04:56 verbose #6177 > > │ 31;1mGet-Content: Cannot find path                                      │
00:04:56 verbose #6178 > > │ 'C:\Users\i574n\AppData\Local\Temp\!create_temp_path_\dotnet-repl\76793606-8 │
00:04:56 verbose #6179 > > │ 13b-88ad-7791-7ce2871edce9\test.txt' because it does not exist."         │
00:04:56 verbose #6180 > > │ 00:00:00   debug #4 runtime.execute_with_options_async / { options = {  │
00:04:56 verbose #6181 > > │ command = cat "test.txt"; cancellation_token = None; environment_variables = │
00:04:56 verbose #6182 > > │ [||]; on_line = None; stdin = None; trace = true; working_directory = Some   │
00:04:56 verbose #6183 > > │                                                                              │
00:04:56 verbose #6184 > > │ "C:\Users\i574n\AppData\Local\Temp\!create_temp_path_\dotnet-repl\76793606-8 │
00:04:56 verbose #6185 > > │ 13b-88ad-7791-7ce2871edce9" } }                                              │
00:04:56 verbose #6186 > > │ 00:00:00 verbose #5 > ╭─[ 你好,世界!こんにちは世界! ]─╮              │
00:04:56 verbose #6187 > > │ 00:00:00   debug #6 runtime.execute_with_options_async / { exit_code =  │
00:04:56 verbose #6188 > > │ 0; output_length = 22 }                                                      │
00:04:56 verbose #6189 > > │ 00:00:00   debug #7 runtime.execute_with_options_async / { options = {  │
00:04:56 verbose #6190 > > │ command = pwsh -c "[System.Console]::OutputEncoding = [                      │
00:04:56 verbose #6191 > > │ System.Text.Encoding]::UTF8; Get-Content test.txt"; cancellation_token =     │
00:04:56 verbose #6192 > > │ None; environment_variables = [||]; on_line = None; stdin = None; trace =    │
00:04:56 verbose #6193 > > │ true; working_directory = Some                                               │
00:04:56 verbose #6194 > > │                                                                              │
00:04:56 verbose #6195 > > │ "C:\Users\i574n\AppData\Local\Temp\!create_temp_path_\dotnet-repl\76793606-8 │
00:04:56 verbose #6196 > > │ 13b-88ad-7791-7ce2871edce9" } }                                              │
00:04:56 verbose #6197 > > │ 00:00:01 verbose #8 > ╭─[ 你好,世界!こんにちは世界! ]─╮              │
00:04:56 verbose #6198 > > │ 00:00:01   debug #9 runtime.execute_with_options_async / { exit_code =  │
00:04:56 verbose #6199 > > │ 0; output_length = 22 }                                                      │
00:04:56 verbose #6200 > > │ assert_eq / actual: 0 / expected: 0                                          │
00:04:56 verbose #6201 > > │ assert_eq / actual: "╭─[ 你好,世界!こんにちは世界! ]─╮" / expected: "╭─[  │
00:04:56 verbose #6202 > > │ 你好,世界!こんにちは世界! ]─╮"                                            │
00:04:56 verbose #6203 > > │ assert_eq / actual: true / expected: true                                    │
00:04:56 verbose #6204 > > │                                                                              │
00:04:56 verbose #6205 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:56 verbose #6206 > >
00:04:56 verbose #6207 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:56 verbose #6208 > > //// test
00:04:56 verbose #6209 > >
00:04:56 verbose #6210 > > fun () =>
00:04:56 verbose #6211 > >     inl file_name = "test.txt"
00:04:56 verbose #6212 > >     inl text = "0"
00:04:56 verbose #6213 > >
00:04:56 verbose #6214 > >     inl temp_dir, disposable =
00:04:56 verbose #6215 > >         (file_name, text)
00:04:56 verbose #6216 > >         |> sm'.format_debug
00:04:56 verbose #6217 > >         |> crypto.hash_text
00:04:56 verbose #6218 > >         |> file_system.create_temp_dir'
00:04:56 verbose #6219 > >     disposable |> use |> ignore
00:04:56 verbose #6220 > >     inl path = temp_dir </> file_name
00:04:56 verbose #6221 > >     text |> file_system.write_all_text_async path |> async.do
00:04:56 verbose #6222 > >
00:04:56 verbose #6223 > >     inl cts = threading.new_cancellation_token_source ()
00:04:56 verbose #6224 > >     trace Debug (fun () => "1") id
00:04:56 verbose #6225 > >     inl result =
00:04:56 verbose #6226 > >         execution_options fun x => { x with
00:04:56 verbose #6227 > >             command = $'\@$"pwsh -c ""Get-Content {!path}"""'
00:04:56 verbose #6228 > >             cancellation_token = cts |> threading.cancellation_source_token |>
00:04:56 verbose #6229 > > Some |> optionm'.box
00:04:56 verbose #6230 > >         }
00:04:56 verbose #6231 > >         |> execute_with_options_async
00:04:56 verbose #6232 > >         |> async.start_child
00:04:56 verbose #6233 > >         |> async.let'
00:04:56 verbose #6234 > >     trace Debug (fun () => "2") id
00:04:56 verbose #6235 > >     async.sleep 100 |> async.do
00:04:56 verbose #6236 > >     trace Debug (fun () => "3") id
00:04:56 verbose #6237 > >     cts |> threading.cancellation_source_cancel
00:04:56 verbose #6238 > >     trace Debug (fun () => "4") id
00:04:56 verbose #6239 > >     inl exit_code, output = result |> async.let'
00:04:56 verbose #6240 > >     trace Debug (fun () => "5") id
00:04:56 verbose #6241 > >     (exit_code, output) |> return
00:04:56 verbose #6242 > > |> async.new_async_unit
00:04:56 verbose #6243 > > |> async.run_with_timeout 10000
00:04:56 verbose #6244 > > |> function
00:04:56 verbose #6245 > >     | Some (exit_code, output) =>
00:04:56 verbose #6246 > >         exit_code |> _assert_eq -2147483648i32
00:04:56 verbose #6247 > >         output |> _assert_eq (join
00:04:56 verbose #6248 > > "System.Threading.Tasks.TaskCanceledException: A task was canceled.")
00:04:56 verbose #6249 > >         true
00:04:56 verbose #6250 > >     | _ => false
00:04:56 verbose #6251 > > |> _assert_eq true
00:04:56 verbose #6252 > 00:04:55   debug #400 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/51df4505cfa9b12953ddcf21eb709af552a5428514244fb2dba6c9df62b2bd37/main.spi
00:04:59 verbose #6253 > >
00:04:59 verbose #6254 > > ╭─[ 3.90s - stdout ]───────────────────────────────────────────────────────────╮
00:04:59 verbose #6255 > > │ 00:00:00   debug #1 1                                                   │
00:04:59 verbose #6256 > > │ 00:00:00   debug #2 2                                                   │
00:04:59 verbose #6257 > > │ 00:00:00   debug #3 runtime.execute_with_options_async / { options = {  │
00:04:59 verbose #6258 > > │ command = pwsh -c "Get-Content                                               │
00:04:59 verbose #6259 > > │ C:\Users\i574n\AppData\Local\Temp\!create_temp_path_\dotnet-repl\613830ed-01 │
00:04:59 verbose #6260 > > │ 6e-d959-8d21-02dc1c63c252\test.txt"; cancellation_token = Some               │
00:04:59 verbose #6261 > > │ System.Threading.CancellationToken; environment_variables = [||]; on_line =  │
00:04:59 verbose #6262 > > │ None; stdin = None; trace = true; working_directory = None } }               │
00:04:59 verbose #6263 > > │ 00:00:00   debug #4 3                                                   │
00:04:59 verbose #6264 > > │ 00:00:00   debug #5 4                                                   │
00:04:59 verbose #6265 > > │ 00:00:00 warning #6 runtime.execute_with_options_async /                │
00:04:59 verbose #6266 > > │ WaitForExitAsync / { ex = System.Threading.Tasks.TaskCanceledException: A    │
00:04:59 verbose #6267 > > │ task was canceled. }                                                         │
00:04:59 verbose #6268 > > │ 00:00:00   debug #7 runtime.execute_with_options_async / { exit_code =  │
00:04:59 verbose #6269 > > │ -2147483648; output_length = 66 }                                            │
00:04:59 verbose #6270 > > │ 00:00:00   debug #8 5                                                   │
00:04:59 verbose #6271 > > │ assert_eq / actual: -2147483648 / expected: -2147483648                      │
00:04:59 verbose #6272 > > │ assert_eq / actual: "System.Threading.Tasks.TaskCanceledException: A task    │
00:04:59 verbose #6273 > > │ was canceled." / expected: "System.Threading.Tasks.TaskCanceledException: A  │
00:04:59 verbose #6274 > > │ task was canceled."                                                          │
00:04:59 verbose #6275 > > │ assert_eq / actual: true / expected: true                                    │
00:04:59 verbose #6276 > > │                                                                              │
00:04:59 verbose #6277 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:59 verbose #6278 > >
00:04:59 verbose #6279 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:59 verbose #6280 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:59 verbose #6281 > > │ ### current_process_kill                                                     │
00:04:59 verbose #6282 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:59 verbose #6283 > >
00:04:59 verbose #6284 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:59 verbose #6285 > > inl current_process_kill () =
00:04:59 verbose #6286 > >     run_target function
00:04:59 verbose #6287 > >         | Fsharp (Native) => fun () =>
00:04:59 verbose #6288 > >             inl fn () =
00:04:59 verbose #6289 > >                 run_target function
00:04:59 verbose #6290 > >                     | Fsharp (Native) => fun () =>
00:04:59 verbose #6291 > >                         trace Warning (fun () => "runtime.current_process_kill
00:04:59 verbose #6292 > > exiting... 3") id
00:04:59 verbose #6293 > >                         $'System.Threading.Thread.Sleep 300'
00:04:59 verbose #6294 > >                         trace Warning (fun () => "runtime.current_process_kill
00:04:59 verbose #6295 > > exiting... 2") id
00:04:59 verbose #6296 > >                         $'System.Console.Out.Flush ()'
00:04:59 verbose #6297 > >                         $'System.Threading.Thread.Sleep 60'
00:04:59 verbose #6298 > >                         trace Warning (fun () => "runtime.current_process_kill
00:04:59 verbose #6299 > > exiting... 1") id
00:04:59 verbose #6300 > >                         $'System.Diagnostics.Process.GetCurrentProcess().Kill
00:04:59 verbose #6301 > > ()' : ()
00:04:59 verbose #6302 > >                     | _ => fun () => null ()
00:04:59 verbose #6303 > >             inl thread : threading.thread = $'new System.Threading.Thread (!fn)'
00:04:59 verbose #6304 > >             thread |> $'_.Start()' : ()
00:04:59 verbose #6305 > >         | _ => fun () => null ()
00:05:00 verbose #6306 > 00:04:59   debug #401 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/69a90085f5c3185b5cd7e1484cfbd25ee4af3f38cccaf6106ee8a061bec0e8e7/main.spi
00:05:00 verbose #6307 > >
00:05:00 verbose #6308 > > ── markdown ────────────────────────────────────────────────────────────────────
00:05:00 verbose #6309 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:05:00 verbose #6310 > > │ ### gc_collect                                                               │
00:05:00 verbose #6311 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:00 verbose #6312 > >
00:05:00 verbose #6313 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:00 verbose #6314 > > inl gc_collect () =
00:05:00 verbose #6315 > >     run_target function
00:05:00 verbose #6316 > >         | Fsharp _ => fun () => $'System.GC.Collect' () : ()
00:05:00 verbose #6317 > >         | Python _ => fun () =>
00:05:00 verbose #6318 > >             backend_switch {
00:05:00 verbose #6319 > >                 Python = fun () => global "import gc"
00:05:00 verbose #6320 > >             }
00:05:00 verbose #6321 > >             ($'gc.collect()' : int) |> ignore
00:05:00 verbose #6322 > >         | _ => fun () => ()
00:05:00 verbose #6323 > 00:04:59   debug #402 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/cb45988d6c657482620d85b16f2eb3b747469864066d827f5948b4a8dcb7dff7/main.spi
00:05:00 verbose #6324 > >
00:05:00 verbose #6325 > > ── markdown ────────────────────────────────────────────────────────────────────
00:05:00 verbose #6326 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:05:00 verbose #6327 > > │ ## runtime                                                                   │
00:05:00 verbose #6328 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:00 verbose #6329 > >
00:05:00 verbose #6330 > > ── markdown ────────────────────────────────────────────────────────────────────
00:05:00 verbose #6331 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:05:00 verbose #6332 > > │ ### execute_with_options                                                     │
00:05:00 verbose #6333 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:00 verbose #6334 > >
00:05:00 verbose #6335 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:00 verbose #6336 > > let execute_with_options (options : execution_options) : i32 * string =
00:05:00 verbose #6337 > >     run_target function
00:05:00 verbose #6338 > >         | Fsharp (Native) => fun () =>
00:05:00 verbose #6339 > >             options |> execute_with_options_async |> async.run_synchronously
00:05:00 verbose #6340 > >         | Rust (Native) => fun () =>
00:05:00 verbose #6341 > >             inl command = join options.command
00:05:00 verbose #6342 > >             inl file_name, arguments = command |> split_command |> resultm.get
00:05:00 verbose #6343 > >             inl arguments =
00:05:00 verbose #6344 > >                 arguments
00:05:00 verbose #6345 > >                 |> optionm'.default_value ""
00:05:00 verbose #6346 > >                 |> split_args
00:05:00 verbose #6347 > >                 |> resultm.get
00:05:00 verbose #6348 > >                 |> am'.to_vec
00:05:00 verbose #6349 > >                 |> am'.vec_map sm'.to_std_string
00:05:00 verbose #6350 > >
00:05:00 verbose #6351 > >             trace Debug
00:05:00 verbose #6352 > >                 fun () => $'$"runtime.execute_with_options"'
00:05:00 verbose #6353 > >                 fun () => { file_name arguments options }
00:05:00 verbose #6354 > >
00:05:00 verbose #6355 > >             fun () =>
00:05:00 verbose #6356 > >                 fun () =>
00:05:00 verbose #6357 > >                     file_name
00:05:00 verbose #6358 > >                     |> new_process_command
00:05:00 verbose #6359 > >                     |> process_command_args arguments
00:05:00 verbose #6360 > >                     |> process_command_stdout (process_stdio_piped ())
00:05:00 verbose #6361 > >                     |> process_command_stderr (process_stdio_piped ())
00:05:00 verbose #6362 > >                     |> process_command_stdin (process_stdio_piped ())
00:05:00 verbose #6363 > >                     |> fun command =>
00:05:00 verbose #6364 > >                         match options.working_directory |> optionm'.unbox with
00:05:00 verbose #6365 > >                         | Some working_directory =>
00:05:00 verbose #6366 > >                             command
00:05:00 verbose #6367 > >                             |> process_command_current_dir working_directory
00:05:00 verbose #6368 > >                         | None => command
00:05:00 verbose #6369 > >                     |> fun command =>
00:05:00 verbose #6370 > >                         match options.environment_variables with
00:05:00 verbose #6371 > >                         | ;[[]] => command
00:05:00 verbose #6372 > >                         | vars =>
00:05:00 verbose #6373 > >                             (command, vars |> am'.to_vec)
00:05:00 verbose #6374 > >                             ||> am'.vec_fold' fun command (key, value) =>
00:05:00 verbose #6375 > >                                 command |> process_command_env key value
00:05:00 verbose #6376 > >                     |> process_command_spawn
00:05:00 verbose #6377 > >                     |> resultm.map_error' sm'.format'
00:05:00 verbose #6378 > >                     |> resultm.map' (optionm'.some' >> threading.new_arc_mutex)
00:05:00 verbose #6379 > >                     |> resultm.unbox'
00:05:00 verbose #6380 > >                     |> function
00:05:00 verbose #6381 > >                         | Ok child =>
00:05:00 verbose #6382 > >                             inl stdout =
00:05:00 verbose #6383 > >                                 fun () =>
00:05:00 verbose #6384 > >                                     child
00:05:00 verbose #6385 > >                                     |> threading.arc_mutex_lock
00:05:00 verbose #6386 > >                                     |> resultm.unwrap'
00:05:00 verbose #6387 > >                                     |> threading.mutex_guard_ref_mut
00:05:00 verbose #6388 > >                                     |> optionm'.as_mut
00:05:00 verbose #6389 > >                                     |> optionm'.unwrap
00:05:00 verbose #6390 > >                                     |> process_child_stdout
00:05:00 verbose #6391 > >                                     |> optionm'.take_ref_mut
00:05:00 verbose #6392 > >                                     |> optionm'.unwrap
00:05:00 verbose #6393 > >                                 |> rust.capture
00:05:00 verbose #6394 > >
00:05:00 verbose #6395 > >                             inl stderr =
00:05:00 verbose #6396 > >                                 fun () =>
00:05:00 verbose #6397 > >                                     child
00:05:00 verbose #6398 > >                                     |> threading.arc_mutex_lock
00:05:00 verbose #6399 > >                                     |> resultm.unwrap'
00:05:00 verbose #6400 > >                                     |> threading.mutex_guard_ref_mut
00:05:00 verbose #6401 > >                                     |> optionm'.as_mut
00:05:00 verbose #6402 > >                                     |> optionm'.unwrap
00:05:00 verbose #6403 > >                                     |> process_child_stderr
00:05:00 verbose #6404 > >                                     |> optionm'.take_ref_mut
00:05:00 verbose #6405 > >                                     |> optionm'.unwrap
00:05:00 verbose #6406 > >                                 |> rust.capture
00:05:00 verbose #6407 > >
00:05:00 verbose #6408 > >                             inl stdin =
00:05:00 verbose #6409 > >                                 fun () =>
00:05:00 verbose #6410 > >                                     child
00:05:00 verbose #6411 > >                                     |> threading.arc_mutex_lock
00:05:00 verbose #6412 > >                                     |> resultm.unwrap'
00:05:00 verbose #6413 > >                                     |> threading.mutex_guard_ref_mut
00:05:00 verbose #6414 > >                                     |> optionm'.as_mut
00:05:00 verbose #6415 > >                                     |> optionm'.unwrap
00:05:00 verbose #6416 > >                                     |> process_child_stdin
00:05:00 verbose #6417 > >                                     |> optionm'.take_ref_mut
00:05:00 verbose #6418 > >                                     |> optionm'.unwrap
00:05:00 verbose #6419 > >                                     |> optionm'.some'
00:05:00 verbose #6420 > >                                     |> threading.new_arc_mutex
00:05:00 verbose #6421 > >                                 |> rust.capture
00:05:00 verbose #6422 > >
00:05:00 verbose #6423 > >                             inl channel_sender, channel_receiver =
00:05:00 verbose #6424 > > threading.new_channel ()
00:05:00 verbose #6425 > >                             inl channel_sender'' = channel_sender |>
00:05:00 verbose #6426 > > threading.new_arc_mutex
00:05:00 verbose #6427 > >                             inl channel_sender' = channel_sender |>
00:05:00 verbose #6428 > > threading.new_arc_mutex
00:05:00 verbose #6429 > >                             inl channel_receiver' = channel_receiver |>
00:05:00 verbose #6430 > > threading.new_arc_mutex
00:05:00 verbose #6431 > >
00:05:00 verbose #6432 > >                             inl stdout_handle =
00:05:00 verbose #6433 > >                                 fun () =>
00:05:00 verbose #6434 > >                                     stdout
00:05:00 verbose #6435 > >                                     |> stream.decode_reader_bytes_build
00:05:00 verbose #6436 > >                                     |> stream.new_buf_reader
00:05:00 verbose #6437 > >                                     |> stream.buf_read_lines
00:05:00 verbose #6438 > >                                     |> iter.try_for_each fun lines =>
00:05:00 verbose #6439 > >                                         inl channel_sender'' = channel_sender''
00:05:00 verbose #6440 > > |> rust.clone
00:05:00 verbose #6441 > >                                         lines
00:05:00 verbose #6442 > >                                         |> stdio_line (Ok ()) options.trace
00:05:00 verbose #6443 > > channel_sender''
00:05:00 verbose #6444 > >                                         |> resultm.to_try
00:05:00 verbose #6445 > >                                 |> threading.spawn (1, 0) 1
00:05:00 verbose #6446 > >
00:05:00 verbose #6447 > >                             inl stderr_handle =
00:05:00 verbose #6448 > >                                 fun () =>
00:05:00 verbose #6449 > >                                     stderr
00:05:00 verbose #6450 > >                                     |> stream.decode_reader_bytes_build
00:05:00 verbose #6451 > >                                     |> stream.new_buf_reader
00:05:00 verbose #6452 > >                                     |> stream.buf_read_lines
00:05:00 verbose #6453 > >                                     |> iter.try_for_each fun lines =>
00:05:00 verbose #6454 > >                                         inl channel_sender' = channel_sender' |>
00:05:00 verbose #6455 > > rust.clone
00:05:00 verbose #6456 > >                                         lines
00:05:00 verbose #6457 > >                                         |> stdio_line (Error ()) options.trace
00:05:00 verbose #6458 > > channel_sender'
00:05:00 verbose #6459 > >                                         |> resultm.to_try
00:05:00 verbose #6460 > >                                 |> threading.spawn (1, 0) 1
00:05:00 verbose #6461 > >
00:05:00 verbose #6462 > >                             match options.stdin |> optionm'.unbox with
00:05:00 verbose #6463 > >                             | Some stdin' =>
00:05:00 verbose #6464 > >                                 stdin
00:05:00 verbose #6465 > >                                 |> threading.arc_mutex_lock
00:05:00 verbose #6466 > >                                 |> resultm.unwrap'
00:05:00 verbose #6467 > >                                 |> threading.mutex_guard_ref_mut
00:05:00 verbose #6468 > >                                 |> optionm'.take_ref_mut
00:05:00 verbose #6469 > >                                 |> optionm'.map' threading.new_arc_mutex
00:05:00 verbose #6470 > >                                 |> optionm'.unbox
00:05:00 verbose #6471 > >                                 |> function
00:05:00 verbose #6472 > >                                     | Some stdin =>
00:05:00 verbose #6473 > >                                         stdin |> stdin'
00:05:00 verbose #6474 > >                                         stdin
00:05:00 verbose #6475 > >                                         |> threading.arc_mutex_lock
00:05:00 verbose #6476 > >                                         |> resultm.unwrap'
00:05:00 verbose #6477 > >                                         |> stdin_flush
00:05:00 verbose #6478 > >                                     | None => ()
00:05:00 verbose #6479 > >                             | None => ()
00:05:00 verbose #6480 > >
00:05:00 verbose #6481 > >                             inl output =
00:05:00 verbose #6482 > >                                 child
00:05:00 verbose #6483 > >                                 |> threading.arc_mutex_lock
00:05:00 verbose #6484 > >                                 |> resultm.unwrap'
00:05:00 verbose #6485 > >                                 |> threading.mutex_guard_ref_mut
00:05:00 verbose #6486 > >                                 |> optionm'.take_ref_mut
00:05:00 verbose #6487 > >                                 |> optionm'.unwrap
00:05:00 verbose #6488 > >                                 |> child_wait_with_output
00:05:00 verbose #6489 > >                                 |> resultm.map_error' sm'.format'
00:05:00 verbose #6490 > >
00:05:00 verbose #6491 > >                             [[ stdout_handle; stderr_handle ]]
00:05:00 verbose #6492 > >                             |> am'.new_vec
00:05:00 verbose #6493 > >                             |> am'.vec_for_each' (threading.join' >>
00:05:00 verbose #6494 > > resultm.unwrap' >> resultm.unwrap')
00:05:00 verbose #6495 > >
00:05:00 verbose #6496 > >                             match output |> resultm.unbox with
00:05:00 verbose #6497 > >                             | Ok output =>
00:05:00 verbose #6498 > >                                 inl exit_code =
00:05:00 verbose #6499 > >                                     output
00:05:00 verbose #6500 > >                                     |> process_output_status
00:05:00 verbose #6501 > >                                     |> process_exit_status_code
00:05:00 verbose #6502 > >                                     |> optionm'.unbox
00:05:00 verbose #6503 > >                                 match exit_code with
00:05:00 verbose #6504 > >                                 | Some exit_code => exit_code, None, Some
00:05:00 verbose #6505 > > channel_receiver'
00:05:00 verbose #6506 > >                                 | None =>
00:05:00 verbose #6507 > >                                     -1,
00:05:00 verbose #6508 > >                                     ("runtime.execute_with_options
00:05:00 verbose #6509 > > exit_code=None" |> sm'.to_std_string |> Some),
00:05:00 verbose #6510 > >                                     Some channel_receiver'
00:05:00 verbose #6511 > >                             | Error error =>
00:05:00 verbose #6512 > >                                 trace Critical
00:05:00 verbose #6513 > >                                     fun () => $'$"runtime.execute_with_options
00:05:00 verbose #6514 > > output error"'
00:05:00 verbose #6515 > >                                     fun () => { error }
00:05:00 verbose #6516 > >                                 -2i32, error |> Some, None
00:05:00 verbose #6517 > >                         | Error error =>
00:05:00 verbose #6518 > >                             trace Critical
00:05:00 verbose #6519 > >                                 fun () => $'$"runtime.execute_with_options
00:05:00 verbose #6520 > > child error"'
00:05:00 verbose #6521 > >                                 fun () => { error }
00:05:00 verbose #6522 > >                             -1i32, error |> Some, None
00:05:00 verbose #6523 > >                     |> function
00:05:00 verbose #6524 > >                         | exit_code, std_trace, channel_receiver =>
00:05:00 verbose #6525 > >                             inl std_trace =
00:05:00 verbose #6526 > >                                 channel_receiver
00:05:00 verbose #6527 > >                                 |> optionm'.box
00:05:00 verbose #6528 > >                                 |> optionm'.map' fun channel_receiver =>
00:05:00 verbose #6529 > >                                     channel_receiver
00:05:00 verbose #6530 > >                                     |> threading.arc_mutex_lock
00:05:00 verbose #6531 > >                                     |> resultm.unwrap'
00:05:00 verbose #6532 > >                                     |> iter.iter
00:05:00 verbose #6533 > >                                     |> iter_collect''
00:05:00 verbose #6534 > >                                     |> am'.vec_map sm'.from_std_string
00:05:00 verbose #6535 > >                                     |> am'.from_vec
00:05:00 verbose #6536 > >                                     |> fun x => x : _ i32 _
00:05:00 verbose #6537 > >                                     |> seq.of_array
00:05:00 verbose #6538 > >                                     |> sm'.concat "\n"
00:05:00 verbose #6539 > >                                 |> optionm'.default_value' (
00:05:00 verbose #6540 > >                                     std_trace
00:05:00 verbose #6541 > >                                     |> optionm.map sm'.from_std_string
00:05:00 verbose #6542 > >                                     |> optionm'.default_value ""
00:05:00 verbose #6543 > >                                 )
00:05:00 verbose #6544 > >                             trace Verbose
00:05:00 verbose #6545 > >                                 fun () => $'$"runtime.execute_with_options
00:05:00 verbose #6546 > > result"'
00:05:00 verbose #6547 > >                                 fun () => { exit_code std_trace_length =
00:05:00 verbose #6548 > > std_trace |> sm'.length : i32 }
00:05:00 verbose #6549 > >                             new_pair exit_code std_trace
00:05:00 verbose #6550 > >                 |> capture
00:05:00 verbose #6551 > >             // |> async.future_init (3, 2) 1
00:05:00 verbose #6552 > >             // |> async.block_on
00:05:00 verbose #6553 > >             |> fun x => x ()
00:05:00 verbose #6554 > >             |> from_pair
00:05:00 verbose #6555 > >         | _ => fun () => null ()
00:05:01 verbose #6556 > 00:05:00   debug #403 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7573e7662264e02be58eff1eefa0804da040d5f9406c54adb8691b02cc4b128d/main.spi
00:05:01 verbose #6557 > >
00:05:01 verbose #6558 > > ── markdown ────────────────────────────────────────────────────────────────────
00:05:01 verbose #6559 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:05:01 verbose #6560 > > │ #### execute                                                                 │
00:05:01 verbose #6561 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:01 verbose #6562 > >
00:05:01 verbose #6563 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:01 verbose #6564 > > inl execute command =
00:05:01 verbose #6565 > >     execution_options fun x => { x with
00:05:01 verbose #6566 > >         command = command
00:05:01 verbose #6567 > >     }
00:05:01 verbose #6568 > >     |> execute_with_options
00:05:01 verbose #6569 > 00:05:00   debug #404 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fc410ba9e45810e31a31bcb121279564d92af6088ebcdd998c9663e9673331ae/main.spi
00:05:01 verbose #6570 > >
00:05:01 verbose #6571 > > ── markdown ────────────────────────────────────────────────────────────────────
00:05:01 verbose #6572 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:05:01 verbose #6573 > > │ #### tests                                                                   │
00:05:01 verbose #6574 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:01 verbose #6575 > >
00:05:01 verbose #6576 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:01 verbose #6577 > > //// test
00:05:01 verbose #6578 > > ///! rust -d chrono encoding_rs encoding_rs_io regex sha2
00:05:01 verbose #6579 > >
00:05:01 verbose #6580 > > inl content = "╭─[[ 你好,世界!こんにちは世界! ]]─╮"
00:05:01 verbose #6581 > >
00:05:01 verbose #6582 > > inl file_name = join "test.txt"
00:05:01 verbose #6583 > > inl temp_dir, disposable =
00:05:01 verbose #6584 > >     (file_name, content)
00:05:01 verbose #6585 > >     |> sm'.format_debug
00:05:01 verbose #6586 > >     |> crypto.hash_text
00:05:01 verbose #6587 > >     |> file_system.create_temp_dir'
00:05:01 verbose #6588 > > inl path = temp_dir </> file_name |> file_system.normalize_path
00:05:01 verbose #6589 > > inl exit_code, result =
00:05:01 verbose #6590 > >     execute $'\@$"pwsh -c ""[[IO.File]]::ReadAllText(\'{!path}\')"""'
00:05:01 verbose #6591 > > exit_code |> _assert_eq 1
00:05:01 verbose #6592 > > result |> _assert_string_contains "not find file"
00:05:01 verbose #6593 > >
00:05:01 verbose #6594 > > content |> file_system.write_all_text path
00:05:01 verbose #6595 > >
00:05:01 verbose #6596 > > execution_options fun x => { x with
00:05:01 verbose #6597 > >     command = $'\@$"cat ""{!file_name}"""'
00:05:01 verbose #6598 > >     working_directory = Some temp_dir |> optionm'.box
00:05:01 verbose #6599 > > }
00:05:01 verbose #6600 > > |> execute_with_options
00:05:01 verbose #6601 > > |> ignore
00:05:01 verbose #6602 > >
00:05:01 verbose #6603 > > inl exit_code, output =
00:05:01 verbose #6604 > >     execution_options fun x => { x with
00:05:01 verbose #6605 > >         command = $'\@$"pwsh -c ""[[System.Console]]::OutputEncoding =
00:05:01 verbose #6606 > > [[System.Text.Encoding]]::UTF8; [[IO.File]]::ReadAllText(\'{!file_name}\')"""'
00:05:01 verbose #6607 > >         working_directory = Some temp_dir |> optionm'.box
00:05:01 verbose #6608 > >     }
00:05:01 verbose #6609 > >     |> execute_with_options
00:05:01 verbose #6610 > >
00:05:01 verbose #6611 > > exit_code |> _assert_eq 0i32
00:05:01 verbose #6612 > > output |> _assert_eq content
00:05:01 verbose #6613 > >
00:05:01 verbose #6614 > > disposable |> use |> ignore
00:05:01 verbose #6615 > 00:05:01   debug #405 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b22215850f23e56df0bcc60a3e6037cb40e9953d0c7f06fff7dbd1f2732e6647/main.spi
00:05:07 verbose #6616 > >
00:05:07 verbose #6617 > > ╭─[ 6.23s - return value ]─────────────────────────────────────────────────────╮
00:05:07 verbose #6618 > > │ 00:00:00 verbose #1 file_system.create_dir / { dir =                   │
00:05:07 verbose #6619 > > │ C:\Users\i574n\AppData\Local\Temp\!create_temp_path_\spiral_builder_31149ea2 │
00:05:07 verbose #6620 > > │ 23f68089889f20c440e0061c35fd35010ae5450c1511d442f7a2e837\9242780b-ce0e-9155- │
00:05:07 verbose #6621 > > │ 5e07-f6ee5667aa16 }                                                          │
00:05:07 verbose #6622 > > │ 00:00:00   debug #2 runtime.execute_with_options / { file_name = pwsh; │
00:05:07 verbose #6623 > > │ arguments = ["-c", "[                                                        │
00:05:07 verbose #6624 > > │ IO.File]::ReadAllText('c:/Users/i574n/AppData/Local/Temp/!create_temp_path_/ │
00:05:07 verbose #6625 > > │ spiral_builder_31149ea223f68089889f20c440e0061c35fd35010ae5450c1511d442f7a2e │
00:05:07 verbose #6626 > > │ 837/9242780b-ce0e-9155-5e07-f6ee5667aa16/test.txt')"]; options = { command = │
00:05:07 verbose #6627 > > │ pwsh -c "[                                                                   │
00:05:07 verbose #6628 > > │ IO.File]::ReadAllText('c:/Users/i574n/AppData/Local/Temp/!create_temp_path_/ │
00:05:07 verbose #6629 > > │ spiral_builder_31149ea223f68089889f20c440e0061c35fd35010ae5450c1511d442f7a2e │
00:05:07 verbose #6630 > > │ 837/9242780b-ce0e-9155-5e07-f6ee5667aa16/test.txt')"; cancellation_token =   │
00:05:07 verbose #6631 > > │ None; environment_variables = Array(MutCell([])); on_line = None; stdin =    │
00:05:07 verbose #6632 > > │ None; trace = true; working_directory = None } }                             │
00:05:07 verbose #6633 > > │ 00:00:00 verbose #3 ! MethodInvocationException: Exception   │
00:05:07 verbose #6634 > > │ calling "ReadAllText" with "1" argument(s): "Could not find file             │
00:05:07 verbose #6635 > > │ 'c:\Users\i574n\AppData\Local\Temp\!create_temp_path_\spiral_builder_31149ea │
00:05:07 verbose #6636 > > │ 223f68089889f20c440e0061c35fd35010ae5450c1511d442f7a2e837\9242780b-ce0e-9155 │
00:05:07 verbose #6637 > > │ -5e07-f6ee5667aa16\test.txt'."                                             │
00:05:07 verbose #6638 > > │ 00:00:00 verbose #4 runtime.execute_with_options / result / {          │
00:05:07 verbose #6639 > > │ exit_code = 1; std_trace_length = 312 }                                      │
00:05:07 verbose #6640 > > │ assert_eq / actual: 1 / expected: 1                                          │
00:05:07 verbose #6641 > > │ assert_string_contains / actual: "not find file" / expected: "[           │
00:05:07 verbose #6642 > > │ 31;1mMethodInvocatio...e_name = cat; arguments = ["test.txt"]; options = {   │
00:05:07 verbose #6643 > > │ command = cat "test.txt"; cancellation_token = None; environment_variables = │
00:05:07 verbose #6644 > > │ Array(MutCell([])); on_line = None; stdin = None; trace = true;              │
00:05:07 verbose #6645 > > │ working_directory =                                                          │
00:05:07 verbose #6646 > > │ Some("C:\Users\i574n\AppData\Local\Temp\!create_temp_path_\spiral_builder_31 │
00:05:07 verbose #6647 > > │ 149ea223f68089889f20c440e0061c35fd35010ae5450c1511d442f7a2e837\9242780b-ce0e │
00:05:07 verbose #6648 > > │ -9155-5e07-f6ee5667aa16") } }                                                │
00:05:07 verbose #6649 > > │ 00:00:00 verbose #6 > ╭─[ 你好,世界!こんにちは世界! ]─╮             │
00:05:07 verbose #6650 > > │ 00:00:00 verbose #7 runtime.execute_with_options / result / {          │
00:05:07 verbose #6651 > > │ exit_code = 0; std_trace_length = 22 }                                       │
00:05:07 verbose #6652 > > │ 00:00:00   debug #8 runtime.execute_with_options / { file_name = pwsh; │
00:05:07 verbose #6653 > > │ arguments = ["-c", "[System.Console]::OutputEncoding = [                     │
00:05:07 verbose #6654 > > │ System.Text.Encoding]::UTF8; [IO.File]::ReadAllText('test.txt')"]; options = │
00:05:07 verbose #6655 > > │ { command = pwsh -c "[System.Console]::OutputEncoding = [                    │
00:05:07 verbose #6656 > > │ System.Text.Encoding]::UTF8; [IO.File]::ReadAllText('test.txt')";            │
00:05:07 verbose #6657 > > │ cancellation_token = None; environment_variables = Array(MutCell([]));       │
00:05:07 verbose #6658 > > │ on_line = None; stdin = None; trace = true; working_directory =              │
00:05:07 verbose #6659 > > │ Some("C:\Users\i574n\AppData\Local\Temp\!create_temp_path_\spiral_builder_31 │
00:05:07 verbose #6660 > > │ 149ea223f68089889f20c440e0061c35fd35010ae5450c1511d442f7a2e837\9242780b-ce0e │
00:05:07 verbose #6661 > > │ -9155-5e07-f6ee5667aa16") } }                                                │
00:05:07 verbose #6662 > > │ 00:00:01 verbose #9 > ╭─[ 你好,世界!こんにちは世界! ]─╮             │
00:05:07 verbose #6663 > > │ 00:00:01 verbose #10 runtime.execute_with_options / result / {         │
00:05:07 verbose #6664 > > │ exit_code = 0; std_trace_length = 22 }                                       │
00:05:07 verbose #6665 > > │ assert_eq / actual: 0 / expected: 0                                          │
00:05:07 verbose #6666 > > │ assert_eq / actual: "╭─[ 你好,世界!こんにちは世界! ]─╮" / expected: "╭─[  │
00:05:07 verbose #6667 > > │ 你好,世界!こんにちは世界! ]─╮"                                            │
00:05:07 verbose #6668 > > │                                                                              │
00:05:07 verbose #6669 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:07 verbose #6670 > >
00:05:07 verbose #6671 > > ── markdown ────────────────────────────────────────────────────────────────────
00:05:07 verbose #6672 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:05:07 verbose #6673 > > │ ### execute_retry                                                            │
00:05:07 verbose #6674 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:07 verbose #6675 > >
00:05:07 verbose #6676 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:07 verbose #6677 > > let execute_retry retries options =
00:05:07 verbose #6678 > >     fun () =>
00:05:07 verbose #6679 > >         inl exit_code, result = options |> execute_with_options
00:05:07 verbose #6680 > >         if exit_code = 0
00:05:07 verbose #6681 > >         then Ok (exit_code, result)
00:05:07 verbose #6682 > >         else Error (exit_code, result)
00:05:07 verbose #6683 > >     |> retry_fn' retries
00:05:08 verbose #6684 > 00:05:07   debug #406 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/84592323f3c233c67e1b63d911387e26babc3cd3502aeef8f5de430d1aef3843/main.spi
00:05:08 verbose #6685 > >
00:05:08 verbose #6686 > > ── markdown ────────────────────────────────────────────────────────────────────
00:05:08 verbose #6687 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:05:08 verbose #6688 > > │ ## main                                                                      │
00:05:08 verbose #6689 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:08 verbose #6690 > >
00:05:08 verbose #6691 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:08 verbose #6692 > > inl main () =
00:05:08 verbose #6693 > >     init_trace_state None
00:05:08 verbose #6694 > >     $'let current_process_kill () = !current_process_kill ()' : ()
00:05:08 verbose #6695 > >     $'let execute_async x = !execute_async x' : ()
00:05:08 verbose #6696 > >     $'let execute_with_options_async x = !execute_with_options_async x' : ()
00:05:08 verbose #6697 > >     inl execution_options fn =
00:05:08 verbose #6698 > >         execution_options fun x =>
00:05:08 verbose #6699 > >             x
00:05:08 verbose #6700 > >             |> heap
00:05:08 verbose #6701 > >             |> fn
00:05:08 verbose #6702 > >             |> fun x => !x
00:05:08 verbose #6703 > >     $'let execution_options x = !execution_options x' : ()
00:05:08 verbose #6704 > >     inl split_args x = x |> split_args |> resultm.box
00:05:08 verbose #6705 > >     $'let split_args x = !split_args x' : ()
00:05:08 verbose #6706 > 00:05:07   debug #407 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a42c6178c8b118379ace4b871bd04db442294a7ddfacbb2172233667b3cc6aa0/main.spi
00:05:11 verbose #6707 > 00:01:33 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 119293 }
00:05:11 verbose #6708 > 00:01:33   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/spiral/runtime.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/runtime.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:05:13 verbose #6709 > 00:01:35 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/runtime.dib.ipynb to html
00:05:13 verbose #6710 > 00:01:35 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:05:13 verbose #6711 > 00:01:35 verbose #7 !   validate(nb)
00:05:16 verbose #6712 > 00:01:38 verbose #8 ! [NbConvertApp] Writing 572242 bytes to c:\home\git\polyglot\lib\spiral\runtime.dib.html
00:05:16 verbose #6713 > 00:01:38 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 645 }
00:05:16 verbose #6714 > 00:01:38   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 645 }
00:05:16 verbose #6715 > 00:01:38   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/runtime.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/runtime.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:05:17 verbose #6716 > 00:01:39 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:05:17 verbose #6717 > 00:01:39   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:05:17 verbose #6718 > 00:01:40   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 119997 }
00:05:17   debug #6719 runtime.execute_with_options_async / { exit_code = 0; output_length = 127141 }
00:05:17   debug #8 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path runtime.dib --retries 3
00:05:17   debug #6720 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path trace.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:05:17 verbose #6721 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "trace.dib", "--retries", "3"])) }
00:05:17 verbose #6722 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/spiral/trace.dib", "--output-path", "c:/home/git/polyglot/lib/spiral/trace.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/trace.dib" --output-path "c:/home/git/polyglot/lib/spiral/trace.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:05:20 verbose #6723 > >
00:05:20 verbose #6724 > > ── markdown ────────────────────────────────────────────────────────────────────
00:05:20 verbose #6725 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:05:20 verbose #6726 > > │ # trace                                                                      │
00:05:20 verbose #6727 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:24 verbose #6728 > >
00:05:24 verbose #6729 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:24 verbose #6730 > > //// test
00:05:24 verbose #6731 > >
00:05:24 verbose #6732 > > open testing
00:05:24 verbose #6733 > 00:05:24   debug #408 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fa7845de436c12d0ca65282fe0cd65832468ca943e72feba50e6b1bb441e251a/main.spi
00:05:25 verbose #6734 > >
00:05:25 verbose #6735 > > ── markdown ────────────────────────────────────────────────────────────────────
00:05:25 verbose #6736 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:05:25 verbose #6737 > > │ ## trace                                                                     │
00:05:25 verbose #6738 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:25 verbose #6739 > >
00:05:25 verbose #6740 > > ── markdown ────────────────────────────────────────────────────────────────────
00:05:25 verbose #6741 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:05:25 verbose #6742 > > │ ### trace_level                                                              │
00:05:25 verbose #6743 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:25 verbose #6744 > >
00:05:25 verbose #6745 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:25 verbose #6746 > > union trace_level =
00:05:25 verbose #6747 > >     | Verbose
00:05:25 verbose #6748 > >     | Debug
00:05:25 verbose #6749 > >     | Info
00:05:25 verbose #6750 > >     | Warning
00:05:25 verbose #6751 > >     | Critical
00:05:25 verbose #6752 > 00:05:24   debug #409 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/78bc2ae7354d0a8078c262b56b61752f85e4441d8671416a152452fb02690d56/main.spi
00:05:25 verbose #6753 > >
00:05:25 verbose #6754 > > ── markdown ────────────────────────────────────────────────────────────────────
00:05:25 verbose #6755 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:05:25 verbose #6756 > > │ ### read_state                                                               │
00:05:25 verbose #6757 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:25 verbose #6758 > >
00:05:25 verbose #6759 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:25 verbose #6760 > > inl read_state () =
00:05:25 verbose #6761 > >     run_target function
00:05:25 verbose #6762 > >         | Rust (Contract | Wasm) => fun () =>
00:05:25 verbose #6763 > >             {
00:05:25 verbose #6764 > >                 trace_level = None
00:05:25 verbose #6765 > >                 repl_start = None
00:05:25 verbose #6766 > >             }
00:05:25 verbose #6767 > >         | _ => fun () =>
00:05:25 verbose #6768 > >             {
00:05:25 verbose #6769 > >                 trace_level =
00:05:25 verbose #6770 > >                     (join "TRACE_LEVEL")
00:05:25 verbose #6771 > >                     |> env.get_environment_variable
00:05:25 verbose #6772 > >                     |> reflection.union_try_pick
00:05:25 verbose #6773 > >                 repl_start =
00:05:25 verbose #6774 > >                     inl automation = env.get_environment_variable (join
00:05:25 verbose #6775 > > "AUTOMATION")
00:05:25 verbose #6776 > >                     if automation = "True"
00:05:25 verbose #6777 > >                     then date_time.now () |> date_time.ticks |> fun
00:05:25 verbose #6778 > > (date_time.timestamp x) => x |> Some
00:05:25 verbose #6779 > >                     else None
00:05:25 verbose #6780 > >             }
00:05:26 verbose #6781 > 00:05:25   debug #410 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/52a78d9d1df5876aef0d235fe4d7d195b9a13a89214cea45c94929eea8c8b6e4/main.spi
00:05:26 verbose #6782 > >
00:05:26 verbose #6783 > > ── markdown ────────────────────────────────────────────────────────────────────
00:05:26 verbose #6784 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:05:26 verbose #6785 > > │ ### trace_state                                                              │
00:05:26 verbose #6786 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:26 verbose #6787 > >
00:05:26 verbose #6788 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:26 verbose #6789 > > type trace_state =
00:05:26 verbose #6790 > >     {
00:05:26 verbose #6791 > >         count : mut i64
00:05:26 verbose #6792 > >         trace_file : mut (string -> ())
00:05:26 verbose #6793 > >         enabled : mut bool
00:05:26 verbose #6794 > >         level : mut trace_level
00:05:26 verbose #6795 > >         repl_start : optionm'.option' i64
00:05:26 verbose #6796 > >     }
00:05:26 verbose #6797 > >
00:05:26 verbose #6798 > > inl new_trace_state trace_level' =
00:05:26 verbose #6799 > >     inl { repl_start trace_level } = read_state ()
00:05:26 verbose #6800 > >     {
00:05:26 verbose #6801 > >         enabled = mut true
00:05:26 verbose #6802 > >         count = mut 0i64
00:05:26 verbose #6803 > >         level = trace_level |> optionm'.default_value trace_level' |> mut
00:05:26 verbose #6804 > >         trace_file = mut ignore
00:05:26 verbose #6805 > >         repl_start = repl_start |> optionm'.box
00:05:26 verbose #6806 > >     } : trace_state
00:05:26 verbose #6807 > 00:05:25   debug #411 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/972646f797c4ae3c7194416f5bd3848433586068c65036778b9c3910eb3c00e1/main.spi
00:05:26 verbose #6808 > >
00:05:26 verbose #6809 > > ── markdown ────────────────────────────────────────────────────────────────────
00:05:26 verbose #6810 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:05:26 verbose #6811 > > │ ### init_trace_state                                                         │
00:05:26 verbose #6812 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:26 verbose #6813 > >
00:05:26 verbose #6814 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:26 verbose #6815 > > inl init_trace_state trace_level : () =
00:05:26 verbose #6816 > >     inl trace_level =
00:05:26 verbose #6817 > >         trace_level
00:05:26 verbose #6818 > >         |> optionm'.default_value Verbose
00:05:26 verbose #6819 > >     backend_switch {
00:05:26 verbose #6820 > >         Fsharp = fun () =>
00:05:26 verbose #6821 > >             global "module State = let mutable trace_state = None"
00:05:26 verbose #6822 > >             $'if State.trace_state.IsNone then State.trace_state <-
00:05:26 verbose #6823 > > !new_trace_state !trace_level |> Some' : ()
00:05:26 verbose #6824 > >         Python = fun () =>
00:05:26 verbose #6825 > >             global "class State: trace_state = None"
00:05:26 verbose #6826 > >             $'if State.trace_state is None: State.trace_state =
00:05:26 verbose #6827 > > !new_trace_state(!trace_level)' : ()
00:05:26 verbose #6828 > >     }
00:05:26 verbose #6829 > 00:05:25   debug #412 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ec1faf4c322cc553b945b7ec6a5599492998e1661c646fba4b1457ebb3bbfa9c/main.spi
00:05:26 verbose #6830 > >
00:05:26 verbose #6831 > > ── markdown ────────────────────────────────────────────────────────────────────
00:05:26 verbose #6832 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:05:26 verbose #6833 > > │ ### get_trace_state_or_init                                                  │
00:05:26 verbose #6834 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:26 verbose #6835 > >
00:05:26 verbose #6836 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:26 verbose #6837 > > inl get_trace_state_or_init trace_level : trace_state =
00:05:26 verbose #6838 > >     init_trace_state trace_level
00:05:26 verbose #6839 > >     // $'match State.trace_state with Some x -> x | None -> failwith
00:05:26 verbose #6840 > > "trace.get_trace_state_or_init / State.trace_state=None"'
00:05:26 verbose #6841 > >     backend_switch {
00:05:26 verbose #6842 > >         Fsharp = fun () =>
00:05:26 verbose #6843 > >             $'State.trace_state.Value' : trace_state
00:05:26 verbose #6844 > >         Python = fun () =>
00:05:26 verbose #6845 > >             $'State.trace_state' : trace_state
00:05:26 verbose #6846 > >     }
00:05:27 verbose #6847 > 00:05:26   debug #413 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d6a8cabdaf8629b592d58fbb7f963e14b44e7acd9051e2dd3d975ea7e12fb692/main.spi
00:05:27 verbose #6848 > >
00:05:27 verbose #6849 > > ── markdown ────────────────────────────────────────────────────────────────────
00:05:27 verbose #6850 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:05:27 verbose #6851 > > │ ### test_trace_level                                                         │
00:05:27 verbose #6852 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:27 verbose #6853 > >
00:05:27 verbose #6854 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:27 verbose #6855 > > inl test_trace_level level : bool =
00:05:27 verbose #6856 > >     inl state = get_trace_state_or_init None
00:05:27 verbose #6857 > >     inl level' = *state.level
00:05:27 verbose #6858 > >     if *state.enabled |> not
00:05:27 verbose #6859 > >     then false
00:05:27 verbose #6860 > >     else
00:05:27 verbose #6861 > >         inl level : i32 = real real_core.union_tag level
00:05:27 verbose #6862 > >         inl level' : i32 = real real_core.union_tag level'
00:05:27 verbose #6863 > >         level >= level'
00:05:27 verbose #6864 > 00:05:26   debug #414 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/73499a55cef8e8173ea9b9b47892a3d2539e7de62b5476063d9586d118f345e8/main.spi
00:05:27 verbose #6865 > >
00:05:27 verbose #6866 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:27 verbose #6867 > > //// test
00:05:27 verbose #6868 > > ///! fsharp
00:05:27 verbose #6869 > > ///! cuda
00:05:27 verbose #6870 > > ///! rust
00:05:27 verbose #6871 > > ///! typescript
00:05:27 verbose #6872 > > ///! python
00:05:27 verbose #6873 > >
00:05:27 verbose #6874 > > test_trace_level Critical |> _assert_eq true
00:05:27 verbose #6875 > > test_trace_level Verbose |> _assert_eq true
00:05:27 verbose #6876 > >
00:05:27 verbose #6877 > > inl level = get_trace_state_or_init None .level
00:05:27 verbose #6878 > > level <- Debug
00:05:27 verbose #6879 > > test_trace_level Verbose |> _assert_eq false
00:05:27 verbose #6880 > > level <- Verbose
00:05:27 verbose #6881 > > test_trace_level Verbose |> _assert_eq true
00:05:27 verbose #6882 > 00:05:27   debug #415 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/233931a2f84073a1d335a45475b9119a2ddca4622148e87deb5e93cd857044a6/main.spi
00:05:27 verbose #6883 > 00:05:27   debug #416 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/711f4602b3afdf526bd909f03b6ac554be9fa587f013c5f5666b0ce9776d5e9b/main.spi
00:05:33 verbose #6884 > >
00:05:33 verbose #6885 > > ╭─[ 5.64s - return value ]─────────────────────────────────────────────────────╮
00:05:33 verbose #6886 > > │                                                                              │
00:05:33 verbose #6887 > > │ .py output (Cuda):                                                           │
00:05:33 verbose #6888 > > │ assert_eq / actual: True / expected: True                                    │
00:05:33 verbose #6889 > > │ assert_eq / actual: True / expected: True                                    │
00:05:33 verbose #6890 > > │ assert_eq / actual: False / expected: False                                  │
00:05:33 verbose #6891 > > │ assert_eq / actual: True / expected: True                                    │
00:05:33 verbose #6892 > > │                                                                              │
00:05:33 verbose #6893 > > │                                                                              │
00:05:33 verbose #6894 > > │ .rs output:                                                                  │
00:05:33 verbose #6895 > > │ assert_eq / actual: true / expected: true                                    │
00:05:33 verbose #6896 > > │ assert_eq / actual: true / expected: true                                    │
00:05:33 verbose #6897 > > │ assert_eq / actual: false / expected: false                                  │
00:05:33 verbose #6898 > > │ assert_eq / actual: true / expected: true                                    │
00:05:33 verbose #6899 > > │                                                                              │
00:05:33 verbose #6900 > > │                                                                              │
00:05:33 verbose #6901 > > │ .ts output:                                                                  │
00:05:33 verbose #6902 > > │ assert_eq / actual: true / expected: true                                    │
00:05:33 verbose #6903 > > │ assert_eq / actual: true / expected: true                                    │
00:05:33 verbose #6904 > > │ assert_eq / actual: false / expected: false                                  │
00:05:33 verbose #6905 > > │ assert_eq / actual: true / expected: true                                    │
00:05:33 verbose #6906 > > │                                                                              │
00:05:33 verbose #6907 > > │                                                                              │
00:05:33 verbose #6908 > > │ .py output:                                                                  │
00:05:33 verbose #6909 > > │ assert_eq / actual: true / expected: true                                    │
00:05:33 verbose #6910 > > │ assert_eq / actual: true / expected: true                                    │
00:05:33 verbose #6911 > > │ assert_eq / actual: false / expected: false                                  │
00:05:33 verbose #6912 > > │ assert_eq / actual: true / expected: true                                    │
00:05:33 verbose #6913 > > │                                                                              │
00:05:33 verbose #6914 > > │                                                                              │
00:05:33 verbose #6915 > > │                                                                              │
00:05:33 verbose #6916 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:33 verbose #6917 > >
00:05:33 verbose #6918 > > ╭─[ 5.65s - stdout ]───────────────────────────────────────────────────────────╮
00:05:33 verbose #6919 > > │ .fsx output:                                                                 │
00:05:33 verbose #6920 > > │ assert_eq / actual: true / expected: true                                    │
00:05:33 verbose #6921 > > │ assert_eq / actual: true / expected: true                                    │
00:05:33 verbose #6922 > > │ assert_eq / actual: false / expected: false                                  │
00:05:33 verbose #6923 > > │ assert_eq / actual: true / expected: true                                    │
00:05:33 verbose #6924 > > │                                                                              │
00:05:33 verbose #6925 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:33 verbose #6926 > >
00:05:33 verbose #6927 > > ── markdown ────────────────────────────────────────────────────────────────────
00:05:33 verbose #6928 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:05:33 verbose #6929 > > │ ### trace_raw                                                                │
00:05:33 verbose #6930 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:33 verbose #6931 > >
00:05:33 verbose #6932 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:33 verbose #6933 > > let rec trace_raw level fn =
00:05:33 verbose #6934 > >     inl trace_state = get_trace_state_or_init None
00:05:33 verbose #6935 > >     if level |> test_trace_level then
00:05:33 verbose #6936 > >         inl count = trace_state.count
00:05:33 verbose #6937 > >         count <- *count + 1
00:05:33 verbose #6938 > >
00:05:33 verbose #6939 > >         inl text =
00:05:33 verbose #6940 > >             backend_switch {
00:05:33 verbose #6941 > >                 Fsharp = fun () => $'$"%s{!fn ()}"' : string
00:05:33 verbose #6942 > >                 Python = fun () => fn () : string
00:05:33 verbose #6943 > >             }
00:05:33 verbose #6944 > >         run_target function
00:05:33 verbose #6945 > >             | Rust _ => fun () =>
00:05:33 verbose #6946 > >                 open rust_operators
00:05:33 verbose #6947 > >                 !\\(text, $'\@"println\!(""{}"", $0)"')
00:05:33 verbose #6948 > >             | _ => fun () =>
00:05:33 verbose #6949 > >                 backend_switch {
00:05:33 verbose #6950 > >                     Fsharp = fun () => $'System.Console.WriteLine !text ' : ()
00:05:33 verbose #6951 > >                     Python = fun () => $'print(!text)' : ()
00:05:33 verbose #6952 > >                 }
00:05:33 verbose #6953 > >
00:05:33 verbose #6954 > >         *trace_state.trace_file text
00:05:33 verbose #6955 > 00:05:32   debug #417 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/853279ebd1fc4364156473ff937640a829032de0710623d53f48d7a21adc2e1c/main.spi
00:05:33 verbose #6956 > >
00:05:33 verbose #6957 > > ── markdown ────────────────────────────────────────────────────────────────────
00:05:33 verbose #6958 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:05:33 verbose #6959 > > │ ### trace                                                                    │
00:05:33 verbose #6960 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:33 verbose #6961 > >
00:05:33 verbose #6962 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:33 verbose #6963 > > let trace (level : trace_level) (text_fn : () -> string) (locals : () -> _) =
00:05:33 verbose #6964 > >     fun () =>
00:05:33 verbose #6965 > >         inl trace_state = get_trace_state_or_init None
00:05:33 verbose #6966 > >         inl time =
00:05:33 verbose #6967 > >             run_target fun target =>
00:05:33 verbose #6968 > >                 match target with
00:05:33 verbose #6969 > >                 | Rust (Contract) => fun () => join ""
00:05:33 verbose #6970 > >                 | _ => fun () =>
00:05:33 verbose #6971 > >                     match trace_state.repl_start |> optionm'.unbox with
00:05:33 verbose #6972 > >                     | Some repl_start =>
00:05:33 verbose #6973 > >                         inl t =
00:05:33 verbose #6974 > >                             (date_time.now () |> date_time.ticks |> fun
00:05:33 verbose #6975 > > (date_time.timestamp x) => x)
00:05:33 verbose #6976 > >                             - repl_start |> date_time.time_span
00:05:33 verbose #6977 > >                         date_time.date_time_milliseconds
00:05:33 verbose #6978 > >                             1i32 1i32 1i32
00:05:33 verbose #6979 > >                             (t |> date_time.hours)
00:05:33 verbose #6980 > >                             (t |> date_time.minutes)
00:05:33 verbose #6981 > >                             (t |> date_time.seconds)
00:05:33 verbose #6982 > >                             (t |> date_time.milliseconds)
00:05:33 verbose #6983 > >                     | None => date_time.now ()
00:05:33 verbose #6984 > >                     |> date_time.format (
00:05:33 verbose #6985 > >                         backend_switch {
00:05:33 verbose #6986 > >                             Fsharp = fun () =>
00:05:33 verbose #6987 > >                                 match target with
00:05:33 verbose #6988 > >                                 | Rust _ => join "hh:mm:ss"
00:05:33 verbose #6989 > >                                 | _ => join "HH:mm:ss"
00:05:33 verbose #6990 > >                             Python = fun () => "%H:%M:%S"
00:05:33 verbose #6991 > >                         }
00:05:33 verbose #6992 > >                     )
00:05:33 verbose #6993 > >         inl level_str = level |> reflection.union_to_string |> sm'.to_lower |>
00:05:33 verbose #6994 > > sm'.pad_left 7 ' '
00:05:33 verbose #6995 > >         inl level_str =
00:05:33 verbose #6996 > >             run_target function
00:05:33 verbose #6997 > >             | Rust _ => fun () =>
00:05:33 verbose #6998 > >                 open rust_operators
00:05:33 verbose #6999 > >                 inl color : rust.ref sm'.str =
00:05:33 verbose #7000 > >                     match level with
00:05:33 verbose #7001 > >                     | Verbose =>
00:05:33 verbose #7002 > > !\($'"inline_colorization::color_bright_black"')
00:05:33 verbose #7003 > >                     | Debug => !\($'"inline_colorization::color_bright_blue"')
00:05:33 verbose #7004 > >                     | Info => !\($'"inline_colorization::color_bright_green"')
00:05:33 verbose #7005 > >                     | Warning => !\($'"inline_colorization::color_yellow"')
00:05:33 verbose #7006 > >                     | Critical => !\($'"inline_colorization::color_bright_red"')
00:05:33 verbose #7007 > >                 inl level_str = level_str |> sm'.as_str
00:05:33 verbose #7008 > >                 inl color_reset : rust.ref sm'.str =
00:05:33 verbose #7009 > > !\($'"inline_colorization::color_reset"')
00:05:33 verbose #7010 > >                 $'"\\\"{!color}{!level_str}{!color_reset}\\\""'
00:05:33 verbose #7011 > >                 |> sm'.format''
00:05:33 verbose #7012 > >                 |> sm'.from_std_string
00:05:33 verbose #7013 > >             | _ => fun () =>
00:05:33 verbose #7014 > >                 inl color =
00:05:33 verbose #7015 > >                     match level with
00:05:33 verbose #7016 > >                     | Verbose => $'"\\u001b[[90m"'
00:05:33 verbose #7017 > >                     | Debug => $'"\\u001b[[94m"'
00:05:33 verbose #7018 > >                     | Info => $'"\\u001b[[92m"'
00:05:33 verbose #7019 > >                     | Warning => $'"\\u001b[[93m"'
00:05:33 verbose #7020 > >                     | Critical => $'"\\u001b[[91m"'
00:05:33 verbose #7021 > >                 inl color_reset = join $'"\\u001b[[0m"'
00:05:33 verbose #7022 > >                 color +. level_str +. color_reset
00:05:33 verbose #7023 > >         inl count = *trace_state.count
00:05:33 verbose #7024 > >         inl locals = locals () |> sm'.format
00:05:33 verbose #7025 > >         backend_switch {
00:05:33 verbose #7026 > >             Fsharp = fun () => $'$"{!time} {!level_str} #{!count} %s{!text_fn
00:05:33 verbose #7027 > > ()} / {!locals}"' : string
00:05:33 verbose #7028 > >             Python = fun () => $'f"{!time} {!level_str} #{!count} {!text_fn()}
00:05:33 verbose #7029 > > {!locals}"' : string
00:05:33 verbose #7030 > >         }
00:05:33 verbose #7031 > >         |> sm'.trim_start [[]]
00:05:33 verbose #7032 > >         |> sm'.trim_end [[ ' '; '/' ]]
00:05:33 verbose #7033 > >     |> trace_raw level
00:05:33 verbose #7034 > 00:05:33   debug #418 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/dcdd3c4bdb80a9f6d83c53e51072b58b237af9e859c8f6c6188f111ec11cf4f6/main.spi
00:05:34 verbose #7035 > >
00:05:34 verbose #7036 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:34 verbose #7037 > > //// test
00:05:34 verbose #7038 > > ///! fsharp
00:05:34 verbose #7039 > > ///! cuda
00:05:34 verbose #7040 > > ///! rust
00:05:34 verbose #7041 > > ///! typescript
00:05:34 verbose #7042 > > ///! python
00:05:34 verbose #7043 > >
00:05:34 verbose #7044 > > trace Debug (fun () => "test1") id
00:05:34 verbose #7045 > > trace Debug (fun () => "test2") id
00:05:34 verbose #7046 > > get_trace_state_or_init None .count
00:05:34 verbose #7047 > > |> fun x => *x
00:05:34 verbose #7048 > > |> _assert_eq 2
00:05:34 verbose #7049 > 00:05:33   debug #419 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1cade59d93d6afbdda28c9380b93af60efb358e2cb96daea4f08c70221efce0b/main.spi
00:05:34 verbose #7050 > 00:05:33   debug #420 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/974554fb7e731437fab80692a6bd84f4b08e3918d75b2e9aa8cb8a7146945bf9/main.spi
00:05:38 verbose #7051 > >
00:05:38 verbose #7052 > > ╭─[ 4.50s - return value ]─────────────────────────────────────────────────────╮
00:05:38 verbose #7053 > > │                                                                              │
00:05:38 verbose #7054 > > │ .py output (Cuda):                                                           │
00:05:38 verbose #7055 > > │ 00:00:00   debug #1 test1                                               │
00:05:38 verbose #7056 > > │ 00:00:00   debug #2 test2                                               │
00:05:38 verbose #7057 > > │ assert_eq / actual: 2 / expected: 2                                          │
00:05:38 verbose #7058 > > │                                                                              │
00:05:38 verbose #7059 > > │                                                                              │
00:05:38 verbose #7060 > > │ .rs output:                                                                  │
00:05:38 verbose #7061 > > │ 00:00:00   debug #1 test1                                              │
00:05:38 verbose #7062 > > │ 00:00:00   debug #2 test2                                              │
00:05:38 verbose #7063 > > │ assert_eq / actual: 2 / expected: 2                                          │
00:05:38 verbose #7064 > > │                                                                              │
00:05:38 verbose #7065 > > │                                                                              │
00:05:38 verbose #7066 > > │ .ts output:                                                                  │
00:05:38 verbose #7067 > > │ 00:00:00   debug #1 test1                                               │
00:05:38 verbose #7068 > > │ 00:00:00   debug #2 test2                                               │
00:05:38 verbose #7069 > > │ assert_eq / actual: 2 / expected: 2                                          │
00:05:38 verbose #7070 > > │                                                                              │
00:05:38 verbose #7071 > > │                                                                              │
00:05:38 verbose #7072 > > │ .py output:                                                                  │
00:05:38 verbose #7073 > > │ 00:00:00   debug #1 test1                                               │
00:05:38 verbose #7074 > > │ 00:00:00   debug #2 test2                                               │
00:05:38 verbose #7075 > > │ assert_eq / actual: 2 / expected: 2                                          │
00:05:38 verbose #7076 > > │                                                                              │
00:05:38 verbose #7077 > > │                                                                              │
00:05:38 verbose #7078 > > │                                                                              │
00:05:38 verbose #7079 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:38 verbose #7080 > >
00:05:38 verbose #7081 > > ╭─[ 4.50s - stdout ]───────────────────────────────────────────────────────────╮
00:05:38 verbose #7082 > > │ .fsx output:                                                                 │
00:05:38 verbose #7083 > > │ 00:00:00   debug #1 test1                                               │
00:05:38 verbose #7084 > > │ 00:00:00   debug #2 test2                                               │
00:05:38 verbose #7085 > > │ assert_eq / actual: 2L / expected: 2L                                        │
00:05:38 verbose #7086 > > │                                                                              │
00:05:38 verbose #7087 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:38 verbose #7088 > >
00:05:38 verbose #7089 > > ── markdown ────────────────────────────────────────────────────────────────────
00:05:38 verbose #7090 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:05:38 verbose #7091 > > │ ## main                                                                      │
00:05:38 verbose #7092 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:38 verbose #7093 > >
00:05:38 verbose #7094 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:38 verbose #7095 > > inl main () =
00:05:38 verbose #7096 > >     init_trace_state None
00:05:38 verbose #7097 > >     inl trace level text_fn (locals : () -> string) = trace level text_fn locals
00:05:38 verbose #7098 > >     $'let trace x = !trace x' : ()
00:05:38 verbose #7099 > 00:05:37   debug #421 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/05cb2dda6ef042ca1abec63b62602aa0cb9f9c35abd4b834352079eee413cbd3/main.spi
00:05:39 verbose #7100 > 00:00:21 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 17979 }
00:05:39 verbose #7101 > 00:00:21   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/spiral/trace.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/trace.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:05:41 verbose #7102 > 00:00:23 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/trace.dib.ipynb to html
00:05:41 verbose #7103 > 00:00:23 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:05:41 verbose #7104 > 00:00:23 verbose #7 !   validate(nb)
00:05:43 verbose #7105 > 00:00:25 verbose #8 ! [NbConvertApp] Writing 313356 bytes to c:\home\git\polyglot\lib\spiral\trace.dib.html
00:05:43 verbose #7106 > 00:00:25 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 641 }
00:05:43 verbose #7107 > 00:00:25   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 641 }
00:05:43 verbose #7108 > 00:00:25   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/trace.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/trace.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:05:45 verbose #7109 > 00:00:27 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:05:45 verbose #7110 > 00:00:27   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:05:45 verbose #7111 > 00:00:27   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 18679 }
00:05:45   debug #7112 runtime.execute_with_options_async / { exit_code = 0; output_length = 22013 }
00:05:45   debug #9 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path trace.dib --retries 3
00:05:45   debug #7113 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path am'.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:05:45 verbose #7114 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "am'.dib", "--retries", "3"])) }
00:05:45 verbose #7115 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/spiral/am'.dib", "--output-path", "c:/home/git/polyglot/lib/spiral/am'.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/am'.dib" --output-path "c:/home/git/polyglot/lib/spiral/am'.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:05:48 verbose #7116 > >
00:05:48 verbose #7117 > > ── markdown ────────────────────────────────────────────────────────────────────
00:05:48 verbose #7118 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:05:48 verbose #7119 > > │ # am'                                                                        │
00:05:48 verbose #7120 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:52 verbose #7121 > >
00:05:52 verbose #7122 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:52 verbose #7123 > > //// test
00:05:52 verbose #7124 > >
00:05:52 verbose #7125 > > open testing
00:05:52 verbose #7126 > 00:05:52   debug #422 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fa7845de436c12d0ca65282fe0cd65832468ca943e72feba50e6b1bb441e251a/main.spi
00:05:53 verbose #7127 > >
00:05:53 verbose #7128 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:53 verbose #7129 > > open rust_operators
00:05:53 verbose #7130 > 00:05:52   debug #423 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/14cf64024e1ad1cf52eeaf1af91f17c5c545fa6f0f762576c8f04b96249ae9ed/main.spi
00:05:53 verbose #7131 > >
00:05:53 verbose #7132 > > ── markdown ────────────────────────────────────────────────────────────────────
00:05:53 verbose #7133 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:05:53 verbose #7134 > > │ ## am'                                                                       │
00:05:53 verbose #7135 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:53 verbose #7136 > >
00:05:53 verbose #7137 > > ── markdown ────────────────────────────────────────────────────────────────────
00:05:53 verbose #7138 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:05:53 verbose #7139 > > │ ### length                                                                   │
00:05:53 verbose #7140 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:53 verbose #7141 > >
00:05:53 verbose #7142 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:53 verbose #7143 > > inl length forall dim {int} el. (a : a dim el) : dim =
00:05:53 verbose #7144 > >     a |> length
00:05:53 verbose #7145 > 00:05:53   debug #424 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f3ad7d51ab93cb8f84bcc9de457850cf9faedad95056f735eb84e23744015eac/main.spi
00:05:54 verbose #7146 > >
00:05:54 verbose #7147 > > ── markdown ────────────────────────────────────────────────────────────────────
00:05:54 verbose #7148 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:05:54 verbose #7149 > > │ ### index                                                                    │
00:05:54 verbose #7150 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:54 verbose #7151 > >
00:05:54 verbose #7152 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:54 verbose #7153 > > inl index forall dim {int} el. (i : dim) (a : a dim el) : el =
00:05:54 verbose #7154 > >     index a i
00:05:54 verbose #7155 > 00:05:53   debug #425 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/da9ed376a584bbf2c055fcf9944f4949ad816307e27be783e7763e11e958439c/main.spi
00:05:54 verbose #7156 > >
00:05:54 verbose #7157 > > ── markdown ────────────────────────────────────────────────────────────────────
00:05:54 verbose #7158 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:05:54 verbose #7159 > > │ ### base                                                                     │
00:05:54 verbose #7160 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:54 verbose #7161 > >
00:05:54 verbose #7162 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:54 verbose #7163 > > inl base forall dim {int} el. ((a a) : a dim el) : array_base el =
00:05:54 verbose #7164 > >     a
00:05:54 verbose #7165 > 00:05:53   debug #426 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0bb61ed9098c03563f6cccdbc7accd070e9e89b4160e8bd11a833d0692c2610c/main.spi
00:05:54 verbose #7166 > >
00:05:54 verbose #7167 > > ── markdown ────────────────────────────────────────────────────────────────────
00:05:54 verbose #7168 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:05:54 verbose #7169 > > │ ### base'                                                                    │
00:05:54 verbose #7170 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:54 verbose #7171 > >
00:05:54 verbose #7172 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:54 verbose #7173 > > inl base' forall el. ((a a) : a int el) : array_base el =
00:05:54 verbose #7174 > >     a
00:05:54 verbose #7175 > 00:05:54   debug #427 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c7c9294964e8e81142335abffe834b06ebae47d9fca1fc26059ff95018b995eb/main.spi
00:05:55 verbose #7176 > >
00:05:55 verbose #7177 > > ── markdown ────────────────────────────────────────────────────────────────────
00:05:55 verbose #7178 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:05:55 verbose #7179 > > │ ### generic_equable                                                          │
00:05:55 verbose #7180 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:55 verbose #7181 > >
00:05:55 verbose #7182 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:55 verbose #7183 > > inl generic_equable x1 x2 =
00:05:55 verbose #7184 > >     if length x1 <>.. length x2
00:05:55 verbose #7185 > >     then false
00:05:55 verbose #7186 > >     else
00:05:55 verbose #7187 > >         let rec loop i =
00:05:55 verbose #7188 > >             if i < length x1
00:05:55 verbose #7189 > >             then index i x1 = index i x2 && loop (i + 1)
00:05:55 verbose #7190 > >             else true
00:05:55 verbose #7191 > >         loop 0
00:05:55 verbose #7192 > 00:05:54   debug #428 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/59bac31509c672dbec730a5031629cd5acc12f49de9575799b0be7d931f76dcb/main.spi
00:05:55 verbose #7193 > >
00:05:55 verbose #7194 > > ── markdown ────────────────────────────────────────────────────────────────────
00:05:55 verbose #7195 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:05:55 verbose #7196 > > │ ### equable                                                                  │
00:05:55 verbose #7197 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:55 verbose #7198 > >
00:05:55 verbose #7199 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:55 verbose #7200 > > instance equable a dim {number; int} t = generic_equable
00:05:55 verbose #7201 > 00:05:54   debug #429 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/239358de8dc89fecd896d0ac3eefb20309bb582d667a8d190a5146e83297085e/main.spi
00:05:55 verbose #7202 > >
00:05:55 verbose #7203 > > ── markdown ────────────────────────────────────────────────────────────────────
00:05:55 verbose #7204 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:05:55 verbose #7205 > > │ ### append                                                                   │
00:05:55 verbose #7206 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:55 verbose #7207 > >
00:05:55 verbose #7208 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:55 verbose #7209 > > instance append a dim {int; number} t = am.append
00:05:56 verbose #7210 > 00:05:55   debug #430 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3f15c3abeb9c3d129073ef393f9152abfb67a3785c2e191b8aeac17f2a840f00/main.spi
00:05:56 verbose #7211 > >
00:05:56 verbose #7212 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:56 verbose #7213 > > //// test
00:05:56 verbose #7214 > > ///! fsharp
00:05:56 verbose #7215 > > ///! cuda
00:05:56 verbose #7216 > > ///! rust
00:05:56 verbose #7217 > > ///! typescript
00:05:56 verbose #7218 > > ///! python
00:05:56 verbose #7219 > >
00:05:56 verbose #7220 > > a' ;[[ -1i64; 0 ]] ++ a' ;[[ 1; 2 ]]
00:05:56 verbose #7221 > > |> _assert_eq (a' ;[[ -1; 0; 1; 2 ]])
00:05:56 verbose #7222 > 00:05:55   debug #431 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/db975aaeeb41431963ba067e1dcd5a4247cbb30787ee6ed85bcec1085fc1249f/main.spi
00:05:56 verbose #7223 > 00:05:55   debug #432 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/cf9de8315f152a809e3ca6c611d567df2279ea5aaa60830204e50465527c562e/main.spi
00:06:01 verbose #7224 > >
00:06:01 verbose #7225 > > ╭─[ 5.43s - return value ]─────────────────────────────────────────────────────╮
00:06:01 verbose #7226 > > │                                                                              │
00:06:01 verbose #7227 > > │ .py output (Cuda):                                                           │
00:06:01 verbose #7228 > > │ Traceback (most recent call last):                                     │
00:06:01 verbose #7229 > > │   File                                                                   │
00:06:01 verbose #7230 > > │ "C:\home\git\polyglot\target\spiral_Eval\packages\db975aaeeb41431963ba067e1d │
00:06:01 verbose #7231 > > │ cd5a4247cbb30787ee6ed85bcec1085fc1249f\main.py", line 159, in <module>     │
00:06:01 verbose #7232 > > │     if __name__ == '__main__': result = main(); None if result is None   │
00:06:01 verbose #7233 > > │ else print(result)                                                         │
00:06:01 verbose #7234 > > │                                         ^^^^^^                         │
00:06:01 verbose #7235 > > │   File                                                                   │
00:06:01 verbose #7236 > > │ "C:\home\git\polyglot\target\spiral_Eval\packages\db975aaeeb41431963ba067e1d │
00:06:01 verbose #7237 > > │ cd5a4247cbb30787ee6ed85bcec1085fc1249f\main.py", line 157, in main         │
00:06:01 verbose #7238 > > │     return method0()                                                   │
00:06:01 verbose #7239 > > │            ^^^^^^^^^                                                   │
00:06:01 verbose #7240 > > │   File                                                                   │
00:06:01 verbose #7241 > > │ "C:\home\git\polyglot\target\spiral_Eval\packages\db975aaeeb41431963ba067e1d │
00:06:01 verbose #7242 > > │ cd5a4247cbb30787ee6ed85bcec1085fc1249f\main.py", line 96, in method0       │
00:06:01 verbose #7243 > > │     v0 = cp.array([-1, 0],dtype=cp.int64)                              │
00:06:01 verbose #7244 > > │          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                              │
00:06:01 verbose #7245 > > │   File                                                                   │
00:06:01 verbose #7246 > > │ "C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\cupy\_creation\f │
00:06:01 verbose #7247 > > │ rom_data.py", line 53, in array                                            │
00:06:01 verbose #7248 > > │     return _core.array(obj, dtype, copy, order, subok, ndmin, blocking)[  │
00:06:01 verbose #7249 > > │ 0m                                                                           │
00:06:01 verbose #7250 > > │            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^[  │
00:06:01 verbose #7251 > > │ 0m                                                                           │
00:06:01 verbose #7252 > > │   File "cupy\_core\core.pyx", line 2379, in cupy._core.core.array      │
00:06:01 verbose #7253 > > │   File "cupy\_core\core.pyx", line 2406, in cupy._core.core.array      │
00:06:01 verbose #7254 > > │   File "cupy\_core\core.pyx", line 2548, in                              │
00:06:01 verbose #7255 > > │ cupy._core.core._array_default                                             │
00:06:01 verbose #7256 > > │   File "cupy\_core\core.pyx", line 132, in                               │
00:06:01 verbose #7257 > > │ cupy._core.core.ndarray.__new__                                            │
00:06:01 verbose #7258 > > │   File "cupy\_core\core.pyx", line 220, in                               │
00:06:01 verbose #7259 > > │ cupy._core.core._ndarray_base._init                                        │
00:06:01 verbose #7260 > > │   File "cupy\cuda\memory.pyx", line 738, in cupy.cuda.memory.alloc     │
00:06:01 verbose #7261 > > │   File "cupy\cuda\memory.pyx", line 1424, in                             │
00:06:01 verbose #7262 > > │ cupy.cuda.memory.MemoryPool.malloc                                         │
00:06:01 verbose #7263 > > │   File "cupy\cuda\memory.pyx", line 1444, in                             │
00:06:01 verbose #7264 > > │ cupy.cuda.memory.MemoryPool.malloc                                         │
00:06:01 verbose #7265 > > │   File "cupy\cuda\device.pyx", line 40, in cupy.cuda.device.get_device_id │
00:06:01 verbose #7266 > > │ [0m                                                                          │
00:06:01 verbose #7267 > > │   File "cupy_backends\cuda\api\runtime.pyx", line 202, in                │
00:06:01 verbose #7268 > > │ cupy_backends.cuda.api.runtime.getDevice                                   │
00:06:01 verbose #7269 > > │   File "cupy_backends\cuda\api\runtime.pyx", line 146, in                │
00:06:01 verbose #7270 > > │ cupy_backends.cuda.api.runtime.check_status                                │
00:06:01 verbose #7271 > > │ cupy_backends.cuda.api.runtime.CUDARuntimeError:                         │
00:06:01 verbose #7272 > > │ cudaErrorInsufficientDriver: CUDA driver version is insufficient for CUDA    │
00:06:01 verbose #7273 > > │ runtime version                                                            │
00:06:01 verbose #7274 > > │                                                                              │
00:06:01 verbose #7275 > > │ .rs output:                                                                  │
00:06:01 verbose #7276 > > │ assert_eq / actual: Array(MutCell([-1, 0, 1, 2])) / expected: Array(MutCell( │
00:06:01 verbose #7277 > > │ [-1, 0, 1, 2]))                                                              │
00:06:01 verbose #7278 > > │                                                                              │
00:06:01 verbose #7279 > > │ .ts output:                                                                  │
00:06:01 verbose #7280 > > │ assert_eq / actual: -1,0,1,2 / expected: -1,0,1,2                            │
00:06:01 verbose #7281 > > │                                                                              │
00:06:01 verbose #7282 > > │ .py output:                                                                  │
00:06:01 verbose #7283 > > │ assert_eq / actual: [-1, 0, 1, 2] / expected: array('q', [-1, 0, 1, 2])      │
00:06:01 verbose #7284 > > │                                                                              │
00:06:01 verbose #7285 > > │                                                                              │
00:06:01 verbose #7286 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:01 verbose #7287 > >
00:06:01 verbose #7288 > > ╭─[ 5.44s - stdout ]───────────────────────────────────────────────────────────╮
00:06:01 verbose #7289 > > │ .fsx output:                                                                 │
00:06:01 verbose #7290 > > │ assert_eq / actual: [|-1L; 0L; 1L; 2L|] / expected: [|-1L; 0L; 1L; 2L|]      │
00:06:01 verbose #7291 > > │                                                                              │
00:06:01 verbose #7292 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:01 verbose #7293 > >
00:06:01 verbose #7294 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:01 verbose #7295 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:01 verbose #7296 > > │ ### map_base                                                                 │
00:06:01 verbose #7297 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:01 verbose #7298 > >
00:06:01 verbose #7299 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:01 verbose #7300 > > inl map_base forall t u. (fn : t -> u) (x : array_base t) : array_base u =
00:06:01 verbose #7301 > >     a x
00:06:01 verbose #7302 > >     |> am.map fn
00:06:01 verbose #7303 > >     |> fun (a x : _ int _) => x
00:06:01 verbose #7304 > 00:06:01   debug #433 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3043e1f68b28a45ca39d6e4a3ef34525812f305bf4df25aa854827b1f84db28c/main.spi
00:06:01 verbose #7305 > >
00:06:01 verbose #7306 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:01 verbose #7307 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:01 verbose #7308 > > │ ### collect                                                                  │
00:06:01 verbose #7309 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:01 verbose #7310 > >
00:06:01 verbose #7311 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:01 verbose #7312 > > inl collect forall t r. (fn : t -> a int r) (items : a int t) : a int r =
00:06:01 verbose #7313 > >     items
00:06:01 verbose #7314 > >     |> am.map fn
00:06:01 verbose #7315 > >     |> am.fold (++) (a ;[[]])
00:06:02 verbose #7316 > 00:06:01   debug #434 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ba4b12a234a60383f71e59eef544b46d0c4df7dbe3a9a4fa53c66ec5e79a8f65/main.spi
00:06:02 verbose #7317 > >
00:06:02 verbose #7318 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:02 verbose #7319 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:02 verbose #7320 > > │ ### init                                                                     │
00:06:02 verbose #7321 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:02 verbose #7322 > >
00:06:02 verbose #7323 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:02 verbose #7324 > > inl init n : array_base _ =
00:06:02 verbose #7325 > >     am.init n id
00:06:02 verbose #7326 > >     |> fun (a x : _ int _) => x
00:06:02 verbose #7327 > 00:06:01   debug #435 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/21e24b43d5f05317f1312e36949ab8c870d96b121e8b6e85fff4826234971bf2/main.spi
00:06:02 verbose #7328 > >
00:06:02 verbose #7329 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:02 verbose #7330 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:02 verbose #7331 > > │ ### choose                                                                   │
00:06:02 verbose #7332 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:02 verbose #7333 > >
00:06:02 verbose #7334 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:02 verbose #7335 > > inl choose f l =
00:06:02 verbose #7336 > >     (l, [[]])
00:06:02 verbose #7337 > >     ||> am.foldBack fun x acc =>
00:06:02 verbose #7338 > >         match f x with
00:06:02 verbose #7339 > >         | Some y => y :: acc
00:06:02 verbose #7340 > >         | None => acc
00:06:02 verbose #7341 > >     |> listm.toArray
00:06:02 verbose #7342 > 00:06:02   debug #436 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/cd209b582116944f7b2bc7da696679ed536c3027d19bb060fbbb3d3cd5a90a7d/main.spi
00:06:03 verbose #7343 > >
00:06:03 verbose #7344 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:03 verbose #7345 > > //// test
00:06:03 verbose #7346 > > ///! fsharp
00:06:03 verbose #7347 > > ///! cuda
00:06:03 verbose #7348 > > ////! rust // v0.get_mut()[[v2.get().clone() as usize]] = match
00:06:03 verbose #7349 > > v1.get().clone().as_ref() { ^ expected `i32`, found `usize`
00:06:03 verbose #7350 > > ///! typescript
00:06:03 verbose #7351 > > ///! python
00:06:03 verbose #7352 > >
00:06:03 verbose #7353 > > 10
00:06:03 verbose #7354 > > |> init
00:06:03 verbose #7355 > > |> fun x => a x : _ int _
00:06:03 verbose #7356 > > |> choose (fun x => if x % 2 = 0 then Some x else None)
00:06:03 verbose #7357 > > |> _assert_eq (a' ;[[ 0; 2; 4; 6; 8 ]])
00:06:03 verbose #7358 > 00:06:02   debug #437 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a53a7c47b350043c08347e15266bffc32675c3db0352c7964ec3b3d042c766d2/main.spi
00:06:03 verbose #7359 > 00:06:02   debug #438 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/92443c008cb3841364f5bfa73bd20fe4ea36fff723a5682cb2f08fa72b3ad781/main.spi
00:06:06 verbose #7360 > >
00:06:06 verbose #7361 > > ╭─[ 3.27s - return value ]─────────────────────────────────────────────────────╮
00:06:06 verbose #7362 > > │                                                                              │
00:06:06 verbose #7363 > > │ .py output (Cuda):                                                           │
00:06:06 verbose #7364 > > │ Traceback (most recent call last):                                     │
00:06:06 verbose #7365 > > │   File                                                                   │
00:06:06 verbose #7366 > > │ "C:\home\git\polyglot\target\spiral_Eval\packages\92443c008cb3841364f5bfa73b │
00:06:06 verbose #7367 > > │ d20fe4ea36fff723a5682cb2f08fa72b3ad781\main.py", line 240, in <module>     │
00:06:06 verbose #7368 > > │     if __name__ == '__main__': result = main(); None if result is None   │
00:06:06 verbose #7369 > > │ else print(result)                                                         │
00:06:06 verbose #7370 > > │                                         ^^^^^^                         │
00:06:06 verbose #7371 > > │   File                                                                   │
00:06:06 verbose #7372 > > │ "C:\home\git\polyglot\target\spiral_Eval\packages\92443c008cb3841364f5bfa73b │
00:06:06 verbose #7373 > > │ d20fe4ea36fff723a5682cb2f08fa72b3ad781\main.py", line 238, in main         │
00:06:06 verbose #7374 > > │     return method0()                                                   │
00:06:06 verbose #7375 > > │            ^^^^^^^^^                                                   │
00:06:06 verbose #7376 > > │   File                                                                   │
00:06:06 verbose #7377 > > │ "C:\home\git\polyglot\target\spiral_Eval\packages\92443c008cb3841364f5bfa73b │
00:06:06 verbose #7378 > > │ d20fe4ea36fff723a5682cb2f08fa72b3ad781\main.py", line 155, in method0      │
00:06:06 verbose #7379 > > │     v0 = cp.empty(10,dtype=cp.int32)                                   │
00:06:06 verbose #7380 > > │          ^^^^^^^^^^^^^^^^^^^^^^^^^^^                                   │
00:06:06 verbose #7381 > > │   File                                                                   │
00:06:06 verbose #7382 > > │ "C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\cupy\_creation\b │
00:06:06 verbose #7383 > > │ asic.py", line 31, in empty                                                │
00:06:06 verbose #7384 > > │     return cupy.ndarray(shape, dtype, order=order)                     │
00:06:06 verbose #7385 > > │            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                     │
00:06:06 verbose #7386 > > │   File "cupy\_core\core.pyx", line 132, in                               │
00:06:06 verbose #7387 > > │ cupy._core.core.ndarray.__new__                                            │
00:06:06 verbose #7388 > > │   File "cupy\_core\core.pyx", line 220, in                               │
00:06:06 verbose #7389 > > │ cupy._core.core._ndarray_base._init                                        │
00:06:06 verbose #7390 > > │   File "cupy\cuda\memory.pyx", line 738, in cupy.cuda.memory.alloc     │
00:06:06 verbose #7391 > > │   File "cupy\cuda\memory.pyx", line 1424, in                             │
00:06:06 verbose #7392 > > │ cupy.cuda.memory.MemoryPool.malloc                                         │
00:06:06 verbose #7393 > > │   File "cupy\cuda\memory.pyx", line 1444, in                             │
00:06:06 verbose #7394 > > │ cupy.cuda.memory.MemoryPool.malloc                                         │
00:06:06 verbose #7395 > > │   File "cupy\cuda\device.pyx", line 40, in cupy.cuda.device.get_device_id │
00:06:06 verbose #7396 > > │ [0m                                                                          │
00:06:06 verbose #7397 > > │   File "cupy_backends\cuda\api\runtime.pyx", line 202, in                │
00:06:06 verbose #7398 > > │ cupy_backends.cuda.api.runtime.getDevice                                   │
00:06:06 verbose #7399 > > │   File "cupy_backends\cuda\api\runtime.pyx", line 146, in                │
00:06:06 verbose #7400 > > │ cupy_backends.cuda.api.runtime.check_status                                │
00:06:06 verbose #7401 > > │ cupy_backends.cuda.api.runtime.CUDARuntimeError:                         │
00:06:06 verbose #7402 > > │ cudaErrorInsufficientDriver: CUDA driver version is insufficient for CUDA    │
00:06:06 verbose #7403 > > │ runtime version                                                            │
00:06:06 verbose #7404 > > │                                                                              │
00:06:06 verbose #7405 > > │ .ts output:                                                                  │
00:06:06 verbose #7406 > > │ assert_eq / actual: 0,2,4,6,8 / expected: 0,2,4,6,8                          │
00:06:06 verbose #7407 > > │                                                                              │
00:06:06 verbose #7408 > > │ .py output:                                                                  │
00:06:06 verbose #7409 > > │ assert_eq / actual: [0, 2, 4, 6, 8] / expected: array('l', [0, 2, 4, 6, 8])  │
00:06:06 verbose #7410 > > │                                                                              │
00:06:06 verbose #7411 > > │                                                                              │
00:06:06 verbose #7412 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:06 verbose #7413 > >
00:06:06 verbose #7414 > > ╭─[ 3.28s - stdout ]───────────────────────────────────────────────────────────╮
00:06:06 verbose #7415 > > │ .fsx output:                                                                 │
00:06:06 verbose #7416 > > │ assert_eq / actual: [|0; 2; 4; 6; 8|] / expected: [|0; 2; 4; 6; 8|]          │
00:06:06 verbose #7417 > > │                                                                              │
00:06:06 verbose #7418 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:06 verbose #7419 > >
00:06:06 verbose #7420 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:06 verbose #7421 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:06 verbose #7422 > > │ ### sum                                                                      │
00:06:06 verbose #7423 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:06 verbose #7424 > >
00:06:06 verbose #7425 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:06 verbose #7426 > > inl sum a =
00:06:06 verbose #7427 > >     a |> am.fold (+) 0
00:06:06 verbose #7428 > 00:06:05   debug #439 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b6fa95d0565fa7e16da6bf55fcd841c803c5f6ff3128420101520201baf008d2/main.spi
00:06:06 verbose #7429 > >
00:06:06 verbose #7430 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:06 verbose #7431 > > //// test
00:06:06 verbose #7432 > > ///! fsharp
00:06:06 verbose #7433 > > ///! cuda
00:06:06 verbose #7434 > > ///! rust
00:06:06 verbose #7435 > > ///! typescript
00:06:06 verbose #7436 > > ///! python
00:06:06 verbose #7437 > >
00:06:06 verbose #7438 > > 10
00:06:06 verbose #7439 > > |> init
00:06:06 verbose #7440 > > |> fun x => a x : _ int _
00:06:06 verbose #7441 > > |> sum
00:06:06 verbose #7442 > > |> _assert_eq 45
00:06:06 verbose #7443 > 00:06:06   debug #440 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/760d18bb6e3201bd3bd63f7f3aca0c9ce69835e58d7ebb26618db7e9d9d4a808/main.spi
00:06:06 verbose #7444 > 00:06:06   debug #441 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e6bd10c145768bb8280ddfe7beb72b7608910349685b4820c44bc60a3e3b32f8/main.spi
00:06:10 verbose #7445 > >
00:06:10 verbose #7446 > > ╭─[ 3.88s - return value ]─────────────────────────────────────────────────────╮
00:06:10 verbose #7447 > > │                                                                              │
00:06:10 verbose #7448 > > │ .py output (Cuda):                                                           │
00:06:10 verbose #7449 > > │ Traceback (most recent call last):                                     │
00:06:10 verbose #7450 > > │   File                                                                   │
00:06:10 verbose #7451 > > │ "C:\home\git\polyglot\target\spiral_Eval\packages\e6bd10c145768bb8280ddfe7be │
00:06:10 verbose #7452 > > │ b72b7608910349685b4820c44bc60a3e3b32f8\main.py", line 124, in <module>     │
00:06:10 verbose #7453 > > │     if __name__ == '__main__': result = main(); None if result is None   │
00:06:10 verbose #7454 > > │ else print(result)                                                         │
00:06:10 verbose #7455 > > │                                         ^^^^^^                         │
00:06:10 verbose #7456 > > │   File                                                                   │
00:06:10 verbose #7457 > > │ "C:\home\git\polyglot\target\spiral_Eval\packages\e6bd10c145768bb8280ddfe7be │
00:06:10 verbose #7458 > > │ b72b7608910349685b4820c44bc60a3e3b32f8\main.py", line 122, in main         │
00:06:10 verbose #7459 > > │     return method0()                                                   │
00:06:10 verbose #7460 > > │            ^^^^^^^^^                                                   │
00:06:10 verbose #7461 > > │   File                                                                   │
00:06:10 verbose #7462 > > │ "C:\home\git\polyglot\target\spiral_Eval\packages\e6bd10c145768bb8280ddfe7be │
00:06:10 verbose #7463 > > │ b72b7608910349685b4820c44bc60a3e3b32f8\main.py", line 77, in method0       │
00:06:10 verbose #7464 > > │     v0 = cp.empty(10,dtype=cp.int32)                                   │
00:06:10 verbose #7465 > > │          ^^^^^^^^^^^^^^^^^^^^^^^^^^^                                   │
00:06:10 verbose #7466 > > │   File                                                                   │
00:06:10 verbose #7467 > > │ "C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\cupy\_creation\b │
00:06:10 verbose #7468 > > │ asic.py", line 31, in empty                                                │
00:06:10 verbose #7469 > > │     return cupy.ndarray(shape, dtype, order=order)                     │
00:06:10 verbose #7470 > > │            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                     │
00:06:10 verbose #7471 > > │   File "cupy\_core\core.pyx", line 132, in                               │
00:06:10 verbose #7472 > > │ cupy._core.core.ndarray.__new__                                            │
00:06:10 verbose #7473 > > │   File "cupy\_core\core.pyx", line 220, in                               │
00:06:10 verbose #7474 > > │ cupy._core.core._ndarray_base._init                                        │
00:06:10 verbose #7475 > > │   File "cupy\cuda\memory.pyx", line 738, in cupy.cuda.memory.alloc     │
00:06:10 verbose #7476 > > │   File "cupy\cuda\memory.pyx", line 1424, in                             │
00:06:10 verbose #7477 > > │ cupy.cuda.memory.MemoryPool.malloc                                         │
00:06:10 verbose #7478 > > │   File "cupy\cuda\memory.pyx", line 1444, in                             │
00:06:10 verbose #7479 > > │ cupy.cuda.memory.MemoryPool.malloc                                         │
00:06:10 verbose #7480 > > │   File "cupy\cuda\device.pyx", line 40, in cupy.cuda.device.get_device_id │
00:06:10 verbose #7481 > > │ [0m                                                                          │
00:06:10 verbose #7482 > > │   File "cupy_backends\cuda\api\runtime.pyx", line 202, in                │
00:06:10 verbose #7483 > > │ cupy_backends.cuda.api.runtime.getDevice                                   │
00:06:10 verbose #7484 > > │   File "cupy_backends\cuda\api\runtime.pyx", line 146, in                │
00:06:10 verbose #7485 > > │ cupy_backends.cuda.api.runtime.check_status                                │
00:06:10 verbose #7486 > > │ cupy_backends.cuda.api.runtime.CUDARuntimeError:                         │
00:06:10 verbose #7487 > > │ cudaErrorInsufficientDriver: CUDA driver version is insufficient for CUDA    │
00:06:10 verbose #7488 > > │ runtime version                                                            │
00:06:10 verbose #7489 > > │                                                                              │
00:06:10 verbose #7490 > > │ .rs output:                                                                  │
00:06:10 verbose #7491 > > │ assert_eq / actual: 45 / expected: 45                                        │
00:06:10 verbose #7492 > > │                                                                              │
00:06:10 verbose #7493 > > │ .ts output:                                                                  │
00:06:10 verbose #7494 > > │ assert_eq / actual: 45 / expected: 45                                        │
00:06:10 verbose #7495 > > │                                                                              │
00:06:10 verbose #7496 > > │ .py output:                                                                  │
00:06:10 verbose #7497 > > │ assert_eq / actual: 45 / expected: 45                                        │
00:06:10 verbose #7498 > > │                                                                              │
00:06:10 verbose #7499 > > │                                                                              │
00:06:10 verbose #7500 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:10 verbose #7501 > >
00:06:10 verbose #7502 > > ╭─[ 3.89s - stdout ]───────────────────────────────────────────────────────────╮
00:06:10 verbose #7503 > > │ .fsx output:                                                                 │
00:06:10 verbose #7504 > > │ assert_eq / actual: 45 / expected: 45                                        │
00:06:10 verbose #7505 > > │                                                                              │
00:06:10 verbose #7506 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:10 verbose #7507 > >
00:06:10 verbose #7508 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:10 verbose #7509 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:10 verbose #7510 > > │ ### init_series                                                              │
00:06:10 verbose #7511 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:10 verbose #7512 > >
00:06:10 verbose #7513 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:10 verbose #7514 > > inl init_series start end inc : array_base _ =
00:06:10 verbose #7515 > >     inl total = conv ((end - start) / inc) + 1
00:06:10 verbose #7516 > >     am.init total (conv >> (*) inc >> (+) start)
00:06:10 verbose #7517 > >     |> fun (a x : _ int _) => x
00:06:10 verbose #7518 > 00:06:09   debug #442 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/657397d6a86965b861bfdf92219299ac5b1a23d0a917a56f1ae131e0fd691f49/main.spi
00:06:10 verbose #7519 > >
00:06:10 verbose #7520 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:10 verbose #7521 > > //// test
00:06:10 verbose #7522 > > ///! fsharp
00:06:10 verbose #7523 > > ///! cuda
00:06:10 verbose #7524 > > ///! rust
00:06:10 verbose #7525 > > ///! typescript
00:06:10 verbose #7526 > > ///! python
00:06:10 verbose #7527 > >
00:06:10 verbose #7528 > > init_series 0 4 2
00:06:10 verbose #7529 > > |> _assert_eq' ;[[ 0i32; 2; 4 ]]
00:06:11 verbose #7530 > 00:06:10   debug #443 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3e4542d7ea24c194d63e5a43445599f5a27e42c892ba78ee8c7aaed48f4d1cbe/main.spi
00:06:11 verbose #7531 > 00:06:10   debug #444 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7af797999078c86f61db6bf641b92a3f2677d1278fc53a5844932dc7c1efbf02/main.spi
00:06:14 verbose #7532 > >
00:06:14 verbose #7533 > > ╭─[ 3.63s - return value ]─────────────────────────────────────────────────────╮
00:06:14 verbose #7534 > > │                                                                              │
00:06:14 verbose #7535 > > │ .py output (Cuda):                                                           │
00:06:14 verbose #7536 > > │ Traceback (most recent call last):                                     │
00:06:14 verbose #7537 > > │   File                                                                   │
00:06:14 verbose #7538 > > │ "C:\home\git\polyglot\target\spiral_Eval\packages\3e4542d7ea24c194d63e5a4344 │
00:06:14 verbose #7539 > > │ 5599f5a27e42c892ba78ee8c7aaed48f4d1cbe\main.py", line 101, in <module>     │
00:06:14 verbose #7540 > > │     if __name__ == '__main__': result = main(); None if result is None   │
00:06:14 verbose #7541 > > │ else print(result)                                                         │
00:06:14 verbose #7542 > > │                                         ^^^^^^                         │
00:06:14 verbose #7543 > > │   File                                                                   │
00:06:14 verbose #7544 > > │ "C:\home\git\polyglot\target\spiral_Eval\packages\3e4542d7ea24c194d63e5a4344 │
00:06:14 verbose #7545 > > │ 5599f5a27e42c892ba78ee8c7aaed48f4d1cbe\main.py", line 99, in main          │
00:06:14 verbose #7546 > > │     return method0()                                                   │
00:06:14 verbose #7547 > > │            ^^^^^^^^^                                                   │
00:06:14 verbose #7548 > > │   File                                                                   │
00:06:14 verbose #7549 > > │ "C:\home\git\polyglot\target\spiral_Eval\packages\3e4542d7ea24c194d63e5a4344 │
00:06:14 verbose #7550 > > │ 5599f5a27e42c892ba78ee8c7aaed48f4d1cbe\main.py", line 67, in method0       │
00:06:14 verbose #7551 > > │     v0 = cp.empty(3,dtype=cp.int32)                                    │
00:06:14 verbose #7552 > > │          ^^^^^^^^^^^^^^^^^^^^^^^^^^                                    │
00:06:14 verbose #7553 > > │   File                                                                   │
00:06:14 verbose #7554 > > │ "C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\cupy\_creation\b │
00:06:14 verbose #7555 > > │ asic.py", line 31, in empty                                                │
00:06:14 verbose #7556 > > │     return cupy.ndarray(shape, dtype, order=order)                     │
00:06:14 verbose #7557 > > │            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                     │
00:06:14 verbose #7558 > > │   File "cupy\_core\core.pyx", line 132, in                               │
00:06:14 verbose #7559 > > │ cupy._core.core.ndarray.__new__                                            │
00:06:14 verbose #7560 > > │   File "cupy\_core\core.pyx", line 220, in                               │
00:06:14 verbose #7561 > > │ cupy._core.core._ndarray_base._init                                        │
00:06:14 verbose #7562 > > │   File "cupy\cuda\memory.pyx", line 738, in cupy.cuda.memory.alloc     │
00:06:14 verbose #7563 > > │   File "cupy\cuda\memory.pyx", line 1424, in                             │
00:06:14 verbose #7564 > > │ cupy.cuda.memory.MemoryPool.malloc                                         │
00:06:14 verbose #7565 > > │   File "cupy\cuda\memory.pyx", line 1444, in                             │
00:06:14 verbose #7566 > > │ cupy.cuda.memory.MemoryPool.malloc                                         │
00:06:14 verbose #7567 > > │   File "cupy\cuda\device.pyx", line 40, in cupy.cuda.device.get_device_id │
00:06:14 verbose #7568 > > │ [0m                                                                          │
00:06:14 verbose #7569 > > │   File "cupy_backends\cuda\api\runtime.pyx", line 202, in                │
00:06:14 verbose #7570 > > │ cupy_backends.cuda.api.runtime.getDevice                                   │
00:06:14 verbose #7571 > > │   File "cupy_backends\cuda\api\runtime.pyx", line 146, in                │
00:06:14 verbose #7572 > > │ cupy_backends.cuda.api.runtime.check_status                                │
00:06:14 verbose #7573 > > │ cupy_backends.cuda.api.runtime.CUDARuntimeError:                         │
00:06:14 verbose #7574 > > │ cudaErrorInsufficientDriver: CUDA driver version is insufficient for CUDA    │
00:06:14 verbose #7575 > > │ runtime version                                                            │
00:06:14 verbose #7576 > > │                                                                              │
00:06:14 verbose #7577 > > │ .rs output:                                                                  │
00:06:14 verbose #7578 > > │ assert_eq' / actual: Array(MutCell([0, 2, 4])) / expected: Array(MutCell([0, │
00:06:14 verbose #7579 > > │ 2, 4]))                                                                      │
00:06:14 verbose #7580 > > │                                                                              │
00:06:14 verbose #7581 > > │ .ts output:                                                                  │
00:06:14 verbose #7582 > > │ assert_eq' / actual: 0,2,4 / expected: 0,2,4                                 │
00:06:14 verbose #7583 > > │                                                                              │
00:06:14 verbose #7584 > > │ .py output:                                                                  │
00:06:14 verbose #7585 > > │ assert_eq' / actual: [0, 2, 4] / expected: array('l', [0, 2, 4])             │
00:06:14 verbose #7586 > > │                                                                              │
00:06:14 verbose #7587 > > │                                                                              │
00:06:14 verbose #7588 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:14 verbose #7589 > >
00:06:14 verbose #7590 > > ╭─[ 3.63s - stdout ]───────────────────────────────────────────────────────────╮
00:06:14 verbose #7591 > > │ .fsx output:                                                                 │
00:06:14 verbose #7592 > > │ assert_eq' / actual: [|0; 2; 4|] / expected: [|0; 2; 4|]                     │
00:06:14 verbose #7593 > > │                                                                              │
00:06:14 verbose #7594 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:14 verbose #7595 > >
00:06:14 verbose #7596 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:14 verbose #7597 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:14 verbose #7598 > > │ ### head                                                                     │
00:06:14 verbose #7599 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:14 verbose #7600 > >
00:06:14 verbose #7601 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:14 verbose #7602 > > inl head (ar : a _ _) =
00:06:14 verbose #7603 > >     if var_is ar || length ar > 0
00:06:14 verbose #7604 > >     then ar |> index 0
00:06:14 verbose #7605 > >     else error_type "The length of the array should be greater than 0."
00:06:14 verbose #7606 > 00:06:13   debug #445 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/37cbc5065fb75fd34f1737c2845cc6ab8fe683cf508086ed2e238931955f1f0a/main.spi
00:06:14 verbose #7607 > >
00:06:14 verbose #7608 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:14 verbose #7609 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:14 verbose #7610 > > │ ### last                                                                     │
00:06:14 verbose #7611 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:14 verbose #7612 > >
00:06:14 verbose #7613 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:14 verbose #7614 > > inl last (ar : a _ _) =
00:06:14 verbose #7615 > >     inl len = length ar
00:06:14 verbose #7616 > >     if var_is ar || len > 0
00:06:14 verbose #7617 > >     then ar |> index (len - 1)
00:06:14 verbose #7618 > >     else error_type "The length of the array should be greater than 0."
00:06:15 verbose #7619 > 00:06:14   debug #446 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d2ecae9031e92f22a5494315095fd8ed4a98c3f02730224af117e8d7e260248f/main.spi
00:06:15 verbose #7620 > >
00:06:15 verbose #7621 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:15 verbose #7622 > > //// test
00:06:15 verbose #7623 > > ///! fsharp
00:06:15 verbose #7624 > > ///! cuda
00:06:15 verbose #7625 > > ///! rust
00:06:15 verbose #7626 > > ///! typescript
00:06:15 verbose #7627 > > ///! python
00:06:15 verbose #7628 > >
00:06:15 verbose #7629 > > 10
00:06:15 verbose #7630 > > |> init
00:06:15 verbose #7631 > > |> fun x => a x : _ int _
00:06:15 verbose #7632 > > |> last
00:06:15 verbose #7633 > > |> _assert_eq 9
00:06:15 verbose #7634 > 00:06:14   debug #447 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/df10b1014e095754ad0a88d1f08fbd28abb6c6a42e45815d2e9d4a94e3f932d8/main.spi
00:06:15 verbose #7635 > 00:06:14   debug #448 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ed5b1d7058246316d4ae38519e7ed18187c0ad93c5f083cf5aafe0f2c9ec2a95/main.spi
00:06:20 verbose #7636 > >
00:06:20 verbose #7637 > > ╭─[ 5.07s - return value ]─────────────────────────────────────────────────────╮
00:06:20 verbose #7638 > > │                                                                              │
00:06:20 verbose #7639 > > │ .py output (Cuda):                                                           │
00:06:20 verbose #7640 > > │ Traceback (most recent call last):                                     │
00:06:20 verbose #7641 > > │   File                                                                   │
00:06:20 verbose #7642 > > │ "C:\home\git\polyglot\target\spiral_Eval\packages\ed5b1d7058246316d4ae38519e │
00:06:20 verbose #7643 > > │ 7ed18187c0ad93c5f083cf5aafe0f2c9ec2a95\main.py", line 103, in <module>     │
00:06:20 verbose #7644 > > │     if __name__ == '__main__': result = main(); None if result is None   │
00:06:20 verbose #7645 > > │ else print(result)                                                         │
00:06:20 verbose #7646 > > │                                         ^^^^^^                         │
00:06:20 verbose #7647 > > │   File                                                                   │
00:06:20 verbose #7648 > > │ "C:\home\git\polyglot\target\spiral_Eval\packages\ed5b1d7058246316d4ae38519e │
00:06:20 verbose #7649 > > │ 7ed18187c0ad93c5f083cf5aafe0f2c9ec2a95\main.py", line 101, in main         │
00:06:20 verbose #7650 > > │     return method0()                                                   │
00:06:20 verbose #7651 > > │            ^^^^^^^^^                                                   │
00:06:20 verbose #7652 > > │   File                                                                   │
00:06:20 verbose #7653 > > │ "C:\home\git\polyglot\target\spiral_Eval\packages\ed5b1d7058246316d4ae38519e │
00:06:20 verbose #7654 > > │ 7ed18187c0ad93c5f083cf5aafe0f2c9ec2a95\main.py", line 67, in method0       │
00:06:20 verbose #7655 > > │     v0 = cp.empty(10,dtype=cp.int32)                                   │
00:06:20 verbose #7656 > > │          ^^^^^^^^^^^^^^^^^^^^^^^^^^^                                   │
00:06:20 verbose #7657 > > │   File                                                                   │
00:06:20 verbose #7658 > > │ "C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\cupy\_creation\b │
00:06:20 verbose #7659 > > │ asic.py", line 31, in empty                                                │
00:06:20 verbose #7660 > > │     return cupy.ndarray(shape, dtype, order=order)                     │
00:06:20 verbose #7661 > > │            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                     │
00:06:20 verbose #7662 > > │   File "cupy\_core\core.pyx", line 132, in                               │
00:06:20 verbose #7663 > > │ cupy._core.core.ndarray.__new__                                            │
00:06:20 verbose #7664 > > │   File "cupy\_core\core.pyx", line 220, in                               │
00:06:20 verbose #7665 > > │ cupy._core.core._ndarray_base._init                                        │
00:06:20 verbose #7666 > > │   File "cupy\cuda\memory.pyx", line 738, in cupy.cuda.memory.alloc     │
00:06:20 verbose #7667 > > │   File "cupy\cuda\memory.pyx", line 1424, in                             │
00:06:20 verbose #7668 > > │ cupy.cuda.memory.MemoryPool.malloc                                         │
00:06:20 verbose #7669 > > │   File "cupy\cuda\memory.pyx", line 1444, in                             │
00:06:20 verbose #7670 > > │ cupy.cuda.memory.MemoryPool.malloc                                         │
00:06:20 verbose #7671 > > │   File "cupy\cuda\device.pyx", line 40, in cupy.cuda.device.get_device_id │
00:06:20 verbose #7672 > > │ [0m                                                                          │
00:06:20 verbose #7673 > > │   File "cupy_backends\cuda\api\runtime.pyx", line 202, in                │
00:06:20 verbose #7674 > > │ cupy_backends.cuda.api.runtime.getDevice                                   │
00:06:20 verbose #7675 > > │   File "cupy_backends\cuda\api\runtime.pyx", line 146, in                │
00:06:20 verbose #7676 > > │ cupy_backends.cuda.api.runtime.check_status                                │
00:06:20 verbose #7677 > > │ cupy_backends.cuda.api.runtime.CUDARuntimeError:                         │
00:06:20 verbose #7678 > > │ cudaErrorInsufficientDriver: CUDA driver version is insufficient for CUDA    │
00:06:20 verbose #7679 > > │ runtime version                                                            │
00:06:20 verbose #7680 > > │                                                                              │
00:06:20 verbose #7681 > > │ .rs output:                                                                  │
00:06:20 verbose #7682 > > │ assert_eq / actual: 9 / expected: 9                                          │
00:06:20 verbose #7683 > > │                                                                              │
00:06:20 verbose #7684 > > │ .ts output:                                                                  │
00:06:20 verbose #7685 > > │ assert_eq / actual: 9 / expected: 9                                          │
00:06:20 verbose #7686 > > │                                                                              │
00:06:20 verbose #7687 > > │ .py output:                                                                  │
00:06:20 verbose #7688 > > │ assert_eq / actual: 9 / expected: 9                                          │
00:06:20 verbose #7689 > > │                                                                              │
00:06:20 verbose #7690 > > │                                                                              │
00:06:20 verbose #7691 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:20 verbose #7692 > >
00:06:20 verbose #7693 > > ╭─[ 5.08s - stdout ]───────────────────────────────────────────────────────────╮
00:06:20 verbose #7694 > > │ .fsx output:                                                                 │
00:06:20 verbose #7695 > > │ assert_eq / actual: 9 / expected: 9                                          │
00:06:20 verbose #7696 > > │                                                                              │
00:06:20 verbose #7697 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:20 verbose #7698 > >
00:06:20 verbose #7699 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:20 verbose #7700 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:20 verbose #7701 > > │ ### try_pick                                                                 │
00:06:20 verbose #7702 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:20 verbose #7703 > >
00:06:20 verbose #7704 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:20 verbose #7705 > > inl try_pick forall t u. (fn : t -> option u) (array : a _ t) : option u =
00:06:20 verbose #7706 > >     (array, None)
00:06:20 verbose #7707 > >     ||> am.foldBack fun x acc =>
00:06:20 verbose #7708 > >         match acc with
00:06:20 verbose #7709 > >         | Some _ => acc
00:06:20 verbose #7710 > >         | None => x |> fn
00:06:20 verbose #7711 > 00:06:19   debug #449 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6721db423e696e46413a2449f4abe8d1f6aae4551c41435ee907b92f481afd17/main.spi
00:06:20 verbose #7712 > >
00:06:20 verbose #7713 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:20 verbose #7714 > > //// test
00:06:20 verbose #7715 > > ///! fsharp
00:06:20 verbose #7716 > > ///! cuda
00:06:20 verbose #7717 > > ////! rust // match &v23 { Spiral_builder::US0::US0_0(x) => x.clone(), _ =>
00:06:20 verbose #7718 > > unreachable!(), } == 5_i32
00:06:20 verbose #7719 > > ///! typescript
00:06:20 verbose #7720 > > ///! python
00:06:20 verbose #7721 > >
00:06:20 verbose #7722 > > 10
00:06:20 verbose #7723 > > |> init
00:06:20 verbose #7724 > > |> fun x => a x : _ int _
00:06:20 verbose #7725 > > |> try_pick (fun x => if x = 5i32 then Some x else None)
00:06:20 verbose #7726 > > |> _assert_eq (Some 5i32)
00:06:20 verbose #7727 > 00:06:20   debug #450 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ac72bc56d0712ecb7714713bc7bfd47b62bcbf7e6b57c121066b4bbe913517d0/main.spi
00:06:20 verbose #7728 > 00:06:20   debug #451 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/76d07cdacee08821b368cec2ed376105dfb9235e30dc47bd2eb417c1f5713295/main.spi
00:06:23 verbose #7729 > >
00:06:23 verbose #7730 > > ╭─[ 3.04s - return value ]─────────────────────────────────────────────────────╮
00:06:23 verbose #7731 > > │                                                                              │
00:06:23 verbose #7732 > > │ .py output (Cuda):                                                           │
00:06:23 verbose #7733 > > │ Traceback (most recent call last):                                     │
00:06:23 verbose #7734 > > │   File                                                                   │
00:06:23 verbose #7735 > > │ "C:\home\git\polyglot\target\spiral_Eval\packages\ac72bc56d0712ecb7714713bc7 │
00:06:23 verbose #7736 > > │ bfd47b62bcbf7e6b57c121066b4bbe913517d0\main.py", line 157, in <module>     │
00:06:23 verbose #7737 > > │     if __name__ == '__main__': result = main(); None if result is None   │
00:06:23 verbose #7738 > > │ else print(result)                                                         │
00:06:23 verbose #7739 > > │                                         ^^^^^^                         │
00:06:23 verbose #7740 > > │   File                                                                   │
00:06:23 verbose #7741 > > │ "C:\home\git\polyglot\target\spiral_Eval\packages\ac72bc56d0712ecb7714713bc7 │
00:06:23 verbose #7742 > > │ bfd47b62bcbf7e6b57c121066b4bbe913517d0\main.py", line 155, in main         │
00:06:23 verbose #7743 > > │     return method0()                                                   │
00:06:23 verbose #7744 > > │            ^^^^^^^^^                                                   │
00:06:23 verbose #7745 > > │   File                                                                   │
00:06:23 verbose #7746 > > │ "C:\home\git\polyglot\target\spiral_Eval\packages\ac72bc56d0712ecb7714713bc7 │
00:06:23 verbose #7747 > > │ bfd47b62bcbf7e6b57c121066b4bbe913517d0\main.py", line 83, in method0       │
00:06:23 verbose #7748 > > │     v0 = cp.empty(10,dtype=cp.int32)                                   │
00:06:23 verbose #7749 > > │          ^^^^^^^^^^^^^^^^^^^^^^^^^^^                                   │
00:06:23 verbose #7750 > > │   File                                                                   │
00:06:23 verbose #7751 > > │ "C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\cupy\_creation\b │
00:06:23 verbose #7752 > > │ asic.py", line 31, in empty                                                │
00:06:23 verbose #7753 > > │     return cupy.ndarray(shape, dtype, order=order)                     │
00:06:23 verbose #7754 > > │            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                     │
00:06:23 verbose #7755 > > │   File "cupy\_core\core.pyx", line 132, in                               │
00:06:23 verbose #7756 > > │ cupy._core.core.ndarray.__new__                                            │
00:06:23 verbose #7757 > > │   File "cupy\_core\core.pyx", line 220, in                               │
00:06:23 verbose #7758 > > │ cupy._core.core._ndarray_base._init                                        │
00:06:23 verbose #7759 > > │   File "cupy\cuda\memory.pyx", line 738, in cupy.cuda.memory.alloc     │
00:06:23 verbose #7760 > > │   File "cupy\cuda\memory.pyx", line 1424, in                             │
00:06:23 verbose #7761 > > │ cupy.cuda.memory.MemoryPool.malloc                                         │
00:06:23 verbose #7762 > > │   File "cupy\cuda\memory.pyx", line 1444, in                             │
00:06:23 verbose #7763 > > │ cupy.cuda.memory.MemoryPool.malloc                                         │
00:06:23 verbose #7764 > > │   File "cupy\cuda\device.pyx", line 40, in cupy.cuda.device.get_device_id │
00:06:23 verbose #7765 > > │ [0m                                                                          │
00:06:23 verbose #7766 > > │   File "cupy_backends\cuda\api\runtime.pyx", line 202, in                │
00:06:23 verbose #7767 > > │ cupy_backends.cuda.api.runtime.getDevice                                   │
00:06:23 verbose #7768 > > │   File "cupy_backends\cuda\api\runtime.pyx", line 146, in                │
00:06:23 verbose #7769 > > │ cupy_backends.cuda.api.runtime.check_status                                │
00:06:23 verbose #7770 > > │ cupy_backends.cuda.api.runtime.CUDARuntimeError:                         │
00:06:23 verbose #7771 > > │ cudaErrorInsufficientDriver: CUDA driver version is insufficient for CUDA    │
00:06:23 verbose #7772 > > │ runtime version                                                            │
00:06:23 verbose #7773 > > │                                                                              │
00:06:23 verbose #7774 > > │ .ts output:                                                                  │
00:06:23 verbose #7775 > > │ assert_eq / actual: US0_0 5 / expected: US0_0 5                              │
00:06:23 verbose #7776 > > │                                                                              │
00:06:23 verbose #7777 > > │ .py output:                                                                  │
00:06:23 verbose #7778 > > │ assert_eq / actual: US0_0 5 / expected: US0_0 5                              │
00:06:23 verbose #7779 > > │                                                                              │
00:06:23 verbose #7780 > > │                                                                              │
00:06:23 verbose #7781 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:23 verbose #7782 > >
00:06:23 verbose #7783 > > ╭─[ 3.05s - stdout ]───────────────────────────────────────────────────────────╮
00:06:23 verbose #7784 > > │ .fsx output:                                                                 │
00:06:23 verbose #7785 > > │ assert_eq / actual: US0_0 5 / expected: US0_0 5                              │
00:06:23 verbose #7786 > > │                                                                              │
00:06:23 verbose #7787 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:23 verbose #7788 > >
00:06:23 verbose #7789 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:23 verbose #7790 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:23 verbose #7791 > > │ ### indexed                                                                  │
00:06:23 verbose #7792 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:23 verbose #7793 > >
00:06:23 verbose #7794 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:23 verbose #7795 > > inl indexed forall t u {number}. (ar : array_base t) : array_base (u * t) =
00:06:23 verbose #7796 > >     ((0, a ;[[]]), (a ar : _ int _))
00:06:23 verbose #7797 > >     ||> am.fold fun (i, acc) x =>
00:06:23 verbose #7798 > >         i + 1, acc ++ a ;[[i, x]]
00:06:23 verbose #7799 > >     |> snd
00:06:23 verbose #7800 > >     |> fun (a x : _ int _) => x
00:06:23 verbose #7801 > 00:06:23   debug #452 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fdeab0e06f74dc502161d6561b3e8b58d4209bbde6fea92cbfe3b4c453acbd1a/main.spi
00:06:24 verbose #7802 > >
00:06:24 verbose #7803 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:24 verbose #7804 > > //// test
00:06:24 verbose #7805 > > ///! fsharp
00:06:24 verbose #7806 > > ////! cuda // Only stack allocated primitive types (i8,i16,i32,i64 and
00:06:24 verbose #7807 > > u8,u16,u32,u64 and f32,f64 and bool) are allowed in CuPy arrays.
00:06:24 verbose #7808 > > ///! rust
00:06:24 verbose #7809 > > ///! typescript
00:06:24 verbose #7810 > > ///! python
00:06:24 verbose #7811 > >
00:06:24 verbose #7812 > > am.init 3i32 ((*) 2)
00:06:24 verbose #7813 > > |> fun (a x : _ int _) => x
00:06:24 verbose #7814 > > |> indexed
00:06:24 verbose #7815 > > |> _assert_eq' ;[[0i32, 0; 1, 2; 2, 4]]
00:06:24 verbose #7816 > 00:06:23   debug #453 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c5094a922ee3f7f6166b8cba5ecab8cd92b0703e14927bf0fe78ce4a2f1a3bea/main.spi
00:06:27 verbose #7817 > >
00:06:27 verbose #7818 > > ╭─[ 3.31s - return value ]─────────────────────────────────────────────────────╮
00:06:27 verbose #7819 > > │ .rs output:                                                                  │
00:06:27 verbose #7820 > > │ assert_eq' / actual: Array(MutCell([(0, 0), (1, 2), (2, 4)])) / expected:    │
00:06:27 verbose #7821 > > │ Array(MutCell([(0, 0), (1, 2), (2, 4)]))                                     │
00:06:27 verbose #7822 > > │                                                                              │
00:06:27 verbose #7823 > > │ .ts output:                                                                  │
00:06:27 verbose #7824 > > │ assert_eq' / actual: 0,0,1,2,2,4 / expected: 0,0,1,2,2,4                     │
00:06:27 verbose #7825 > > │                                                                              │
00:06:27 verbose #7826 > > │ .py output:                                                                  │
00:06:27 verbose #7827 > > │ assert_eq' / actual: [(0, 0), (1, 2), (2, 4)] / expected: [(0, 0), (1, 2),   │
00:06:27 verbose #7828 > > │ (2, 4)]                                                                      │
00:06:27 verbose #7829 > > │                                                                              │
00:06:27 verbose #7830 > > │                                                                              │
00:06:27 verbose #7831 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:27 verbose #7832 > >
00:06:27 verbose #7833 > > ╭─[ 3.31s - stdout ]───────────────────────────────────────────────────────────╮
00:06:27 verbose #7834 > > │ .fsx output:                                                                 │
00:06:27 verbose #7835 > > │ assert_eq' / actual: [|struct (0, 0); struct (1, 2); struct (2, 4)|] /       │
00:06:27 verbose #7836 > > │ expected: [|struct (0, 0); struct (1, 2); struct (2, 4)|]                    │
00:06:27 verbose #7837 > > │                                                                              │
00:06:27 verbose #7838 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:27 verbose #7839 > >
00:06:27 verbose #7840 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:27 verbose #7841 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:27 verbose #7842 > > │ ### slice                                                                    │
00:06:27 verbose #7843 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:27 verbose #7844 > >
00:06:27 verbose #7845 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:27 verbose #7846 > > inl slice forall dim {int; number} el. from nearTo s : a dim el =
00:06:27 verbose #7847 > >     am.slice { from nearTo } s
00:06:27 verbose #7848 > 00:06:26   debug #454 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3bfed5682db77b8e428f0241df40de7e9bdcadf25003f1387385f601c1103831/main.spi
00:06:27 verbose #7849 > >
00:06:27 verbose #7850 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:27 verbose #7851 > > //// test
00:06:27 verbose #7852 > > ///! fsharp
00:06:27 verbose #7853 > > ///! cuda
00:06:27 verbose #7854 > > ///! rust
00:06:27 verbose #7855 > > ///! typescript
00:06:27 verbose #7856 > > ///! python
00:06:27 verbose #7857 > >
00:06:27 verbose #7858 > > inl x : _ i32 _ = a ;[[ 1i32; 2; 3 ]]
00:06:27 verbose #7859 > > x |> slice 0 0 |> _assert_eq (a ;[[]])
00:06:27 verbose #7860 > > x |> slice 0 1 |> _assert_eq (a ;[[ 1 ]])
00:06:27 verbose #7861 > > x |> slice 1 1 |> _assert_eq (a ;[[]])
00:06:27 verbose #7862 > > x |> slice 1 2 |> _assert_eq (a ;[[ 2 ]])
00:06:27 verbose #7863 > > x |> slice 2 2 |> _assert_eq (a ;[[]])
00:06:27 verbose #7864 > > x |> slice 0 2 |> _assert_eq (a ;[[ 1; 2 ]])
00:06:27 verbose #7865 > 00:06:27   debug #455 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a3eeb3975be92852b2cd691266e20562ba273e4b49ffc1ae597fa26a54b499db/main.spi
00:06:27 verbose #7866 > 00:06:27   debug #456 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/612f502c88f190f1f1e22cf3d9dd65317d27ea8c0d3890b4ad1727f36cbe22ff/main.spi
00:06:32 verbose #7867 > >
00:06:32 verbose #7868 > > ╭─[ 4.39s - return value ]─────────────────────────────────────────────────────╮
00:06:32 verbose #7869 > > │                                                                              │
00:06:32 verbose #7870 > > │ .py output (Cuda):                                                           │
00:06:32 verbose #7871 > > │ Traceback (most recent call last):                                     │
00:06:32 verbose #7872 > > │   File                                                                   │
00:06:32 verbose #7873 > > │ "C:\home\git\polyglot\target\spiral_Eval\packages\a3eeb3975be92852b2cd691266 │
00:06:32 verbose #7874 > > │ e20562ba273e4b49ffc1ae597fa26a54b499db\main.py", line 367, in <module>     │
00:06:32 verbose #7875 > > │     if __name__ == '__main__': result = main(); None if result is None   │
00:06:32 verbose #7876 > > │ else print(result)                                                         │
00:06:32 verbose #7877 > > │                                         ^^^^^^                         │
00:06:32 verbose #7878 > > │   File                                                                   │
00:06:32 verbose #7879 > > │ "C:\home\git\polyglot\target\spiral_Eval\packages\a3eeb3975be92852b2cd691266 │
00:06:32 verbose #7880 > > │ e20562ba273e4b49ffc1ae597fa26a54b499db\main.py", line 365, in main         │
00:06:32 verbose #7881 > > │     return method0()                                                   │
00:06:32 verbose #7882 > > │            ^^^^^^^^^                                                   │
00:06:32 verbose #7883 > > │   File                                                                   │
00:06:32 verbose #7884 > > │ "C:\home\git\polyglot\target\spiral_Eval\packages\a3eeb3975be92852b2cd691266 │
00:06:32 verbose #7885 > > │ e20562ba273e4b49ffc1ae597fa26a54b499db\main.py", line 108, in method0      │
00:06:32 verbose #7886 > > │     v0 = cp.array([1, 2, 3],dtype=cp.int32)                            │
00:06:32 verbose #7887 > > │          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                            │
00:06:32 verbose #7888 > > │   File                                                                   │
00:06:32 verbose #7889 > > │ "C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\cupy\_creation\f │
00:06:32 verbose #7890 > > │ rom_data.py", line 53, in array                                            │
00:06:32 verbose #7891 > > │     return _core.array(obj, dtype, copy, order, subok, ndmin, blocking)[  │
00:06:32 verbose #7892 > > │ 0m                                                                           │
00:06:32 verbose #7893 > > │            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^[  │
00:06:32 verbose #7894 > > │ 0m                                                                           │
00:06:32 verbose #7895 > > │   File "cupy\_core\core.pyx", line 2379, in cupy._core.core.array      │
00:06:32 verbose #7896 > > │   File "cupy\_core\core.pyx", line 2406, in cupy._core.core.array      │
00:06:32 verbose #7897 > > │   File "cupy\_core\core.pyx", line 2548, in                              │
00:06:32 verbose #7898 > > │ cupy._core.core._array_default                                             │
00:06:32 verbose #7899 > > │   File "cupy\_core\core.pyx", line 132, in                               │
00:06:32 verbose #7900 > > │ cupy._core.core.ndarray.__new__                                            │
00:06:32 verbose #7901 > > │   F...", line 1444, in cupy.cuda.memory.MemoryPool.malloc              │
00:06:32 verbose #7902 > > │   File "cupy\cuda\device.pyx", line 40, in cupy.cuda.device.get_device_id │
00:06:32 verbose #7903 > > │ [0m                                                                          │
00:06:32 verbose #7904 > > │   File "cupy_backends\cuda\api\runtime.pyx", line 202, in                │
00:06:32 verbose #7905 > > │ cupy_backends.cuda.api.runtime.getDevice                                   │
00:06:32 verbose #7906 > > │   File "cupy_backends\cuda\api\runtime.pyx", line 146, in                │
00:06:32 verbose #7907 > > │ cupy_backends.cuda.api.runtime.check_status                                │
00:06:32 verbose #7908 > > │ cupy_backends.cuda.api.runtime.CUDARuntimeError:                         │
00:06:32 verbose #7909 > > │ cudaErrorInsufficientDriver: CUDA driver version is insufficient for CUDA    │
00:06:32 verbose #7910 > > │ runtime version                                                            │
00:06:32 verbose #7911 > > │                                                                              │
00:06:32 verbose #7912 > > │                                                                              │
00:06:32 verbose #7913 > > │ .rs output:                                                                  │
00:06:32 verbose #7914 > > │ assert_eq / actual: Array(MutCell([])) / expected: Array(MutCell([]))        │
00:06:32 verbose #7915 > > │ assert_eq / actual: Array(MutCell([1])) / expected: Array(MutCell([1]))      │
00:06:32 verbose #7916 > > │ assert_eq / actual: Array(MutCell([])) / expected: Array(MutCell([]))        │
00:06:32 verbose #7917 > > │ assert_eq / actual: Array(MutCell([2])) / expected: Array(MutCell([2]))      │
00:06:32 verbose #7918 > > │ assert_eq / actual: Array(MutCell([])) / expected: Array(MutCell([]))        │
00:06:32 verbose #7919 > > │ assert_eq / actual: Array(MutCell([1, 2])) / expected: Array(MutCell([1,     │
00:06:32 verbose #7920 > > │ 2]))                                                                         │
00:06:32 verbose #7921 > > │                                                                              │
00:06:32 verbose #7922 > > │                                                                              │
00:06:32 verbose #7923 > > │ .ts output:                                                                  │
00:06:32 verbose #7924 > > │ assert_eq / actual:  / expected:                                             │
00:06:32 verbose #7925 > > │ assert_eq / actual: 1 / expected: 1                                          │
00:06:32 verbose #7926 > > │ assert_eq / actual:  / expected:                                             │
00:06:32 verbose #7927 > > │ assert_eq / actual: 2 / expected: 2                                          │
00:06:32 verbose #7928 > > │ assert_eq / actual:  / expected:                                             │
00:06:32 verbose #7929 > > │ assert_eq / actual: 1,2 / expected: 1,2                                      │
00:06:32 verbose #7930 > > │                                                                              │
00:06:32 verbose #7931 > > │                                                                              │
00:06:32 verbose #7932 > > │ .py output:                                                                  │
00:06:32 verbose #7933 > > │ assert_eq / actual: [] / expected: array('l')                                │
00:06:32 verbose #7934 > > │ assert_eq / actual: [1] / expected: array('l', [1])                          │
00:06:32 verbose #7935 > > │ assert_eq / actual: [] / expected: array('l')                                │
00:06:32 verbose #7936 > > │ assert_eq / actual: [2] / expected: array('l', [2])                          │
00:06:32 verbose #7937 > > │ assert_eq / actual: [] / expected: array('l')                                │
00:06:32 verbose #7938 > > │ assert_eq / actual: [1, 2] / expected: array('l', [1, 2])                    │
00:06:32 verbose #7939 > > │                                                                              │
00:06:32 verbose #7940 > > │                                                                              │
00:06:32 verbose #7941 > > │                                                                              │
00:06:32 verbose #7942 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:32 verbose #7943 > >
00:06:32 verbose #7944 > > ╭─[ 4.40s - stdout ]───────────────────────────────────────────────────────────╮
00:06:32 verbose #7945 > > │ .fsx output:                                                                 │
00:06:32 verbose #7946 > > │ assert_eq / actual: [||] / expected: [||]                                    │
00:06:32 verbose #7947 > > │ assert_eq / actual: [|1|] / expected: [|1|]                                  │
00:06:32 verbose #7948 > > │ assert_eq / actual: [||] / expected: [||]                                    │
00:06:32 verbose #7949 > > │ assert_eq / actual: [|2|] / expected: [|2|]                                  │
00:06:32 verbose #7950 > > │ assert_eq / actual: [||] / expected: [||]                                    │
00:06:32 verbose #7951 > > │ assert_eq / actual: [|1; 2|] / expected: [|1; 2|]                            │
00:06:32 verbose #7952 > > │                                                                              │
00:06:32 verbose #7953 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:32 verbose #7954 > >
00:06:32 verbose #7955 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:32 verbose #7956 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:32 verbose #7957 > > │ ### range                                                                    │
00:06:32 verbose #7958 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:32 verbose #7959 > >
00:06:32 verbose #7960 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:32 verbose #7961 > > union range dim =
00:06:32 verbose #7962 > >     | Start : dim
00:06:32 verbose #7963 > >     | End : dim -> dim
00:06:32 verbose #7964 > >
00:06:32 verbose #7965 > > inl range start end s =
00:06:32 verbose #7966 > >     inl start, end =
00:06:32 verbose #7967 > >         match start, end with
00:06:32 verbose #7968 > >         | Start start, End fn =>
00:06:32 verbose #7969 > >             start, s |> length |> conv |> fn
00:06:32 verbose #7970 > >         | End start_fn, End end_fn =>
00:06:32 verbose #7971 > >             inl len = s |> length |> conv
00:06:32 verbose #7972 > >             start_fn len, end_fn len
00:06:32 verbose #7973 > >     s |> slice (start |> unbox) (end |> unbox)
00:06:32 verbose #7974 > 00:06:31   debug #457 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e159a05158ca0d367b414c8ce5332d83b136ca0dc0ab1e3d0672ac028af9349e/main.spi
00:06:32 verbose #7975 > >
00:06:32 verbose #7976 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:32 verbose #7977 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:32 verbose #7978 > > │ ## rust                                                                      │
00:06:32 verbose #7979 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:32 verbose #7980 > >
00:06:32 verbose #7981 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:32 verbose #7982 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:32 verbose #7983 > > │ ### vec                                                                      │
00:06:32 verbose #7984 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:32 verbose #7985 > >
00:06:32 verbose #7986 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:32 verbose #7987 > > nominal vec t =
00:06:32 verbose #7988 > >     `(
00:06:32 verbose #7989 > >         backend_switch `(()) `({}) {
00:06:32 verbose #7990 > >             Fsharp =
00:06:32 verbose #7991 > >                 (fun () =>
00:06:32 verbose #7992 > >                     global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:06:32 verbose #7993 > > Fable.Core.Emit(\"Vec<$0>\")>]]\n#endif\ntype Vec<'T> = class end"
00:06:32 verbose #7994 > >                 ) : () -> ()
00:06:32 verbose #7995 > >         }
00:06:32 verbose #7996 > >         $'' : $'Vec<`t>'
00:06:32 verbose #7997 > >     )
00:06:32 verbose #7998 > 00:06:31   debug #458 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/500f6ffa8beb770c243236ad0ddf4d8e3a3699db0af612564a399eaac4712d63/main.spi
00:06:32 verbose #7999 > >
00:06:32 verbose #8000 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:32 verbose #8001 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:32 verbose #8002 > > │ ### from_vec                                                                 │
00:06:32 verbose #8003 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:32 verbose #8004 > >
00:06:32 verbose #8005 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:32 verbose #8006 > > inl from_vec forall dim el. (vec : vec el) : a dim el =
00:06:32 verbose #8007 > >     !\\(vec, $'"fable_library_rust::NativeArray_::array_from($0)"')
00:06:33 verbose #8008 > 00:06:32   debug #459 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0730b744c3653c964363fd5c7f9e24e1323664086416eef1e4c9a87e966ed7f8/main.spi
00:06:33 verbose #8009 > >
00:06:33 verbose #8010 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:33 verbose #8011 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:33 verbose #8012 > > │ ### to_vec                                                                   │
00:06:33 verbose #8013 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:33 verbose #8014 > >
00:06:33 verbose #8015 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:33 verbose #8016 > > inl to_vec forall t. (ab : array_base t) : vec t =
00:06:33 verbose #8017 > >     !\\(ab, $'"$0.to_vec()"')
00:06:33 verbose #8018 > 00:06:32   debug #460 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/55ef146f3ef3076d9157e80785950562e9a4ef1bc9365af7232fda8eb0228795/main.spi
00:06:33 verbose #8019 > >
00:06:33 verbose #8020 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:33 verbose #8021 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:33 verbose #8022 > > │ ### vec_push                                                                 │
00:06:33 verbose #8023 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:33 verbose #8024 > >
00:06:33 verbose #8025 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:33 verbose #8026 > > inl vec_push forall el. (el : el) (vec : vec el) : vec el =
00:06:33 verbose #8027 > >     inl el = join el
00:06:33 verbose #8028 > >     inl vec = join vec
00:06:33 verbose #8029 > >     (!\($'"true; let mut !vec = !vec"') : bool) |> ignore
00:06:33 verbose #8030 > >     // inl vec = vec |> rust.to_mut
00:06:33 verbose #8031 > >     (!\($'"true; !vec.push(!el)"') : bool) |> ignore
00:06:33 verbose #8032 > >     !\($'"!vec"')
00:06:33 verbose #8033 > 00:06:32   debug #461 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6c7e7ba4ddc3957c4d618c38d387ceeecb12a3b1a179f4d80456f070d2c9224c/main.spi
00:06:33 verbose #8034 > >
00:06:33 verbose #8035 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:33 verbose #8036 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:33 verbose #8037 > > │ ### vec_reverse                                                              │
00:06:33 verbose #8038 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:33 verbose #8039 > >
00:06:33 verbose #8040 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:33 verbose #8041 > > inl vec_reverse forall el. (vec : vec el) : vec el =
00:06:33 verbose #8042 > >     inl vec = join vec
00:06:33 verbose #8043 > >     (!\($'"true; let mut !vec = !vec"') : bool) |> ignore
00:06:33 verbose #8044 > >     (!\($'"true; !vec.reverse()"') : bool) |> ignore
00:06:33 verbose #8045 > >     !\($'"!vec"')
00:06:34 verbose #8046 > 00:06:33   debug #462 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5eb5a74ca08fe70ce510cb135a63040b0d0050b952e2b397678c3256dbb586d5/main.spi
00:06:34 verbose #8047 > >
00:06:34 verbose #8048 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:34 verbose #8049 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:34 verbose #8050 > > │ ### vec_retain                                                               │
00:06:34 verbose #8051 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:34 verbose #8052 > >
00:06:34 verbose #8053 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:34 verbose #8054 > > inl vec_retain forall el. (fn : el -> bool) (vec : vec el) : vec el =
00:06:34 verbose #8055 > >     inl vec = join vec
00:06:34 verbose #8056 > >     inl fn = join fn
00:06:34 verbose #8057 > >     (!\($'"true; let mut !vec = !vec"') : bool) |> ignore
00:06:34 verbose #8058 > >     // inl vec = vec |> rust.to_mut
00:06:34 verbose #8059 > >     (!\($'"true; !vec.retain(|x| !fn(x.clone()))"') : bool) |> ignore
00:06:34 verbose #8060 > >     !\($'"!vec"')
00:06:34 verbose #8061 > 00:06:33   debug #463 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2a206d946d7f7c187510d5bc0090b6eca2fdf6504ffd783123c430768b020bbb/main.spi
00:06:34 verbose #8062 > >
00:06:34 verbose #8063 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:34 verbose #8064 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:34 verbose #8065 > > │ ### vec_sort_by_key                                                          │
00:06:34 verbose #8066 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:34 verbose #8067 > >
00:06:34 verbose #8068 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:34 verbose #8069 > > inl vec_sort_by_key forall el t. (fn : el -> t) (vec : vec el) : vec el =
00:06:34 verbose #8070 > >     inl vec = join vec
00:06:34 verbose #8071 > >     inl fn = join fn
00:06:34 verbose #8072 > >     (!\($'"true; let mut !vec = !vec"') : bool) |> ignore
00:06:34 verbose #8073 > >     // inl vec = vec |> rust.to_mut
00:06:34 verbose #8074 > >     (!\($'"true; !vec.sort_by_key(|x| !fn(x.clone()))"') : bool) |> ignore
00:06:34 verbose #8075 > >     !\($'"!vec"')
00:06:34 verbose #8076 > 00:06:34   debug #464 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/40b33459bf28a2ad43550266835f339bd1362233c10d90490d11c8d0e828735c/main.spi
00:06:35 verbose #8077 > >
00:06:35 verbose #8078 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:35 verbose #8079 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:35 verbose #8080 > > │ ### vec_extend                                                               │
00:06:35 verbose #8081 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:35 verbose #8082 > >
00:06:35 verbose #8083 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:35 verbose #8084 > > inl vec_extend forall el. (el : vec el) (vec : vec el) : vec el =
00:06:35 verbose #8085 > >     inl el = join el
00:06:35 verbose #8086 > >     inl vec = join vec
00:06:35 verbose #8087 > >     (!\($'"true; let mut !vec = !vec"') : bool) |> ignore
00:06:35 verbose #8088 > >     // inl vec = vec |> rust.to_mut
00:06:35 verbose #8089 > >     (!\($'"true; !vec.extend(!el)"') : bool) |> ignore
00:06:35 verbose #8090 > >     !\($'"!vec"')
00:06:35 verbose #8091 > 00:06:34   debug #465 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9fe3a66191c419d4c668aed73644c11ed6583a61aac13417de379e1fadc11a45/main.spi
00:06:35 verbose #8092 > >
00:06:35 verbose #8093 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:35 verbose #8094 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:35 verbose #8095 > > │ ### vec_collect                                                              │
00:06:35 verbose #8096 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:35 verbose #8097 > >
00:06:35 verbose #8098 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:35 verbose #8099 > > inl vec_collect fn vec =
00:06:35 verbose #8100 > >     ((;[[]] |> to_vec), (vec |> from_vec : _ i32 _))
00:06:35 verbose #8101 > >     ||> am.fold fun acc x =>
00:06:35 verbose #8102 > >         acc |> vec_extend (fn x)
00:06:35 verbose #8103 > 00:06:34   debug #466 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e14c3dfcc40084575e90462d40c3a22056871bd5437dcdb25ff77b10c1cc8132/main.spi
00:06:35 verbose #8104 > >
00:06:35 verbose #8105 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:35 verbose #8106 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:35 verbose #8107 > > │ ### vec_collect_option                                                       │
00:06:35 verbose #8108 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:35 verbose #8109 > >
00:06:35 verbose #8110 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:35 verbose #8111 > > inl vec_collect_option vec =
00:06:35 verbose #8112 > >     ((;[[]] |> to_vec |> Ok), (vec |> from_vec : _ i32 _))
00:06:35 verbose #8113 > >     ||> am.fold fun acc x =>
00:06:35 verbose #8114 > >         x
00:06:35 verbose #8115 > >         |> resultm.unbox
00:06:35 verbose #8116 > >         |> fun x =>
00:06:35 verbose #8117 > >             match acc, x |> resultm.map optionm'.unbox with
00:06:35 verbose #8118 > >             | Ok acc, Ok (Some x) => acc |> vec_extend x |> Ok
00:06:35 verbose #8119 > >             | _, Error error => error |> Error
00:06:35 verbose #8120 > >             | _ => acc
00:06:35 verbose #8121 > 00:06:35   debug #467 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f1106b6e6749b318a341a2e60c9e58b42dddeb74ac2cde44d3269779f2766591/main.spi
00:06:36 verbose #8122 > >
00:06:36 verbose #8123 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:36 verbose #8124 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:36 verbose #8125 > > │ ### vec_collect_into                                                         │
00:06:36 verbose #8126 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:36 verbose #8127 > >
00:06:36 verbose #8128 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:36 verbose #8129 > > inl vec_collect_into forall (c : * -> * -> *) t e.
00:06:36 verbose #8130 > >     (x : vec (c t e))
00:06:36 verbose #8131 > >     : c (vec t) e
00:06:36 verbose #8132 > >     =
00:06:36 verbose #8133 > >     !\($'"!x.into_iter().collect()"')
00:06:36 verbose #8134 > 00:06:35   debug #468 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b091dbedc66f7bb1acbd7a9479871ae0e112537ad1c9fd8766f8154a6cfb1b05/main.spi
00:06:36 verbose #8135 > >
00:06:36 verbose #8136 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:36 verbose #8137 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:36 verbose #8138 > > │ ### vec_mapi                                                                 │
00:06:36 verbose #8139 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:36 verbose #8140 > >
00:06:36 verbose #8141 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:36 verbose #8142 > > inl vec_mapi forall dim t u. (fn : dim -> t -> u) (ar : vec t) : vec u =
00:06:36 verbose #8143 > >     inl fn = join fn
00:06:36 verbose #8144 > >     inl ar = join ar
00:06:36 verbose #8145 > >     !\($'"!ar.iter().enumerate().map(|(i, x)|
00:06:36 verbose #8146 > > !fn(i.try_into().unwrap())(x.clone())).collect::<Vec<_>>()"')
00:06:36 verbose #8147 > 00:06:35   debug #469 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2f4afcb91ab893266817a93cca12f02d41e72b3c616ebc17bf4011fce6bc53ca/main.spi
00:06:36 verbose #8148 > >
00:06:36 verbose #8149 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:36 verbose #8150 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:36 verbose #8151 > > │ ### vec_map                                                                  │
00:06:36 verbose #8152 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:36 verbose #8153 > >
00:06:36 verbose #8154 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:36 verbose #8155 > > inl vec_map forall t u. (fn : t -> u) (ar : vec t) : vec u =
00:06:36 verbose #8156 > >     (!\($'"true; let _result : Vec<_> = !ar.into_iter().map(|x| { //"') : bool)
00:06:36 verbose #8157 > > |> ignore
00:06:36 verbose #8158 > >     (!\\(fn !\($'"x"'), $'"true; $0 }).collect::<Vec<_>>()"') : bool) |> ignore
00:06:36 verbose #8159 > >     !\($'"_result"')
00:06:37 verbose #8160 > 00:06:36   debug #470 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f0a531a8b35add08a710679ef4657564bcebf7bbae74d52056230bd0e506eb0e/main.spi
00:06:37 verbose #8161 > >
00:06:37 verbose #8162 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:37 verbose #8163 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:37 verbose #8164 > > │ ### vec_map'''                                                               │
00:06:37 verbose #8165 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:37 verbose #8166 > >
00:06:37 verbose #8167 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:37 verbose #8168 > > inl vec_map''' forall t u. (fn : t -> u) (ar : vec t) : vec u =
00:06:37 verbose #8169 > >     (!\($'"true; let _result : Vec<_> = !ar.into_iter().map(|x| { //"') : bool)
00:06:37 verbose #8170 > > |> ignore
00:06:37 verbose #8171 > >     (!\\(fn !\($'"x"'), $'"true; $0 }}).collect::<Vec<_>>(); {{ //"') : bool) |>
00:06:37 verbose #8172 > > ignore
00:06:37 verbose #8173 > >     !\($'"_result"')
00:06:37 verbose #8174 > 00:06:36   debug #471 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9721f3295fd96d4564dff8949ca862ae98ec9b251f99b9f88c7d23c106f7d7b4/main.spi
00:06:37 verbose #8175 > >
00:06:37 verbose #8176 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:37 verbose #8177 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:37 verbose #8178 > > │ ### vec_map'                                                                 │
00:06:37 verbose #8179 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:37 verbose #8180 > >
00:06:37 verbose #8181 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:37 verbose #8182 > > inl vec_map' forall t u. (fn : t -> u) (ar : vec t) : vec u =
00:06:37 verbose #8183 > >     !\\((ar, fn), $'"$0.into_iter().map(|x|
00:06:37 verbose #8184 > > $1(x.clone())).collect::<Vec<_>>()"')
00:06:37 verbose #8185 > 00:06:37   debug #472 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/15cb4b63616d6313c2962482ab8f5027ddd228162ed1cc1137e8311ed4fcfab9/main.spi
00:06:37 verbose #8186 > >
00:06:37 verbose #8187 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:37 verbose #8188 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:37 verbose #8189 > > │ ### vec_fold'                                                                │
00:06:37 verbose #8190 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:37 verbose #8191 > >
00:06:37 verbose #8192 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:37 verbose #8193 > > inl vec_fold' forall t u. (fn : u -> t -> u) (init : u) (ar : vec t) : u =
00:06:37 verbose #8194 > >     (!\\(ar, $'"true; let _result = $0.into_iter().fold(!init, |acc, x| { //"')
00:06:37 verbose #8195 > > : bool) |> ignore
00:06:37 verbose #8196 > >     (!\\(fn !\($'"acc"') !\($'"x"'), $'"true; $0 })"') : bool) |> ignore
00:06:37 verbose #8197 > >     !\($'"_result"')
00:06:38 verbose #8198 > 00:06:37   debug #473 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d4e429a62f27e43540c84c22a8ddba80bc244fd7ef8176b8f788cd092fd4c985/main.spi
00:06:38 verbose #8199 > >
00:06:38 verbose #8200 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:38 verbose #8201 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:38 verbose #8202 > > │ ### vec_for_each                                                             │
00:06:38 verbose #8203 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:38 verbose #8204 > >
00:06:38 verbose #8205 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:38 verbose #8206 > > inl vec_for_each forall t. (fn : t -> ()) (ar : vec t) : () =
00:06:38 verbose #8207 > >     !\\((ar, fn), $'"$0.iter().for_each(|x| { $1(x.clone()); })"')
00:06:38 verbose #8208 > 00:06:37   debug #474 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9e752eaef3436c65012f6dad21e6fac4f5e4ab1996aae8156e862471b70192ed/main.spi
00:06:38 verbose #8209 > >
00:06:38 verbose #8210 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:38 verbose #8211 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:38 verbose #8212 > > │ ### vec_for_each'                                                            │
00:06:38 verbose #8213 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:38 verbose #8214 > >
00:06:38 verbose #8215 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:38 verbose #8216 > > inl vec_for_each' forall t. (fn : t -> ()) (ar : vec t) : () =
00:06:38 verbose #8217 > >     (!\($'"true; !ar.into_iter().for_each(|x| { //"') : bool) |> ignore
00:06:38 verbose #8218 > >     inl x = fn !\($'"x"')
00:06:38 verbose #8219 > >     (!\($'"true; !x }}); { //"') : bool) |> ignore
00:06:38 verbose #8220 > 00:06:38   debug #475 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5651f3f4be5a74e3c474cd8194fe30f74ee166109d6dadca4041bd6aab2250c2/main.spi
00:06:39 verbose #8221 > >
00:06:39 verbose #8222 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:39 verbose #8223 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:39 verbose #8224 > > │ ### vec_filter                                                               │
00:06:39 verbose #8225 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:39 verbose #8226 > >
00:06:39 verbose #8227 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:39 verbose #8228 > > inl vec_filter forall t. (fn : t -> bool) (ar : vec t) : vec t =
00:06:39 verbose #8229 > >     inl fn = join fn
00:06:39 verbose #8230 > >     inl ar = join ar
00:06:39 verbose #8231 > >     !\($'"!ar.into_iter().filter(|x|
00:06:39 verbose #8232 > > !fn(x.clone().clone())).collect::<Vec<_>>()"')
00:06:39 verbose #8233 > 00:06:38   debug #476 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b312d233552c6460a59e4cfb80e4a8c5f8e856b15603ebcf4f4f036e1452540f/main.spi
00:06:39 verbose #8234 > >
00:06:39 verbose #8235 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:39 verbose #8236 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:39 verbose #8237 > > │ ### vec_len                                                                  │
00:06:39 verbose #8238 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:39 verbose #8239 > >
00:06:39 verbose #8240 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:39 verbose #8241 > > inl vec_len forall t. (vec : vec t) : unativeint =
00:06:39 verbose #8242 > >     !\\(vec, $'"$0.len()"')
00:06:39 verbose #8243 > 00:06:38   debug #477 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f3fe65f3ea0076d1d5c5f7c9e5af6d30b1db30b881e217784b30922c6d9ccac5/main.spi
00:06:39 verbose #8244 > >
00:06:39 verbose #8245 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:39 verbose #8246 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:39 verbose #8247 > > │ ### vec_chunks                                                               │
00:06:39 verbose #8248 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:39 verbose #8249 > >
00:06:39 verbose #8250 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:39 verbose #8251 > > inl vec_chunks forall t. (n : i32) (vec : vec t) : vec (vec t) =
00:06:39 verbose #8252 > >     !\\(vec, $'"$0.chunks(!n).map(|x| x.into_iter().map(|x|
00:06:39 verbose #8253 > > x.clone()).collect::<Vec<_>>()).collect::<Vec<_>>()"')
00:06:40 verbose #8254 > 00:06:39   debug #478 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b5423e35a93f37eb6630c61627e33ab0992fa0c777446afbed1c9223bb8c01f5/main.spi
00:06:40 verbose #8255 > >
00:06:40 verbose #8256 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:40 verbose #8257 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:40 verbose #8258 > > │ ### slice                                                                    │
00:06:40 verbose #8259 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:40 verbose #8260 > >
00:06:40 verbose #8261 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:40 verbose #8262 > > nominal slice t =
00:06:40 verbose #8263 > >     `(
00:06:40 verbose #8264 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:06:40 verbose #8265 > > Fable.Core.Emit(\"[[$0]]\")>]]\n#endif\ntype Slice<'T> = class end"
00:06:40 verbose #8266 > >         $'' : $'Slice<`t>'
00:06:40 verbose #8267 > >     )
00:06:40 verbose #8268 > 00:06:39   debug #479 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8e17bfd202884047005b478eb17392604ec2810d2dc277a82b21159fdc06bace/main.spi
00:06:40 verbose #8269 > >
00:06:40 verbose #8270 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:40 verbose #8271 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:40 verbose #8272 > > │ ### slice'                                                                   │
00:06:40 verbose #8273 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:40 verbose #8274 > >
00:06:40 verbose #8275 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:40 verbose #8276 > > nominal slice' el dim =
00:06:40 verbose #8277 > >     `(
00:06:40 verbose #8278 > >         backend_switch `(()) `({}) {
00:06:40 verbose #8279 > >             Fsharp =
00:06:40 verbose #8280 > >                 (fun () =>
00:06:40 verbose #8281 > >                     global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:06:40 verbose #8282 > > Fable.Core.Emit(\"_\")>]]\n#endif\ntype Slice'<'T> = class end"
00:06:40 verbose #8283 > >                 ) : () -> ()
00:06:40 verbose #8284 > >         }
00:06:40 verbose #8285 > >         $'' : $'Slice\'<`el>'
00:06:40 verbose #8286 > >     )
00:06:40 verbose #8287 > 00:06:39   debug #480 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2fd365705811bb90729ba9b6d78e29cb829aece020f5c902458328d51f01a6d2/main.spi
00:06:40 verbose #8288 > >
00:06:40 verbose #8289 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:40 verbose #8290 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:40 verbose #8291 > > │ ### slice_singleton                                                          │
00:06:40 verbose #8292 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:40 verbose #8293 > >
00:06:40 verbose #8294 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:40 verbose #8295 > > inl slice_singleton forall dim el. (x : option el) : slice' el dim =
00:06:40 verbose #8296 > >     match x with
00:06:40 verbose #8297 > >     | Some x => !\($'"[[!x]]"')
00:06:40 verbose #8298 > >     | None =>
00:06:40 verbose #8299 > >         !\($'"[[\\\"\\\".to_string()]]"') : slice' el dim
00:06:40 verbose #8300 > >             // emit_expr `(()) `(slice' el dim) () ($'"[[@dim]]"' : string) :
00:06:40 verbose #8301 > > slice' el 10
00:06:40 verbose #8302 > >             // !\( : string) : slice' el i32 // !\($'"[[]]"')
00:06:41 verbose #8303 > 00:06:40   debug #481 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/bbb6b9bbc98a356e2befec75349db0a085e0875e42c095446e86712b187a5318/main.spi
00:06:41 verbose #8304 > >
00:06:41 verbose #8305 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:41 verbose #8306 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:41 verbose #8307 > > │ ### slice_length                                                             │
00:06:41 verbose #8308 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:41 verbose #8309 > >
00:06:41 verbose #8310 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:41 verbose #8311 > > inl slice_length forall t dim. (x : slice' t dim) : unativeint =
00:06:41 verbose #8312 > >     !\($'"!x.len()"')
00:06:41 verbose #8313 > 00:06:40   debug #482 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/cfd0b635ea4ab9edd7b6a4ae80b042f6e70883c81cc6f03928981fd5fb67fc13/main.spi
00:06:41 verbose #8314 > >
00:06:41 verbose #8315 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:41 verbose #8316 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:41 verbose #8317 > > │ ### slice_range                                                              │
00:06:41 verbose #8318 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:41 verbose #8319 > >
00:06:41 verbose #8320 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:41 verbose #8321 > > inl slice_range forall t dim. (start : range t) (end : range t) (s : slice' t
00:06:41 verbose #8322 > > dim) : rust.ref (slice' t dim) =
00:06:41 verbose #8323 > >     inl len = s |> slice_length
00:06:41 verbose #8324 > >     inl start, (end : unativeint) =
00:06:41 verbose #8325 > >         match start, end with
00:06:41 verbose #8326 > >         | Start start, End fn => start, len |> convert |> fn |> convert
00:06:41 verbose #8327 > >         | End start_fn, End end_fn => len |> convert |> start_fn, len |> convert
00:06:41 verbose #8328 > > |> end_fn |> convert
00:06:41 verbose #8329 > >     match start, end with
00:06:41 verbose #8330 > >     | start, end when unbox end =. len => !\($'"&!s[[!start..]]"')
00:06:41 verbose #8331 > >     | start, end => !\\((start, end), $'"&!s[[$0..$1]]"')
00:06:41 verbose #8332 > 00:06:41   debug #483 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/694478fe0193c7210af1f373fffceecf0617db3fba395f3e79bd4d9d3bb45155/main.spi
00:06:42 verbose #8333 > >
00:06:42 verbose #8334 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:42 verbose #8335 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:42 verbose #8336 > > │ ### new_slice                                                                │
00:06:42 verbose #8337 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:42 verbose #8338 > >
00:06:42 verbose #8339 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:42 verbose #8340 > > inl new_slice forall el dim. (el : el) : slice' el dim =
00:06:42 verbose #8341 > >     !\\(el, $'"[[$0; @dim]]"')
00:06:42 verbose #8342 > 00:06:41   debug #484 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0cecd4f9970077fc9bdcb89aa7ffb5dc2693223408f5cfd45554242bdc1d3438/main.spi
00:06:42 verbose #8343 > >
00:06:42 verbose #8344 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:42 verbose #8345 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:42 verbose #8346 > > │ ### as_slice                                                                 │
00:06:42 verbose #8347 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:42 verbose #8348 > >
00:06:42 verbose #8349 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:42 verbose #8350 > > inl as_slice forall t. (x : array_base t) : rust.ref (slice t) =
00:06:42 verbose #8351 > >     inl x = x |> to_vec
00:06:42 verbose #8352 > >     !\($'"!x.as_slice()"')
00:06:42 verbose #8353 > 00:06:41   debug #485 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/06d6651625d43abfdd1eb6521c5aaf6ed7ee9d4de292a71481bac0f4c394b4e4/main.spi
00:06:42 verbose #8354 > >
00:06:42 verbose #8355 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:42 verbose #8356 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:42 verbose #8357 > > │ ### slice_to_vec                                                             │
00:06:42 verbose #8358 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:42 verbose #8359 > >
00:06:42 verbose #8360 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:42 verbose #8361 > > inl slice_to_vec forall t. (slice : rust.ref (slice t)) : vec t =
00:06:42 verbose #8362 > >     !\\(slice, $'"$0.iter().map(|x| *x).collect::<Vec<_>>()"')
00:06:43 verbose #8363 > 00:06:42   debug #486 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4cb109afde22477d9c5643ddf9422d98cd97fad4b02b3b476a265efe8e096068/main.spi
00:06:43 verbose #8364 > >
00:06:43 verbose #8365 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:43 verbose #8366 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:43 verbose #8367 > > │ ### any                                                                      │
00:06:43 verbose #8368 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:43 verbose #8369 > >
00:06:43 verbose #8370 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:43 verbose #8371 > > inl any forall t. (fn : t -> bool) (source : array_base t) : bool =
00:06:43 verbose #8372 > >     !\($'"!source.any(|x| !fn(x))"')
00:06:43 verbose #8373 > 00:06:42   debug #487 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a2ec8b064297f81c35818e52c71d0f1ef3d748c49d5db50da0aad9471c780a33/main.spi
00:06:43 verbose #8374 > >
00:06:43 verbose #8375 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:43 verbose #8376 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:43 verbose #8377 > > │ ### iter_collect vec                                                         │
00:06:43 verbose #8378 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:43 verbose #8379 > >
00:06:43 verbose #8380 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:43 verbose #8381 > > instance iter_collect vec = fun (iter : into_iterator u) =>
00:06:43 verbose #8382 > >     !\($'"!iter.collect::<Vec<_>>()"')
00:06:43 verbose #8383 > >
00:06:43 verbose #8384 > > instance iter_collect'' vec = fun (iter : into_iterator (t (u v))) =>
00:06:43 verbose #8385 > >     !\($'"!iter.collect::<Vec<_>>()"')
00:06:43 verbose #8386 > 00:06:43   debug #488 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/883e17b330a527574cbe9a8c13e26d5470e42f078b405527ae551fb14301f61a/main.spi
00:06:44 verbose #8387 > >
00:06:44 verbose #8388 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:44 verbose #8389 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:44 verbose #8390 > > │ ### new_vec                                                                  │
00:06:44 verbose #8391 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:44 verbose #8392 > >
00:06:44 verbose #8393 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:44 verbose #8394 > > inl new_vec forall t. (items : list t) : vec t =
00:06:44 verbose #8395 > >     inl items =
00:06:44 verbose #8396 > >         (items, ("", 0i32))
00:06:44 verbose #8397 > >         ||> listm.foldBack fun (x : t) (acc, i) =>
00:06:44 verbose #8398 > >             inl x = join x
00:06:44 verbose #8399 > >             $'"!x"' +. (if i = 0 then "" else ", ") +. acc, i + 1
00:06:44 verbose #8400 > >         |> fst
00:06:44 verbose #8401 > >     !\($'"vec\![[" + !items + "]]"')
00:06:44 verbose #8402 > 00:06:43   debug #489 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d172e375eb82609d3a6c7a28797141195ad8611b1d384bc5cf59830017c89747/main.spi
00:06:44 verbose #8403 > >
00:06:44 verbose #8404 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:44 verbose #8405 > > //// test
00:06:44 verbose #8406 > > ///! rust
00:06:44 verbose #8407 > >
00:06:44 verbose #8408 > > [[ 0i32; 1 ]]
00:06:44 verbose #8409 > > |> new_vec
00:06:44 verbose #8410 > > |> sm'.format_debug'
00:06:44 verbose #8411 > > |> sm'.from_std_string
00:06:44 verbose #8412 > > |> _assert_eq "[[0, 1]]"
00:06:44 verbose #8413 > 00:06:43   debug #490 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ff2bd9e04aea49a08c4367d0dfbc515c1003e643f8397bcfa248bb33806f6d51/main.spi
00:06:49 verbose #8414 > >
00:06:49 verbose #8415 > > ╭─[ 5.11s - return value ]─────────────────────────────────────────────────────╮
00:06:49 verbose #8416 > > │ assert_eq / actual: "[0, 1]" / expected: "[0, 1]"                            │
00:06:49 verbose #8417 > > │                                                                              │
00:06:49 verbose #8418 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:49 verbose #8419 > >
00:06:49 verbose #8420 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:49 verbose #8421 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:49 verbose #8422 > > │ ## fsharp                                                                    │
00:06:49 verbose #8423 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:49 verbose #8424 > >
00:06:49 verbose #8425 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:49 verbose #8426 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:49 verbose #8427 > > │ ### average                                                                  │
00:06:49 verbose #8428 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:49 verbose #8429 > >
00:06:49 verbose #8430 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:49 verbose #8431 > > inl average forall el {number}. (a : a _ el) : el =
00:06:49 verbose #8432 > >     $'!a |> Array.average'
00:06:49 verbose #8433 > 00:06:48   debug #491 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2a609fcc667ca77220ac0bc488c32d76c3eb977c1a02ecdcd19a33d7065e2545/main.spi
00:06:49 verbose #8434 > >
00:06:49 verbose #8435 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:49 verbose #8436 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:49 verbose #8437 > > │ ### distinct                                                                 │
00:06:49 verbose #8438 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:49 verbose #8439 > >
00:06:49 verbose #8440 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:49 verbose #8441 > > inl distinct forall dim el. (a : a dim el) : a dim el =
00:06:49 verbose #8442 > >     $'!a |> Array.distinct'
00:06:50 verbose #8443 > 00:06:49   debug #492 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/09a439d46d4885260c4f60b3e1dbaf92a0057c2b0f3769625829744a27bfe5ee/main.spi
00:06:50 verbose #8444 > >
00:06:50 verbose #8445 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:50 verbose #8446 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:50 verbose #8447 > > │ ### skip                                                                     │
00:06:50 verbose #8448 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:50 verbose #8449 > >
00:06:50 verbose #8450 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:50 verbose #8451 > > inl skip forall dim el. (n : dim) (a : a dim el) : a dim el =
00:06:50 verbose #8452 > >     $'!a |> Array.skip !n '
00:06:50 verbose #8453 > 00:06:49   debug #493 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9be0e50bd6b9d3e1d04b5b8bb00324e957e1514ba0eec1dc764ab41e41203f79/main.spi
00:06:50 verbose #8454 > >
00:06:50 verbose #8455 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:50 verbose #8456 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:50 verbose #8457 > > │ ### skip_while                                                               │
00:06:50 verbose #8458 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:50 verbose #8459 > >
00:06:50 verbose #8460 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:50 verbose #8461 > > inl skip_while forall dim el. (fn : el -> bool) (a : a dim el) : a dim el =
00:06:50 verbose #8462 > >     $'!a |> Array.skipWhile !fn '
00:06:51 verbose #8463 > 00:06:50   debug #494 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6efd089df8647610c136046b3d622b382b9fee1fb485d0c0901b2f76162cb517/main.spi
00:06:51 verbose #8464 > >
00:06:51 verbose #8465 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:51 verbose #8466 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:51 verbose #8467 > > │ ### to_list'                                                                 │
00:06:51 verbose #8468 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:51 verbose #8469 > >
00:06:51 verbose #8470 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:51 verbose #8471 > > inl to_list' forall dim t. (items : a dim t) : listm'.list' t =
00:06:51 verbose #8472 > >     $'!items |> Array.toList'
00:06:51 verbose #8473 > 00:06:50   debug #495 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8bd4b75835cc77f0b92bee6a52698eb0352c78ada58f5ae3405a72d2bacccaba/main.spi
00:06:51 verbose #8474 > >
00:06:51 verbose #8475 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:51 verbose #8476 > > //// test
00:06:51 verbose #8477 > > ///! fsharp
00:06:51 verbose #8478 > > ////! cuda
00:06:51 verbose #8479 > > ///! rust
00:06:51 verbose #8480 > > ///! typescript
00:06:51 verbose #8481 > > ///! python
00:06:51 verbose #8482 > >
00:06:51 verbose #8483 > > a' ;[[ -3i32; 6 ]]
00:06:51 verbose #8484 > > |> to_list'
00:06:51 verbose #8485 > > |> listm'.unbox
00:06:51 verbose #8486 > > |> _assert_eq [[ -3; 6 ]]
00:06:51 verbose #8487 > 00:06:51   debug #496 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2fae1ea1ae25d5c0ea76a990cbefa323c4d1fed90ba5ce86d3b93752d2cec00b/main.spi
00:06:55 verbose #8488 > >
00:06:55 verbose #8489 > > ╭─[ 3.53s - return value ]─────────────────────────────────────────────────────╮
00:06:55 verbose #8490 > > │ .rs output:                                                                  │
00:06:55 verbose #8491 > > │ assert_eq / actual: UH0_1(-3, UH0_1(6, UH0_0)) / expected: UH0_1(-3,         │
00:06:55 verbose #8492 > > │ UH0_1(6, UH0_0))                                                             │
00:06:55 verbose #8493 > > │                                                                              │
00:06:55 verbose #8494 > > │ .ts output:                                                                  │
00:06:55 verbose #8495 > > │ assert_eq / actual: UH0_1 (-3, UH0_1 (6, UH0_0)) / expected: UH0_1 (-3,      │
00:06:55 verbose #8496 > > │ UH0_1 (6, UH0_0))                                                            │
00:06:55 verbose #8497 > > │                                                                              │
00:06:55 verbose #8498 > > │ .py output:                                                                  │
00:06:55 verbose #8499 > > │ assert_eq / actual: UH0_1 (-3, UH0_1 (6, UH0_0)) / expected: UH0_1 (-3,      │
00:06:55 verbose #8500 > > │ UH0_1 (6, UH0_0))                                                            │
00:06:55 verbose #8501 > > │                                                                              │
00:06:55 verbose #8502 > > │                                                                              │
00:06:55 verbose #8503 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:55 verbose #8504 > >
00:06:55 verbose #8505 > > ╭─[ 3.53s - stdout ]───────────────────────────────────────────────────────────╮
00:06:55 verbose #8506 > > │ .fsx output:                                                                 │
00:06:55 verbose #8507 > > │ assert_eq / actual: UH0_1 (-3, UH0_1 (6, UH0_0)) / expected: UH0_1 (-3,      │
00:06:55 verbose #8508 > > │ UH0_1 (6, UH0_0))                                                            │
00:06:55 verbose #8509 > > │                                                                              │
00:06:55 verbose #8510 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:55 verbose #8511 > >
00:06:55 verbose #8512 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:55 verbose #8513 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:55 verbose #8514 > > │ ### parallel_map                                                             │
00:06:55 verbose #8515 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:55 verbose #8516 > >
00:06:55 verbose #8517 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:55 verbose #8518 > > inl parallel_map forall dim el el'. (fn : el -> el') (a : a dim el) : a dim el'
00:06:55 verbose #8519 > > =
00:06:55 verbose #8520 > >     $'!a |> Array.Parallel.map !fn '
00:06:55 verbose #8521 > 00:06:54   debug #497 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/47830da46998d4844cf8ba0fe46ad16e94a5ff74ff6e2ac0151d633351fe502a/main.spi
00:06:55 verbose #8522 > >
00:06:55 verbose #8523 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:55 verbose #8524 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:55 verbose #8525 > > │ ### map'                                                                     │
00:06:55 verbose #8526 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:55 verbose #8527 > >
00:06:55 verbose #8528 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:55 verbose #8529 > > inl map' forall dim el el'. (fn : el -> el') (a : a dim el) : a dim el' =
00:06:55 verbose #8530 > >     $'!a |> Array.map !fn '
00:06:55 verbose #8531 > 00:06:54   debug #498 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/90dedd0b7fd4e1872049330d483058c437a3fc78556d6256bc44417897a0b07d/main.spi
00:06:55 verbose #8532 > >
00:06:55 verbose #8533 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:55 verbose #8534 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:55 verbose #8535 > > │ ### sort_by                                                                  │
00:06:55 verbose #8536 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:55 verbose #8537 > >
00:06:55 verbose #8538 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:55 verbose #8539 > > inl sort_by forall dim el. (fn : el -> _) (a : a dim el) : a dim el =
00:06:55 verbose #8540 > >     $'!a |> Array.sortBy !fn '
00:06:56 verbose #8541 > 00:06:55   debug #499 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/48dfa13ef33b3ea45f6f3dfb9b913dcb1f54c38f1e7b8b32afa2453a45eb5475/main.spi
00:06:56 verbose #8542 > >
00:06:56 verbose #8543 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:56 verbose #8544 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:56 verbose #8545 > > │ ### sort                                                                     │
00:06:56 verbose #8546 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:56 verbose #8547 > >
00:06:56 verbose #8548 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:56 verbose #8549 > > inl sort forall dim el. (a : a dim el) : a dim el =
00:06:56 verbose #8550 > >     $'!a |> Array.sort'
00:06:56 verbose #8551 > 00:06:55   debug #500 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d7fb554bd7ffd62e1ab3ebfa22497a0a1c6a9a93171c1b8ad01cd3c824f3e982/main.spi
00:06:56 verbose #8552 > >
00:06:56 verbose #8553 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:56 verbose #8554 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:56 verbose #8555 > > │ ### sort_descending                                                          │
00:06:56 verbose #8556 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:56 verbose #8557 > >
00:06:56 verbose #8558 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:56 verbose #8559 > > inl sort_descending forall dim el. (a : a dim el) : a dim el =
00:06:56 verbose #8560 > >     $'!a |> Array.sortDescending'
00:06:56 verbose #8561 > 00:06:56   debug #501 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ef8dcca7c47890168e3d29cbdb71ab789518c0bc11140a9683f5156501d50756/main.spi
00:06:57 verbose #8562 > >
00:06:57 verbose #8563 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:57 verbose #8564 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:57 verbose #8565 > > │ ### transpose                                                                │
00:06:57 verbose #8566 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:57 verbose #8567 > >
00:06:57 verbose #8568 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:57 verbose #8569 > > inl transpose forall el. (a : array_base (array_base el)) : array_base
00:06:57 verbose #8570 > > (array_base el) =
00:06:57 verbose #8571 > >     $'!a |> Array.transpose'
00:06:57 verbose #8572 > 00:06:56   debug #502 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ba8b3563c37846673f3c56cf7ae0409b0372d5e9d9def7912b2b01d9f70e3d2a/main.spi
00:06:57 verbose #8573 > >
00:06:57 verbose #8574 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:57 verbose #8575 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:57 verbose #8576 > > │ ### try_item                                                                 │
00:06:57 verbose #8577 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:57 verbose #8578 > >
00:06:57 verbose #8579 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:57 verbose #8580 > > inl try_item forall dim el. (i : i32) (a : a dim el) : option el =
00:06:57 verbose #8581 > >     $'!a |> Array.tryItem !i ' |> optionm'.unbox
00:06:57 verbose #8582 > 00:06:56   debug #503 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/03affc8fb46ba93d69ec8ed6325d8b2a08702b1b47d2f10f34439a7427bb6c55/main.spi
00:06:58 verbose #8583 > 00:01:12 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 81139 }
00:06:58 verbose #8584 > 00:01:12   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/spiral/am'.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/am'.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:07:00 verbose #8585 > 00:01:14 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/am'.dib.ipynb to html
00:07:00 verbose #8586 > 00:01:14 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:07:00 verbose #8587 > 00:01:14 verbose #7 !   validate(nb)
00:07:02 verbose #8588 > 00:01:17 verbose #8 ! [NbConvertApp] Writing 455472 bytes to c:\home\git\polyglot\lib\spiral\am'.dib.html
00:07:03 verbose #8589 > 00:01:17 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 637 }
00:07:03 verbose #8590 > 00:01:17   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 637 }
00:07:03 verbose #8591 > 00:01:17   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/am''.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/am''.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:07:04 verbose #8592 > 00:01:18 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:07:04 verbose #8593 > 00:01:18   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:07:05 verbose #8594 > 00:01:19   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 81835 }
00:07:05   debug #8595 runtime.execute_with_options_async / { exit_code = 0; output_length = 87197 }
00:07:05   debug #10 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path am'.dib --retries 3
00:07:05   debug #8596 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path crypto.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:07:05 verbose #8597 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "crypto.dib", "--retries", "3"])) }
00:07:05 verbose #8598 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/spiral/crypto.dib", "--output-path", "c:/home/git/polyglot/lib/spiral/crypto.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/crypto.dib" --output-path "c:/home/git/polyglot/lib/spiral/crypto.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:07:07 verbose #8599 > >
00:07:07 verbose #8600 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:07 verbose #8601 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:07 verbose #8602 > > │ # crypto                                                                     │
00:07:07 verbose #8603 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:11 verbose #8604 > >
00:07:11 verbose #8605 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:11 verbose #8606 > > open rust_operators
00:07:12 verbose #8607 > 00:07:11   debug #504 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0d9bd8e5bb71a8e1d983506a46e54fb8c8e6cf2d0bd973135d4cdd580c5f6d39/main.spi
00:07:13 verbose #8608 > >
00:07:13 verbose #8609 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:13 verbose #8610 > > //// test
00:07:13 verbose #8611 > >
00:07:13 verbose #8612 > > open testing
00:07:13 verbose #8613 > > open file_system_operators
00:07:13 verbose #8614 > 00:07:12   debug #505 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4cdffa9020b44b13dcbfd5412142b3310ae394b1ea469f0d94b9677ab39d2e3f/main.spi
00:07:13 verbose #8615 > >
00:07:13 verbose #8616 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:13 verbose #8617 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:13 verbose #8618 > > │ ## fsharp                                                                    │
00:07:13 verbose #8619 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:13 verbose #8620 > >
00:07:13 verbose #8621 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:13 verbose #8622 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:13 verbose #8623 > > │ ### sha256                                                                   │
00:07:13 verbose #8624 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:13 verbose #8625 > >
00:07:13 verbose #8626 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:13 verbose #8627 > > nominal sha256 = $'System.Security.Cryptography.SHA256'
00:07:13 verbose #8628 > >
00:07:13 verbose #8629 > > inl sha256 () : sha256 =
00:07:13 verbose #8630 > >     $'`sha256.Create' ()
00:07:13 verbose #8631 > 00:07:12   debug #506 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/49c74461b0e146bf05fcda09ae55d4a2cc1a3e4783627025b3bd298909f8f9ce/main.spi
00:07:13 verbose #8632 > >
00:07:13 verbose #8633 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:13 verbose #8634 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:13 verbose #8635 > > │ ### sha256_compute_hash                                                      │
00:07:13 verbose #8636 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:13 verbose #8637 > >
00:07:13 verbose #8638 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:13 verbose #8639 > > inl sha256_compute_hash (x : sha256) (data : a i32 u8) : a i32 u8 =
00:07:13 verbose #8640 > >     data |> $'!x.ComputeHash'
00:07:14 verbose #8641 > 00:07:13   debug #507 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b5f81573d924a1c88cff234ae1f1be9eef5ee969a530c23458656d0475624c7e/main.spi
00:07:14 verbose #8642 > >
00:07:14 verbose #8643 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:14 verbose #8644 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:14 verbose #8645 > > │ ## rust                                                                      │
00:07:14 verbose #8646 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:14 verbose #8647 > >
00:07:14 verbose #8648 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:14 verbose #8649 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:14 verbose #8650 > > │ ### get_file_hash'                                                           │
00:07:14 verbose #8651 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:14 verbose #8652 > >
00:07:14 verbose #8653 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:14 verbose #8654 > > inl get_file_hash' (path : string) : result string string =
00:07:14 verbose #8655 > >     inl path = path |> file_system.normalize_path
00:07:14 verbose #8656 > >     inl exit_code, result =
00:07:14 verbose #8657 > >         runtime.execution_options fun x => { x with
00:07:14 verbose #8658 > >             command = $'$"pwsh -c \\\"(Get-FileHash \'{!path}\' -Algorithm
00:07:14 verbose #8659 > > SHA256).Hash\\\""'
00:07:14 verbose #8660 > >         }
00:07:14 verbose #8661 > >         |> runtime.execute_with_options
00:07:14 verbose #8662 > >     if exit_code = 0
00:07:14 verbose #8663 > >     then result |> sm'.to_lower |> Ok
00:07:14 verbose #8664 > >     else result |> Error
00:07:14 verbose #8665 > 00:07:13   debug #508 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2ca698f5b3d5657299a54283933505ca8ebbb7681b21c736d7bf378f3f11abdc/main.spi
00:07:14 verbose #8666 > >
00:07:14 verbose #8667 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:14 verbose #8668 > > //// test
00:07:14 verbose #8669 > >
00:07:14 verbose #8670 > > inl file_name = "test.txt"
00:07:14 verbose #8671 > > inl text = "\n"
00:07:14 verbose #8672 > >
00:07:14 verbose #8673 > > inl temp_dir, disposable =
00:07:14 verbose #8674 > >     (file_name, text)
00:07:14 verbose #8675 > >     |> sm'.format_debug
00:07:14 verbose #8676 > >     |> crypto.hash_text
00:07:14 verbose #8677 > >     |> file_system.create_temp_dir'
00:07:14 verbose #8678 > > disposable |> use |> ignore
00:07:14 verbose #8679 > > inl path = temp_dir </> file_name
00:07:14 verbose #8680 > > text |> file_system.write_all_text_async path |> async.run_synchronously
00:07:14 verbose #8681 > > path
00:07:14 verbose #8682 > > |> get_file_hash'
00:07:14 verbose #8683 > > |> resultm.get
00:07:14 verbose #8684 > > |> _assert_eq "01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b"
00:07:14 verbose #8685 > 00:07:13   debug #509 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f4e08475f63ba32e96029cdcf3158a2d3e4a041f2d194917a55fea18b6948b2d/main.spi
00:07:22 verbose #8686 > >
00:07:22 verbose #8687 > > ╭─[ 8.13s - stdout ]───────────────────────────────────────────────────────────╮
00:07:22 verbose #8688 > > │ 00:00:00   debug #1 runtime.execute_with_options_async / { options = {  │
00:07:22 verbose #8689 > > │ command = pwsh -c "(Get-FileHash                                             │
00:07:22 verbose #8690 > > │ 'c:/Users/i574n/AppData/Local/Temp/!create_temp_path_/dotnet-repl/9ca8b18d-e │
00:07:22 verbose #8691 > > │ e77-4684-ad12-21e1354945fc/test.txt' -Algorithm SHA256).Hash";               │
00:07:22 verbose #8692 > > │ cancellation_token = None; environment_variables = [||]; on_line = None;     │
00:07:22 verbose #8693 > > │ stdin = None; trace = true; working_directory = None } }                     │
00:07:22 verbose #8694 > > │ 00:00:00 verbose #2 >                                                   │
00:07:22 verbose #8695 > > │ 01BA4719C80B6FE911B091A7C05124B64EEECE964E09C058EF8F9805DACA546B             │
00:07:22 verbose #8696 > > │ 00:00:00   debug #3 runtime.execute_with_options_async / { exit_code =  │
00:07:22 verbose #8697 > > │ 0; output_length = 64 }                                                      │
00:07:22 verbose #8698 > > │ assert_eq / actual:                                                          │
00:07:22 verbose #8699 > > │ "01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b" /         │
00:07:22 verbose #8700 > > │ expected: "01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b" │
00:07:22 verbose #8701 > > │                                                                              │
00:07:22 verbose #8702 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:22 verbose #8703 > >
00:07:22 verbose #8704 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:22 verbose #8705 > > //// test
00:07:22 verbose #8706 > > ///! rust -d chrono encoding_rs encoding_rs_io regex sha2
00:07:22 verbose #8707 > >
00:07:22 verbose #8708 > > inl file_name = "test.txt"
00:07:22 verbose #8709 > > inl text = "\n"
00:07:22 verbose #8710 > >
00:07:22 verbose #8711 > > inl temp_dir, disposable =
00:07:22 verbose #8712 > >     (file_name, text)
00:07:22 verbose #8713 > >     |> sm'.format_debug
00:07:22 verbose #8714 > >     |> crypto.hash_text
00:07:22 verbose #8715 > >     |> file_system.create_temp_dir'
00:07:22 verbose #8716 > > inl path = temp_dir </> file_name
00:07:22 verbose #8717 > > text |> file_system.write_all_text path
00:07:22 verbose #8718 > > path
00:07:22 verbose #8719 > > |> get_file_hash'
00:07:22 verbose #8720 > > |> resultm.get
00:07:22 verbose #8721 > > |> _assert_eq "01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b"
00:07:22 verbose #8722 > > disposable |> use |> ignore
00:07:22 verbose #8723 > 00:07:22   debug #510 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a3f351f98da816e777d9265a91f645aa41db6cd98e024bdb7ab7c429e079ead5/main.spi
00:07:28 verbose #8724 > >
00:07:28 verbose #8725 > > ╭─[ 5.89s - return value ]─────────────────────────────────────────────────────╮
00:07:28 verbose #8726 > > │ 00:00:00 verbose #1 file_system.create_dir / { dir =                   │
00:07:28 verbose #8727 > > │ C:\Users\i574n\AppData\Local\Temp\!create_temp_path_\spiral_builder_8cad16b7 │
00:07:28 verbose #8728 > > │ 82405fa47d1b6ab76c01c93c07ba1081d81e0bc1ae94ac7e42a75b20\ba0aa16a-6c5a-be3f- │
00:07:28 verbose #8729 > > │ b526-70110c680e36 }                                                          │
00:07:28 verbose #8730 > > │ 00:00:00   debug #2 runtime.execute_with_options / { file_name = pwsh; │
00:07:28 verbose #8731 > > │ arguments = ["-c", "(Get-FileHash                                            │
00:07:28 verbose #8732 > > │ 'c:/Users/i574n/AppData/Local/Temp/!create_temp_path_/spiral_builder_8cad16b │
00:07:28 verbose #8733 > > │ 782405fa47d1b6ab76c01c93c07ba1081d81e0bc1ae94ac7e42a75b20/ba0aa16a-6c5a-be3f │
00:07:28 verbose #8734 > > │ -b526-70110c680e36/test.txt' -Algorithm SHA256).Hash"]; options = { command  │
00:07:28 verbose #8735 > > │ = pwsh -c "(Get-FileHash                                                     │
00:07:28 verbose #8736 > > │ 'c:/Users/i574n/AppData/Local/Temp/!create_temp_path_/spiral_builder_8cad16b │
00:07:28 verbose #8737 > > │ 782405fa47d1b6ab76c01c93c07ba1081d81e0bc1ae94ac7e42a75b20/ba0aa16a-6c5a-be3f │
00:07:28 verbose #8738 > > │ -b526-70110c680e36/test.txt' -Algorithm SHA256).Hash"; cancellation_token =  │
00:07:28 verbose #8739 > > │ None; environment_variables = Array(MutCell([])); on_line = None; stdin =    │
00:07:28 verbose #8740 > > │ None; trace = true; working_directory = None } }                             │
00:07:28 verbose #8741 > > │ 00:00:00 verbose #3 >                                                  │
00:07:28 verbose #8742 > > │ 01BA4719C80B6FE911B091A7C05124B64EEECE964E09C058EF8F9805DACA546B             │
00:07:28 verbose #8743 > > │ 00:00:00 verbose #4 runtime.execute_with_options / result / {          │
00:07:28 verbose #8744 > > │ exit_code = 0; std_trace_length = 64 }                                       │
00:07:28 verbose #8745 > > │ assert_eq / actual:                                                          │
00:07:28 verbose #8746 > > │ "01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b" /         │
00:07:28 verbose #8747 > > │ expected: "01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b" │
00:07:28 verbose #8748 > > │                                                                              │
00:07:28 verbose #8749 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:28 verbose #8750 > >
00:07:28 verbose #8751 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:28 verbose #8752 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:28 verbose #8753 > > │ ### sha256'                                                                  │
00:07:28 verbose #8754 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:28 verbose #8755 > >
00:07:28 verbose #8756 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:28 verbose #8757 > > nominal sha256' =
00:07:28 verbose #8758 > >     `(
00:07:28 verbose #8759 > >         backend_switch `(()) `({}) {
00:07:28 verbose #8760 > >             Fsharp =
00:07:28 verbose #8761 > >                 (fun () =>
00:07:28 verbose #8762 > >                     global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:07:28 verbose #8763 > > Fable.Core.Emit(\"sha2::Sha256\")>]]\n#endif\ntype sha2_Sha256 = class end"
00:07:28 verbose #8764 > >                 ) : () -> ()
00:07:28 verbose #8765 > >         }
00:07:28 verbose #8766 > >         $'' : $'sha2_Sha256'
00:07:28 verbose #8767 > >     )
00:07:28 verbose #8768 > 00:07:27   debug #511 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/22349083c20ac4b6672e783e24bbed40ca724ab18ea3e8eeda9c56d41655bcb8/main.spi
00:07:28 verbose #8769 > >
00:07:28 verbose #8770 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:28 verbose #8771 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:28 verbose #8772 > > │ ### new_sha256                                                               │
00:07:28 verbose #8773 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:28 verbose #8774 > >
00:07:28 verbose #8775 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:28 verbose #8776 > > inl new_sha256 () : sha256' =
00:07:28 verbose #8777 > >     !\($'"let result : sha2::Sha256 = sha2::Digest::new()"')
00:07:28 verbose #8778 > >     !\($'"result"')
00:07:29 verbose #8779 > 00:07:28   debug #512 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7b35dab5721702ee4efb798159131b89a8d97d4c87c4da2776788a8ed7bf3795/main.spi
00:07:29 verbose #8780 > >
00:07:29 verbose #8781 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:29 verbose #8782 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:29 verbose #8783 > > │ ### hasher_update                                                            │
00:07:29 verbose #8784 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:29 verbose #8785 > >
00:07:29 verbose #8786 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:29 verbose #8787 > > inl hasher_update forall el dim. (slice : rust.ref (am'.slice' el dim)) (hasher
00:07:29 verbose #8788 > > : sha256') : () =
00:07:29 verbose #8789 > >     !\($'"sha2::Digest::update(&mut !hasher, !slice)"')
00:07:29 verbose #8790 > 00:07:28   debug #513 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/04de9acd8634b933bed28690c1ee5e7fb90c85219b6705e16039d1f187c6a4e0/main.spi
00:07:29 verbose #8791 > >
00:07:29 verbose #8792 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:29 verbose #8793 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:29 verbose #8794 > > │ ### hasher_finalize                                                          │
00:07:29 verbose #8795 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:29 verbose #8796 > >
00:07:29 verbose #8797 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:29 verbose #8798 > > inl hasher_finalize (hasher : sha256') : rust.ref (am'.slice u8) =
00:07:29 verbose #8799 > >     !\($'"&sha2::Digest::finalize(!hasher)"')
00:07:29 verbose #8800 > 00:07:29   debug #514 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2a21e3a9941a17984f5e8591114d9f246e37b132e007bd5ad2eb373367a026db/main.spi
00:07:30 verbose #8801 > >
00:07:30 verbose #8802 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:30 verbose #8803 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:30 verbose #8804 > > │ ### hash_read                                                                │
00:07:30 verbose #8805 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:30 verbose #8806 > >
00:07:30 verbose #8807 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:30 verbose #8808 > > inl hash_read data : resultm.result' string stream.io_error =
00:07:30 verbose #8809 > >     inl reader = data |> stream.new_buf_reader
00:07:30 verbose #8810 > >     (!\($'"true; let mut !reader = !reader"') : bool) |> ignore
00:07:30 verbose #8811 > >     inl hasher = new_sha256 ()
00:07:30 verbose #8812 > >     (!\($'"true; let mut !hasher = !hasher"') : bool) |> ignore
00:07:30 verbose #8813 > >
00:07:30 verbose #8814 > >     real
00:07:30 verbose #8815 > >         inl size = 1024
00:07:30 verbose #8816 > >         inl zero = convert `i32 `unativeint 0
00:07:30 verbose #8817 > >         inl buffer = am'.new_slice `u8 `@size 0u8
00:07:30 verbose #8818 > >
00:07:30 verbose #8819 > >         rust.loop 2 fun () =>
00:07:30 verbose #8820 > >             inl count = stream.buf_reader_read `u8 `@size buffer reader
00:07:30 verbose #8821 > >             inl count = resultm.unwrap' `unativeint `(stream.io_error) count
00:07:30 verbose #8822 > >
00:07:30 verbose #8823 > >             if (=.) `unativeint count zero then rust.break ()
00:07:30 verbose #8824 > >
00:07:30 verbose #8825 > >             hasher_update `u8 `@size
00:07:30 verbose #8826 > >                 (
00:07:30 verbose #8827 > >                     am'.slice_range `u8 `@size
00:07:30 verbose #8828 > >                         (am'.Start `unativeint zero)
00:07:30 verbose #8829 > >                         (am'.End `unativeint ((fun _ => count) : unativeint ->
00:07:30 verbose #8830 > > unativeint))
00:07:30 verbose #8831 > >                         buffer
00:07:30 verbose #8832 > >                 )
00:07:30 verbose #8833 > >                 hasher
00:07:30 verbose #8834 > >
00:07:30 verbose #8835 > >     hasher
00:07:30 verbose #8836 > >     |> hasher_finalize
00:07:30 verbose #8837 > >     |> am'.slice_to_vec
00:07:30 verbose #8838 > >     |> am'.vec_map (sm'.format_hex' >> sm'.from_std_string)
00:07:30 verbose #8839 > >     |> am'.from_vec
00:07:30 verbose #8840 > >     |> fun x => x : _ i32 _
00:07:30 verbose #8841 > >     |> seq.of_array'
00:07:30 verbose #8842 > >     |> sm'.concat ""
00:07:30 verbose #8843 > >     |> Ok
00:07:30 verbose #8844 > >     |> resultm.box
00:07:30 verbose #8845 > 00:07:29   debug #515 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/05fc4d11bea60d2febe559a8fbdb6799f15c046252d651b3be5bec54f74c3c81/main.spi
00:07:30 verbose #8846 > >
00:07:30 verbose #8847 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:30 verbose #8848 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:30 verbose #8849 > > │ ### get_file_hash                                                            │
00:07:30 verbose #8850 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:30 verbose #8851 > >
00:07:30 verbose #8852 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:30 verbose #8853 > > inl get_file_hash (path : string) =
00:07:30 verbose #8854 > >     inl path = path |> file_system.normalize_path
00:07:30 verbose #8855 > >     inl file = path |> file_system.file_open |> resultm.unwrap'
00:07:30 verbose #8856 > >     inl reader = file |> stream.new_buf_reader
00:07:30 verbose #8857 > >     reader
00:07:30 verbose #8858 > >     |> hash_read
00:07:30 verbose #8859 > 00:07:29   debug #516 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/28dca70df891234af438a12147203b709657e018fdfed640941f08e79ab3e015/main.spi
00:07:30 verbose #8860 > >
00:07:30 verbose #8861 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:30 verbose #8862 > > //// test
00:07:30 verbose #8863 > > ///! rust -d chrono regex sha2
00:07:30 verbose #8864 > >
00:07:30 verbose #8865 > > inl file_name = join "test.txt"
00:07:30 verbose #8866 > > inl text = "\n"
00:07:30 verbose #8867 > >
00:07:30 verbose #8868 > > inl temp_dir, disposable =
00:07:30 verbose #8869 > >     (file_name, text)
00:07:30 verbose #8870 > >     |> sm'.format_debug
00:07:30 verbose #8871 > >     |> crypto.hash_text
00:07:30 verbose #8872 > >     |> file_system.create_temp_dir'
00:07:30 verbose #8873 > >
00:07:30 verbose #8874 > > inl path = temp_dir </> file_name
00:07:30 verbose #8875 > > text |> file_system.write_all_text path
00:07:30 verbose #8876 > >
00:07:30 verbose #8877 > > path
00:07:30 verbose #8878 > > |> get_file_hash
00:07:30 verbose #8879 > > |> resultm.unwrap'
00:07:30 verbose #8880 > > |> _assert_eq "01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b"
00:07:30 verbose #8881 > > disposable |> use |> ignore
00:07:31 verbose #8882 > 00:07:30   debug #517 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ce1950bf0797fda18ce52a46c55e98702f9ec0022f95d26c5a76b00f7db9937b/main.spi
00:07:34 verbose #8883 > >
00:07:34 verbose #8884 > > ╭─[ 3.44s - return value ]─────────────────────────────────────────────────────╮
00:07:34 verbose #8885 > > │ 00:00:00 verbose #1 file_system.create_dir / { dir =                   │
00:07:34 verbose #8886 > > │ C:\Users\i574n\AppData\Local\Temp\!create_temp_path_\spiral_builder_ce370a23 │
00:07:34 verbose #8887 > > │ 1afc896b0abe06700e7b83df82e3c0b613e95d3b6cdeffad35dda535\ba0aa16a-6c5a-be3f- │
00:07:34 verbose #8888 > > │ b526-70110c680e36 }                                                          │
00:07:34 verbose #8889 > > │ assert_eq / actual:                                                          │
00:07:34 verbose #8890 > > │ "01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b" /         │
00:07:34 verbose #8891 > > │ expected: "01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b" │
00:07:34 verbose #8892 > > │                                                                              │
00:07:34 verbose #8893 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:34 verbose #8894 > >
00:07:34 verbose #8895 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:34 verbose #8896 > > //// test
00:07:34 verbose #8897 > > ///! rust -d chrono regex sha2
00:07:34 verbose #8898 > >
00:07:34 verbose #8899 > > inl file_name = join "test.txt"
00:07:34 verbose #8900 > > inl text = ""
00:07:34 verbose #8901 > >
00:07:34 verbose #8902 > > inl temp_dir, disposable =
00:07:34 verbose #8903 > >     (file_name, text)
00:07:34 verbose #8904 > >     |> sm'.format_debug
00:07:34 verbose #8905 > >     |> crypto.hash_text
00:07:34 verbose #8906 > >     |> file_system.create_temp_dir'
00:07:34 verbose #8907 > >
00:07:34 verbose #8908 > > inl path = temp_dir </> file_name
00:07:34 verbose #8909 > > text |> file_system.write_all_text path
00:07:34 verbose #8910 > > path
00:07:34 verbose #8911 > > |> get_file_hash
00:07:34 verbose #8912 > > |> resultm.unwrap'
00:07:34 verbose #8913 > > |> _assert_eq "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
00:07:34 verbose #8914 > > disposable |> use |> ignore
00:07:34 verbose #8915 > 00:07:33   debug #518 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/cac7522c82a36e9d137fd7ffa6aa2a5c691033eaa340f1bea9e20783f8900714/main.spi
00:07:37 verbose #8916 > >
00:07:37 verbose #8917 > > ╭─[ 3.20s - return value ]─────────────────────────────────────────────────────╮
00:07:37 verbose #8918 > > │ 00:00:00 verbose #1 file_system.create_dir / { dir =                   │
00:07:37 verbose #8919 > > │ C:\Users\i574n\AppData\Local\Temp\!create_temp_path_\spiral_builder_a1903d6f │
00:07:37 verbose #8920 > > │ 8a57477b37d7d84edd21e67990aacf26f0029bc6d25392a47ef73334\c0e26dac-4cb1-4b09- │
00:07:37 verbose #8921 > > │ be07-ff616700f056 }                                                          │
00:07:37 verbose #8922 > > │ assert_eq / actual:                                                          │
00:07:37 verbose #8923 > > │ "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" /         │
00:07:37 verbose #8924 > > │ expected: "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" │
00:07:37 verbose #8925 > > │                                                                              │
00:07:37 verbose #8926 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:37 verbose #8927 > >
00:07:37 verbose #8928 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:37 verbose #8929 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:37 verbose #8930 > > │ ## typescript                                                                │
00:07:37 verbose #8931 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:37 verbose #8932 > >
00:07:37 verbose #8933 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:37 verbose #8934 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:37 verbose #8935 > > │ ### create_hash                                                              │
00:07:37 verbose #8936 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:37 verbose #8937 > >
00:07:37 verbose #8938 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:37 verbose #8939 > > inl create_hash (x : string) : any =
00:07:37 verbose #8940 > >     open typescript_operators
00:07:37 verbose #8941 > >     global "type ICryptoCreateHash = abstract createHash: x: string -> obj"
00:07:37 verbose #8942 > >     inl crypto : $'ICryptoCreateHash' = typescript.import_all "crypto"
00:07:37 verbose #8943 > >     !\\(x, $'"!crypto.createHash($0)"')
00:07:37 verbose #8944 > 00:07:36   debug #519 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6e0c4fbda2fee421c5aa4b74968c14c8f041eb0880e6059ef3fea8ba9b3ac67e/main.spi
00:07:37 verbose #8945 > >
00:07:37 verbose #8946 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:37 verbose #8947 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:37 verbose #8948 > > │ ### hash_update                                                              │
00:07:37 verbose #8949 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:37 verbose #8950 > >
00:07:37 verbose #8951 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:37 verbose #8952 > > inl hash_update (s : string) (x : any) : any =
00:07:37 verbose #8953 > >     open typescript_operators
00:07:37 verbose #8954 > >     !\\((x, s), $'"$0.update($1, \'utf8\')"')
00:07:38 verbose #8955 > 00:07:37   debug #520 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0a87a02c7e8d825f407e6ce99da72445d5ef155f2b4725579784c0dda6db809c/main.spi
00:07:38 verbose #8956 > >
00:07:38 verbose #8957 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:38 verbose #8958 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:38 verbose #8959 > > │ ### hash_digest                                                              │
00:07:38 verbose #8960 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:38 verbose #8961 > >
00:07:38 verbose #8962 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:38 verbose #8963 > > inl hash_digest (s : string) (x : any) : string =
00:07:38 verbose #8964 > >     open typescript_operators
00:07:38 verbose #8965 > >     !\\((x, s), $'"$0.digest($1)"')
00:07:38 verbose #8966 > 00:07:37   debug #521 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/91f64dbffe8f4c076b45bca69eaad2fd5e61b55c0a4a422b7cdadd5de9e443da/main.spi
00:07:38 verbose #8967 > >
00:07:38 verbose #8968 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:38 verbose #8969 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:38 verbose #8970 > > │ ## python                                                                    │
00:07:38 verbose #8971 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:38 verbose #8972 > >
00:07:38 verbose #8973 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:38 verbose #8974 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:38 verbose #8975 > > │ ### py_sha256                                                                │
00:07:38 verbose #8976 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:38 verbose #8977 > >
00:07:38 verbose #8978 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:38 verbose #8979 > > nominal py_sha256 = any
00:07:38 verbose #8980 > 00:07:38   debug #522 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/48f56173541799106ad1a2e11cbea5555d015518075ca1838b06a85c142096e8/main.spi
00:07:39 verbose #8981 > >
00:07:39 verbose #8982 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:39 verbose #8983 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:39 verbose #8984 > > │ ### hashlib_sha256                                                           │
00:07:39 verbose #8985 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:39 verbose #8986 > >
00:07:39 verbose #8987 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:39 verbose #8988 > > inl hashlib_sha256 () : py_sha256 =
00:07:39 verbose #8989 > >     backend_switch {
00:07:39 verbose #8990 > >         Fsharp = fun () =>
00:07:39 verbose #8991 > >             open python_operators
00:07:39 verbose #8992 > >             global "type IHashlibSha256 = abstract sha256: x: unit -> obj"
00:07:39 verbose #8993 > >             inl hashlib : $'IHashlibSha256' = python.import_all "hashlib"
00:07:39 verbose #8994 > >             !\($'"!hashlib.sha256()"') : py_sha256
00:07:39 verbose #8995 > >         Python = fun () =>
00:07:39 verbose #8996 > >             global "import hashlib"
00:07:39 verbose #8997 > >             $'hashlib.sha256()' : py_sha256
00:07:39 verbose #8998 > >     }
00:07:39 verbose #8999 > 00:07:38   debug #523 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7e95b7c62b7868b0807dd967be5d2b4569d60fe436a56730ac3d8b9974a0d381/main.spi
00:07:39 verbose #9000 > >
00:07:39 verbose #9001 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:39 verbose #9002 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:39 verbose #9003 > > │ ### sha256_update                                                            │
00:07:39 verbose #9004 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:39 verbose #9005 > >
00:07:39 verbose #9006 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:39 verbose #9007 > > inl sha256_update (x : string) (sha256 : py_sha256) : py_sha256 =
00:07:39 verbose #9008 > >     backend_switch {
00:07:39 verbose #9009 > >         Fsharp = fun () =>
00:07:39 verbose #9010 > >             open python_operators
00:07:39 verbose #9011 > >             !\\(x, $'"!sha256.update($0)"') : ()
00:07:39 verbose #9012 > >         Python = fun () =>
00:07:39 verbose #9013 > >             $'!sha256.update(!x)' : ()
00:07:39 verbose #9014 > >     }
00:07:39 verbose #9015 > >     sha256
00:07:39 verbose #9016 > 00:07:38   debug #524 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/483f900a8f68ce158ddd173fc68f188d2c8a1d35976878ed2cdbe1e345f8f525/main.spi
00:07:39 verbose #9017 > >
00:07:39 verbose #9018 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:39 verbose #9019 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:39 verbose #9020 > > │ ### sha256_hexdigest                                                         │
00:07:39 verbose #9021 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:39 verbose #9022 > >
00:07:39 verbose #9023 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:39 verbose #9024 > > inl sha256_hexdigest (sha256 : py_sha256) : string =
00:07:39 verbose #9025 > >     backend_switch {
00:07:39 verbose #9026 > >         Fsharp = fun () =>
00:07:39 verbose #9027 > >             open python_operators
00:07:39 verbose #9028 > >             !\($'"!sha256.hexdigest()"') : string
00:07:39 verbose #9029 > >         Python = fun () =>
00:07:39 verbose #9030 > >             $'!sha256.hexdigest()' : string
00:07:39 verbose #9031 > >     }
00:07:40 verbose #9032 > 00:07:39   debug #525 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/56cc1af487556f64c766cbf151bbc4344aa6a0e68864ad5bddbbef39a5e1c498/main.spi
00:07:40 verbose #9033 > >
00:07:40 verbose #9034 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:40 verbose #9035 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:40 verbose #9036 > > │ ## crypto                                                                    │
00:07:40 verbose #9037 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:40 verbose #9038 > >
00:07:40 verbose #9039 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:40 verbose #9040 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:40 verbose #9041 > > │ ### hash_text                                                                │
00:07:40 verbose #9042 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:40 verbose #9043 > >
00:07:40 verbose #9044 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:40 verbose #9045 > > let hash_text (~input : string) =
00:07:40 verbose #9046 > >     run_target function
00:07:40 verbose #9047 > >         | Fsharp (Native) => fun () =>
00:07:40 verbose #9048 > >             inl sha256 = sha256 () |> use
00:07:40 verbose #9049 > >             input
00:07:40 verbose #9050 > >             |> sm'.utf8_get_bytes
00:07:40 verbose #9051 > >             |> sha256_compute_hash sha256
00:07:40 verbose #9052 > >             |> am.map (sm'.byte_to_string "x2")
00:07:40 verbose #9053 > >             |> seq.of_array'
00:07:40 verbose #9054 > >             |> sm'.concat (join "")
00:07:40 verbose #9055 > >         | TypeScript (Native) => fun () =>
00:07:40 verbose #9056 > >             create_hash "sha256"
00:07:40 verbose #9057 > >             |> hash_update input
00:07:40 verbose #9058 > >             |> hash_digest "hex"
00:07:40 verbose #9059 > >         | Rust (Native) => fun () =>
00:07:40 verbose #9060 > >             input
00:07:40 verbose #9061 > >             |> sm'.utf8_get_bytes
00:07:40 verbose #9062 > >             |> fun (a x) => x
00:07:40 verbose #9063 > >             |> am'.to_vec
00:07:40 verbose #9064 > >             |> stream.new_cursor
00:07:40 verbose #9065 > >             |> hash_read
00:07:40 verbose #9066 > >             |> resultm.unwrap'
00:07:40 verbose #9067 > >         | Python (Native) | Cuda (Native) => fun () =>
00:07:40 verbose #9068 > >             hashlib_sha256 ()
00:07:40 verbose #9069 > >             |> sha256_update (input |> sm'.encode_utf8)
00:07:40 verbose #9070 > >             |> sha256_hexdigest
00:07:40 verbose #9071 > >         | _ => fun () => null ()
00:07:40 verbose #9072 > 00:07:39   debug #526 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9ca8958fcae7a456ceb070b6f713bd15806d260f60992bcfc233c1c135c75f6b/main.spi
00:07:40 verbose #9073 > >
00:07:40 verbose #9074 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:40 verbose #9075 > > //// test
00:07:40 verbose #9076 > > ///! fsharp
00:07:40 verbose #9077 > > ///! cuda
00:07:40 verbose #9078 > > ///! rust -d sha2
00:07:40 verbose #9079 > > ///! typescript
00:07:40 verbose #9080 > > ///! python
00:07:40 verbose #9081 > >
00:07:40 verbose #9082 > > "\n"
00:07:40 verbose #9083 > > |> hash_text
00:07:40 verbose #9084 > > |> _assert_eq "01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b"
00:07:40 verbose #9085 > >
00:07:40 verbose #9086 > > ""
00:07:40 verbose #9087 > > |> hash_text
00:07:40 verbose #9088 > > |> _assert_eq "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
00:07:40 verbose #9089 > 00:07:39   debug #527 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/dbf7d65e340278c0b67996474629c34d896e16c5360b90a5733078118fd78175/main.spi
00:07:40 verbose #9090 > 00:07:39   debug #528 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/cb4f49e753f933c430f9346ac74bd4d9e118d120e10f8986036c8a3dc89c8480/main.spi
00:07:44 verbose #9091 > >
00:07:44 verbose #9092 > > ╭─[ 4.08s - return value ]─────────────────────────────────────────────────────╮
00:07:44 verbose #9093 > > │                                                                              │
00:07:44 verbose #9094 > > │ .py output (Cuda):                                                           │
00:07:44 verbose #9095 > > │ assert_eq / actual:                                                          │
00:07:44 verbose #9096 > > │ 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b / expected: │
00:07:44 verbose #9097 > > │ 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b             │
00:07:44 verbose #9098 > > │ assert_eq / actual:                                                          │
00:07:44 verbose #9099 > > │ e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 / expected: │
00:07:44 verbose #9100 > > │ e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855             │
00:07:44 verbose #9101 > > │                                                                              │
00:07:44 verbose #9102 > > │                                                                              │
00:07:44 verbose #9103 > > │ .rs output:                                                                  │
00:07:44 verbose #9104 > > │ assert_eq / actual:                                                          │
00:07:44 verbose #9105 > > │ "01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b" /         │
00:07:44 verbose #9106 > > │ expected: "01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b" │
00:07:44 verbose #9107 > > │ assert_eq / actual:                                                          │
00:07:44 verbose #9108 > > │ "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" /         │
00:07:44 verbose #9109 > > │ expected: "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" │
00:07:44 verbose #9110 > > │                                                                              │
00:07:44 verbose #9111 > > │                                                                              │
00:07:44 verbose #9112 > > │ .ts output:                                                                  │
00:07:44 verbose #9113 > > │ assert_eq / actual:                                                          │
00:07:44 verbose #9114 > > │ 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b / expected: │
00:07:44 verbose #9115 > > │ 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b             │
00:07:44 verbose #9116 > > │ assert_eq / actual:                                                          │
00:07:44 verbose #9117 > > │ e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 / expected: │
00:07:44 verbose #9118 > > │ e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855             │
00:07:44 verbose #9119 > > │                                                                              │
00:07:44 verbose #9120 > > │                                                                              │
00:07:44 verbose #9121 > > │ .py output:                                                                  │
00:07:44 verbose #9122 > > │ assert_eq / actual:                                                          │
00:07:44 verbose #9123 > > │ 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b / expected: │
00:07:44 verbose #9124 > > │ 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b             │
00:07:44 verbose #9125 > > │ assert_eq / actual:                                                          │
00:07:44 verbose #9126 > > │ e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 / expected: │
00:07:44 verbose #9127 > > │ e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855             │
00:07:44 verbose #9128 > > │                                                                              │
00:07:44 verbose #9129 > > │                                                                              │
00:07:44 verbose #9130 > > │                                                                              │
00:07:44 verbose #9131 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:44 verbose #9132 > >
00:07:44 verbose #9133 > > ╭─[ 4.08s - stdout ]───────────────────────────────────────────────────────────╮
00:07:44 verbose #9134 > > │ .fsx output:                                                                 │
00:07:44 verbose #9135 > > │ assert_eq / actual:                                                          │
00:07:44 verbose #9136 > > │ "01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b" /         │
00:07:44 verbose #9137 > > │ expected: "01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b" │
00:07:44 verbose #9138 > > │ assert_eq / actual:                                                          │
00:07:44 verbose #9139 > > │ "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" /         │
00:07:44 verbose #9140 > > │ expected: "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" │
00:07:44 verbose #9141 > > │                                                                              │
00:07:44 verbose #9142 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:44 verbose #9143 > >
00:07:44 verbose #9144 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:44 verbose #9145 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:44 verbose #9146 > > │ ### hash_to_port                                                             │
00:07:44 verbose #9147 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:44 verbose #9148 > >
00:07:44 verbose #9149 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:44 verbose #9150 > > inl hash_to_port (text : string) : u16 =
00:07:44 verbose #9151 > >     inl first_letter_code = text |> sm'.index 0i32 |> i32
00:07:44 verbose #9152 > >     inl hash_part = text |> sm'.slice 0i32 7
00:07:44 verbose #9153 > >     inl combined_value = convert_i32_base 16 hash_part + first_letter_code |>
00:07:44 verbose #9154 > > u16
00:07:44 verbose #9155 > >     trace Verbose
00:07:44 verbose #9156 > >         fun () => "crypto.hash_to_port"
00:07:44 verbose #9157 > >         fun () => { first_letter_code hash_part combined_value }
00:07:44 verbose #9158 > >     combined_value % 48128 + 1024
00:07:44 verbose #9159 > 00:07:43   debug #529 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b0fb776d3cc528d9d5834bdc9d0f3eb203863a3f7a7a40c17d612f5c53368a0c/main.spi
00:07:44 verbose #9160 > >
00:07:44 verbose #9161 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:44 verbose #9162 > > //// test
00:07:44 verbose #9163 > > ///! fsharp
00:07:44 verbose #9164 > > ////! cuda // Only stack allocated primitive types (i8,i16,i32,i64 and
00:07:44 verbose #9165 > > u8,u16,u32,u64 and f32,f64 and bool) are allowed in CuPy arrays.
00:07:44 verbose #9166 > > ///! rust -d sha2
00:07:44 verbose #9167 > > ///! typescript
00:07:44 verbose #9168 > > ///! python
00:07:44 verbose #9169 > >
00:07:44 verbose #9170 > > "\n"
00:07:44 verbose #9171 > > |> hash_text
00:07:44 verbose #9172 > > |> hash_to_port
00:07:44 verbose #9173 > > |> _assert_eq 19273
00:07:45 verbose #9174 > 00:07:44   debug #530 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a526282de145b5dad4d1ae28265c0515c997b4f40566c1c06efaa5ffbb21706a/main.spi
00:07:48 verbose #9175 > >
00:07:48 verbose #9176 > > ╭─[ 3.46s - return value ]─────────────────────────────────────────────────────╮
00:07:48 verbose #9177 > > │                                                                              │
00:07:48 verbose #9178 > > │ .rs output:                                                                  │
00:07:48 verbose #9179 > > │ 00:00:00 verbose #1 crypto.hash_to_port / { first_letter_code = 48;    │
00:07:48 verbose #9180 > > │ hash_part = 01ba4719; combined_value = 18249 }                               │
00:07:48 verbose #9181 > > │ assert_eq / actual: 19273 / expected: 19273                                  │
00:07:48 verbose #9182 > > │                                                                              │
00:07:48 verbose #9183 > > │                                                                              │
00:07:48 verbose #9184 > > │ .ts output:                                                                  │
00:07:48 verbose #9185 > > │ 00:00:00 verbose #1 crypto.hash_to_port / { first_letter_code = 48;     │
00:07:48 verbose #9186 > > │ hash_part = 01ba4719; combined_value = 18249 }                               │
00:07:48 verbose #9187 > > │ assert_eq / actual: 19273 / expected: 19273                                  │
00:07:48 verbose #9188 > > │                                                                              │
00:07:48 verbose #9189 > > │                                                                              │
00:07:48 verbose #9190 > > │ .py output:                                                                  │
00:07:48 verbose #9191 > > │ 00:00:00 verbose #1 crypto.hash_to_port / { first_letter_code = 48;     │
00:07:48 verbose #9192 > > │ hash_part = 01ba4719; combined_value = 18249 }                               │
00:07:48 verbose #9193 > > │ assert_eq / actual: 19273 / expected: 19273                                  │
00:07:48 verbose #9194 > > │                                                                              │
00:07:48 verbose #9195 > > │                                                                              │
00:07:48 verbose #9196 > > │                                                                              │
00:07:48 verbose #9197 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:48 verbose #9198 > >
00:07:48 verbose #9199 > > ╭─[ 3.46s - stdout ]───────────────────────────────────────────────────────────╮
00:07:48 verbose #9200 > > │ .fsx output:                                                                 │
00:07:48 verbose #9201 > > │ 00:00:00 verbose #1 crypto.hash_to_port / { first_letter_code = 48;     │
00:07:48 verbose #9202 > > │ hash_part = 01ba4719; combined_value = 18249 }                               │
00:07:48 verbose #9203 > > │ assert_eq / actual: 19273us / expected: 19273us                              │
00:07:48 verbose #9204 > > │                                                                              │
00:07:48 verbose #9205 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:48 verbose #9206 > >
00:07:48 verbose #9207 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:48 verbose #9208 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:48 verbose #9209 > > │ ## main                                                                      │
00:07:48 verbose #9210 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:48 verbose #9211 > >
00:07:48 verbose #9212 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:48 verbose #9213 > > inl main () =
00:07:48 verbose #9214 > >     $'let hash_text x = !hash_text x' : ()
00:07:48 verbose #9215 > >     $'let hash_to_port x = !hash_to_port x' : ()
00:07:48 verbose #9216 > 00:07:47   debug #531 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/57596c533e19f9526ce12caba19eea93154630aa1d325c3c339b5610169e00a1/main.spi
00:07:49 verbose #9217 > 00:00:44 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 29817 }
00:07:49 verbose #9218 > 00:00:44   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/spiral/crypto.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/crypto.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:07:51 verbose #9219 > 00:00:46 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/crypto.dib.ipynb to html
00:07:51 verbose #9220 > 00:00:46 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:07:51 verbose #9221 > 00:00:46 verbose #7 !   validate(nb)
00:07:53 verbose #9222 > 00:00:47 verbose #8 ! [NbConvertApp] Writing 340881 bytes to c:\home\git\polyglot\lib\spiral\crypto.dib.html
00:07:53 verbose #9223 > 00:00:48 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 643 }
00:07:53 verbose #9224 > 00:00:48   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 643 }
00:07:53 verbose #9225 > 00:00:48   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/crypto.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/crypto.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:07:54 verbose #9226 > 00:00:49 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:07:54 verbose #9227 > 00:00:49   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:07:54 verbose #9228 > 00:00:49   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 30519 }
00:07:54   debug #9229 runtime.execute_with_options_async / { exit_code = 0; output_length = 34316 }
00:07:54   debug #11 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path crypto.dib --retries 3
00:07:54   debug #9230 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path common.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:07:54 verbose #9231 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "common.dib", "--retries", "3"])) }
00:07:54 verbose #9232 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/spiral/common.dib", "--output-path", "c:/home/git/polyglot/lib/spiral/common.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/common.dib" --output-path "c:/home/git/polyglot/lib/spiral/common.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:07:56 verbose #9233 > >
00:07:56 verbose #9234 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:56 verbose #9235 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:56 verbose #9236 > > │ # common                                                                     │
00:07:56 verbose #9237 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:01 verbose #9238 > >
00:08:01 verbose #9239 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:01 verbose #9240 > > //// test
00:08:01 verbose #9241 > >
00:08:01 verbose #9242 > > open testing
00:08:01 verbose #9243 > 00:08:00   debug #532 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fa7845de436c12d0ca65282fe0cd65832468ca943e72feba50e6b1bb441e251a/main.spi
00:08:02 verbose #9244 > >
00:08:02 verbose #9245 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:02 verbose #9246 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:02 verbose #9247 > > │ ## common                                                                    │
00:08:02 verbose #9248 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:02 verbose #9249 > >
00:08:02 verbose #9250 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:02 verbose #9251 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:02 verbose #9252 > > │ ### (:>)                                                                     │
00:08:02 verbose #9253 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:02 verbose #9254 > >
00:08:02 verbose #9255 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:02 verbose #9256 > > prototype (~:>) r : forall t. t -> r
00:08:02 verbose #9257 > 00:08:01   debug #533 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/485c3b839be7453998be3029b640e2cbf18f572f374cd710b6eead3ef824b3c9/main.spi
00:08:02 verbose #9258 > >
00:08:02 verbose #9259 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:02 verbose #9260 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:02 verbose #9261 > > │ ### to_any                                                                   │
00:08:02 verbose #9262 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:02 verbose #9263 > >
00:08:02 verbose #9264 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:02 verbose #9265 > > inl to_any forall t. (obj : t) : any =
00:08:02 verbose #9266 > >     $'!obj '
00:08:02 verbose #9267 > >
00:08:02 verbose #9268 > > instance (~:>) any = to_any
00:08:02 verbose #9269 > 00:08:01   debug #534 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/999fdbe1e6fd8ac2fd4a1053262e2365481b38f24c2b94592e87a9d5c638b759/main.spi
00:08:02 verbose #9270 > >
00:08:02 verbose #9271 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:02 verbose #9272 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:02 verbose #9273 > > │ ### (||>)                                                                    │
00:08:02 verbose #9274 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:02 verbose #9275 > >
00:08:02 verbose #9276 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:02 verbose #9277 > > //// test
00:08:02 verbose #9278 > > ///! fsharp
00:08:02 verbose #9279 > > ///! cuda
00:08:02 verbose #9280 > > ///! rust
00:08:02 verbose #9281 > > ///! typescript
00:08:02 verbose #9282 > > ///! python
00:08:02 verbose #9283 > >
00:08:02 verbose #9284 > > (3i32, 2i32)
00:08:02 verbose #9285 > > ||> fun a b => a - b
00:08:02 verbose #9286 > > |> _assert_eq 1
00:08:03 verbose #9287 > 00:08:02   debug #535 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/dd15b576f5b655c9d65b55a74fee7c4d7f14d92fac83e4e835a81157fc278d70/main.spi
00:08:03 verbose #9288 > 00:08:02   debug #536 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6e5328645466046bb167e72c59272bb9418fcc62482deeaf9242fd50b88af353/main.spi
00:08:07 verbose #9289 > >
00:08:07 verbose #9290 > > ╭─[ 4.62s - return value ]─────────────────────────────────────────────────────╮
00:08:07 verbose #9291 > > │ .py output (Cuda):                                                           │
00:08:07 verbose #9292 > > │ assert_eq / actual: 1 / expected: 1                                          │
00:08:07 verbose #9293 > > │                                                                              │
00:08:07 verbose #9294 > > │ .rs output:                                                                  │
00:08:07 verbose #9295 > > │ assert_eq / actual: 1 / expected: 1                                          │
00:08:07 verbose #9296 > > │                                                                              │
00:08:07 verbose #9297 > > │ .ts output:                                                                  │
00:08:07 verbose #9298 > > │ assert_eq / actual: 1 / expected: 1                                          │
00:08:07 verbose #9299 > > │                                                                              │
00:08:07 verbose #9300 > > │ .py output:                                                                  │
00:08:07 verbose #9301 > > │ assert_eq / actual: 1 / expected: 1                                          │
00:08:07 verbose #9302 > > │                                                                              │
00:08:07 verbose #9303 > > │                                                                              │
00:08:07 verbose #9304 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:07 verbose #9305 > >
00:08:07 verbose #9306 > > ╭─[ 4.63s - stdout ]───────────────────────────────────────────────────────────╮
00:08:07 verbose #9307 > > │ .fsx output:                                                                 │
00:08:07 verbose #9308 > > │ assert_eq / actual: 1 / expected: 1                                          │
00:08:07 verbose #9309 > > │                                                                              │
00:08:07 verbose #9310 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:07 verbose #9311 > >
00:08:07 verbose #9312 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:07 verbose #9313 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:07 verbose #9314 > > │ ### flip                                                                     │
00:08:07 verbose #9315 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:07 verbose #9316 > >
00:08:07 verbose #9317 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:07 verbose #9318 > > inl flip fn a b =
00:08:07 verbose #9319 > >     fn b a
00:08:07 verbose #9320 > 00:08:06   debug #537 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f6606cc765abb9676ae88ffa81052c86d6e8478eefab56262b8820e2c6d633d0/main.spi
00:08:07 verbose #9321 > >
00:08:07 verbose #9322 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:07 verbose #9323 > > //// test
00:08:07 verbose #9324 > > ///! fsharp
00:08:07 verbose #9325 > > ///! cuda
00:08:07 verbose #9326 > > ///! rust
00:08:07 verbose #9327 > > ///! typescript
00:08:07 verbose #9328 > > ///! python
00:08:07 verbose #9329 > >
00:08:07 verbose #9330 > > (1i32, 2i32)
00:08:07 verbose #9331 > > ||> flip pair
00:08:07 verbose #9332 > > |> _assert_eq (2, 1)
00:08:08 verbose #9333 > 00:08:07   debug #538 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e0c23a859c70f290b4cb12206ccf0532abdf6c6cdc597c4206bb4a93afff90eb/main.spi
00:08:08 verbose #9334 > 00:08:07   debug #539 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/90fc36f41e64468572a728d793796180ea6fe2e1688b7f6c7dee930bffceb10e/main.spi
00:08:11 verbose #9335 > >
00:08:11 verbose #9336 > > ╭─[ 3.85s - return value ]─────────────────────────────────────────────────────╮
00:08:11 verbose #9337 > > │ .py output (Cuda):                                                           │
00:08:11 verbose #9338 > > │ assert_eq / actual: (2, 1) / expected: (2, 1)                                │
00:08:11 verbose #9339 > > │                                                                              │
00:08:11 verbose #9340 > > │ .rs output:                                                                  │
00:08:11 verbose #9341 > > │ assert_eq / actual: (2, 1) / expected: (2, 1)                                │
00:08:11 verbose #9342 > > │                                                                              │
00:08:11 verbose #9343 > > │ .ts output:                                                                  │
00:08:11 verbose #9344 > > │ assert_eq / actual: 2,1 / expected: 2,1                                      │
00:08:11 verbose #9345 > > │                                                                              │
00:08:11 verbose #9346 > > │ .py output:                                                                  │
00:08:11 verbose #9347 > > │ assert_eq / actual: (2, 1) / expected: (2, 1)                                │
00:08:11 verbose #9348 > > │                                                                              │
00:08:11 verbose #9349 > > │                                                                              │
00:08:11 verbose #9350 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:11 verbose #9351 > >
00:08:11 verbose #9352 > > ╭─[ 3.85s - stdout ]───────────────────────────────────────────────────────────╮
00:08:11 verbose #9353 > > │ .fsx output:                                                                 │
00:08:11 verbose #9354 > > │ assert_eq / actual: struct (2, 1) / expected: struct (2, 1)                  │
00:08:11 verbose #9355 > > │                                                                              │
00:08:11 verbose #9356 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:11 verbose #9357 > >
00:08:11 verbose #9358 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:11 verbose #9359 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:11 verbose #9360 > > │ ### join_body                                                                │
00:08:11 verbose #9361 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:11 verbose #9362 > >
00:08:11 verbose #9363 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:11 verbose #9364 > > inl join_body body acc x =
00:08:11 verbose #9365 > >     if var_is x |> not
00:08:11 verbose #9366 > >     then body acc x
00:08:11 verbose #9367 > >     else
00:08:11 verbose #9368 > >         inl acc = dyn acc
00:08:11 verbose #9369 > >         join body acc x
00:08:11 verbose #9370 > 00:08:11   debug #540 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/bd8a18e11de8f5a360338827472f5fba8bbcf1dfbd15f4fd4b369262477e18ea/main.spi
00:08:12 verbose #9371 > >
00:08:12 verbose #9372 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:12 verbose #9373 > > //// test
00:08:12 verbose #9374 > >
00:08:12 verbose #9375 > > inl rec fold_list f s = function
00:08:12 verbose #9376 > >     | Cons (x, x') => fold_list f (f s x) x'
00:08:12 verbose #9377 > >     | Nil => s
00:08:12 verbose #9378 > 00:08:11   debug #541 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/cef1e8df0710981f51ac9c7d3fe4f814ff770789e9251b942881ff83670831e9/main.spi
00:08:12 verbose #9379 > >
00:08:12 verbose #9380 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:12 verbose #9381 > > //// test
00:08:12 verbose #9382 > > ///! fsharp
00:08:12 verbose #9383 > > ///! cuda
00:08:12 verbose #9384 > > ///! rust
00:08:12 verbose #9385 > > ///! typescript
00:08:12 verbose #9386 > > ///! python
00:08:12 verbose #9387 > > //// print_code=true
00:08:12 verbose #9388 > >
00:08:12 verbose #9389 > > [[ 5i32; 4; join 3; 2; 1 ]]
00:08:12 verbose #9390 > > |> fold_list (+) 0
00:08:12 verbose #9391 > > |> _assert_eq 15
00:08:12 verbose #9392 > 00:08:11   debug #542 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e587e50d304e9e5124f073902fd8e3513440eb0c6cc7c5b7fa479d8df447b260/main.spi
00:08:12 verbose #9393 > 00:08:11   debug #543 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7320be57e43129587415aec54a480c6af6cf50b163339fb451812bb42d8509ae/main.spi
00:08:17 verbose #9394 > >
00:08:17 verbose #9395 > > ╭─[ 4.92s - return value ]─────────────────────────────────────────────────────╮
00:08:17 verbose #9396 > > │ .py output (Cuda):                                                           │
00:08:17 verbose #9397 > > │ assert_eq / actual: 15 / expected: 15                                        │
00:08:17 verbose #9398 > > │                                                                              │
00:08:17 verbose #9399 > > │ .rs output:                                                                  │
00:08:17 verbose #9400 > > │ assert_eq / actual: 15 / expected: 15                                        │
00:08:17 verbose #9401 > > │                                                                              │
00:08:17 verbose #9402 > > │ .ts output:                                                                  │
00:08:17 verbose #9403 > > │ assert_eq / actual: 15 / expected: 15                                        │
00:08:17 verbose #9404 > > │                                                                              │
00:08:17 verbose #9405 > > │ .py output:                                                                  │
00:08:17 verbose #9406 > > │ assert_eq / actual: 15 / expected: 15                                        │
00:08:17 verbose #9407 > > │                                                                              │
00:08:17 verbose #9408 > > │                                                                              │
00:08:17 verbose #9409 > > │                                                                              │
00:08:17 verbose #9410 > > │                                                                              │
00:08:17 verbose #9411 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:17 verbose #9412 > >
00:08:17 verbose #9413 > > ╭─[ 4.92s - stdout ]───────────────────────────────────────────────────────────╮
00:08:17 verbose #9414 > > │ .fsx:                                                                        │
00:08:17 verbose #9415 > > │ let rec method1 () : int32 =                                                 │
00:08:17 verbose #9416 > > │     3                                                                        │
00:08:17 verbose #9417 > > │ and method2 (v0 : bool) : bool =                                             │
00:08:17 verbose #9418 > > │     v0                                                                       │
00:08:17 verbose #9419 > > │ and method0 () : unit =                                                      │
00:08:17 verbose #9420 > > │     let v0 : int32 = method1()                                               │
00:08:17 verbose #9421 > > │     let v1 : int32 = 9 + v0                                                  │
00:08:17 verbose #9422 > > │     let v2 : int32 = v1 + 2                                                  │
00:08:17 verbose #9423 > > │     let v3 : int32 = v2 + 1                                                  │
00:08:17 verbose #9424 > > │     let v4 : bool = v3 = 15                                                  │
00:08:17 verbose #9425 > > │     let v6 : bool =                                                          │
00:08:17 verbose #9426 > > │         if v4 then                                                           │
00:08:17 verbose #9427 > > │             true                                                             │
00:08:17 verbose #9428 > > │         else                                                                 │
00:08:17 verbose #9429 > > │             method2(v4)                                                      │
00:08:17 verbose #9430 > > │     let v9 : string = "assert_eq"                                            │
00:08:17 verbose #9431 > > │     let v10 : string = $"{v9} / actual: %A{v3} / expected: %A{15}"           │
00:08:17 verbose #9432 > > │     let v19 : (string -> unit) = System.Console.WriteLine                    │
00:08:17 verbose #9433 > > │     v19 v10                                                                  │
00:08:17 verbose #9434 > > │     let v24 : bool = v6 = false                                              │
00:08:17 verbose #9435 > > │     if v24 then                                                              │
00:08:17 verbose #9436 > > │         failwith<unit> v10                                                   │
00:08:17 verbose #9437 > > │ method0()                                                                    │
00:08:17 verbose #9438 > > │                                                                              │
00:08:17 verbose #9439 > > │                                                                              │
00:08:17 verbose #9440 > > │ .rs:                                                                         │
00:08:17 verbose #9441 > > │ #![allow(dead_code)]                                                         │
00:08:17 verbose #9442 > > │ #![allow(non_camel_case_types)]                                              │
00:08:17 verbose #9443 > > │ #![allow(non_snake_case)]                                                    │
00:08:17 verbose #9444 > > │ #![allow(non_upper_case_globals)]                                            │
00:08:17 verbose #9445 > > │ #![allow(unreachable_code)]                                                  │
00:08:17 verbose #9446 > > │ #![allow(unused_attributes)]                                                 │
00:08:17 verbose #9447 > > │ #![allow(unused_imports)]                                                    │
00:08:17 verbose #9448 > > │ #![allow(unused_macros)]                                                     │
00:08:17 verbose #9449 > > │ #![allow(unused_parens)]                                                     │
00:08:17 verbose #9450 > > │ #![allow(unused_variables)]                                                  │
00:08:17 verbose #9451 > > │ mod module_1586508e {                                                        │
00:08:17 verbose #9452 > > │     pub mod Spiral_builder {                                                 │
00:08:17 verbose #9453 > > │         use super::*;                                                        │
00:08:17 verbose #9454 > > │         use fable_library_rust::Native_::on_startup;                         │
00:08:17 verbose #9455 > > │         use fable_library_rust::String_::printfn;                            │
00:08:17 verbose #9456 > > │         use fable_library_rust::String_::sprintf;                            │
00:08:17 verbose #9457 > > │         use fable_library_rust::String_::string;                             │
00:08:17 verbose #9458 > > │         pub fn method1() -> i32 {                                            │
00:08:17 verbose #9459 > > │             3_i32                                                            │
00:08:17 verbose #9460 > > │         }                                                                    │
00:08:17 verbose #9461 > > │         pub fn method2(v0: bool) -> bool {                                   │
00:08:17 verbose #9462 > > │             v0                                                               │
00:08:17 verbose #9463 > > │         }                                                                    │
00:08:17 verbose #9464 > > │         pub fn method0() {                                                   │
00:08:17 verbose #9465 > > │             let v3: i32 = 9_i32 + Spiral_builder::method1() + 2_i32 + 1_i32; │
00:08:17 verbose #9466 > > │             let v4: bool = v3 == 15_i32;                                     │
00:08:17 verbose #9467 > > │             let v6: bool = if v4 {                                           │
00:08:17 verbose #9468 > > │                 true                                                         │
00:08:17 verbose #9469 > > │             } else {                                                         │
00:08:17 verbose #9470 > > │                 Spiral_builder::method2(v4)                                  │
00:08:17 verbose #9471 > > │             };                                                               │
00:08:17 verbose #9472 > > │             let v10: string = sprintf!(                                      │
00:08:17 verbose #9473 > > │                 "{} / actual: {:?} / expected: {:?}",                        │
00:08:17 verbose #9474 > > │                 string("assert_eq"),                                         │
00:08:17 verbose #9475 > > │                 v3,                                                          │
00:08:17 verbose #9476 > > │                 15_i32                                                       │
00:08:17 verbose #9477 > > │             );                                                               │
00:08:17 verbose #9478 > > │             printfn!("{0}", v10.clone());                                    │
00:08:17 verbose #9479 > > │             if v6 == false {                                                 │
00:08:17 verbose #9480 > > │                 panic!("{}", v10,);                                          │
00:08:17 verbose #9481 > > │             }                                                                │
00:08:17 verbose #9482 > > │         }                                                                    │
00:08:17 verbose #9483 > > │         on_startup!(Spiral_builder::method0());                              │
00:08:17 verbose #9484 > > │     }                                                                        │
00:08:17 verbose #9485 > > │ }                                                                            │
00:08:17 verbose #9486 > > │ pub use module_1586508e::*;                                                  │
00:08:17 verbose #9487 > > │                                                                              │
00:08:17 verbose #9488 > > │ pub fn main() -> Result<(), String> {                                        │
00:08:17 verbose #9489 > > │     Ok(())                                                                   │
00:08:17 verbose #9490 > > │ }                                                                            │
00:08:17 verbose #9491 > > │                                                                              │
00:08:17 verbose #9492 > > │ .ts:                                                                         │
00:08:17 verbose #9493 > > │ import { int32 } from "./fable_modules/fable-library-ts.4.19.3/Int32.js";    │
00:08:17 verbose #9494 > > │ import { interpolate, toText } from                                          │
00:08:17 verbose #9495 > > │ "./fable_modules/fable-library-ts.4.19.3/String.js";                         │
00:08:17 verbose #9496 > > │                                                                              │
00:08:17 verbose #9497 > > │ export function method1(): int32 {                                           │
00:08:17 verbose #9498 > > │     return 3;                                                                │
00:08:17 verbose #9499 > > │ }                                                                            │
00:08:17 verbose #9500 > > │                                                                              │
00:08:17 verbose #9501 > > │ export function method2(v0: boolean): boolean {                              │
00:08:17 verbose #9502 > > │     return v0;                                                               │
00:08:17 verbose #9503 > > │ }                                                                            │
00:08:17 verbose #9504 > > │                                                                              │
00:08:17 verbose #9505 > > │ export function method0(): void {                                            │
00:08:17 verbose #9506 > > │     const v3: int32 = (((9 + method1()) + 2) + 1) | 0;                       │
00:08:17 verbose #9507 > > │     const v4: boolean = v3 === 15;                                           │
00:08:17 verbose #9508 > > │     const v6: boolean = v4 ? true : method2(v4);                             │
00:08:17 verbose #9509 > > │     const v10: string = toText(interpolate("%P() / actual: %A%P() /          │
00:08:17 verbose #9510 > > │ expected: %A%P()", ["assert_eq", v3, 15]));                                  │
00:08:17 verbose #9511 > > │     console.log(v10);                                                        │
00:08:17 verbose #9512 > > │     if (v6 === false) {                                                      │
00:08:17 verbose #9513 > > │         throw new Error(v10);                                                │
00:08:17 verbose #9514 > > │     }                                                                        │
00:08:17 verbose #9515 > > │ }                                                                            │
00:08:17 verbose #9516 > > │                                                                              │
00:08:17 verbose #9517 > > │ method0();                                                                   │
00:08:17 verbose #9518 > > │                                                                              │
00:08:17 verbose #9519 > > │                                                                              │
00:08:17 verbose #9520 > > │                                                                              │
00:08:17 verbose #9521 > > │ // spiral_builder.process_typescript                                         │
00:08:17 verbose #9522 > > │                                                                              │
00:08:17 verbose #9523 > > │ .py:                                                                         │
00:08:17 verbose #9524 > > │ from fable_modules.fable_library.string_ import (to_text, interpolate)       │
00:08:17 verbose #9525 > > │                                                                              │
00:08:17 verbose #9526 > > │ def method1(__unit: None=None) -> int:                                       │
00:08:17 verbose #9527 > > │     return 3                                                                 │
00:08:17 verbose #9528 > > │                                                                              │
00:08:17 verbose #9529 > > │                                                                              │
00:08:17 verbose #9530 > > │ def method2(v0: bool) -> bool:                                               │
00:08:17 verbose #9531 > > │     return v0                                                                │
00:08:17 verbose #9532 > > │                                                                              │
00:08:17 verbose #9533 > > │                                                                              │
00:08:17 verbose #9534 > > │ def method0(__unit: None=None) -> None:                                      │
00:08:17 verbose #9535 > > │     v3: int = (((9 + method1()) + 2) + 1) or 0                               │
00:08:17 verbose #9536 > > │     v4: bool = v3 == 15                                                      │
00:08:17 verbose #9537 > > │     v6: bool = True if v4 else method2(v4)                                   │
00:08:17 verbose #9538 > > │     v10: str = to_text(interpolate("%P() / actual: %A%P() / expected:        │
00:08:17 verbose #9539 > > │ %A%P()", ["assert_eq", v3, 15]))                                             │
00:08:17 verbose #9540 > > │     print(v10)                                                               │
00:08:17 verbose #9541 > > │     if v6 == False:                                                          │
00:08:17 verbose #9542 > > │         raise Exception(v10)                                                 │
00:08:17 verbose #9543 > > │                                                                              │
00:08:17 verbose #9544 > > │                                                                              │
00:08:17 verbose #9545 > > │                                                                              │
00:08:17 verbose #9546 > > │ method0()                                                                    │
00:08:17 verbose #9547 > > │                                                                              │
00:08:17 verbose #9548 > > │                                                                              │
00:08:17 verbose #9549 > > │                                                                              │
00:08:17 verbose #9550 > > │ # spiral_builder.process_python                                              │
00:08:17 verbose #9551 > > │                                                                              │
00:08:17 verbose #9552 > > │ .py:                                                                         │
00:08:17 verbose #9553 > > │ kernel = r"""                                                                │
00:08:17 verbose #9554 > > │ """                                                                          │
00:08:17 verbose #9555 > > │ class static_array():                                                        │
00:08:17 verbose #9556 > > │     def __init__(self, length):                                              │
00:08:17 verbose #9557 > > │         self.ptr = []                                                        │
00:08:17 verbose #9558 > > │         for _ in range(length):                                              │
00:08:17 verbose #9559 > > │             self.ptr.append(None)                                            │
00:08:17 verbose #9560 > > │                                                                              │
00:08:17 verbose #9561 > > │     def __getitem__(self, index):                                            │
00:08:17 verbose #9562 > > │         assert 0 <= index < len(self.ptr), "The get index needs to be in     │
00:08:17 verbose #9563 > > │ range."                                                                      │
00:08:17 verbose #9564 > > │         return self.ptr[index]                                               │
00:08:17 verbose #9565 > > │                                                                              │
00:08:17 verbose #9566 > > │     def __setitem__(self, index, value):                                     │
00:08:17 verbose #9567 > > │         assert 0 <= index < len(self.ptr), "The set index needs to be in     │
00:08:17 verbose #9568 > > │ range."                                                                      │
00:08:17 verbose #9569 > > │         self.ptr[index] = value                                              │
00:08:17 verbose #9570 > > │                                                                              │
00:08:17 verbose #9571 > > │ class static_array_list(static_array):                                       │
00:08:17 verbose #9572 > > │     def __init__(self, length):                                              │
00:08:17 verbose #9573 > > │         super().__init__(length)                                             │
00:08:17 verbose #9574 > > │         self.length = 0                                                      │
00:08:17 verbose #9575 > > │                                                                              │
00:08:17 verbose #9576 > > │     def __getitem__(self, index):                                            │
00:08:17 verbose #9577 > > │         assert 0 <= index < self.length, "The get index needs to be in       │
00:08:17 verbose #9578 > > │ range."                                                                      │
00:08:17 verbose #9579 > > │         return self.ptr[index]                                               │
00:08:17 verbose #9580 > > │                                                                              │
00:08:17 verbose #9581 > > │     def __setitem__(self, index, value):                                     │
00:08:17 verbose #9582 > > │         assert 0 <= index < self.length, "The set index needs to be in       │
00:08:17 verbose #9583 > > │ range."                                                                      │
00:08:17 verbose #9584 > > │         self.ptr[index] = value                                              │
00:08:17 verbose #9585 > > │                                                                              │
00:08:17 verbose #9586 > > │     def push(self,value):                                                    │
00:08:17 verbose #9587 > > │         assert (self.length < len(self.ptr)), "The length before pushing has │
00:08:17 verbose #9588 > > │ to be less than the maximum length of the array."                            │
00:08:17 verbose #9589 > > │         self.ptr[self.length] = value                                        │
00:08:17 verbose #9590 > > │         self.length += 1                                                     │
00:08:17 verbose #9591 > > │                                                                              │
00:08:17 verbose #9592 > > │     def pop(self):                                                           │
00:08:17 verbose #9593 > > │         assert (0 < self.length), "The length before popping has to be       │
00:08:17 verbose #9594 > > │ greater than 0."                                                             │
00:08:17 verbose #9595 > > │         self.length -= 1                                                     │
00:08:17 verbose #9596 > > │         return self.ptr[self.length]                                         │
00:08:17 verbose #9597 > > │                                                                              │
00:08:17 verbose #9598 > > │     def unsafe_set_length(self,i):                                           │
00:08:17 verbose #9599 > > │         assert 0 <= i <= len(self.ptr), "The new length has to be in range." │
00:08:17 verbose #9600 > > │         self.length = i                                                      │
00:08:17 verbose #9601 > > │                                                                              │
00:08:17 verbose #9602 > > │ class dynamic_array(static_array):                                           │
00:08:17 verbose #9603 > > │     pass                                                                     │
00:08:17 verbose #9604 > > │                                                                              │
00:08:17 verbose #9605 > > │ class dynamic_array_list(static_array_list):                                 │
00:08:17 verbose #9606 > > │     def length_(self): return self.length                                    │
00:08:17 verbose #9607 > > │                                                                              │
00:08:17 verbose #9608 > > │ import cupy as cp                                                            │
00:08:17 verbose #9609 > > │ from dataclasses import dataclass                                            │
00:08:17 verbose #9610 > > │ from typing import NamedTuple, Union, Callable, Tuple                        │
00:08:17 verbose #9611 > > │ i8 = i16 = i32 = i64 = u8 = u16 = u32 = u64 = int; f32 = f64 = float; char = │
00:08:17 verbose #9612 > > │ string = str                                                                 │
00:08:17 verbose #9613 > > │                                                                              │
00:08:17 verbose #9614 > > │ def method1() -> i32:                                                        │
00:08:17 verbose #9615 > > │     return 3                                                                 │
00:08:17 verbose #9616 > > │ def method2(v0 : bool) -> bool:                                              │
00:08:17 verbose #9617 > > │     return v0                                                                │
00:08:17 verbose #9618 > > │ def method0() -> None:                                                       │
00:08:17 verbose #9619 > > │     v0 = method1()                                                           │
00:08:17 verbose #9620 > > │     v1 = 9 + v0                                                              │
00:08:17 verbose #9621 > > │     del v0                                                                   │
00:08:17 verbose #9622 > > │     v2 = v1 + 2                                                              │
00:08:17 verbose #9623 > > │     del v1                                                                   │
00:08:17 verbose #9624 > > │     v3 = v2 + 1                                                              │
00:08:17 verbose #9625 > > │     del v2                                                                   │
00:08:17 verbose #9626 > > │     v4 = v3 == 15                                                            │
00:08:17 verbose #9627 > > │     if v4:                                                                   │
00:08:17 verbose #9628 > > │         v6 = True                                                            │
00:08:17 verbose #9629 > > │     else:                                                                    │
00:08:17 verbose #9630 > > │         v6 = method2(v4)                                                     │
00:08:17 verbose #9631 > > │     del v4                                                                   │
00:08:17 verbose #9632 > > │     v13 = "assert_eq"                                                        │
00:08:17 verbose #9633 > > │     v14 = f"{v13} / actual: {v3} / expected: {15}"                           │
00:08:17 verbose #9634 > > │     del v3, v13                                                              │
00:08:17 verbose #9635 > > │     print(v14)                                                               │
00:08:17 verbose #9636 > > │     v25 = v6 == False                                                        │
00:08:17 verbose #9637 > > │     del v6                                                                   │
00:08:17 verbose #9638 > > │     if v25:                                                                  │
00:08:17 verbose #9639 > > │         del v25                                                              │
00:08:17 verbose #9640 > > │         raise Exception(v14)                                                 │
00:08:17 verbose #9641 > > │     else:                                                                    │
00:08:17 verbose #9642 > > │         del v14, v25                                                         │
00:08:17 verbose #9643 > > │         return                                                               │
00:08:17 verbose #9644 > > │ def main():                                                                  │
00:08:17 verbose #9645 > > │     return method0()                                                         │
00:08:17 verbose #9646 > > │                                                                              │
00:08:17 verbose #9647 > > │ if __name__ == '__main__': result = main(); None if result is None else      │
00:08:17 verbose #9648 > > │ print(result)                                                                │
00:08:17 verbose #9649 > > │                                                                              │
00:08:17 verbose #9650 > > │                                                                              │
00:08:17 verbose #9651 > > │ .py:                                                                         │
00:08:17 verbose #9652 > > │ kernel = r"""                                                                │
00:08:17 verbose #9653 > > │ """                                                                          │
00:08:17 verbose #9654 > > │ class static_array():                                                        │
00:08:17 verbose #9655 > > │     def __init__(self, length):                                              │
00:08:17 verbose #9656 > > │         self.ptr = []                                                        │
00:08:17 verbose #9657 > > │         for _ in range(length):                                              │
00:08:17 verbose #9658 > > │             self.ptr.append(None)                                            │
00:08:17 verbose #9659 > > │                                                                              │
00:08:17 verbose #9660 > > │     def __getitem__(self, index):                                            │
00:08:17 verbose #9661 > > │         assert 0 <= index < len(self.ptr), "The get index needs to be in     │
00:08:17 verbose #9662 > > │ range."                                                                      │
00:08:17 verbose #9663 > > │         return self.ptr[index]                                               │
00:08:17 verbose #9664 > > │                                                                              │
00:08:17 verbose #9665 > > │     def __setitem__(self, index, value):                                     │
00:08:17 verbose #9666 > > │         assert 0 <= index < len(self.ptr), "The set index needs to be in     │
00:08:17 verbose #9667 > > │ range."                                                                      │
00:08:17 verbose #9668 > > │         self.ptr[index] = value                                              │
00:08:17 verbose #9669 > > │                                                                              │
00:08:17 verbose #9670 > > │ class static_array_list(static_array):                                       │
00:08:17 verbose #9671 > > │     def __init__(self, length):                                              │
00:08:17 verbose #9672 > > │         super().__init__(length)                                             │
00:08:17 verbose #9673 > > │         self.length = 0                                                      │
00:08:17 verbose #9674 > > │                                                                              │
00:08:17 verbose #9675 > > │     def __getitem__(self, index):                                            │
00:08:17 verbose #9676 > > │         assert 0 <= index < self.length, "The get index needs to be in       │
00:08:17 verbose #9677 > > │ range."                                                                      │
00:08:17 verbose #9678 > > │         return self.ptr[index]                                               │
00:08:17 verbose #9679 > > │                                                                              │
00:08:17 verbose #9680 > > │     def __setitem__(self, index, value):                                     │
00:08:17 verbose #9681 > > │         assert 0 <= index < self.length, "The set index needs to be in       │
00:08:17 verbose #9682 > > │ range."                                                                      │
00:08:17 verbose #9683 > > │         self.ptr[index] = value                                              │
00:08:17 verbose #9684 > > │                                                                              │
00:08:17 verbose #9685 > > │     def push(self,value):                                                    │
00:08:17 verbose #9686 > > │         assert (self.length < len(self.ptr)), "The length before pushing has │
00:08:17 verbose #9687 > > │ to be less than the maximum length of the array."                            │
00:08:17 verbose #9688 > > │         self.ptr[self.length] = value                                        │
00:08:17 verbose #9689 > > │         self.length += 1                                                     │
00:08:17 verbose #9690 > > │                                                                              │
00:08:17 verbose #9691 > > │     def pop(self):                                                           │
00:08:17 verbose #9692 > > │         assert (0 < self.length), "The length before popping has to be       │
00:08:17 verbose #9693 > > │ greater than 0."                                                             │
00:08:17 verbose #9694 > > │         self.length -= 1                                                     │
00:08:17 verbose #9695 > > │         return self.ptr[self.length]                                         │
00:08:17 verbose #9696 > > │                                                                              │
00:08:17 verbose #9697 > > │     def unsafe_set_length(self,i):                                           │
00:08:17 verbose #9698 > > │         assert 0 <= i <= len(self.ptr), "The new length has to be in range." │
00:08:17 verbose #9699 > > │         self.length = i                                                      │
00:08:17 verbose #9700 > > │                                                                              │
00:08:17 verbose #9701 > > │ class dynamic_array(static_array):                                           │
00:08:17 verbose #9702 > > │     pass                                                                     │
00:08:17 verbose #9703 > > │                                                                              │
00:08:17 verbose #9704 > > │ class dynamic_array_list(static_array_list):                                 │
00:08:17 verbose #9705 > > │     def length_(self): return self.length                                    │
00:08:17 verbose #9706 > > │                                                                              │
00:08:17 verbose #9707 > > │ import cupy as cp                                                            │
00:08:17 verbose #9708 > > │ from dataclasses import dataclass                                            │
00:08:17 verbose #9709 > > │ from typing import NamedTuple, Union, Callable, Tuple                        │
00:08:17 verbose #9710 > > │ i8 = i16 = i32 = i64 = u8 = u16 = u32 = u64 = int; f32 = f64 = float; char = │
00:08:17 verbose #9711 > > │ string = str                                                                 │
00:08:17 verbose #9712 > > │                                                                              │
00:08:17 verbose #9713 > > │ def method1() -> i32:                                                        │
00:08:17 verbose #9714 > > │     return 3                                                                 │
00:08:17 verbose #9715 > > │ def method2(v0 : bool) -> bool:                                              │
00:08:17 verbose #9716 > > │     return v0                                                                │
00:08:17 verbose #9717 > > │ def method0() -> None:                                                       │
00:08:17 verbose #9718 > > │     v0 = method1()                                                           │
00:08:17 verbose #9719 > > │     v1 = 9 + v0                                                              │
00:08:17 verbose #9720 > > │     del v0                                                                   │
00:08:17 verbose #9721 > > │     v2 = v1 + 2                                                              │
00:08:17 verbose #9722 > > │     del v1                                                                   │
00:08:17 verbose #9723 > > │     v3 = v2 + 1                                                              │
00:08:17 verbose #9724 > > │     del v2                                                                   │
00:08:17 verbose #9725 > > │     v4 = v3 == 15                                                            │
00:08:17 verbose #9726 > > │     if v4:                                                                   │
00:08:17 verbose #9727 > > │         v6 = True                                                            │
00:08:17 verbose #9728 > > │     else:                                                                    │
00:08:17 verbose #9729 > > │         v6 = method2(v4)                                                     │
00:08:17 verbose #9730 > > │     del v4                                                                   │
00:08:17 verbose #9731 > > │     v13 = "assert_eq"                                                        │
00:08:17 verbose #9732 > > │     v14 = f"{v13} / actual: {v3} / expected: {15}"                           │
00:08:17 verbose #9733 > > │     del v3, v13                                                              │
00:08:17 verbose #9734 > > │     print(v14)                                                               │
00:08:17 verbose #9735 > > │     v25 = v6 == False                                                        │
00:08:17 verbose #9736 > > │     del v6                                                                   │
00:08:17 verbose #9737 > > │     if v25:                                                                  │
00:08:17 verbose #9738 > > │         del v25                                                              │
00:08:17 verbose #9739 > > │         raise Exception(v14)                                                 │
00:08:17 verbose #9740 > > │     else:                                                                    │
00:08:17 verbose #9741 > > │         del v14, v25                                                         │
00:08:17 verbose #9742 > > │         return                                                               │
00:08:17 verbose #9743 > > │ def main():                                                                  │
00:08:17 verbose #9744 > > │     return method0()                                                         │
00:08:17 verbose #9745 > > │                                                                              │
00:08:17 verbose #9746 > > │ if __name__ == '__main__': result = main(); None if result is None else      │
00:08:17 verbose #9747 > > │ print(result)                                                                │
00:08:17 verbose #9748 > > │                                                                              │
00:08:17 verbose #9749 > > │ .fsx output:                                                                 │
00:08:17 verbose #9750 > > │ assert_eq / actual: 15 / expected: 15                                        │
00:08:17 verbose #9751 > > │                                                                              │
00:08:17 verbose #9752 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:17 verbose #9753 > >
00:08:17 verbose #9754 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:17 verbose #9755 > > //// test
00:08:17 verbose #9756 > > ///! fsharp
00:08:17 verbose #9757 > > ///! cuda
00:08:17 verbose #9758 > > ///! rust
00:08:17 verbose #9759 > > ///! typescript
00:08:17 verbose #9760 > > ///! python
00:08:17 verbose #9761 > > //// print_code=true
00:08:17 verbose #9762 > >
00:08:17 verbose #9763 > > [[ 5i32; 4; join 3; 2; 1 ]]
00:08:17 verbose #9764 > > |> fold_list (join_body (+)) 0
00:08:17 verbose #9765 > > |> _assert_eq 15
00:08:17 verbose #9766 > 00:08:16   debug #544 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/51aa154a9430d1863d66b93f9534554ea44a220c6657cdee343116430546cf11/main.spi
00:08:17 verbose #9767 > 00:08:16   debug #545 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/64d416b32f474bc59c370e32c50284af0bcd64f9b4b3078c5639ca77d16cce0e/main.spi
00:08:21 verbose #9768 > >
00:08:21 verbose #9769 > > ╭─[ 3.99s - return value ]─────────────────────────────────────────────────────╮
00:08:21 verbose #9770 > > │ .py output (Cuda):                                                           │
00:08:21 verbose #9771 > > │ assert_eq / actual: 15 / expected: 15                                        │
00:08:21 verbose #9772 > > │                                                                              │
00:08:21 verbose #9773 > > │ .rs output:                                                                  │
00:08:21 verbose #9774 > > │ assert_eq / actual: 15 / expected: 15                                        │
00:08:21 verbose #9775 > > │                                                                              │
00:08:21 verbose #9776 > > │ .ts output:                                                                  │
00:08:21 verbose #9777 > > │ assert_eq / actual: 15 / expected: 15                                        │
00:08:21 verbose #9778 > > │                                                                              │
00:08:21 verbose #9779 > > │ .py output:                                                                  │
00:08:21 verbose #9780 > > │ assert_eq / actual: 15 / expected: 15                                        │
00:08:21 verbose #9781 > > │                                                                              │
00:08:21 verbose #9782 > > │                                                                              │
00:08:21 verbose #9783 > > │                                                                              │
00:08:21 verbose #9784 > > │                                                                              │
00:08:21 verbose #9785 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:21 verbose #9786 > >
00:08:21 verbose #9787 > > ╭─[ 4.00s - stdout ]───────────────────────────────────────────────────────────╮
00:08:21 verbose #9788 > > │ .fsx:                                                                        │
00:08:21 verbose #9789 > > │ let rec method1 () : int32 =                                                 │
00:08:21 verbose #9790 > > │     3                                                                        │
00:08:21 verbose #9791 > > │ and method2 (v0 : int32, v1 : int32) : int32 =                               │
00:08:21 verbose #9792 > > │     let v2 : int32 = v1 + v0                                                 │
00:08:21 verbose #9793 > > │     v2                                                                       │
00:08:21 verbose #9794 > > │ and method3 (v0 : bool) : bool =                                             │
00:08:21 verbose #9795 > > │     v0                                                                       │
00:08:21 verbose #9796 > > │ and method0 () : unit =                                                      │
00:08:21 verbose #9797 > > │     let v0 : int32 = method1()                                               │
00:08:21 verbose #9798 > > │     let v1 : int32 = 9                                                       │
00:08:21 verbose #9799 > > │     let v2 : int32 = method2(v0, v1)                                         │
00:08:21 verbose #9800 > > │     let v3 : int32 = v2 + 2                                                  │
00:08:21 verbose #9801 > > │     let v4 : int32 = v3 + 1                                                  │
00:08:21 verbose #9802 > > │     let v5 : bool = v4 = 15                                                  │
00:08:21 verbose #9803 > > │     let v7 : bool =                                                          │
00:08:21 verbose #9804 > > │         if v5 then                                                           │
00:08:21 verbose #9805 > > │             true                                                             │
00:08:21 verbose #9806 > > │         else                                                                 │
00:08:21 verbose #9807 > > │             method3(v5)                                                      │
00:08:21 verbose #9808 > > │     let v10 : string = "assert_eq"                                           │
00:08:21 verbose #9809 > > │     let v11 : string = $"{v10} / actual: %A{v4} / expected: %A{15}"          │
00:08:21 verbose #9810 > > │     let v20 : (string -> unit) = System.Console.WriteLine                    │
00:08:21 verbose #9811 > > │     v20 v11                                                                  │
00:08:21 verbose #9812 > > │     let v25 : bool = v7 = false                                              │
00:08:21 verbose #9813 > > │     if v25 then                                                              │
00:08:21 verbose #9814 > > │         failwith<unit> v11                                                   │
00:08:21 verbose #9815 > > │ method0()                                                                    │
00:08:21 verbose #9816 > > │                                                                              │
00:08:21 verbose #9817 > > │                                                                              │
00:08:21 verbose #9818 > > │ .rs:                                                                         │
00:08:21 verbose #9819 > > │ #![allow(dead_code)]                                                         │
00:08:21 verbose #9820 > > │ #![allow(non_camel_case_types)]                                              │
00:08:21 verbose #9821 > > │ #![allow(non_snake_case)]                                                    │
00:08:21 verbose #9822 > > │ #![allow(non_upper_case_globals)]                                            │
00:08:21 verbose #9823 > > │ #![allow(unreachable_code)]                                                  │
00:08:21 verbose #9824 > > │ #![allow(unused_attributes)]                                                 │
00:08:21 verbose #9825 > > │ #![allow(unused_imports)]                                                    │
00:08:21 verbose #9826 > > │ #![allow(unused_macros)]                                                     │
00:08:21 verbose #9827 > > │ #![allow(unused_parens)]                                                     │
00:08:21 verbose #9828 > > │ #![allow(unused_variables)]                                                  │
00:08:21 verbose #9829 > > │ mod module_357ff3b3 {                                                        │
00:08:21 verbose #9830 > > │     pub mod Spiral_builder {                                                 │
00:08:21 verbose #9831 > > │         use super::*;                                                        │
00:08:21 verbose #9832 > > │         use fable_library_rust::Native_::on_startup;                         │
00:08:21 verbose #9833 > > │         use fable_library_rust::String_::printfn;                            │
00:08:21 verbose #9834 > > │         use fable_library_rust::String_::sprintf;                            │
00:08:21 verbose #9835 > > │         use fable_library_rust::String_::string;                             │
00:08:21 verbose #9836 > > │         pub fn method1() -> i32 {                                            │
00:08:21 verbose #9837 > > │             3_i32                                                            │
00:08:21 verbose #9838 > > │         }                                                                    │
00:08:21 verbose #9839 > > │         pub fn method2(v0: i32, v1: i32) -> i32 {                            │
00:08:21 verbose #9840 > > │             v1 + v0                                                          │
00:08:21 verbose #9841 > > │         }                                                                    │
00:08:21 verbose #9842 > > │         pub fn method3(v0: bool) -> bool {                                   │
00:08:21 verbose #9843 > > │             v0                                                               │
00:08:21 verbose #9844 > > │         }                                                                    │
00:08:21 verbose #9845 > > │         pub fn method0() {                                                   │
00:08:21 verbose #9846 > > │             let v4: i32 = Spiral_builder::method2(Spiral_builder::method1(), │
00:08:21 verbose #9847 > > │ 9_i32) + 2_i32 + 1_i32;                                                      │
00:08:21 verbose #9848 > > │             let v5: bool = v4 == 15_i32;                                     │
00:08:21 verbose #9849 > > │             let v7: bool = if v5 {                                           │
00:08:21 verbose #9850 > > │                 true                                                         │
00:08:21 verbose #9851 > > │             } else {                                                         │
00:08:21 verbose #9852 > > │                 Spiral_builder::method3(v5)                                  │
00:08:21 verbose #9853 > > │             };                                                               │
00:08:21 verbose #9854 > > │             let v11: string = sprintf!(                                      │
00:08:21 verbose #9855 > > │                 "{} / actual: {:?} / expected: {:?}",                        │
00:08:21 verbose #9856 > > │                 string("assert_eq"),                                         │
00:08:21 verbose #9857 > > │                 v4,                                                          │
00:08:21 verbose #9858 > > │                 15_i32                                                       │
00:08:21 verbose #9859 > > │             );                                                               │
00:08:21 verbose #9860 > > │             printfn!("{0}", v11.clone());                                    │
00:08:21 verbose #9861 > > │             if v7 == false {                                                 │
00:08:21 verbose #9862 > > │                 panic!("{}", v11,);                                          │
00:08:21 verbose #9863 > > │             }                                                                │
00:08:21 verbose #9864 > > │         }                                                                    │
00:08:21 verbose #9865 > > │         on_startup!(Spiral_builder::method0());                              │
00:08:21 verbose #9866 > > │     }                                                                        │
00:08:21 verbose #9867 > > │ }                                                                            │
00:08:21 verbose #9868 > > │ pub use module_357ff3b3::*;                                                  │
00:08:21 verbose #9869 > > │                                                                              │
00:08:21 verbose #9870 > > │ pub fn main() -> Result<(), String> {                                        │
00:08:21 verbose #9871 > > │     Ok(())                                                                   │
00:08:21 verbose #9872 > > │ }                                                                            │
00:08:21 verbose #9873 > > │                                                                              │
00:08:21 verbose #9874 > > │ .ts:                                                                         │
00:08:21 verbose #9875 > > │ import { int32 } from "./fable_modules/fable-library-ts.4.19.3/Int32.js";    │
00:08:21 verbose #9876 > > │ import { interpolate, toText } from                                          │
00:08:21 verbose #9877 > > │ "./fable_modules/fable-library-ts.4.19.3/String.js";                         │
00:08:21 verbose #9878 > > │                                                                              │
00:08:21 verbose #9879 > > │ export function method1(): int32 {                                           │
00:08:21 verbose #9880 > > │     return 3;                                                                │
00:08:21 verbose #9881 > > │ }                                                                            │
00:08:21 verbose #9882 > > │                                                                              │
00:08:21 verbose #9883 > > │ export function method2(v0: int32, v1: int32): int32 {                       │
00:08:21 verbose #9884 > > │     return v1 + v0;                                                          │
00:08:21 verbose #9885 > > │ }                                                                            │
00:08:21 verbose #9886 > > │                                                                              │
00:08:21 verbose #9887 > > │ export function method3(v0: boolean): boolean {                              │
00:08:21 verbose #9888 > > │     return v0;                                                               │
00:08:21 verbose #9889 > > │ }                                                                            │
00:08:21 verbose #9890 > > │                                                                              │
00:08:21 verbose #9891 > > │ export function method0(): void {                                            │
00:08:21 verbose #9892 > > │     const v4: int32 = ((method2(method1(), 9) + 2) + 1) | 0;                 │
00:08:21 verbose #9893 > > │     const v5: boolean = v4 === 15;                                           │
00:08:21 verbose #9894 > > │     const v7: boolean = v5 ? true : method3(v5);                             │
00:08:21 verbose #9895 > > │     const v11: string = toText(interpolate("%P() / actual: %A%P() /          │
00:08:21 verbose #9896 > > │ expected: %A%P()", ["assert_eq", v4, 15]));                                  │
00:08:21 verbose #9897 > > │     console.log(v11);                                                        │
00:08:21 verbose #9898 > > │     if (v7 === false) {                                                      │
00:08:21 verbose #9899 > > │         throw new Error(v11);                                                │
00:08:21 verbose #9900 > > │     }                                                                        │
00:08:21 verbose #9901 > > │ }                                                                            │
00:08:21 verbose #9902 > > │                                                                              │
00:08:21 verbose #9903 > > │ method0();                                                                   │
00:08:21 verbose #9904 > > │                                                                              │
00:08:21 verbose #9905 > > │                                                                              │
00:08:21 verbose #9906 > > │                                                                              │
00:08:21 verbose #9907 > > │ // spiral_builder.process_typescript                                         │
00:08:21 verbose #9908 > > │                                                                              │
00:08:21 verbose #9909 > > │ .py:                                                                         │
00:08:21 verbose #9910 > > │ from fable_modules.fable_library.string_ import (to_text, interpolate)       │
00:08:21 verbose #9911 > > │                                                                              │
00:08:21 verbose #9912 > > │ def method1(__unit: None=None) -> int:                                       │
00:08:21 verbose #9913 > > │     return 3                                                                 │
00:08:21 verbose #9914 > > │                                                                              │
00:08:21 verbose #9915 > > │                                                                              │
00:08:21 verbose #9916 > > │ def method2(v0: int, v1: int) -> int:                                        │
00:08:21 verbose #9917 > > │     return v1 + v0                                                           │
00:08:21 verbose #9918 > > │                                                                              │
00:08:21 verbose #9919 > > │                                                                              │
00:08:21 verbose #9920 > > │ def method3(v0: bool) -> bool:                                               │
00:08:21 verbose #9921 > > │     return v0                                                                │
00:08:21 verbose #9922 > > │                                                                              │
00:08:21 verbose #9923 > > │                                                                              │
00:08:21 verbose #9924 > > │ def method0(__unit: None=None) -> None:                                      │
00:08:21 verbose #9925 > > │     v4: int = ((method2(method1(), 9) + 2) + 1) or 0                         │
00:08:21 verbose #9926 > > │     v5: bool = v4 == 15                                                      │
00:08:21 verbose #9927 > > │     v7: bool = True if v5 else method3(v5)                                   │
00:08:21 verbose #9928 > > │     v11: str = to_text(interpolate("%P() / actual: %A%P() / expected:        │
00:08:21 verbose #9929 > > │ %A%P()", ["assert_eq", v4, 15]))                                             │
00:08:21 verbose #9930 > > │     print(v11)                                                               │
00:08:21 verbose #9931 > > │     if v7 == False:                                                          │
00:08:21 verbose #9932 > > │         raise Exception(v11)                                                 │
00:08:21 verbose #9933 > > │                                                                              │
00:08:21 verbose #9934 > > │                                                                              │
00:08:21 verbose #9935 > > │                                                                              │
00:08:21 verbose #9936 > > │ method0()                                                                    │
00:08:21 verbose #9937 > > │                                                                              │
00:08:21 verbose #9938 > > │                                                                              │
00:08:21 verbose #9939 > > │                                                                              │
00:08:21 verbose #9940 > > │ # spiral_builder.process_python                                              │
00:08:21 verbose #9941 > > │                                                                              │
00:08:21 verbose #9942 > > │ .py:                                                                         │
00:08:21 verbose #9943 > > │ kernel = r"""                                                                │
00:08:21 verbose #9944 > > │ """                                                                          │
00:08:21 verbose #9945 > > │ class static_array():                                                        │
00:08:21 verbose #9946 > > │     def __init__(self, length):                                              │
00:08:21 verbose #9947 > > │         self.ptr = []                                                        │
00:08:21 verbose #9948 > > │         for _ in range(length):                                              │
00:08:21 verbose #9949 > > │             self.ptr.append(None)                                            │
00:08:21 verbose #9950 > > │                                                                              │
00:08:21 verbose #9951 > > │     def __getitem__(self, index):                                            │
00:08:21 verbose #9952 > > │         assert 0 <= index < len(self.ptr), "The get index needs to be in     │
00:08:21 verbose #9953 > > │ range."                                                                      │
00:08:21 verbose #9954 > > │         return self.ptr[index]                                               │
00:08:21 verbose #9955 > > │                                                                              │
00:08:21 verbose #9956 > > │     def __setitem__(self, index, value):                                     │
00:08:21 verbose #9957 > > │         assert 0 <= index < len(self.ptr), "The set index needs to be in     │
00:08:21 verbose #9958 > > │ range."                                                                      │
00:08:21 verbose #9959 > > │         self.ptr[index] = value                                              │
00:08:21 verbose #9960 > > │                                                                              │
00:08:21 verbose #9961 > > │ class static_array_list(static_array):                                       │
00:08:21 verbose #9962 > > │     def __init__(self, length):                                              │
00:08:21 verbose #9963 > > │         super().__init__(length)                                             │
00:08:21 verbose #9964 > > │         self.length = 0                                                      │
00:08:21 verbose #9965 > > │                                                                              │
00:08:21 verbose #9966 > > │     def __getitem__(self, index):                                            │
00:08:21 verbose #9967 > > │         assert 0 <= index < self.length, "The get index needs to be in       │
00:08:21 verbose #9968 > > │ range."                                                                      │
00:08:21 verbose #9969 > > │         return self.ptr[index]                                               │
00:08:21 verbose #9970 > > │                                                                              │
00:08:21 verbose #9971 > > │     def __setitem__(self, index, value):                                     │
00:08:21 verbose #9972 > > │         assert 0 <= index < self.length, "The set index needs to be in       │
00:08:21 verbose #9973 > > │ range."                                                                      │
00:08:21 verbose #9974 > > │         self.ptr[index] = value                                              │
00:08:21 verbose #9975 > > │                                                                              │
00:08:21 verbose #9976 > > │     def push(self,value):                                                    │
00:08:21 verbose #9977 > > │         assert (self.length < len(self.ptr)), "The length before pushing has │
00:08:21 verbose #9978 > > │ to be less than the maximum length of the array."                            │
00:08:21 verbose #9979 > > │         self.ptr[self.length] = value                                        │
00:08:21 verbose #9980 > > │         self.length += 1                                                     │
00:08:21 verbose #9981 > > │                                                                              │
00:08:21 verbose #9982 > > │     def pop(self):                                                           │
00:08:21 verbose #9983 > > │         assert (0 < self.length), "The length before popping has to be       │
00:08:21 verbose #9984 > > │ greater than 0."                                                             │
00:08:21 verbose #9985 > > │         self.length -= 1                                                     │
00:08:21 verbose #9986 > > │         return self.ptr[self.length]                                         │
00:08:21 verbose #9987 > > │                                                                              │
00:08:21 verbose #9988 > > │     def unsafe_set_length(self,i):                                           │
00:08:21 verbose #9989 > > │         assert 0 <= i <= len(self.ptr), "The new length has to be in range." │
00:08:21 verbose #9990 > > │         self.length = i                                                      │
00:08:21 verbose #9991 > > │                                                                              │
00:08:21 verbose #9992 > > │ class dynamic_array(static_array):                                           │
00:08:21 verbose #9993 > > │     pass                                                                     │
00:08:21 verbose #9994 > > │                                                                              │
00:08:21 verbose #9995 > > │ class dynamic_array_list(static_array_list):                                 │
00:08:21 verbose #9996 > > │     def length_(self): return self.length                                    │
00:08:21 verbose #9997 > > │                                                                              │
00:08:21 verbose #9998 > > │ import cupy as cp                                                            │
00:08:21 verbose #9999 > > │ from dataclasses import dataclass                                            │
00:08:21 verbose #10000 > > │ from typing import NamedTuple, Union, Callable, Tuple                        │
00:08:21 verbose #10001 > > │ i8 = i16 = i32 = i64 = u8 = u16 = u32 = u64 = int; f32 = f64 = float; char = │
00:08:21 verbose #10002 > > │ string = str                                                                 │
00:08:21 verbose #10003 > > │                                                                              │
00:08:21 verbose #10004 > > │ def method1() -> i32:                                                        │
00:08:21 verbose #10005 > > │     return 3                                                                 │
00:08:21 verbose #10006 > > │ def method2(v0 : i32, v1 : i32) -> i32:                                      │
00:08:21 verbose #10007 > > │     v2 = v1 + v0                                                             │
00:08:21 verbose #10008 > > │     del v0, v1                                                               │
00:08:21 verbose #10009 > > │     return v2                                                                │
00:08:21 verbose #10010 > > │ def method3(v0 : bool) -> bool:                                              │
00:08:21 verbose #10011 > > │     return v0                                                                │
00:08:21 verbose #10012 > > │ def method0() -> None:                                                       │
00:08:21 verbose #10013 > > │     v0 = method1()                                                           │
00:08:21 verbose #10014 > > │     v1 = 9                                                                   │
00:08:21 verbose #10015 > > │     v2 = method2(v0, v1)                                                     │
00:08:21 verbose #10016 > > │     del v0, v1                                                               │
00:08:21 verbose #10017 > > │     v3 = v2 + 2                                                              │
00:08:21 verbose #10018 > > │     del v2                                                                   │
00:08:21 verbose #10019 > > │     v4 = v3 + 1                                                              │
00:08:21 verbose #10020 > > │     del v3                                                                   │
00:08:21 verbose #10021 > > │     v5 = v4 == 15                                                            │
00:08:21 verbose #10022 > > │     if v5:                                                                   │
00:08:21 verbose #10023 > > │         v7 = True                                                            │
00:08:21 verbose #10024 > > │     else:                                                                    │
00:08:21 verbose #10025 > > │         v7 = method3(v5)                                                     │
00:08:21 verbose #10026 > > │     del v5                                                                   │
00:08:21 verbose #10027 > > │     v14 = "assert_eq"                                                        │
00:08:21 verbose #10028 > > │     v15 = f"{v14} / actual: {v4} / expected: {15}"                           │
00:08:21 verbose #10029 > > │     del v4, v14                                                              │
00:08:21 verbose #10030 > > │     print(v15)                                                               │
00:08:21 verbose #10031 > > │     v26 = v7 == False                                                        │
00:08:21 verbose #10032 > > │     del v7                                                                   │
00:08:21 verbose #10033 > > │     if v26:                                                                  │
00:08:21 verbose #10034 > > │         del v26                                                              │
00:08:21 verbose #10035 > > │         raise Exception(v15)                                                 │
00:08:21 verbose #10036 > > │     else:                                                                    │
00:08:21 verbose #10037 > > │         del v15, v26                                                         │
00:08:21 verbose #10038 > > │         return                                                               │
00:08:21 verbose #10039 > > │ def main():                                                                  │
00:08:21 verbose #10040 > > │     return method0()                                                         │
00:08:21 verbose #10041 > > │                                                                              │
00:08:21 verbose #10042 > > │ if __name__ == '__main__': result = main(); None if result is None else      │
00:08:21 verbose #10043 > > │ print(result)                                                                │
00:08:21 verbose #10044 > > │                                                                              │
00:08:21 verbose #10045 > > │                                                                              │
00:08:21 verbose #10046 > > │ .py:                                                                         │
00:08:21 verbose #10047 > > │ kernel = r"""                                                                │
00:08:21 verbose #10048 > > │ """                                                                          │
00:08:21 verbose #10049 > > │ class static_array():                                                        │
00:08:21 verbose #10050 > > │     def __init__(self, length):                                              │
00:08:21 verbose #10051 > > │         self.ptr = []                                                        │
00:08:21 verbose #10052 > > │         for _ in range(length):                                              │
00:08:21 verbose #10053 > > │             self.ptr.append(None)                                            │
00:08:21 verbose #10054 > > │                                                                              │
00:08:21 verbose #10055 > > │     def __getitem__(self, index):                                            │
00:08:21 verbose #10056 > > │         assert 0 <= index < len(self.ptr), "The get index needs to be in     │
00:08:21 verbose #10057 > > │ range."                                                                      │
00:08:21 verbose #10058 > > │         return self.ptr[index]                                               │
00:08:21 verbose #10059 > > │                                                                              │
00:08:21 verbose #10060 > > │     def __setitem__(self, index, value):                                     │
00:08:21 verbose #10061 > > │         assert 0 <= index < len(self.ptr), "The set index needs to be in     │
00:08:21 verbose #10062 > > │ range."                                                                      │
00:08:21 verbose #10063 > > │         self.ptr[index] = value                                              │
00:08:21 verbose #10064 > > │                                                                              │
00:08:21 verbose #10065 > > │ class static_array_list(static_array):                                       │
00:08:21 verbose #10066 > > │     def __init__(self, length):                                              │
00:08:21 verbose #10067 > > │         super().__init__(length)                                             │
00:08:21 verbose #10068 > > │         self.length = 0                                                      │
00:08:21 verbose #10069 > > │                                                                              │
00:08:21 verbose #10070 > > │     def __getitem__(self, index):                                            │
00:08:21 verbose #10071 > > │         assert 0 <= index < self.length, "The get index needs to be in       │
00:08:21 verbose #10072 > > │ range."                                                                      │
00:08:21 verbose #10073 > > │         return self.ptr[index]                                               │
00:08:21 verbose #10074 > > │                                                                              │
00:08:21 verbose #10075 > > │     def __setitem__(self, index, value):                                     │
00:08:21 verbose #10076 > > │         assert 0 <= index < self.length, "The set index needs to be in       │
00:08:21 verbose #10077 > > │ range."                                                                      │
00:08:21 verbose #10078 > > │         self.ptr[index] = value                                              │
00:08:21 verbose #10079 > > │                                                                              │
00:08:21 verbose #10080 > > │     def push(self,value):                                                    │
00:08:21 verbose #10081 > > │         assert (self.length < len(self.ptr)), "The length before pushing has │
00:08:21 verbose #10082 > > │ to be less than the maximum length of the array."                            │
00:08:21 verbose #10083 > > │         self.ptr[self.length] = value                                        │
00:08:21 verbose #10084 > > │         self.length += 1                                                     │
00:08:21 verbose #10085 > > │                                                                              │
00:08:21 verbose #10086 > > │     def pop(self):                                                           │
00:08:21 verbose #10087 > > │         assert (0 < self.length), "The length before popping has to be       │
00:08:21 verbose #10088 > > │ greater than 0."                                                             │
00:08:21 verbose #10089 > > │         self.length -= 1                                                     │
00:08:21 verbose #10090 > > │         return self.ptr[self.length]                                         │
00:08:21 verbose #10091 > > │                                                                              │
00:08:21 verbose #10092 > > │     def unsafe_set_length(self,i):                                           │
00:08:21 verbose #10093 > > │         assert 0 <= i <= len(self.ptr), "The new length has to be in range." │
00:08:21 verbose #10094 > > │         self.length = i                                                      │
00:08:21 verbose #10095 > > │                                                                              │
00:08:21 verbose #10096 > > │ class dynamic_array(static_array):                                           │
00:08:21 verbose #10097 > > │     pass                                                                     │
00:08:21 verbose #10098 > > │                                                                              │
00:08:21 verbose #10099 > > │ class dynamic_array_list(static_array_list):                                 │
00:08:21 verbose #10100 > > │     def length_(self): return self.length                                    │
00:08:21 verbose #10101 > > │                                                                              │
00:08:21 verbose #10102 > > │ import cupy as cp                                                            │
00:08:21 verbose #10103 > > │ from dataclasses import dataclass                                            │
00:08:21 verbose #10104 > > │ from typing import NamedTuple, Union, Callable, Tuple                        │
00:08:21 verbose #10105 > > │ i8 = i16 = i32 = i64 = u8 = u16 = u32 = u64 = int; f32 = f64 = float; char = │
00:08:21 verbose #10106 > > │ string = str                                                                 │
00:08:21 verbose #10107 > > │                                                                              │
00:08:21 verbose #10108 > > │ def method1() -> i32:                                                        │
00:08:21 verbose #10109 > > │     return 3                                                                 │
00:08:21 verbose #10110 > > │ def method2(v0 : i32, v1 : i32) -> i32:                                      │
00:08:21 verbose #10111 > > │     v2 = v1 + v0                                                             │
00:08:21 verbose #10112 > > │     del v0, v1                                                               │
00:08:21 verbose #10113 > > │     return v2                                                                │
00:08:21 verbose #10114 > > │ def method3(v0 : bool) -> bool:                                              │
00:08:21 verbose #10115 > > │     return v0                                                                │
00:08:21 verbose #10116 > > │ def method0() -> None:                                                       │
00:08:21 verbose #10117 > > │     v0 = method1()                                                           │
00:08:21 verbose #10118 > > │     v1 = 9                                                                   │
00:08:21 verbose #10119 > > │     v2 = method2(v0, v1)                                                     │
00:08:21 verbose #10120 > > │     del v0, v1                                                               │
00:08:21 verbose #10121 > > │     v3 = v2 + 2                                                              │
00:08:21 verbose #10122 > > │     del v2                                                                   │
00:08:21 verbose #10123 > > │     v4 = v3 + 1                                                              │
00:08:21 verbose #10124 > > │     del v3                                                                   │
00:08:21 verbose #10125 > > │     v5 = v4 == 15                                                            │
00:08:21 verbose #10126 > > │     if v5:                                                                   │
00:08:21 verbose #10127 > > │         v7 = True                                                            │
00:08:21 verbose #10128 > > │     else:                                                                    │
00:08:21 verbose #10129 > > │         v7 = method3(v5)                                                     │
00:08:21 verbose #10130 > > │     del v5                                                                   │
00:08:21 verbose #10131 > > │     v14 = "assert_eq"                                                        │
00:08:21 verbose #10132 > > │     v15 = f"{v14} / actual: {v4} / expected: {15}"                           │
00:08:21 verbose #10133 > > │     del v4, v14                                                              │
00:08:21 verbose #10134 > > │     print(v15)                                                               │
00:08:21 verbose #10135 > > │     v26 = v7 == False                                                        │
00:08:21 verbose #10136 > > │     del v7                                                                   │
00:08:21 verbose #10137 > > │     if v26:                                                                  │
00:08:21 verbose #10138 > > │         del v26                                                              │
00:08:21 verbose #10139 > > │         raise Exception(v15)                                                 │
00:08:21 verbose #10140 > > │     else:                                                                    │
00:08:21 verbose #10141 > > │         del v15, v26                                                         │
00:08:21 verbose #10142 > > │         return                                                               │
00:08:21 verbose #10143 > > │ def main():                                                                  │
00:08:21 verbose #10144 > > │     return method0()                                                         │
00:08:21 verbose #10145 > > │                                                                              │
00:08:21 verbose #10146 > > │ if __name__ == '__main__': result = main(); None if result is None else      │
00:08:21 verbose #10147 > > │ print(result)                                                                │
00:08:21 verbose #10148 > > │                                                                              │
00:08:21 verbose #10149 > > │ .fsx output:                                                                 │
00:08:21 verbose #10150 > > │ assert_eq / actual: 15 / expected: 15                                        │
00:08:21 verbose #10151 > > │                                                                              │
00:08:21 verbose #10152 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:21 verbose #10153 > >
00:08:21 verbose #10154 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:21 verbose #10155 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:21 verbose #10156 > > │ ### join_body_unit                                                           │
00:08:21 verbose #10157 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:21 verbose #10158 > >
00:08:21 verbose #10159 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:21 verbose #10160 > > inl join_body_unit body d x =
00:08:21 verbose #10161 > >     if var_is d |> not
00:08:21 verbose #10162 > >     then body x
00:08:21 verbose #10163 > >     else
00:08:21 verbose #10164 > >         inl x = dyn x
00:08:21 verbose #10165 > >         join body x
00:08:21 verbose #10166 > 00:08:20   debug #546 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/342a8c67d734af4ae9c681123bb2e4e84b5341ca9b9de8884387ddb0a1328776/main.spi
00:08:21 verbose #10167 > >
00:08:21 verbose #10168 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:21 verbose #10169 > > //// test
00:08:21 verbose #10170 > > ///! fsharp
00:08:21 verbose #10171 > > ///! cuda
00:08:21 verbose #10172 > > ///! rust
00:08:21 verbose #10173 > > ///! typescript
00:08:21 verbose #10174 > > ///! python
00:08:21 verbose #10175 > > //// print_code=true
00:08:21 verbose #10176 > >
00:08:21 verbose #10177 > > [[ 5i32; 4; join 3; 2; 1 ]]
00:08:21 verbose #10178 > > |> fold_list (fun acc n => join_body_unit ((+) acc) n n) 0
00:08:21 verbose #10179 > > |> _assert_eq 15
00:08:21 verbose #10180 > 00:08:21   debug #547 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/93650681598085c942fdeadd20c789f8c13cfebe01f1a42420b7924d62a463e0/main.spi
00:08:21 verbose #10181 > 00:08:21   debug #548 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/35e0592a79aebcdb9fe9d6c1a39649e9824c9eeac908e8c53758d1cbbf15f5a8/main.spi
00:08:25 verbose #10182 > >
00:08:25 verbose #10183 > > ╭─[ 3.69s - return value ]─────────────────────────────────────────────────────╮
00:08:25 verbose #10184 > > │ .py output (Cuda):                                                           │
00:08:25 verbose #10185 > > │ assert_eq / actual: 15 / expected: 15                                        │
00:08:25 verbose #10186 > > │                                                                              │
00:08:25 verbose #10187 > > │ .rs output:                                                                  │
00:08:25 verbose #10188 > > │ assert_eq / actual: 15 / expected: 15                                        │
00:08:25 verbose #10189 > > │                                                                              │
00:08:25 verbose #10190 > > │ .ts output:                                                                  │
00:08:25 verbose #10191 > > │ assert_eq / actual: 15 / expected: 15                                        │
00:08:25 verbose #10192 > > │                                                                              │
00:08:25 verbose #10193 > > │ .py output:                                                                  │
00:08:25 verbose #10194 > > │ assert_eq / actual: 15 / expected: 15                                        │
00:08:25 verbose #10195 > > │                                                                              │
00:08:25 verbose #10196 > > │                                                                              │
00:08:25 verbose #10197 > > │                                                                              │
00:08:25 verbose #10198 > > │                                                                              │
00:08:25 verbose #10199 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:25 verbose #10200 > >
00:08:25 verbose #10201 > > ╭─[ 3.69s - stdout ]───────────────────────────────────────────────────────────╮
00:08:25 verbose #10202 > > │ .fsx:                                                                        │
00:08:25 verbose #10203 > > │ let rec method1 () : int32 =                                                 │
00:08:25 verbose #10204 > > │     3                                                                        │
00:08:25 verbose #10205 > > │ and method2 (v0 : int32) : int32 =                                           │
00:08:25 verbose #10206 > > │     let v1 : int32 = 9 + v0                                                  │
00:08:25 verbose #10207 > > │     v1                                                                       │
00:08:25 verbose #10208 > > │ and method3 (v0 : bool) : bool =                                             │
00:08:25 verbose #10209 > > │     v0                                                                       │
00:08:25 verbose #10210 > > │ and method0 () : unit =                                                      │
00:08:25 verbose #10211 > > │     let v0 : int32 = method1()                                               │
00:08:25 verbose #10212 > > │     let v1 : int32 = method2(v0)                                             │
00:08:25 verbose #10213 > > │     let v2 : int32 = v1 + 2                                                  │
00:08:25 verbose #10214 > > │     let v3 : int32 = v2 + 1                                                  │
00:08:25 verbose #10215 > > │     let v4 : bool = v3 = 15                                                  │
00:08:25 verbose #10216 > > │     let v6 : bool =                                                          │
00:08:25 verbose #10217 > > │         if v4 then                                                           │
00:08:25 verbose #10218 > > │             true                                                             │
00:08:25 verbose #10219 > > │         else                                                                 │
00:08:25 verbose #10220 > > │             method3(v4)                                                      │
00:08:25 verbose #10221 > > │     let v9 : string = "assert_eq"                                            │
00:08:25 verbose #10222 > > │     let v10 : string = $"{v9} / actual: %A{v3} / expected: %A{15}"           │
00:08:25 verbose #10223 > > │     let v19 : (string -> unit) = System.Console.WriteLine                    │
00:08:25 verbose #10224 > > │     v19 v10                                                                  │
00:08:25 verbose #10225 > > │     let v24 : bool = v6 = false                                              │
00:08:25 verbose #10226 > > │     if v24 then                                                              │
00:08:25 verbose #10227 > > │         failwith<unit> v10                                                   │
00:08:25 verbose #10228 > > │ method0()                                                                    │
00:08:25 verbose #10229 > > │                                                                              │
00:08:25 verbose #10230 > > │                                                                              │
00:08:25 verbose #10231 > > │ .rs:                                                                         │
00:08:25 verbose #10232 > > │ #![allow(dead_code)]                                                         │
00:08:25 verbose #10233 > > │ #![allow(non_camel_case_types)]                                              │
00:08:25 verbose #10234 > > │ #![allow(non_snake_case)]                                                    │
00:08:25 verbose #10235 > > │ #![allow(non_upper_case_globals)]                                            │
00:08:25 verbose #10236 > > │ #![allow(unreachable_code)]                                                  │
00:08:25 verbose #10237 > > │ #![allow(unused_attributes)]                                                 │
00:08:25 verbose #10238 > > │ #![allow(unused_imports)]                                                    │
00:08:25 verbose #10239 > > │ #![allow(unused_macros)]                                                     │
00:08:25 verbose #10240 > > │ #![allow(unused_parens)]                                                     │
00:08:25 verbose #10241 > > │ #![allow(unused_variables)]                                                  │
00:08:25 verbose #10242 > > │ mod module_14108a7f {                                                        │
00:08:25 verbose #10243 > > │     pub mod Spiral_builder {                                                 │
00:08:25 verbose #10244 > > │         use super::*;                                                        │
00:08:25 verbose #10245 > > │         use fable_library_rust::Native_::on_startup;                         │
00:08:25 verbose #10246 > > │         use fable_library_rust::String_::printfn;                            │
00:08:25 verbose #10247 > > │         use fable_library_rust::String_::sprintf;                            │
00:08:25 verbose #10248 > > │         use fable_library_rust::String_::string;                             │
00:08:25 verbose #10249 > > │         pub fn method1() -> i32 {                                            │
00:08:25 verbose #10250 > > │             3_i32                                                            │
00:08:25 verbose #10251 > > │         }                                                                    │
00:08:25 verbose #10252 > > │         pub fn method2(v0: i32) -> i32 {                                     │
00:08:25 verbose #10253 > > │             9_i32 + v0                                                       │
00:08:25 verbose #10254 > > │         }                                                                    │
00:08:25 verbose #10255 > > │         pub fn method3(v0: bool) -> bool {                                   │
00:08:25 verbose #10256 > > │             v0                                                               │
00:08:25 verbose #10257 > > │         }                                                                    │
00:08:25 verbose #10258 > > │         pub fn method0() {                                                   │
00:08:25 verbose #10259 > > │             let v3: i32 = Spiral_builder::method2(Spiral_builder::method1()) │
00:08:25 verbose #10260 > > │ + 2_i32 + 1_i32;                                                             │
00:08:25 verbose #10261 > > │             let v4: bool = v3 == 15_i32;                                     │
00:08:25 verbose #10262 > > │             let v6: bool = if v4 {                                           │
00:08:25 verbose #10263 > > │                 true                                                         │
00:08:25 verbose #10264 > > │             } else {                                                         │
00:08:25 verbose #10265 > > │                 Spiral_builder::method3(v4)                                  │
00:08:25 verbose #10266 > > │             };                                                               │
00:08:25 verbose #10267 > > │             let v10: string = sprintf!(                                      │
00:08:25 verbose #10268 > > │                 "{} / actual: {:?} / expected: {:?}",                        │
00:08:25 verbose #10269 > > │                 string("assert_eq"),                                         │
00:08:25 verbose #10270 > > │                 v3,                                                          │
00:08:25 verbose #10271 > > │                 15_i32                                                       │
00:08:25 verbose #10272 > > │             );                                                               │
00:08:25 verbose #10273 > > │             printfn!("{0}", v10.clone());                                    │
00:08:25 verbose #10274 > > │             if v6 == false {                                                 │
00:08:25 verbose #10275 > > │                 panic!("{}", v10,);                                          │
00:08:25 verbose #10276 > > │             }                                                                │
00:08:25 verbose #10277 > > │         }                                                                    │
00:08:25 verbose #10278 > > │         on_startup!(Spiral_builder::method0());                              │
00:08:25 verbose #10279 > > │     }                                                                        │
00:08:25 verbose #10280 > > │ }                                                                            │
00:08:25 verbose #10281 > > │ pub use module_14108a7f::*;                                                  │
00:08:25 verbose #10282 > > │                                                                              │
00:08:25 verbose #10283 > > │ pub fn main() -> Result<(), String> {                                        │
00:08:25 verbose #10284 > > │     Ok(())                                                                   │
00:08:25 verbose #10285 > > │ }                                                                            │
00:08:25 verbose #10286 > > │                                                                              │
00:08:25 verbose #10287 > > │ .ts:                                                                         │
00:08:25 verbose #10288 > > │ import { int32 } from "./fable_modules/fable-library-ts.4.19.3/Int32.js";    │
00:08:25 verbose #10289 > > │ import { interpolate, toText } from                                          │
00:08:25 verbose #10290 > > │ "./fable_modules/fable-library-ts.4.19.3/String.js";                         │
00:08:25 verbose #10291 > > │                                                                              │
00:08:25 verbose #10292 > > │ export function method1(): int32 {                                           │
00:08:25 verbose #10293 > > │     return 3;                                                                │
00:08:25 verbose #10294 > > │ }                                                                            │
00:08:25 verbose #10295 > > │                                                                              │
00:08:25 verbose #10296 > > │ export function method2(v0: int32): int32 {                                  │
00:08:25 verbose #10297 > > │     return 9 + v0;                                                           │
00:08:25 verbose #10298 > > │ }                                                                            │
00:08:25 verbose #10299 > > │                                                                              │
00:08:25 verbose #10300 > > │ export function method3(v0: boolean): boolean {                              │
00:08:25 verbose #10301 > > │     return v0;                                                               │
00:08:25 verbose #10302 > > │ }                                                                            │
00:08:25 verbose #10303 > > │                                                                              │
00:08:25 verbose #10304 > > │ export function method0(): void {                                            │
00:08:25 verbose #10305 > > │     const v3: int32 = ((method2(method1()) + 2) + 1) | 0;                    │
00:08:25 verbose #10306 > > │     const v4: boolean = v3 === 15;                                           │
00:08:25 verbose #10307 > > │     const v6: boolean = v4 ? true : method3(v4);                             │
00:08:25 verbose #10308 > > │     const v10: string = toText(interpolate("%P() / actual: %A%P() /          │
00:08:25 verbose #10309 > > │ expected: %A%P()", ["assert_eq", v3, 15]));                                  │
00:08:25 verbose #10310 > > │     console.log(v10);                                                        │
00:08:25 verbose #10311 > > │     if (v6 === false) {                                                      │
00:08:25 verbose #10312 > > │         throw new Error(v10);                                                │
00:08:25 verbose #10313 > > │     }                                                                        │
00:08:25 verbose #10314 > > │ }                                                                            │
00:08:25 verbose #10315 > > │                                                                              │
00:08:25 verbose #10316 > > │ method0();                                                                   │
00:08:25 verbose #10317 > > │                                                                              │
00:08:25 verbose #10318 > > │                                                                              │
00:08:25 verbose #10319 > > │                                                                              │
00:08:25 verbose #10320 > > │ // spiral_builder.process_typescript                                         │
00:08:25 verbose #10321 > > │                                                                              │
00:08:25 verbose #10322 > > │ .py:                                                                         │
00:08:25 verbose #10323 > > │ from fable_modules.fable_library.string_ import (to_text, interpolate)       │
00:08:25 verbose #10324 > > │                                                                              │
00:08:25 verbose #10325 > > │ def method1(__unit: None=None) -> int:                                       │
00:08:25 verbose #10326 > > │     return 3                                                                 │
00:08:25 verbose #10327 > > │                                                                              │
00:08:25 verbose #10328 > > │                                                                              │
00:08:25 verbose #10329 > > │ def method2(v0: int) -> int:                                                 │
00:08:25 verbose #10330 > > │     return 9 + v0                                                            │
00:08:25 verbose #10331 > > │                                                                              │
00:08:25 verbose #10332 > > │                                                                              │
00:08:25 verbose #10333 > > │ def method3(v0: bool) -> bool:                                               │
00:08:25 verbose #10334 > > │     return v0                                                                │
00:08:25 verbose #10335 > > │                                                                              │
00:08:25 verbose #10336 > > │                                                                              │
00:08:25 verbose #10337 > > │ def method0(__unit: None=None) -> None:                                      │
00:08:25 verbose #10338 > > │     v3: int = ((method2(method1()) + 2) + 1) or 0                            │
00:08:25 verbose #10339 > > │     v4: bool = v3 == 15                                                      │
00:08:25 verbose #10340 > > │     v6: bool = True if v4 else method3(v4)                                   │
00:08:25 verbose #10341 > > │     v10: str = to_text(interpolate("%P() / actual: %A%P() / expected:        │
00:08:25 verbose #10342 > > │ %A%P()", ["assert_eq", v3, 15]))                                             │
00:08:25 verbose #10343 > > │     print(v10)                                                               │
00:08:25 verbose #10344 > > │     if v6 == False:                                                          │
00:08:25 verbose #10345 > > │         raise Exception(v10)                                                 │
00:08:25 verbose #10346 > > │                                                                              │
00:08:25 verbose #10347 > > │                                                                              │
00:08:25 verbose #10348 > > │                                                                              │
00:08:25 verbose #10349 > > │ method0()                                                                    │
00:08:25 verbose #10350 > > │                                                                              │
00:08:25 verbose #10351 > > │                                                                              │
00:08:25 verbose #10352 > > │                                                                              │
00:08:25 verbose #10353 > > │ # spiral_builder.process_python                                              │
00:08:25 verbose #10354 > > │                                                                              │
00:08:25 verbose #10355 > > │ .py:                                                                         │
00:08:25 verbose #10356 > > │ kernel = r"""                                                                │
00:08:25 verbose #10357 > > │ """                                                                          │
00:08:25 verbose #10358 > > │ class static_array():                                                        │
00:08:25 verbose #10359 > > │     def __init__(self, length):                                              │
00:08:25 verbose #10360 > > │         self.ptr = []                                                        │
00:08:25 verbose #10361 > > │         for _ in range(length):                                              │
00:08:25 verbose #10362 > > │             self.ptr.append(None)                                            │
00:08:25 verbose #10363 > > │                                                                              │
00:08:25 verbose #10364 > > │     def __getitem__(self, index):                                            │
00:08:25 verbose #10365 > > │         assert 0 <= index < len(self.ptr), "The get index needs to be in     │
00:08:25 verbose #10366 > > │ range."                                                                      │
00:08:25 verbose #10367 > > │         return self.ptr[index]                                               │
00:08:25 verbose #10368 > > │                                                                              │
00:08:25 verbose #10369 > > │     def __setitem__(self, index, value):                                     │
00:08:25 verbose #10370 > > │         assert 0 <= index < len(self.ptr), "The set index needs to be in     │
00:08:25 verbose #10371 > > │ range."                                                                      │
00:08:25 verbose #10372 > > │         self.ptr[index] = value                                              │
00:08:25 verbose #10373 > > │                                                                              │
00:08:25 verbose #10374 > > │ class static_array_list(static_array):                                       │
00:08:25 verbose #10375 > > │     def __init__(self, length):                                              │
00:08:25 verbose #10376 > > │         super().__init__(length)                                             │
00:08:25 verbose #10377 > > │         self.length = 0                                                      │
00:08:25 verbose #10378 > > │                                                                              │
00:08:25 verbose #10379 > > │     def __getitem__(self, index):                                            │
00:08:25 verbose #10380 > > │         assert 0 <= index < self.length, "The get index needs to be in       │
00:08:25 verbose #10381 > > │ range."                                                                      │
00:08:25 verbose #10382 > > │         return self.ptr[index]                                               │
00:08:25 verbose #10383 > > │                                                                              │
00:08:25 verbose #10384 > > │     def __setitem__(self, index, value):                                     │
00:08:25 verbose #10385 > > │         assert 0 <= index < self.length, "The set index needs to be in       │
00:08:25 verbose #10386 > > │ range."                                                                      │
00:08:25 verbose #10387 > > │         self.ptr[index] = value                                              │
00:08:25 verbose #10388 > > │                                                                              │
00:08:25 verbose #10389 > > │     def push(self,value):                                                    │
00:08:25 verbose #10390 > > │         assert (self.length < len(self.ptr)), "The length before pushing has │
00:08:25 verbose #10391 > > │ to be less than the maximum length of the array."                            │
00:08:25 verbose #10392 > > │         self.ptr[self.length] = value                                        │
00:08:25 verbose #10393 > > │         self.length += 1                                                     │
00:08:25 verbose #10394 > > │                                                                              │
00:08:25 verbose #10395 > > │     def pop(self):                                                           │
00:08:25 verbose #10396 > > │         assert (0 < self.length), "The length before popping has to be       │
00:08:25 verbose #10397 > > │ greater than 0."                                                             │
00:08:25 verbose #10398 > > │         self.length -= 1                                                     │
00:08:25 verbose #10399 > > │         return self.ptr[self.length]                                         │
00:08:25 verbose #10400 > > │                                                                              │
00:08:25 verbose #10401 > > │     def unsafe_set_length(self,i):                                           │
00:08:25 verbose #10402 > > │         assert 0 <= i <= len(self.ptr), "The new length has to be in range." │
00:08:25 verbose #10403 > > │         self.length = i                                                      │
00:08:25 verbose #10404 > > │                                                                              │
00:08:25 verbose #10405 > > │ class dynamic_array(static_array):                                           │
00:08:25 verbose #10406 > > │     pass                                                                     │
00:08:25 verbose #10407 > > │                                                                              │
00:08:25 verbose #10408 > > │ class dynamic_array_list(static_array_list):                                 │
00:08:25 verbose #10409 > > │     def length_(self): return self.length                                    │
00:08:25 verbose #10410 > > │                                                                              │
00:08:25 verbose #10411 > > │ import cupy as cp                                                            │
00:08:25 verbose #10412 > > │ from dataclasses import dataclass                                            │
00:08:25 verbose #10413 > > │ from typing import NamedTuple, Union, Callable, Tuple                        │
00:08:25 verbose #10414 > > │ i8 = i16 = i32 = i64 = u8 = u16 = u32 = u64 = int; f32 = f64 = float; char = │
00:08:25 verbose #10415 > > │ string = str                                                                 │
00:08:25 verbose #10416 > > │                                                                              │
00:08:25 verbose #10417 > > │ def method1() -> i32:                                                        │
00:08:25 verbose #10418 > > │     return 3                                                                 │
00:08:25 verbose #10419 > > │ def method2(v0 : i32) -> i32:                                                │
00:08:25 verbose #10420 > > │     v1 = 9 + v0                                                              │
00:08:25 verbose #10421 > > │     del v0                                                                   │
00:08:25 verbose #10422 > > │     return v1                                                                │
00:08:25 verbose #10423 > > │ def method3(v0 : bool) -> bool:                                              │
00:08:25 verbose #10424 > > │     return v0                                                                │
00:08:25 verbose #10425 > > │ def method0() -> None:                                                       │
00:08:25 verbose #10426 > > │     v0 = method1()                                                           │
00:08:25 verbose #10427 > > │     v1 = method2(v0)                                                         │
00:08:25 verbose #10428 > > │     del v0                                                                   │
00:08:25 verbose #10429 > > │     v2 = v1 + 2                                                              │
00:08:25 verbose #10430 > > │     del v1                                                                   │
00:08:25 verbose #10431 > > │     v3 = v2 + 1                                                              │
00:08:25 verbose #10432 > > │     del v2                                                                   │
00:08:25 verbose #10433 > > │     v4 = v3 == 15                                                            │
00:08:25 verbose #10434 > > │     if v4:                                                                   │
00:08:25 verbose #10435 > > │         v6 = True                                                            │
00:08:25 verbose #10436 > > │     else:                                                                    │
00:08:25 verbose #10437 > > │         v6 = method3(v4)                                                     │
00:08:25 verbose #10438 > > │     del v4                                                                   │
00:08:25 verbose #10439 > > │     v13 = "assert_eq"                                                        │
00:08:25 verbose #10440 > > │     v14 = f"{v13} / actual: {v3} / expected: {15}"                           │
00:08:25 verbose #10441 > > │     del v3, v13                                                              │
00:08:25 verbose #10442 > > │     print(v14)                                                               │
00:08:25 verbose #10443 > > │     v25 = v6 == False                                                        │
00:08:25 verbose #10444 > > │     del v6                                                                   │
00:08:25 verbose #10445 > > │     if v25:                                                                  │
00:08:25 verbose #10446 > > │         del v25                                                              │
00:08:25 verbose #10447 > > │         raise Exception(v14)                                                 │
00:08:25 verbose #10448 > > │     else:                                                                    │
00:08:25 verbose #10449 > > │         del v14, v25                                                         │
00:08:25 verbose #10450 > > │         return                                                               │
00:08:25 verbose #10451 > > │ def main():                                                                  │
00:08:25 verbose #10452 > > │     return method0()                                                         │
00:08:25 verbose #10453 > > │                                                                              │
00:08:25 verbose #10454 > > │ if __name__ == '__main__': result = main(); None if result is None else      │
00:08:25 verbose #10455 > > │ print(result)                                                                │
00:08:25 verbose #10456 > > │                                                                              │
00:08:25 verbose #10457 > > │                                                                              │
00:08:25 verbose #10458 > > │ .py:                                                                         │
00:08:25 verbose #10459 > > │ kernel = r"""                                                                │
00:08:25 verbose #10460 > > │ """                                                                          │
00:08:25 verbose #10461 > > │ class static_array():                                                        │
00:08:25 verbose #10462 > > │     def __init__(self, length):                                              │
00:08:25 verbose #10463 > > │         self.ptr = []                                                        │
00:08:25 verbose #10464 > > │         for _ in range(length):                                              │
00:08:25 verbose #10465 > > │             self.ptr.append(None)                                            │
00:08:25 verbose #10466 > > │                                                                              │
00:08:25 verbose #10467 > > │     def __getitem__(self, index):                                            │
00:08:25 verbose #10468 > > │         assert 0 <= index < len(self.ptr), "The get index needs to be in     │
00:08:25 verbose #10469 > > │ range."                                                                      │
00:08:25 verbose #10470 > > │         return self.ptr[index]                                               │
00:08:25 verbose #10471 > > │                                                                              │
00:08:25 verbose #10472 > > │     def __setitem__(self, index, value):                                     │
00:08:25 verbose #10473 > > │         assert 0 <= index < len(self.ptr), "The set index needs to be in     │
00:08:25 verbose #10474 > > │ range."                                                                      │
00:08:25 verbose #10475 > > │         self.ptr[index] = value                                              │
00:08:25 verbose #10476 > > │                                                                              │
00:08:25 verbose #10477 > > │ class static_array_list(static_array):                                       │
00:08:25 verbose #10478 > > │     def __init__(self, length):                                              │
00:08:25 verbose #10479 > > │         super().__init__(length)                                             │
00:08:25 verbose #10480 > > │         self.length = 0                                                      │
00:08:25 verbose #10481 > > │                                                                              │
00:08:25 verbose #10482 > > │     def __getitem__(self, index):                                            │
00:08:25 verbose #10483 > > │         assert 0 <= index < self.length, "The get index needs to be in       │
00:08:25 verbose #10484 > > │ range."                                                                      │
00:08:25 verbose #10485 > > │         return self.ptr[index]                                               │
00:08:25 verbose #10486 > > │                                                                              │
00:08:25 verbose #10487 > > │     def __setitem__(self, index, value):                                     │
00:08:25 verbose #10488 > > │         assert 0 <= index < self.length, "The set index needs to be in       │
00:08:25 verbose #10489 > > │ range."                                                                      │
00:08:25 verbose #10490 > > │         self.ptr[index] = value                                              │
00:08:25 verbose #10491 > > │                                                                              │
00:08:25 verbose #10492 > > │     def push(self,value):                                                    │
00:08:25 verbose #10493 > > │         assert (self.length < len(self.ptr)), "The length before pushing has │
00:08:25 verbose #10494 > > │ to be less than the maximum length of the array."                            │
00:08:25 verbose #10495 > > │         self.ptr[self.length] = value                                        │
00:08:25 verbose #10496 > > │         self.length += 1                                                     │
00:08:25 verbose #10497 > > │                                                                              │
00:08:25 verbose #10498 > > │     def pop(self):                                                           │
00:08:25 verbose #10499 > > │         assert (0 < self.length), "The length before popping has to be       │
00:08:25 verbose #10500 > > │ greater than 0."                                                             │
00:08:25 verbose #10501 > > │         self.length -= 1                                                     │
00:08:25 verbose #10502 > > │         return self.ptr[self.length]                                         │
00:08:25 verbose #10503 > > │                                                                              │
00:08:25 verbose #10504 > > │     def unsafe_set_length(self,i):                                           │
00:08:25 verbose #10505 > > │         assert 0 <= i <= len(self.ptr), "The new length has to be in range." │
00:08:25 verbose #10506 > > │         self.length = i                                                      │
00:08:25 verbose #10507 > > │                                                                              │
00:08:25 verbose #10508 > > │ class dynamic_array(static_array):                                           │
00:08:25 verbose #10509 > > │     pass                                                                     │
00:08:25 verbose #10510 > > │                                                                              │
00:08:25 verbose #10511 > > │ class dynamic_array_list(static_array_list):                                 │
00:08:25 verbose #10512 > > │     def length_(self): return self.length                                    │
00:08:25 verbose #10513 > > │                                                                              │
00:08:25 verbose #10514 > > │ import cupy as cp                                                            │
00:08:25 verbose #10515 > > │ from dataclasses import dataclass                                            │
00:08:25 verbose #10516 > > │ from typing import NamedTuple, Union, Callable, Tuple                        │
00:08:25 verbose #10517 > > │ i8 = i16 = i32 = i64 = u8 = u16 = u32 = u64 = int; f32 = f64 = float; char = │
00:08:25 verbose #10518 > > │ string = str                                                                 │
00:08:25 verbose #10519 > > │                                                                              │
00:08:25 verbose #10520 > > │ def method1() -> i32:                                                        │
00:08:25 verbose #10521 > > │     return 3                                                                 │
00:08:25 verbose #10522 > > │ def method2(v0 : i32) -> i32:                                                │
00:08:25 verbose #10523 > > │     v1 = 9 + v0                                                              │
00:08:25 verbose #10524 > > │     del v0                                                                   │
00:08:25 verbose #10525 > > │     return v1                                                                │
00:08:25 verbose #10526 > > │ def method3(v0 : bool) -> bool:                                              │
00:08:25 verbose #10527 > > │     return v0                                                                │
00:08:25 verbose #10528 > > │ def method0() -> None:                                                       │
00:08:25 verbose #10529 > > │     v0 = method1()                                                           │
00:08:25 verbose #10530 > > │     v1 = method2(v0)                                                         │
00:08:25 verbose #10531 > > │     del v0                                                                   │
00:08:25 verbose #10532 > > │     v2 = v1 + 2                                                              │
00:08:25 verbose #10533 > > │     del v1                                                                   │
00:08:25 verbose #10534 > > │     v3 = v2 + 1                                                              │
00:08:25 verbose #10535 > > │     del v2                                                                   │
00:08:25 verbose #10536 > > │     v4 = v3 == 15                                                            │
00:08:25 verbose #10537 > > │     if v4:                                                                   │
00:08:25 verbose #10538 > > │         v6 = True                                                            │
00:08:25 verbose #10539 > > │     else:                                                                    │
00:08:25 verbose #10540 > > │         v6 = method3(v4)                                                     │
00:08:25 verbose #10541 > > │     del v4                                                                   │
00:08:25 verbose #10542 > > │     v13 = "assert_eq"                                                        │
00:08:25 verbose #10543 > > │     v14 = f"{v13} / actual: {v3} / expected: {15}"                           │
00:08:25 verbose #10544 > > │     del v3, v13                                                              │
00:08:25 verbose #10545 > > │     print(v14)                                                               │
00:08:25 verbose #10546 > > │     v25 = v6 == False                                                        │
00:08:25 verbose #10547 > > │     del v6                                                                   │
00:08:25 verbose #10548 > > │     if v25:                                                                  │
00:08:25 verbose #10549 > > │         del v25                                                              │
00:08:25 verbose #10550 > > │         raise Exception(v14)                                                 │
00:08:25 verbose #10551 > > │     else:                                                                    │
00:08:25 verbose #10552 > > │         del v14, v25                                                         │
00:08:25 verbose #10553 > > │         return                                                               │
00:08:25 verbose #10554 > > │ def main():                                                                  │
00:08:25 verbose #10555 > > │     return method0()                                                         │
00:08:25 verbose #10556 > > │                                                                              │
00:08:25 verbose #10557 > > │ if __name__ == '__main__': result = main(); None if result is None else      │
00:08:25 verbose #10558 > > │ print(result)                                                                │
00:08:25 verbose #10559 > > │                                                                              │
00:08:25 verbose #10560 > > │ .fsx output:                                                                 │
00:08:25 verbose #10561 > > │ assert_eq / actual: 15 / expected: 15                                        │
00:08:25 verbose #10562 > > │                                                                              │
00:08:25 verbose #10563 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:25 verbose #10564 > >
00:08:25 verbose #10565 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:25 verbose #10566 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:25 verbose #10567 > > │ ### retry_fn'                                                                │
00:08:25 verbose #10568 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:25 verbose #10569 > >
00:08:25 verbose #10570 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:25 verbose #10571 > > inl retry_fn' retries fn =
00:08:25 verbose #10572 > >     let rec loop retry =
00:08:25 verbose #10573 > >         inl is_error, result =
00:08:25 verbose #10574 > >             match fn () with
00:08:25 verbose #10575 > >             | Ok x => false, x
00:08:25 verbose #10576 > >             | Error x => true, x
00:08:25 verbose #10577 > >         if not is_error || retry >= retries
00:08:25 verbose #10578 > >         then result
00:08:25 verbose #10579 > >         else
00:08:25 verbose #10580 > >             trace Debug
00:08:25 verbose #10581 > >                 fun () => $'"common.retry_fn\' / loop"'
00:08:25 verbose #10582 > >                 fun () => { is_error retry = $'$"{!retry}/{!retries}"' : string;
00:08:25 verbose #10583 > > result }
00:08:25 verbose #10584 > >             loop (retry + 1)
00:08:25 verbose #10585 > >     loop 1
00:08:25 verbose #10586 > 00:08:24   debug #549 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/882fc9e50695b909410786adec6ae5cf9932c33f29d7185b3cb2f8637bfc1f0f/main.spi
00:08:25 verbose #10587 > >
00:08:25 verbose #10588 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:25 verbose #10589 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:25 verbose #10590 > > │ ## fsharp                                                                    │
00:08:25 verbose #10591 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:25 verbose #10592 > >
00:08:25 verbose #10593 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:25 verbose #10594 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:25 verbose #10595 > > │ ### upcast                                                                   │
00:08:25 verbose #10596 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:25 verbose #10597 > >
00:08:25 verbose #10598 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:25 verbose #10599 > > inl upcast forall t u. (x : t) : u =
00:08:25 verbose #10600 > >     $'!x :> `u '
00:08:26 verbose #10601 > 00:08:25   debug #550 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/75eb3a94300260d6c14ad7d01d02ff27d57b7f73f6696c0a5cc3c3a03d801c62/main.spi
00:08:26 verbose #10602 > >
00:08:26 verbose #10603 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:26 verbose #10604 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:26 verbose #10605 > > │ ### downcast                                                                 │
00:08:26 verbose #10606 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:26 verbose #10607 > >
00:08:26 verbose #10608 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:26 verbose #10609 > > inl downcast forall t u. (x : t) : u =
00:08:26 verbose #10610 > >     $'!x :?> `u '
00:08:26 verbose #10611 > 00:08:25   debug #551 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/11f9f131e4dce6aef2b6d9f9708fd69c43e75fdde3e95d8a0f4b7d67714b43db/main.spi
00:08:26 verbose #10612 > >
00:08:26 verbose #10613 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:26 verbose #10614 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:26 verbose #10615 > > │ ### random                                                                   │
00:08:26 verbose #10616 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:26 verbose #10617 > >
00:08:26 verbose #10618 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:26 verbose #10619 > > nominal random = $'System.Random'
00:08:26 verbose #10620 > >
00:08:26 verbose #10621 > > inl random () : random =
00:08:26 verbose #10622 > >     $'`random ' ()
00:08:26 verbose #10623 > 00:08:25   debug #552 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9371be023147fb67eb8d89deabe0bc57823c597ce11894a9a10137ecebfdf0c3/main.spi
00:08:26 verbose #10624 > >
00:08:26 verbose #10625 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:26 verbose #10626 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:26 verbose #10627 > > │ ### random_next                                                              │
00:08:26 verbose #10628 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:26 verbose #10629 > >
00:08:26 verbose #10630 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:26 verbose #10631 > > inl random_next (min : i32) (max : i32) (random : random) : i32 =
00:08:26 verbose #10632 > >     $'!random.Next (!min, !max)'
00:08:27 verbose #10633 > 00:08:26   debug #553 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fae45f02fe3d29a5119308e05369006ff1b915bd9bbbd037fb3e8b99f699a863/main.spi
00:08:27 verbose #10634 > >
00:08:27 verbose #10635 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:27 verbose #10636 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:27 verbose #10637 > > │ ### disposable                                                               │
00:08:27 verbose #10638 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:27 verbose #10639 > >
00:08:27 verbose #10640 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:27 verbose #10641 > > nominal disposable t = $"backend_switch `({ Fsharp : $'System.IDisposable';
00:08:27 verbose #10642 > > Python : $'object' })"
00:08:27 verbose #10643 > 00:08:26   debug #554 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7a9acbf289349c6bc32603ecd705aff434bcbbd3ec83d21870ad442148738e14/main.spi
00:08:27 verbose #10644 > >
00:08:27 verbose #10645 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:27 verbose #10646 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:27 verbose #10647 > > │ ### dispose                                                                  │
00:08:27 verbose #10648 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:27 verbose #10649 > >
00:08:27 verbose #10650 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:27 verbose #10651 > > inl dispose (disposable : disposable _) : () =
00:08:27 verbose #10652 > >     backend_switch {
00:08:27 verbose #10653 > >         Fsharp = fun () => disposable |> $'_.Dispose()' : ()
00:08:27 verbose #10654 > >         Python = fun () => $'!disposable.__exit__(None, None, None)' : ()
00:08:27 verbose #10655 > >     }
00:08:27 verbose #10656 > 00:08:26   debug #555 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ceb7ae63b5bd6c0454c1bb9cb34e046a7ca8ad57e55b1b7ffdea2ce19faa07c3/main.spi
00:08:27 verbose #10657 > >
00:08:27 verbose #10658 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:27 verbose #10659 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:27 verbose #10660 > > │ ### return                                                                   │
00:08:27 verbose #10661 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:27 verbose #10662 > >
00:08:27 verbose #10663 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:27 verbose #10664 > > inl return forall t. (x : t) : () =
00:08:27 verbose #10665 > >     $'return !x '
00:08:27 verbose #10666 > >
00:08:27 verbose #10667 > > inl return' forall t. (x : t) : t =
00:08:27 verbose #10668 > >     $'return !x '
00:08:28 verbose #10669 > 00:08:27   debug #556 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/51b9a5c731b8d2f2801f12525c9fd86cdbe3ba34ac30eb27bff0cb796847d463/main.spi
00:08:28 verbose #10670 > >
00:08:28 verbose #10671 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:28 verbose #10672 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:28 verbose #10673 > > │ ### retry_fn                                                                 │
00:08:28 verbose #10674 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:28 verbose #10675 > >
00:08:28 verbose #10676 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:28 verbose #10677 > > inl retry_fn forall t. retries (fn : () -> t) : option t =
00:08:28 verbose #10678 > >     let rec loop retry =
00:08:28 verbose #10679 > >         try
00:08:28 verbose #10680 > >             fun () =>
00:08:28 verbose #10681 > >                 if retry < retries
00:08:28 verbose #10682 > >                 then fn () |> Some
00:08:28 verbose #10683 > >                 else None
00:08:28 verbose #10684 > >             fun ex =>
00:08:28 verbose #10685 > >                 trace Warning
00:08:28 verbose #10686 > >                     fun () => "common.retry_fn"
00:08:28 verbose #10687 > >                     fun () => { retry ex }
00:08:28 verbose #10688 > >                 None
00:08:28 verbose #10689 > >         |> function
00:08:28 verbose #10690 > >             | Some x => x
00:08:28 verbose #10691 > >             | None => loop (retry + 1)
00:08:28 verbose #10692 > >     loop 0
00:08:28 verbose #10693 > 00:08:27   debug #557 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a81dda996058f5fed40219e2c0d6bff93e0233e1d108b49193e30dc1773b4f8f/main.spi
00:08:28 verbose #10694 > >
00:08:28 verbose #10695 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:28 verbose #10696 > > //// test
00:08:28 verbose #10697 > > ///! fsharp
00:08:28 verbose #10698 > > ////! cuda // v3 = $"retry: {v0} / ex: %A{v1} / {v2 ()}"
00:08:28 verbose #10699 > > ///! rust
00:08:28 verbose #10700 > > ///! typescript
00:08:28 verbose #10701 > > ///! python
00:08:28 verbose #10702 > >
00:08:28 verbose #10703 > > inl retry_fn_test = mut 0i32
00:08:28 verbose #10704 > > fun () =>
00:08:28 verbose #10705 > >     retry_fn_test <- *retry_fn_test + 1
00:08:28 verbose #10706 > >     *retry_fn_test
00:08:28 verbose #10707 > > |> retry_fn 3i32
00:08:28 verbose #10708 > > |> _assert_eq' (Some 1i32)
00:08:28 verbose #10709 > 00:08:28   debug #558 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/cf1de30180202439bb49139d961a5583df727a47f6c74ab86d520524f5276be9/main.spi
00:08:32 verbose #10710 > >
00:08:32 verbose #10711 > > ╭─[ 3.96s - return value ]─────────────────────────────────────────────────────╮
00:08:32 verbose #10712 > > │ .rs output:                                                                  │
00:08:32 verbose #10713 > > │ assert_eq' / actual: US0_0(1) / expected: US0_0(1)                           │
00:08:32 verbose #10714 > > │                                                                              │
00:08:32 verbose #10715 > > │ .ts output:                                                                  │
00:08:32 verbose #10716 > > │ assert_eq' / actual: US0_0 1 / expected: US0_0 1                             │
00:08:32 verbose #10717 > > │                                                                              │
00:08:32 verbose #10718 > > │ .py output:                                                                  │
00:08:32 verbose #10719 > > │ assert_eq' / actual: US0_0 1 / expected: US0_0 1                             │
00:08:32 verbose #10720 > > │                                                                              │
00:08:32 verbose #10721 > > │                                                                              │
00:08:32 verbose #10722 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:32 verbose #10723 > >
00:08:32 verbose #10724 > > ╭─[ 3.96s - stdout ]───────────────────────────────────────────────────────────╮
00:08:32 verbose #10725 > > │ .fsx output:                                                                 │
00:08:32 verbose #10726 > > │ assert_eq' / actual: US0_0 1 / expected: US0_0 1                             │
00:08:32 verbose #10727 > > │                                                                              │
00:08:32 verbose #10728 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:32 verbose #10729 > >
00:08:32 verbose #10730 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:32 verbose #10731 > > //// test
00:08:32 verbose #10732 > > ///! fsharp
00:08:32 verbose #10733 > > ////! cuda // v3 = $"retry: {v0} / ex: %A{v1} / {v2 ()}"
00:08:32 verbose #10734 > > ///! rust
00:08:32 verbose #10735 > > ///! typescript
00:08:32 verbose #10736 > > ///! python
00:08:32 verbose #10737 > >
00:08:32 verbose #10738 > > inl retry_fn_test = mut 0i32
00:08:32 verbose #10739 > > fun () =>
00:08:32 verbose #10740 > >     if *retry_fn_test >= 2
00:08:32 verbose #10741 > >     then *retry_fn_test
00:08:32 verbose #10742 > >     else
00:08:32 verbose #10743 > >         retry_fn_test <- *retry_fn_test + 1
00:08:32 verbose #10744 > >         failwith "test"
00:08:32 verbose #10745 > > |> retry_fn 3i32
00:08:32 verbose #10746 > > |> _assert_eq' (Some 2i32)
00:08:32 verbose #10747 > 00:08:32   debug #559 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/caaaa1c5653b1627f514dc0c0892e03375ad19d8ef4ac77e77ec84058ae1db03/main.spi
00:08:36 verbose #10748 > >
00:08:36 verbose #10749 > > ╭─[ 3.32s - return value ]─────────────────────────────────────────────────────╮
00:08:36 verbose #10750 > > │                                                                              │
00:08:36 verbose #10751 > > │ .rs output:                                                                  │
00:08:36 verbose #10752 > > │ 00:00:00 warning #1 common.retry_fn / { retry = 0; ex = Exception {    │
00:08:36 verbose #10753 > > │ message: "test" } }                                                          │
00:08:36 verbose #10754 > > │ 00:00:00 warning #2 common.retry_fn / { retry = 1; ex = Exception {    │
00:08:36 verbose #10755 > > │ message: "test" } }                                                          │
00:08:36 verbose #10756 > > │ assert_eq' / actual: US0_0(2) / expected: US0_0(2)                           │
00:08:36 verbose #10757 > > │                                                                              │
00:08:36 verbose #10758 > > │                                                                              │
00:08:36 verbose #10759 > > │ .ts output:                                                                  │
00:08:36 verbose #10760 > > │ 00:00:00 warning #1 common.retry_fn / { retry = 0; ex = Error: test }   │
00:08:36 verbose #10761 > > │ 00:00:00 warning #2 common.retry_fn / { retry = 1; ex = Error: test }   │
00:08:36 verbose #10762 > > │ assert_eq' / actual: US0_0 2 / expected: US0_0 2                             │
00:08:36 verbose #10763 > > │                                                                              │
00:08:36 verbose #10764 > > │                                                                              │
00:08:36 verbose #10765 > > │ .py output:                                                                  │
00:08:36 verbose #10766 > > │ 00:00:00 warning #1 common.retry_fn / { retry = 0; ex = test }          │
00:08:36 verbose #10767 > > │ 00:00:00 warning #2 common.retry_fn / { retry = 1; ex = test }          │
00:08:36 verbose #10768 > > │ assert_eq' / actual: US0_0 2 / expected: US0_0 2                             │
00:08:36 verbose #10769 > > │                                                                              │
00:08:36 verbose #10770 > > │                                                                              │
00:08:36 verbose #10771 > > │                                                                              │
00:08:36 verbose #10772 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:36 verbose #10773 > >
00:08:36 verbose #10774 > > ╭─[ 3.33s - stdout ]───────────────────────────────────────────────────────────╮
00:08:36 verbose #10775 > > │ .fsx output:                                                                 │
00:08:36 verbose #10776 > > │ 00:00:00 warning #1 common.retry_fn / { retry = 0; ex =                 │
00:08:36 verbose #10777 > > │ System.Exception: test                                                       │
00:08:36 verbose #10778 > > │    at FSI_0031.closure1(Mut0 v0, Int32 v1, Unit unitVar2)                    │
00:08:36 verbose #10779 > > │    at FSI_0031.method1(Mut0 v0, Int32 v1) }                                  │
00:08:36 verbose #10780 > > │ 00:00:00 warning #2 common.retry_fn / { retry = 1; ex =                 │
00:08:36 verbose #10781 > > │ System.Exception: test                                                       │
00:08:36 verbose #10782 > > │    at FSI_0031.closure1(Mut0 v0, Int32 v1, Unit unitVar2)                    │
00:08:36 verbose #10783 > > │    at FSI_0031.method1(Mut0 v0, Int32 v1) }                                  │
00:08:36 verbose #10784 > > │ assert_eq' / actual: US0_0 2 / expected: US0_0 2                             │
00:08:36 verbose #10785 > > │                                                                              │
00:08:36 verbose #10786 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:36 verbose #10787 > >
00:08:36 verbose #10788 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:36 verbose #10789 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:36 verbose #10790 > > │ ## common                                                                    │
00:08:36 verbose #10791 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:36 verbose #10792 > >
00:08:36 verbose #10793 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:36 verbose #10794 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:36 verbose #10795 > > │ ### random'                                                                  │
00:08:36 verbose #10796 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:36 verbose #10797 > >
00:08:36 verbose #10798 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:36 verbose #10799 > > inl random' forall t. (min : t) (max : t) : t =
00:08:36 verbose #10800 > >     run_target function
00:08:36 verbose #10801 > >         | Rust (Contract) => fun () =>
00:08:36 verbose #10802 > >             failwith "common.random' / target=Rust(Contract)"
00:08:36 verbose #10803 > >         | Rust _ => fun () =>
00:08:36 verbose #10804 > >             open rust_operators
00:08:36 verbose #10805 > >             !\\((min, max), $'"rand::Rng::gen_range(&mut rand::thread_rng(),
00:08:36 verbose #10806 > > $0..$1)"')
00:08:36 verbose #10807 > >         | _ => fun () =>
00:08:36 verbose #10808 > >             random () |> random_next (i32 min) (i32 max) |> convert
00:08:36 verbose #10809 > 00:08:35   debug #560 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/429570c5de8fe922fb685190ed7c7d23bef49fc1f6362faa0fea7a3881d532a2/main.spi
00:08:36 verbose #10810 > >
00:08:36 verbose #10811 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:36 verbose #10812 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:36 verbose #10813 > > │ ### new_disposable                                                           │
00:08:36 verbose #10814 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:36 verbose #10815 > >
00:08:36 verbose #10816 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:36 verbose #10817 > > inl new_disposable (fn : () -> ()) : disposable _ =
00:08:36 verbose #10818 > >     run_target function
00:08:36 verbose #10819 > >         | Rust _ => fun () =>
00:08:36 verbose #10820 > >             global "type Disposable (f : unit -> unit) = interface
00:08:36 verbose #10821 > > System.IDisposable with member _.Dispose () = f ()"
00:08:36 verbose #10822 > >             inl fn = join fn
00:08:36 verbose #10823 > >             $'new Disposable (fun () -> Fable.Core.RustInterop.emitRustExpr !fn
00:08:36 verbose #10824 > > "$0()" )'
00:08:36 verbose #10825 > >         | Fsharp _ | TypeScript _ | Python _ => fun () =>
00:08:36 verbose #10826 > >             inl fn = join fn
00:08:36 verbose #10827 > >             $'{ new System.IDisposable with member _.Dispose () = !fn () }'
00:08:36 verbose #10828 > >         | Cuda _ => fun () =>
00:08:36 verbose #10829 > >             $'class Disposable:'
00:08:36 verbose #10830 > >             $'    def __init__(self, fn):'
00:08:36 verbose #10831 > >             $'        self.fn = fn'
00:08:36 verbose #10832 > >             $'    def __exit__(self, exc_type, exc_value, traceback):'
00:08:36 verbose #10833 > >             $'        self.fn()'
00:08:36 verbose #10834 > >             $'        return False'
00:08:36 verbose #10835 > >             $'Disposable(!fn)'
00:08:36 verbose #10836 > >         | _ => fun () => null ()
00:08:36 verbose #10837 > 00:08:35   debug #561 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1aba53e6a83267590363759d713a79b7393ccbf0696b41ce8537781dbb5c96dd/main.spi
00:08:36 verbose #10838 > >
00:08:36 verbose #10839 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:36 verbose #10840 > > //// test
00:08:36 verbose #10841 > > ///! fsharp
00:08:36 verbose #10842 > > ///! cuda
00:08:36 verbose #10843 > > ///! rust
00:08:36 verbose #10844 > > ///! typescript
00:08:36 verbose #10845 > > ///! python
00:08:36 verbose #10846 > >
00:08:36 verbose #10847 > > inl new_disposable_test = mut 0i32
00:08:36 verbose #10848 > > new_disposable fun () => new_disposable_test <- *new_disposable_test + 1
00:08:36 verbose #10849 > > |> fun x => x : disposable ()
00:08:36 verbose #10850 > > |> dispose
00:08:36 verbose #10851 > > *new_disposable_test |> _assert_eq 1
00:08:37 verbose #10852 > 00:08:36   debug #562 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/90e1e10c2eeab93cd3b10f7fb79c1437a538b81cd71787964e2b6976492dd66e/main.spi
00:08:37 verbose #10853 > 00:08:36   debug #563 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0807298d35e0d7ec387c28c8f18b1fd65c1dcfc35d18d601f0fbe15261cefdd9/main.spi
00:08:40 verbose #10854 > >
00:08:40 verbose #10855 > > ╭─[ 3.97s - return value ]─────────────────────────────────────────────────────╮
00:08:40 verbose #10856 > > │ .py output (Cuda):                                                           │
00:08:40 verbose #10857 > > │ assert_eq / actual: 1 / expected: 1                                          │
00:08:40 verbose #10858 > > │                                                                              │
00:08:40 verbose #10859 > > │ .rs output:                                                                  │
00:08:40 verbose #10860 > > │ assert_eq / actual: 1 / expected: 1                                          │
00:08:40 verbose #10861 > > │                                                                              │
00:08:40 verbose #10862 > > │ .ts output:                                                                  │
00:08:40 verbose #10863 > > │ assert_eq / actual: 1 / expected: 1                                          │
00:08:40 verbose #10864 > > │                                                                              │
00:08:40 verbose #10865 > > │ .py output:                                                                  │
00:08:40 verbose #10866 > > │ assert_eq / actual: 1 / expected: 1                                          │
00:08:40 verbose #10867 > > │                                                                              │
00:08:40 verbose #10868 > > │                                                                              │
00:08:40 verbose #10869 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:40 verbose #10870 > >
00:08:40 verbose #10871 > > ╭─[ 3.97s - stdout ]───────────────────────────────────────────────────────────╮
00:08:40 verbose #10872 > > │ .fsx output:                                                                 │
00:08:40 verbose #10873 > > │ assert_eq / actual: 1 / expected: 1                                          │
00:08:40 verbose #10874 > > │                                                                              │
00:08:40 verbose #10875 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:40 verbose #10876 > >
00:08:40 verbose #10877 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:40 verbose #10878 > > //// test
00:08:40 verbose #10879 > >
00:08:40 verbose #10880 > > inl new_disposable_test = mut 0i32
00:08:40 verbose #10881 > > fun () =>
00:08:40 verbose #10882 > >     new_disposable fun () => new_disposable_test <- *new_disposable_test + 1
00:08:40 verbose #10883 > >     |> fun x => x : disposable ()
00:08:40 verbose #10884 > >     |> use
00:08:40 verbose #10885 > >     |> ignore
00:08:40 verbose #10886 > >     |> return
00:08:40 verbose #10887 > > |> async.new_task
00:08:40 verbose #10888 > > |> async.await_task
00:08:40 verbose #10889 > > |> async.run_synchronously
00:08:40 verbose #10890 > > *new_disposable_test |> _assert_eq 1
00:08:40 verbose #10891 > 00:08:40   debug #564 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f1d7c1a76799c2a35f823f027fc8769ffb42bfdbfa95a876d8e469ee0d3e42f5/main.spi
00:08:41 verbose #10892 > >
00:08:41 verbose #10893 > > ╭─[ 510.95ms - stdout ]────────────────────────────────────────────────────────╮
00:08:41 verbose #10894 > > │ assert_eq / actual: 1 / expected: 1                                          │
00:08:41 verbose #10895 > > │                                                                              │
00:08:41 verbose #10896 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:41 verbose #10897 > >
00:08:41 verbose #10898 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:41 verbose #10899 > > //// test
00:08:41 verbose #10900 > >
00:08:41 verbose #10901 > > inl new_disposable_test = mut 0i32
00:08:41 verbose #10902 > > fun () =>
00:08:41 verbose #10903 > >     new_disposable fun () => new_disposable_test <- *new_disposable_test + 1
00:08:41 verbose #10904 > >     |> fun x => x : disposable ()
00:08:41 verbose #10905 > >     |> use
00:08:41 verbose #10906 > >     |> ignore
00:08:41 verbose #10907 > >     |> return
00:08:41 verbose #10908 > > |> async.new_async
00:08:41 verbose #10909 > > |> async.run_synchronously
00:08:41 verbose #10910 > > *new_disposable_test |> _assert_eq 1
00:08:41 verbose #10911 > 00:08:40   debug #565 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/24809ee40c98b6dbffb7bd8a04b67ea3cbbaae961e65c9e1dcd308533b8824a7/main.spi
00:08:41 verbose #10912 > >
00:08:41 verbose #10913 > > ╭─[ 395.30ms - stdout ]────────────────────────────────────────────────────────╮
00:08:41 verbose #10914 > > │ assert_eq / actual: 1 / expected: 1                                          │
00:08:41 verbose #10915 > > │                                                                              │
00:08:41 verbose #10916 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:41 verbose #10917 > >
00:08:41 verbose #10918 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:41 verbose #10919 > > //// test
00:08:41 verbose #10920 > >
00:08:41 verbose #10921 > > inl new_disposable_test = mut 0i32
00:08:41 verbose #10922 > > fun () =>
00:08:41 verbose #10923 > >     new_disposable fun () => new_disposable_test <- *new_disposable_test + 1
00:08:41 verbose #10924 > >     |> fun x => x : disposable ()
00:08:41 verbose #10925 > >     |> ignore
00:08:41 verbose #10926 > >     |> return
00:08:41 verbose #10927 > > |> async.new_async
00:08:41 verbose #10928 > > |> async.run_synchronously
00:08:41 verbose #10929 > > *new_disposable_test |> _assert_eq 0
00:08:41 verbose #10930 > 00:08:41   debug #566 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/52c87294e184dab9c64b7e93d9fa11d90afd7f0612326917164921666bf18e37/main.spi
00:08:42 verbose #10931 > >
00:08:42 verbose #10932 > > ╭─[ 379.43ms - stdout ]────────────────────────────────────────────────────────╮
00:08:42 verbose #10933 > > │ assert_eq / actual: 0 / expected: 0                                          │
00:08:42 verbose #10934 > > │                                                                              │
00:08:42 verbose #10935 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:42 verbose #10936 > >
00:08:42 verbose #10937 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:42 verbose #10938 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:42 verbose #10939 > > │ ## main                                                                      │
00:08:42 verbose #10940 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:42 verbose #10941 > >
00:08:42 verbose #10942 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:42 verbose #10943 > > inl main () =
00:08:42 verbose #10944 > >     init_trace_state None
00:08:42 verbose #10945 > >     inl new_disposable x : _ () = new_disposable x
00:08:42 verbose #10946 > >     $'let new_disposable x = !new_disposable x' : ()
00:08:42 verbose #10947 > >     inl retry_fn (r : i32) (x : () -> _) : optionm'.option' () = retry_fn r x |>
00:08:42 verbose #10948 > > optionm'.box
00:08:42 verbose #10949 > >     $'let retry_fn x = !retry_fn x' : ()
00:08:42 verbose #10950 > >     inl memoize (fn : () -> ()) : () -> () = memoize fn
00:08:42 verbose #10951 > >     $'let memoize x = !memoize x' : ()
00:08:42 verbose #10952 > 00:08:41   debug #567 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/520aadd2006372f98774a0fb2f0cd6711f873bbcd8a577982222047e46c712cd/main.spi
00:08:43 verbose #10953 > 00:00:48 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 116881 }
00:08:43 verbose #10954 > 00:00:48   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/spiral/common.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/common.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:08:45 verbose #10955 > 00:00:50 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/common.dib.ipynb to html
00:08:45 verbose #10956 > 00:00:50 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:08:45 verbose #10957 > 00:00:50 verbose #7 !   validate(nb)
00:08:46 verbose #10958 > 00:00:51 verbose #8 ! [NbConvertApp] Writing 363758 bytes to c:\home\git\polyglot\lib\spiral\common.dib.html
00:08:46 verbose #10959 > 00:00:51 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 643 }
00:08:46 verbose #10960 > 00:00:51   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 643 }
00:08:46 verbose #10961 > 00:00:51   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/common.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/common.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:08:47 verbose #10962 > 00:00:52 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:08:47 verbose #10963 > 00:00:52   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:08:48 verbose #10964 > 00:00:53   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 117583 }
00:08:48   debug #10965 runtime.execute_with_options_async / { exit_code = 0; output_length = 123570 }
00:08:48   debug #12 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path common.dib --retries 3
00:08:48   debug #10966 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path resultm.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:08:48 verbose #10967 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "resultm.dib", "--retries", "3"])) }
00:08:48 verbose #10968 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/spiral/resultm.dib", "--output-path", "c:/home/git/polyglot/lib/spiral/resultm.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/resultm.dib" --output-path "c:/home/git/polyglot/lib/spiral/resultm.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:08:50 verbose #10969 > >
00:08:50 verbose #10970 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:50 verbose #10971 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:50 verbose #10972 > > │ # resultm                                                                    │
00:08:50 verbose #10973 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:54 verbose #10974 > >
00:08:54 verbose #10975 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:54 verbose #10976 > > open rust_operators
00:08:55 verbose #10977 > 00:08:54   debug #568 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0d9bd8e5bb71a8e1d983506a46e54fb8c8e6cf2d0bd973135d4cdd580c5f6d39/main.spi
00:08:55 verbose #10978 > >
00:08:55 verbose #10979 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:55 verbose #10980 > > //// test
00:08:55 verbose #10981 > >
00:08:55 verbose #10982 > > open testing
00:08:55 verbose #10983 > 00:08:55   debug #569 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d06211d48c36e09624381aad71e69f817df1a545af31c21067514d4d391bdd05/main.spi
00:08:55 verbose #10984 > >
00:08:55 verbose #10985 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:55 verbose #10986 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:55 verbose #10987 > > │ ## resultm                                                                   │
00:08:55 verbose #10988 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:55 verbose #10989 > >
00:08:55 verbose #10990 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:55 verbose #10991 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:55 verbose #10992 > > │ ### from_option_error                                                        │
00:08:55 verbose #10993 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:55 verbose #10994 > >
00:08:55 verbose #10995 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:55 verbose #10996 > > inl from_option_error error opt =
00:08:55 verbose #10997 > >     match opt with
00:08:55 verbose #10998 > >     | Some x => Ok x
00:08:55 verbose #10999 > >     | None => Error error
00:08:56 verbose #11000 > 00:08:55   debug #570 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/10cf36ba1046957d2334970ec32f638dc5214fe187f30c4839a3e960c4587f4d/main.spi
00:08:56 verbose #11001 > >
00:08:56 verbose #11002 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:56 verbose #11003 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:56 verbose #11004 > > │ ### from_option                                                              │
00:08:56 verbose #11005 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:56 verbose #11006 > >
00:08:56 verbose #11007 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:56 verbose #11008 > > inl from_option opt =
00:08:56 verbose #11009 > >     opt |> from_option_error "resultm.from_option / Option does not have a
00:08:56 verbose #11010 > > value."
00:08:56 verbose #11011 > 00:08:55   debug #571 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d54f8e0042f7554778b52b0c8f40c939195dd8fea9de7e582b6e1bea629d059d/main.spi
00:08:56 verbose #11012 > >
00:08:56 verbose #11013 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:56 verbose #11014 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:56 verbose #11015 > > │ ### flatten_option                                                           │
00:08:56 verbose #11016 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:56 verbose #11017 > >
00:08:56 verbose #11018 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:56 verbose #11019 > > inl flatten_option forall t u. (x : option (result (option t) u)) : result
00:08:56 verbose #11020 > > (option t) u =
00:08:56 verbose #11021 > >     match x with
00:08:56 verbose #11022 > >     | Some (Error x) => Error x
00:08:56 verbose #11023 > >     | Some (Ok (Some x)) => Ok (Some x)
00:08:56 verbose #11024 > >     | _ => Ok None
00:08:56 verbose #11025 > 00:08:56   debug #572 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ae799835c9f414a09307dde929b16407569ccd981a9bdf6b34790fff3f55c490/main.spi
00:08:57 verbose #11026 > >
00:08:57 verbose #11027 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:57 verbose #11028 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:57 verbose #11029 > > │ ### flatten                                                                  │
00:08:57 verbose #11030 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:57 verbose #11031 > >
00:08:57 verbose #11032 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:57 verbose #11033 > > inl flatten forall t u. (x : result (result t u) u) : result t u =
00:08:57 verbose #11034 > >     match x with
00:08:57 verbose #11035 > >     | Ok x => x
00:08:57 verbose #11036 > >     | Error x => Error x
00:08:57 verbose #11037 > 00:08:56   debug #573 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d0bd97a08f23205f5cda1d86c79021ef5f95e3a27c7f799b1f984979486d9f77/main.spi
00:08:57 verbose #11038 > >
00:08:57 verbose #11039 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:57 verbose #11040 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:57 verbose #11041 > > │ ### get                                                                      │
00:08:57 verbose #11042 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:57 verbose #11043 > >
00:08:57 verbose #11044 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:57 verbose #11045 > > inl get forall t e. (source : result t e) : t =
00:08:57 verbose #11046 > >     match source with
00:08:57 verbose #11047 > >     | Ok x => x
00:08:57 verbose #11048 > >     | Error x => failwith $'$"resultm.get / Result value was Error: {!x}"'
00:08:57 verbose #11049 > 00:08:56   debug #574 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3d1ad32e04ccf576651c1a423909a525edc8227cd08a0d815bb7f207a3915817/main.spi
00:08:57 verbose #11050 > >
00:08:57 verbose #11051 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:57 verbose #11052 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:57 verbose #11053 > > │ ### map                                                                      │
00:08:57 verbose #11054 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:57 verbose #11055 > >
00:08:57 verbose #11056 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:57 verbose #11057 > > inl map forall t e u. (fn : t -> u) (source : result t e) : result u e =
00:08:57 verbose #11058 > >     match source with
00:08:57 verbose #11059 > >     | Ok x => x |> fn |> Ok
00:08:57 verbose #11060 > >     | Error x => Error x
00:08:57 verbose #11061 > 00:08:57   debug #575 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/844186f9e51231c22fa80dc79f4df41c42884b4a3652094f8086f04d17fe0707/main.spi
00:08:58 verbose #11062 > >
00:08:58 verbose #11063 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:58 verbose #11064 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:58 verbose #11065 > > │ ### map_error                                                                │
00:08:58 verbose #11066 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:58 verbose #11067 > >
00:08:58 verbose #11068 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:58 verbose #11069 > > inl map_error forall t e u. (fn : e -> u) (source : result t e) : result t u =
00:08:58 verbose #11070 > >     match source with
00:08:58 verbose #11071 > >     | Ok x => Ok x
00:08:58 verbose #11072 > >     | Error x => x |> fn |> Error
00:08:58 verbose #11073 > 00:08:57   debug #576 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b44ee6ceecf6da8c452280095687322bf9b94c35569bf3a88c70e6032673440a/main.spi
00:08:58 verbose #11074 > >
00:08:58 verbose #11075 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:58 verbose #11076 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:58 verbose #11077 > > │ ### unwrap_err                                                               │
00:08:58 verbose #11078 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:58 verbose #11079 > >
00:08:58 verbose #11080 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:58 verbose #11081 > > inl unwrap_err forall t u. (x : result t u) : u =
00:08:58 verbose #11082 > >     match x with
00:08:58 verbose #11083 > >     | Ok x => failwith $'$"resultm.unwrap_err / x: {!x}"'
00:08:58 verbose #11084 > >     | Error x => x
00:08:58 verbose #11085 > 00:08:57   debug #577 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/42cf32401d5946066a899fca7fa45f5901c6dd5421136759da9bcf013116dad7/main.spi
00:08:58 verbose #11086 > >
00:08:58 verbose #11087 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:58 verbose #11088 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:58 verbose #11089 > > │ ### ok                                                                       │
00:08:58 verbose #11090 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:58 verbose #11091 > >
00:08:58 verbose #11092 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:58 verbose #11093 > > inl ok forall t. (x : result t _) : option t =
00:08:58 verbose #11094 > >     match x with
00:08:58 verbose #11095 > >     | Ok x => Some x
00:08:58 verbose #11096 > >     | Error _ => None
00:08:59 verbose #11097 > 00:08:58   debug #578 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/74eae852ef12c913f10fc7f8cf9156bc193ac87b7d1ffef7e9784d3cb90613eb/main.spi
00:08:59 verbose #11098 > >
00:08:59 verbose #11099 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:59 verbose #11100 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:59 verbose #11101 > > │ ## fsharp                                                                    │
00:08:59 verbose #11102 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:59 verbose #11103 > >
00:08:59 verbose #11104 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:59 verbose #11105 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:59 verbose #11106 > > │ ### result'                                                                  │
00:08:59 verbose #11107 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:59 verbose #11108 > >
00:08:59 verbose #11109 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:59 verbose #11110 > > nominal result' t u = $'Result<`t, `u>'
00:08:59 verbose #11111 > 00:08:58   debug #579 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/38a2a4b74f7a2969bc1fae8484f945532fc2393d49a8cbc27b73f2049c10b708/main.spi
00:08:59 verbose #11112 > >
00:08:59 verbose #11113 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:59 verbose #11114 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:59 verbose #11115 > > │ ### unbox                                                                    │
00:08:59 verbose #11116 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:59 verbose #11117 > >
00:08:59 verbose #11118 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:59 verbose #11119 > > inl unbox forall t u. (x : result' t u) : result t u =
00:08:59 verbose #11120 > >     inl ok x : result t u = Ok x
00:08:59 verbose #11121 > >     inl error x : result t u = Error x
00:08:59 verbose #11122 > >     real
00:08:59 verbose #11123 > >         typecase t with
00:08:59 verbose #11124 > >         | () => $'match !x with Ok () -> !ok () | Error x -> !error x' : result
00:08:59 verbose #11125 > > t u
00:08:59 verbose #11126 > >         | _ => $'match !x with Ok x -> !ok x | Error x -> !error x' : result t u
00:08:59 verbose #11127 > 00:08:59   debug #580 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3a7ff59574e506fcb44d25933dd3275747bd41885e26e70160fc2ed6f707dbaf/main.spi
00:08:59 verbose #11128 > >
00:08:59 verbose #11129 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:59 verbose #11130 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:59 verbose #11131 > > │ ### box                                                                      │
00:08:59 verbose #11132 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:59 verbose #11133 > >
00:08:59 verbose #11134 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:59 verbose #11135 > > inl box forall t u. (x : result t u) : result' t u =
00:08:59 verbose #11136 > >     match x with
00:08:59 verbose #11137 > >     | Ok x => $'Ok !x '
00:08:59 verbose #11138 > >     | Error err => $'Error !err '
00:09:00 verbose #11139 > 00:08:59   debug #581 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ae7fdfab3e2caf25e09e4c581bfbd27a4771d1f7d9f194a2cc46610f616737cb/main.spi
00:09:00 verbose #11140 > >
00:09:00 verbose #11141 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:00 verbose #11142 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:00 verbose #11143 > > │ ## rust                                                                      │
00:09:00 verbose #11144 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:00 verbose #11145 > >
00:09:00 verbose #11146 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:00 verbose #11147 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:00 verbose #11148 > > │ ### try'                                                                     │
00:09:00 verbose #11149 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:00 verbose #11150 > >
00:09:00 verbose #11151 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:00 verbose #11152 > > inl try' forall t u. (x : result' t u) : t =
00:09:00 verbose #11153 > >     !\\(x, $'"$0?"')
00:09:00 verbose #11154 > 00:08:59   debug #582 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0d9f4e5cfe4d2579bc9c2299812839c369a82daab5ecef26323f5feea31a72b6/main.spi
00:09:00 verbose #11155 > >
00:09:00 verbose #11156 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:00 verbose #11157 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:00 verbose #11158 > > │ ### to_try                                                                   │
00:09:00 verbose #11159 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:00 verbose #11160 > >
00:09:00 verbose #11161 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:00 verbose #11162 > > inl to_try forall t u. (x : result' t u) : rust.try t =
00:09:00 verbose #11163 > >     !\\(x, $'"$0"')
00:09:00 verbose #11164 > 00:09:00   debug #583 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1f71aaa431afab489cc9bfc6bfb357eb8f715bcb4bf2a63178349a2f602cdb14/main.spi
00:09:01 verbose #11165 > >
00:09:01 verbose #11166 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:01 verbose #11167 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:01 verbose #11168 > > │ ### unwrap'                                                                  │
00:09:01 verbose #11169 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:01 verbose #11170 > >
00:09:01 verbose #11171 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:01 verbose #11172 > > inl unwrap' forall t u. (x : result' t u) : t =
00:09:01 verbose #11173 > >     !\\(x, $'"$0.unwrap()"')
00:09:01 verbose #11174 > 00:09:00   debug #584 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/803b8c787032becd5f09afeb5b2eed5be4a6d21b467b3633345305d0caf483b3/main.spi
00:09:01 verbose #11175 > >
00:09:01 verbose #11176 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:01 verbose #11177 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:01 verbose #11178 > > │ ### unbox'                                                                   │
00:09:01 verbose #11179 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:01 verbose #11180 > >
00:09:01 verbose #11181 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:01 verbose #11182 > > inl unbox' forall t u. (x : result' t u) : result t u =
00:09:01 verbose #11183 > >     inl ok x : result t u = Ok x
00:09:01 verbose #11184 > >     inl ok = join ok
00:09:01 verbose #11185 > >     inl error x : result t u = Error x
00:09:01 verbose #11186 > >     inl error = join error
00:09:01 verbose #11187 > >     real
00:09:01 verbose #11188 > >         typecase t with
00:09:01 verbose #11189 > >         | () =>
00:09:01 verbose #11190 > >             (~!\\)
00:09:01 verbose #11191 > >                 `((result' t u -> result t u) * (result' t u -> result t u))
00:09:01 verbose #11192 > >                 `(result t u)
00:09:01 verbose #11193 > >                 ((ok, error), ($'"match !x { Ok(()) => $0(()), Err(e) => $1(e)
00:09:01 verbose #11194 > > }"' : string))
00:09:01 verbose #11195 > >         | _ =>
00:09:01 verbose #11196 > >             (~!\\)
00:09:01 verbose #11197 > >                 `((result' t u -> result t u) * (result' t u -> result t u))
00:09:01 verbose #11198 > >                 `(result t u)
00:09:01 verbose #11199 > >                 ((ok, error), ($'"match !x { Ok(x) => $0(x), Err(e) => $1(e) }"'
00:09:01 verbose #11200 > > : string))
00:09:01 verbose #11201 > 00:09:00   debug #585 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c7b9542ea75cc7238c2777aafbbc78449f5c4b02ddfaa470a35232441c3d6886/main.spi
00:09:01 verbose #11202 > >
00:09:01 verbose #11203 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:01 verbose #11204 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:01 verbose #11205 > > │ ### map'                                                                     │
00:09:01 verbose #11206 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:01 verbose #11207 > >
00:09:01 verbose #11208 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:01 verbose #11209 > > inl map' forall t e u. (fn : t -> u) (source : result' t e) : result' u e =
00:09:01 verbose #11210 > >     (!\\(source, $'"true; let _result = $0.map(|x| { //"') : bool) |> ignore
00:09:01 verbose #11211 > >     (!\\(fn !\($'"x"'), $'"true; $0 })"') : bool) |> ignore
00:09:01 verbose #11212 > >     !\($'"_result"')
00:09:02 verbose #11213 > 00:09:01   debug #586 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/416d81b230fd362b4077809c010967bc965067b03d4e9c9e2dddb357dc8dbc66/main.spi
00:09:02 verbose #11214 > >
00:09:02 verbose #11215 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:02 verbose #11216 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:02 verbose #11217 > > │ ### map''                                                                    │
00:09:02 verbose #11218 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:02 verbose #11219 > >
00:09:02 verbose #11220 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:02 verbose #11221 > > inl map'' forall t e u. (fn : t -> u) (source : result' t e) : result' u e =
00:09:02 verbose #11222 > >     inl fn = join fn
00:09:02 verbose #11223 > >     inl source = join source
00:09:02 verbose #11224 > >     !\($'"!source.map(|x| !fn(x))"')
00:09:02 verbose #11225 > 00:09:01   debug #587 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5db11d835709d9d85939d60218e709b530b5a1848fda97a7c4c68b818eb0ac63/main.spi
00:09:02 verbose #11226 > >
00:09:02 verbose #11227 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:02 verbose #11228 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:02 verbose #11229 > > │ ### map_error'                                                               │
00:09:02 verbose #11230 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:02 verbose #11231 > >
00:09:02 verbose #11232 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:02 verbose #11233 > > inl map_error' forall t e u. (fn : e -> u) (source : result' t e) : result' t u
00:09:02 verbose #11234 > > =
00:09:02 verbose #11235 > >     inl fn = join fn
00:09:02 verbose #11236 > >     !\\((source, fn), $'"$0.map_err(|x| $1(x))"')
00:09:02 verbose #11237 > 00:09:01   debug #588 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a5f04ad3cdf98367108f9963889e169d1bd768c5aedf1e42431b1645f97025c9/main.spi
00:09:02 verbose #11238 > >
00:09:02 verbose #11239 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:02 verbose #11240 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:02 verbose #11241 > > │ ### map_error''                                                              │
00:09:02 verbose #11242 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:02 verbose #11243 > >
00:09:02 verbose #11244 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:02 verbose #11245 > > inl map_error'' forall t e u. (fn : e -> u) (source : result' t e) : result' t u
00:09:02 verbose #11246 > > =
00:09:02 verbose #11247 > >     (!\\(source, $'"true; let _result = $0.map_err(|x| { //"') : bool) |> ignore
00:09:02 verbose #11248 > >     (!\\(fn !\($'"x"'), $'"true; $0 })"') : bool) |> ignore
00:09:02 verbose #11249 > >     !\($'"_result"')
00:09:03 verbose #11250 > 00:09:02   debug #589 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6331a0f674b9fd36abb2452d5e56700dca3730e2527f2ec7c9dd53222e22a809/main.spi
00:09:03 verbose #11251 > >
00:09:03 verbose #11252 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:03 verbose #11253 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:03 verbose #11254 > > │ ### option_ok_or                                                             │
00:09:03 verbose #11255 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:03 verbose #11256 > >
00:09:03 verbose #11257 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:03 verbose #11258 > > inl option_ok_or forall t e. (e : e) (source : optionm'.option' t) : result' t e
00:09:03 verbose #11259 > > =
00:09:03 verbose #11260 > >     !\\(source, $'"$0.ok_or(!e)"')
00:09:03 verbose #11261 > 00:09:02   debug #590 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/cf022fee3c6eeee2a7ff5d0d398dd25ed5d751e8967464409018d7a09eab5aa3/main.spi
00:09:03 verbose #11262 > >
00:09:03 verbose #11263 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:03 verbose #11264 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:03 verbose #11265 > > │ ### unwrap_or_else                                                           │
00:09:03 verbose #11266 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:03 verbose #11267 > >
00:09:03 verbose #11268 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:03 verbose #11269 > > inl unwrap_or_else forall t e u. (fn : e -> u) (source : result' t e) : u =
00:09:03 verbose #11270 > >     (!\\(source, $'"true; let _result = $0.unwrap_or_else(|x| { //"') : bool) |>
00:09:03 verbose #11271 > > ignore
00:09:03 verbose #11272 > >     (!\\(fn !\($'"x"'), $'"true; $0 })"') : bool) |> ignore
00:09:03 verbose #11273 > >     !\($'"_result"')
00:09:03 verbose #11274 > 00:09:03   debug #591 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/68877efca9c8bcde313c9d12c31e7cd40d5f7cb4dd82840df08764bbe18fcff3/main.spi
00:09:04 verbose #11275 > >
00:09:04 verbose #11276 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:04 verbose #11277 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:04 verbose #11278 > > │ ### map_or_else                                                              │
00:09:04 verbose #11279 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:04 verbose #11280 > >
00:09:04 verbose #11281 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:04 verbose #11282 > > inl map_or_else forall t e u v. (fn : e -> v) (fn2 : u -> v) (source : result' t
00:09:04 verbose #11283 > > e) : v =
00:09:04 verbose #11284 > >     (!\\(source, $'"true; let _result = $0.map_or_else(|x| { //"') : bool) |>
00:09:04 verbose #11285 > > ignore
00:09:04 verbose #11286 > >     (!\\(fn !\($'"x"'), $'"true; $0 }, |x| { //"') : bool) |> ignore
00:09:04 verbose #11287 > >     (!\\(fn2 !\($'"x"'), $'"true; $0 })"') : bool) |> ignore
00:09:04 verbose #11288 > >     !\($'"_result"')
00:09:04 verbose #11289 > 00:09:03   debug #592 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/951ba1988e5ec11a72266c871760d6293772830068939ee39aee2a2fae733ec7/main.spi
00:09:04 verbose #11290 > >
00:09:04 verbose #11291 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:04 verbose #11292 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:04 verbose #11293 > > │ ### as_ref                                                                   │
00:09:04 verbose #11294 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:04 verbose #11295 > >
00:09:04 verbose #11296 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:04 verbose #11297 > > inl as_ref forall t e. (source : result' t e) : result' (rust.ref t) (rust.ref
00:09:04 verbose #11298 > > e) =
00:09:04 verbose #11299 > >     !\($'"!source.as_ref()"')
00:09:04 verbose #11300 > 00:09:03   debug #593 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7b76611611450e23e6a63c69673bc51f78e211d19d8ce1e37e62a5856a05005b/main.spi
00:09:04 verbose #11301 > >
00:09:04 verbose #11302 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:04 verbose #11303 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:04 verbose #11304 > > │ ### as_ref'                                                                  │
00:09:04 verbose #11305 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:04 verbose #11306 > >
00:09:04 verbose #11307 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:04 verbose #11308 > > inl as_ref' forall t e. (source : rust.ref (result' t e)) : result' (rust.ref t)
00:09:04 verbose #11309 > > (rust.ref e) =
00:09:04 verbose #11310 > >     !\($'"!source.as_ref()"')
00:09:04 verbose #11311 > 00:09:04   debug #594 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2f97f28cd225a1690bcd23f500baad72cfc26ce44d91248b3e8cafbe5f23bd71/main.spi
00:09:05 verbose #11312 > >
00:09:05 verbose #11313 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:05 verbose #11314 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:05 verbose #11315 > > │ ### unwrap_or'                                                               │
00:09:05 verbose #11316 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:05 verbose #11317 > >
00:09:05 verbose #11318 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:05 verbose #11319 > > inl unwrap_or' forall t u. (default : t) (x : result' t u) : t =
00:09:05 verbose #11320 > >     !\\((x, default), $'"$0.unwrap_or($1)"')
00:09:05 verbose #11321 > 00:09:04   debug #595 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c8838f4dc455fe17ea48180e4ea5de1e4acdb5ee26ce6700545a3fbbe05b6fd0/main.spi
00:09:05 verbose #11322 > >
00:09:05 verbose #11323 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:05 verbose #11324 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:05 verbose #11325 > > │ ### expect                                                                   │
00:09:05 verbose #11326 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:05 verbose #11327 > >
00:09:05 verbose #11328 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:05 verbose #11329 > > inl expect forall t u. (error : rust.ref string) (x : result' t u) : t =
00:09:05 verbose #11330 > >     !\($'"!x.expect(&!error)"')
00:09:05 verbose #11331 > 00:09:04   debug #596 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/be95a4cc198fcac47ce32ccb9eec6c81f06ef5d796274a8b6b991b1237deee93/main.spi
00:09:05 verbose #11332 > >
00:09:05 verbose #11333 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:05 verbose #11334 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:05 verbose #11335 > > │ ### is_err                                                                   │
00:09:05 verbose #11336 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:05 verbose #11337 > >
00:09:05 verbose #11338 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:05 verbose #11339 > > inl is_err forall t u. (x : result' t u) : bool =
00:09:05 verbose #11340 > >     !\($'"!x.is_err()"')
00:09:06 verbose #11341 > 00:09:05   debug #597 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/18fc687750406f9a6ddfad0bdfd5205064276c372fd2efa897423ba006570333/main.spi
00:09:06 verbose #11342 > >
00:09:06 verbose #11343 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:06 verbose #11344 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:06 verbose #11345 > > │ ### ok'                                                                      │
00:09:06 verbose #11346 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:06 verbose #11347 > >
00:09:06 verbose #11348 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:06 verbose #11349 > > inl ok' forall t. (x : result' t _) : optionm'.option' t =
00:09:06 verbose #11350 > >     !\($'"!x.ok()"')
00:09:06 verbose #11351 > 00:09:05   debug #598 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4f3066e46bf15e4e3fe87398a977227a3623d4095d873fdd77b7b88ab1090dae/main.spi
00:09:06 verbose #11352 > >
00:09:06 verbose #11353 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:06 verbose #11354 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:06 verbose #11355 > > │ ### transpose                                                                │
00:09:06 verbose #11356 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:06 verbose #11357 > >
00:09:06 verbose #11358 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:06 verbose #11359 > > inl transpose forall t u. (x : optionm'.option' (result' t u)) : result'
00:09:06 verbose #11360 > > (optionm'.option' t) u =
00:09:06 verbose #11361 > >     !\\(x, $'"$0.transpose()"')
00:09:06 verbose #11362 > 00:09:05   debug #599 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/934685d9df86b682fcfabb72eadf2a22cbffbe099a58b2b76033af66d79cbea6/main.spi
00:09:06 verbose #11363 > >
00:09:06 verbose #11364 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:06 verbose #11365 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:06 verbose #11366 > > │ ### rc_try_unwrap                                                            │
00:09:06 verbose #11367 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:06 verbose #11368 > >
00:09:06 verbose #11369 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:06 verbose #11370 > > inl rc_try_unwrap forall t. (x : rust.rc t) : result' t (rust.rc t) =
00:09:06 verbose #11371 > >     !\\(x, $'"std::rc::Rc::try_unwrap($0)"')
00:09:07 verbose #11372 > 00:09:06   debug #600 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4d6e5d561e47ef3d27ea54b705709d45e26aec3a2d0578d3e530b6b07d7a31ba/main.spi
00:09:07 verbose #11373 > >
00:09:07 verbose #11374 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:07 verbose #11375 > > //// test
00:09:07 verbose #11376 > > ///! rust
00:09:07 verbose #11377 > >
00:09:07 verbose #11378 > > rust.new_rc true
00:09:07 verbose #11379 > > |> rc_try_unwrap
00:09:07 verbose #11380 > > |> unbox
00:09:07 verbose #11381 > > |> _assert_eq (Ok true)
00:09:07 verbose #11382 > 00:09:06   debug #601 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c1ac1d1c7c15cc480bf659b50eb4fd765feef8876001a1ae8c6683477f9eae52/main.spi
00:09:09 verbose #11383 > >
00:09:09 verbose #11384 > > ╭─[ 2.56s - return value ]─────────────────────────────────────────────────────╮
00:09:09 verbose #11385 > > │ assert_eq / actual: US0_0(true) / expected: US0_0(true)                      │
00:09:09 verbose #11386 > > │                                                                              │
00:09:09 verbose #11387 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:10 verbose #11388 > 00:00:21 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 19599 }
00:09:10 verbose #11389 > 00:00:21   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/spiral/resultm.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/resultm.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:09:12 verbose #11390 > 00:00:23 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/resultm.dib.ipynb to html
00:09:12 verbose #11391 > 00:00:23 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:09:12 verbose #11392 > 00:00:23 verbose #7 !   validate(nb)
00:09:13 verbose #11393 > 00:00:25 verbose #8 ! [NbConvertApp] Writing 336281 bytes to c:\home\git\polyglot\lib\spiral\resultm.dib.html
00:09:13 verbose #11394 > 00:00:25 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 645 }
00:09:13 verbose #11395 > 00:00:25   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 645 }
00:09:13 verbose #11396 > 00:00:25   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/resultm.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/resultm.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:09:14 verbose #11397 > 00:00:26 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:09:14 verbose #11398 > 00:00:26   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:09:15 verbose #11399 > 00:00:26   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 20303 }
00:09:15   debug #11400 runtime.execute_with_options_async / { exit_code = 0; output_length = 23699 }
00:09:15   debug #13 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path resultm.dib --retries 3
00:09:15   debug #11401 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path console.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:09:15 verbose #11402 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "console.dib", "--retries", "3"])) }
00:09:15 verbose #11403 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/spiral/console.dib", "--output-path", "c:/home/git/polyglot/lib/spiral/console.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/console.dib" --output-path "c:/home/git/polyglot/lib/spiral/console.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:09:17 verbose #11404 > >
00:09:17 verbose #11405 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:17 verbose #11406 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:17 verbose #11407 > > │ # console                                                                    │
00:09:17 verbose #11408 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:21 verbose #11409 > >
00:09:21 verbose #11410 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:21 verbose #11411 > > //// test
00:09:21 verbose #11412 > >
00:09:21 verbose #11413 > > open testing
00:09:22 verbose #11414 > 00:09:21   debug #602 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fa7845de436c12d0ca65282fe0cd65832468ca943e72feba50e6b1bb441e251a/main.spi
00:09:22 verbose #11415 > >
00:09:22 verbose #11416 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:22 verbose #11417 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:22 verbose #11418 > > │ ## fsharp                                                                    │
00:09:22 verbose #11419 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:22 verbose #11420 > >
00:09:22 verbose #11421 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:22 verbose #11422 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:22 verbose #11423 > > │ ### console_color                                                            │
00:09:22 verbose #11424 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:22 verbose #11425 > >
00:09:22 verbose #11426 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:22 verbose #11427 > > nominal console_color = $'System.ConsoleColor'
00:09:22 verbose #11428 > 00:09:21   debug #603 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/96ee93cc39aabd1a2400d81adcac40e5e064bc89969421c61af0a57daada1596/main.spi
00:09:22 verbose #11429 > >
00:09:22 verbose #11430 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:22 verbose #11431 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:22 verbose #11432 > > │ ### reset_color                                                              │
00:09:22 verbose #11433 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:22 verbose #11434 > >
00:09:22 verbose #11435 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:22 verbose #11436 > > inl reset_color () : () =
00:09:22 verbose #11437 > >     run_target function
00:09:22 verbose #11438 > >         | Fsharp => fun () => $'System.Console.ResetColor' ()
00:09:22 verbose #11439 > >         | _ => fun () => ()
00:09:23 verbose #11440 > 00:09:22   debug #604 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ac51230b1568e2b64d79d68080e0289818a6d783b7625413038e5a2d24cacc83/main.spi
00:09:23 verbose #11441 > >
00:09:23 verbose #11442 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:23 verbose #11443 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:23 verbose #11444 > > │ ### set_foreground_color                                                     │
00:09:23 verbose #11445 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:23 verbose #11446 > >
00:09:23 verbose #11447 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:23 verbose #11448 > > inl set_foreground_color (color : console_color) : () =
00:09:23 verbose #11449 > >     run_target function
00:09:23 verbose #11450 > >         | Fsharp => fun () => $'System.Console.ForegroundColor <- !color '
00:09:23 verbose #11451 > >         | _ => fun () => ()
00:09:23 verbose #11452 > 00:09:22   debug #605 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/cf9c28f9e2a5f5d016e0b8de6b10cdf9962e0970fe4835d147d1b1865d7d7fc7/main.spi
00:09:23 verbose #11453 > >
00:09:23 verbose #11454 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:23 verbose #11455 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:23 verbose #11456 > > │ ## console                                                                   │
00:09:23 verbose #11457 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:23 verbose #11458 > >
00:09:23 verbose #11459 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:23 verbose #11460 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:23 verbose #11461 > > │ ### write_line                                                               │
00:09:23 verbose #11462 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:23 verbose #11463 > >
00:09:23 verbose #11464 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:23 verbose #11465 > > inl write_line obj : () =
00:09:23 verbose #11466 > >     backend_switch {
00:09:23 verbose #11467 > >         Fsharp = fun () => obj |> $'System.Console.WriteLine' : ()
00:09:23 verbose #11468 > >         Python = fun () => $'print(!obj)' : ()
00:09:23 verbose #11469 > >     }
00:09:23 verbose #11470 > 00:09:22   debug #606 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4ceb52c0729e80d8829407f49c301452ca65e7839576a25aa6e92a01d4b169ef/main.spi
00:09:23 verbose #11471 > >
00:09:23 verbose #11472 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:23 verbose #11473 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:23 verbose #11474 > > │ ### write                                                                    │
00:09:23 verbose #11475 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:23 verbose #11476 > >
00:09:23 verbose #11477 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:23 verbose #11478 > > inl write forall t. (x : t) : () =
00:09:23 verbose #11479 > >     inl s = x |> sm'.format
00:09:23 verbose #11480 > >     backend_switch {
00:09:23 verbose #11481 > >         Python = fun () => $'print(!s, end="")' : ()
00:09:23 verbose #11482 > >         Fsharp = fun () => s |> $'System.Console.Write' : ()
00:09:23 verbose #11483 > >     }
00:09:24 verbose #11484 > 00:09:23   debug #607 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/57f205f0f4c31189591f16c8942472fb03aba7acfce495fd6e0084ebc07bf81d/main.spi
00:09:24 verbose #11485 > >
00:09:24 verbose #11486 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:24 verbose #11487 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:24 verbose #11488 > > │ ### write_ln                                                                 │
00:09:24 verbose #11489 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:24 verbose #11490 > >
00:09:24 verbose #11491 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:24 verbose #11492 > > inl write_ln l : () =
00:09:24 verbose #11493 > >     write l
00:09:24 verbose #11494 > >     backend_switch {
00:09:24 verbose #11495 > >         Cuda = fun () => $'printf("\\n")' : ()
00:09:24 verbose #11496 > >         Python = fun () => $"print()" : ()
00:09:24 verbose #11497 > >         Fsharp = fun () => write_line () : ()
00:09:24 verbose #11498 > >     }
00:09:24 verbose #11499 > 00:09:23   debug #608 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/edf38f87e76af91dbfec6ae6c6b85bc779a17635f4fede47be66481c2ee9cf64/main.spi
00:09:24 verbose #11500 > 00:00:09 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 4460 }
00:09:24 verbose #11501 > 00:00:09   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/spiral/console.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/console.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:09:26 verbose #11502 > 00:00:11 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/console.dib.ipynb to html
00:09:26 verbose #11503 > 00:00:11 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:09:26 verbose #11504 > 00:00:11 verbose #7 !   validate(nb)
00:09:27 verbose #11505 > 00:00:12 verbose #8 ! [NbConvertApp] Writing 283342 bytes to c:\home\git\polyglot\lib\spiral\console.dib.html
00:09:28 verbose #11506 > 00:00:12 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 645 }
00:09:28 verbose #11507 > 00:00:12   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 645 }
00:09:28 verbose #11508 > 00:00:12   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/console.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/console.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:09:29 verbose #11509 > 00:00:13 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:09:29 verbose #11510 > 00:00:13   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:09:29 verbose #11511 > 00:00:14   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 5164 }
00:09:29   debug #11512 runtime.execute_with_options_async / { exit_code = 0; output_length = 7966 }
00:09:29   debug #14 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path console.dib --retries 3
00:09:29   debug #11513 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path date_time.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:09:29 verbose #11514 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "date_time.dib", "--retries", "3"])) }
00:09:29 verbose #11515 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/spiral/date_time.dib", "--output-path", "c:/home/git/polyglot/lib/spiral/date_time.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/date_time.dib" --output-path "c:/home/git/polyglot/lib/spiral/date_time.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:09:31 verbose #11516 > >
00:09:31 verbose #11517 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:31 verbose #11518 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:31 verbose #11519 > > │ # date_time                                                                  │
00:09:31 verbose #11520 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:35 verbose #11521 > >
00:09:35 verbose #11522 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:35 verbose #11523 > > open rust_operators
00:09:35 verbose #11524 > > open sm'_operators
00:09:36 verbose #11525 > 00:09:35   debug #609 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/bf61618f8655d8e50dd31f6ed591bb82f1f3131ec57d5c0ea9955695867e89ad/main.spi
00:09:36 verbose #11526 > >
00:09:36 verbose #11527 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:36 verbose #11528 > > //// test
00:09:36 verbose #11529 > >
00:09:36 verbose #11530 > > open testing
00:09:37 verbose #11531 > 00:09:36   debug #610 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2730b74780c23dd1c489c875b384f3d8721906375fcf264307b568f98aed681f/main.spi
00:09:37 verbose #11532 > >
00:09:37 verbose #11533 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:37 verbose #11534 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:37 verbose #11535 > > │ ## date_time                                                                 │
00:09:37 verbose #11536 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:37 verbose #11537 > >
00:09:37 verbose #11538 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:37 verbose #11539 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:37 verbose #11540 > > │ ### timestamp                                                                │
00:09:37 verbose #11541 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:37 verbose #11542 > >
00:09:37 verbose #11543 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:37 verbose #11544 > > nominal timestamp = i64
00:09:37 verbose #11545 > 00:09:36   debug #611 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/51c5032aa7c0e231f87df1a53b8d129697315fbc60e1684d96769a587062debe/main.spi
00:09:37 verbose #11546 > >
00:09:37 verbose #11547 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:37 verbose #11548 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:37 verbose #11549 > > │ ### timestamp_guid                                                           │
00:09:37 verbose #11550 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:37 verbose #11551 > >
00:09:37 verbose #11552 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:37 verbose #11553 > > type timestamp_guid = guid.guid
00:09:37 verbose #11554 > 00:09:36   debug #612 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3ffe46b343f5a24de1c02f1ca635f443fee2d10210a5f135b89a84ced9ae58f2/main.spi
00:09:37 verbose #11555 > >
00:09:37 verbose #11556 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:37 verbose #11557 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:37 verbose #11558 > > │ ### date_time_guid                                                           │
00:09:37 verbose #11559 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:37 verbose #11560 > >
00:09:37 verbose #11561 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:37 verbose #11562 > > type date_time_guid = guid.guid
00:09:38 verbose #11563 > 00:09:37   debug #613 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/20b21a1a3ca105cf22918cb3f0d0b922987d25caeb8a9e33f5222c3e39d6c343/main.spi
00:09:38 verbose #11564 > >
00:09:38 verbose #11565 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:38 verbose #11566 > > //// test
00:09:38 verbose #11567 > >
00:09:38 verbose #11568 > > inl test_guid () =
00:09:38 verbose #11569 > >     guid.new_guid "FEDCBA98-7654-3210-FEDC-BA9876543210"
00:09:38 verbose #11570 > 00:09:37   debug #614 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0a0ae2b34d3b63e59e9d3fa3278f9836cf135b74228efc536b319533d82a28ce/main.spi
00:09:38 verbose #11571 > >
00:09:38 verbose #11572 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:38 verbose #11573 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:38 verbose #11574 > > │ ## fsharp                                                                    │
00:09:38 verbose #11575 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:38 verbose #11576 > >
00:09:38 verbose #11577 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:38 verbose #11578 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:38 verbose #11579 > > │ ### date_time                                                                │
00:09:38 verbose #11580 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:38 verbose #11581 > >
00:09:38 verbose #11582 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:38 verbose #11583 > > nominal date_time_python =
00:09:38 verbose #11584 > >     `(
00:09:38 verbose #11585 > >         global "import datetime"
00:09:38 verbose #11586 > >         $'' : $'datetime.datetime'
00:09:38 verbose #11587 > >     )
00:09:38 verbose #11588 > > type date_time_switch =
00:09:38 verbose #11589 > >     {
00:09:38 verbose #11590 > >         Fsharp : $'System.DateTime'
00:09:38 verbose #11591 > >         Python : date_time_python
00:09:38 verbose #11592 > >     }
00:09:38 verbose #11593 > > nominal date_time = $'backend_switch `(date_time_switch)'
00:09:38 verbose #11594 > 00:09:38   debug #615 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/70bf3afaddaa8efd1f9cad4ff01d28011d42388cd2fa7d4dae6b5d0e6b716c43/main.spi
00:09:38 verbose #11595 > >
00:09:38 verbose #11596 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:38 verbose #11597 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:38 verbose #11598 > > │ ### date_time_milliseconds                                                   │
00:09:38 verbose #11599 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:38 verbose #11600 > >
00:09:38 verbose #11601 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:38 verbose #11602 > > inl date_time_milliseconds
00:09:38 verbose #11603 > >     (year : int) (month : int) (day : int) (hour : int) (minute : int) (second :
00:09:38 verbose #11604 > > int) (millisecond : int)
00:09:38 verbose #11605 > >     : date_time
00:09:38 verbose #11606 > >     =
00:09:38 verbose #11607 > >     backend_switch {
00:09:38 verbose #11608 > >         Fsharp = fun () =>
00:09:38 verbose #11609 > >             $'System.DateTime (!year, !month, !day, !hour, !minute, !second,
00:09:38 verbose #11610 > > !millisecond)' : date_time
00:09:38 verbose #11611 > >         Python = fun () =>
00:09:38 verbose #11612 > >             $'datetime.datetime(!year, !month, !day, !hour, !minute, !second,
00:09:38 verbose #11613 > > !millisecond)' : date_time
00:09:38 verbose #11614 > >     }
00:09:39 verbose #11615 > 00:09:38   debug #616 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0aeef18328d6c78e75df201eea69eef0cc5b67d8dbca578052d52db42aecd003/main.spi
00:09:39 verbose #11616 > >
00:09:39 verbose #11617 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:39 verbose #11618 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:39 verbose #11619 > > │ ### date_time_utc                                                            │
00:09:39 verbose #11620 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:39 verbose #11621 > >
00:09:39 verbose #11622 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:39 verbose #11623 > > inl date_time_utc
00:09:39 verbose #11624 > >     (year : int) (month : int) (day : int) (hour : int) (minute : int) (second :
00:09:39 verbose #11625 > > int)
00:09:39 verbose #11626 > >     : date_time
00:09:39 verbose #11627 > >     =
00:09:39 verbose #11628 > >     backend_switch {
00:09:39 verbose #11629 > >         Fsharp = fun () =>
00:09:39 verbose #11630 > >             $'System.DateTime (!year, !month, !day, !hour, !minute, !second,
00:09:39 verbose #11631 > > System.DateTimeKind.Utc)' : date_time
00:09:39 verbose #11632 > >         Python = fun () =>
00:09:39 verbose #11633 > >             $'datetime.datetime(!year, !month, !day, !hour, !minute, !second,
00:09:39 verbose #11634 > > tzinfo=datetime.timezone.utc)' : date_time
00:09:39 verbose #11635 > >     }
00:09:39 verbose #11636 > 00:09:38   debug #617 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a1ad9d5254cfa552454d58af9d37caefd57ab5f045b99ae75647ac5d57ab504e/main.spi
00:09:39 verbose #11637 > >
00:09:39 verbose #11638 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:39 verbose #11639 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:39 verbose #11640 > > │ ### ticks                                                                    │
00:09:39 verbose #11641 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:39 verbose #11642 > >
00:09:39 verbose #11643 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:39 verbose #11644 > > inl ticks (date_time : date_time) : timestamp =
00:09:39 verbose #11645 > >     backend_switch {
00:09:39 verbose #11646 > >         Fsharp = fun () => date_time |> $'_.Ticks' : timestamp
00:09:39 verbose #11647 > >         Python = fun () => $'!date_time.timestamp()' : timestamp
00:09:39 verbose #11648 > >     }
00:09:39 verbose #11649 > 00:09:39   debug #618 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/40a8d90c128fe69f928df169062d3d1eda4418f868596f44ff5e47234ee94e2e/main.spi
00:09:39 verbose #11650 > >
00:09:39 verbose #11651 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:39 verbose #11652 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:39 verbose #11653 > > │ ### format                                                                   │
00:09:39 verbose #11654 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:40 verbose #11655 > >
00:09:40 verbose #11656 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:40 verbose #11657 > > inl format (format : string) (date_time : date_time) : string =
00:09:40 verbose #11658 > >     backend_switch {
00:09:40 verbose #11659 > >         Fsharp = fun () => $'!date_time.ToString' format : string
00:09:40 verbose #11660 > >         Python = fun () => $'!date_time.strftime(!format)' : string
00:09:40 verbose #11661 > >     }
00:09:40 verbose #11662 > 00:09:39   debug #619 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d006cf6b8b652cfc0085f8c0077cfca054c159cb701909895c8b6139db38cffe/main.spi
00:09:40 verbose #11663 > >
00:09:40 verbose #11664 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:40 verbose #11665 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:40 verbose #11666 > > │ ### format_iso8601                                                           │
00:09:40 verbose #11667 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:40 verbose #11668 > >
00:09:40 verbose #11669 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:40 verbose #11670 > > inl format_iso8601 (date_time : date_time) : string =
00:09:40 verbose #11671 > >     backend_switch {
00:09:40 verbose #11672 > >         Fsharp = fun () => date_time |> format "yyyy-MM-ddTHH-mm-ss.fff" :
00:09:40 verbose #11673 > > string
00:09:40 verbose #11674 > >         Python = fun () => date_time |> format "%Y-%m-%dT%H-%M-%S.%f" : string
00:09:40 verbose #11675 > >     }
00:09:40 verbose #11676 > 00:09:39   debug #620 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7b9607757c3cee4157ac9f27ebc6a63bc67790bede6eae0993e3fa5cc9788703/main.spi
00:09:40 verbose #11677 > >
00:09:40 verbose #11678 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:40 verbose #11679 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:40 verbose #11680 > > │ ### min_value                                                                │
00:09:40 verbose #11681 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:40 verbose #11682 > >
00:09:40 verbose #11683 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:40 verbose #11684 > > inl min_value () : date_time =
00:09:40 verbose #11685 > >     backend_switch {
00:09:40 verbose #11686 > >         Fsharp = fun () => $'System.DateTime.MinValue' : date_time
00:09:40 verbose #11687 > >         Python = fun () => $'datetime.datetime.min' : date_time
00:09:40 verbose #11688 > >     }
00:09:40 verbose #11689 > 00:09:40   debug #621 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/07336d630d8744288aef4f35f43500c2fd641064afb69de04931268617b3fa66/main.spi
00:09:41 verbose #11690 > >
00:09:41 verbose #11691 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:41 verbose #11692 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:41 verbose #11693 > > │ ### max_value                                                                │
00:09:41 verbose #11694 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:41 verbose #11695 > >
00:09:41 verbose #11696 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:41 verbose #11697 > > inl max_value () : date_time =
00:09:41 verbose #11698 > >     backend_switch {
00:09:41 verbose #11699 > >         Fsharp = fun () => $'System.DateTime.MaxValue' : date_time
00:09:41 verbose #11700 > >         Python = fun () => $'datetime.datetime.max' : date_time
00:09:41 verbose #11701 > >     }
00:09:41 verbose #11702 > 00:09:40   debug #622 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/febdeecc94d96d56f63d687925687f1141458c7530ee095bebed361866428ec7/main.spi
00:09:41 verbose #11703 > >
00:09:41 verbose #11704 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:41 verbose #11705 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:41 verbose #11706 > > │ ### unix_epoch                                                               │
00:09:41 verbose #11707 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:41 verbose #11708 > >
00:09:41 verbose #11709 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:41 verbose #11710 > > inl unix_epoch () : date_time =
00:09:41 verbose #11711 > >     backend_switch {
00:09:41 verbose #11712 > >         Fsharp = fun () => $'System.DateTime.UnixEpoch' : date_time
00:09:41 verbose #11713 > >         Python = fun () => $'datetime.datetime(1970, 1, 1)' : date_time
00:09:41 verbose #11714 > >     }
00:09:41 verbose #11715 > 00:09:40   debug #623 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/25ce456ac43bf03af97a6ce481e3628306ab9042e8de0cb8302f6c3162282176/main.spi
00:09:41 verbose #11716 > >
00:09:41 verbose #11717 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:41 verbose #11718 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:41 verbose #11719 > > │ ### to_universal_time                                                        │
00:09:41 verbose #11720 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:41 verbose #11721 > >
00:09:41 verbose #11722 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:41 verbose #11723 > > inl to_universal_time (date_time : date_time) : date_time =
00:09:41 verbose #11724 > >     backend_switch {
00:09:41 verbose #11725 > >         Fsharp = fun () => date_time |> $'_.ToUniversalTime()' : date_time
00:09:41 verbose #11726 > >         Python = fun () => $'!date_time.astimezone(datetime.timezone.utc)' :
00:09:41 verbose #11727 > > date_time
00:09:41 verbose #11728 > >     }
00:09:42 verbose #11729 > 00:09:41   debug #624 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2b3c961c491be212c62effcc929da58b543454ec462ad9800e56d9a261e90e7d/main.spi
00:09:42 verbose #11730 > >
00:09:42 verbose #11731 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:42 verbose #11732 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:42 verbose #11733 > > │ ### date_time_kind                                                           │
00:09:42 verbose #11734 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:42 verbose #11735 > >
00:09:42 verbose #11736 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:42 verbose #11737 > > union date_time_kind =
00:09:42 verbose #11738 > >     | Unspecified
00:09:42 verbose #11739 > >     | Utc
00:09:42 verbose #11740 > >     | Local
00:09:42 verbose #11741 > 00:09:41   debug #625 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8b2a860b3fb755ea750666d3d9049b8010f4c4f1b6a9ed070a922be7691f2aca/main.spi
00:09:42 verbose #11742 > >
00:09:42 verbose #11743 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:42 verbose #11744 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:42 verbose #11745 > > │ ### specify_date_kind                                                        │
00:09:42 verbose #11746 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:42 verbose #11747 > >
00:09:42 verbose #11748 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:42 verbose #11749 > > inl specify_date_kind (kind : date_time_kind) (date_time : date_time) :
00:09:42 verbose #11750 > > date_time =
00:09:42 verbose #11751 > >     inl kind : $'System.DateTimeKind' =
00:09:42 verbose #11752 > >         match kind with
00:09:42 verbose #11753 > >         | Unspecified => $'System.DateTimeKind.Unspecified'
00:09:42 verbose #11754 > >         | Utc => $'System.DateTimeKind.Utc'
00:09:42 verbose #11755 > >         | Local => $'System.DateTimeKind.Local'
00:09:42 verbose #11756 > >     $'System.DateTime.SpecifyKind (!date_time, !kind)'
00:09:42 verbose #11757 > 00:09:41   debug #626 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/383e161228f27c7ffb9487ae7021b21508a43b6fa0831b51dd5469ca06eafa13/main.spi
00:09:42 verbose #11758 > >
00:09:42 verbose #11759 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:42 verbose #11760 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:42 verbose #11761 > > │ ### time_span                                                                │
00:09:42 verbose #11762 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:42 verbose #11763 > >
00:09:42 verbose #11764 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:42 verbose #11765 > > nominal time_span = $"backend_switch `({ Fsharp : $"System.TimeSpan"; Python :
00:09:42 verbose #11766 > > $"datetime.timedelta" })"
00:09:42 verbose #11767 > >
00:09:42 verbose #11768 > > inl time_span x : time_span =
00:09:42 verbose #11769 > >     backend_switch {
00:09:42 verbose #11770 > >         Fsharp = fun () => x |> $'`time_span ' : time_span
00:09:42 verbose #11771 > >         Python = fun () => $'datetime.timedelta(!x)' : time_span
00:09:42 verbose #11772 > >     }
00:09:43 verbose #11773 > 00:09:42   debug #627 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b5ca16c7df48b24797e518c15f9083f18ae5134a455f1d7ef30437d0358f2fd3/main.spi
00:09:43 verbose #11774 > >
00:09:43 verbose #11775 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:43 verbose #11776 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:43 verbose #11777 > > │ ### new_time_span                                                            │
00:09:43 verbose #11778 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:43 verbose #11779 > >
00:09:43 verbose #11780 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:43 verbose #11781 > > inl new_time_span (a : date_time) (b : date_time) : time_span =
00:09:43 verbose #11782 > >     $'!b - !a '
00:09:43 verbose #11783 > 00:09:42   debug #628 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a8bbfb0034e9e2b6c08a189fb960f6e18a70e2b2c78fa731661e17dd1134fdd8/main.spi
00:09:43 verbose #11784 > >
00:09:43 verbose #11785 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:43 verbose #11786 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:43 verbose #11787 > > │ ### time_span_format                                                         │
00:09:43 verbose #11788 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:43 verbose #11789 > >
00:09:43 verbose #11790 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:43 verbose #11791 > > inl time_span_format (format : string) (time_span : time_span) : string =
00:09:43 verbose #11792 > >     run_target function
00:09:43 verbose #11793 > >         | (TypeScript _ | Python _) => fun () =>
00:09:43 verbose #11794 > >             $'!time_span.ToString ("c",
00:09:43 verbose #11795 > > System.Globalization.CultureInfo.InvariantCulture)'
00:09:43 verbose #11796 > >         | _ => fun () =>
00:09:43 verbose #11797 > >             $'!time_span.ToString !format '
00:09:43 verbose #11798 > 00:09:43   debug #629 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/caef49272efa601c7ec00629df3c06ad1357ee8a0e3a20213cdc47097d5561f9/main.spi
00:09:44 verbose #11799 > >
00:09:44 verbose #11800 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:44 verbose #11801 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:44 verbose #11802 > > │ ### hours                                                                    │
00:09:44 verbose #11803 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:44 verbose #11804 > >
00:09:44 verbose #11805 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:44 verbose #11806 > > inl hours (time_span : time_span) : i32 =
00:09:44 verbose #11807 > >     backend_switch {
00:09:44 verbose #11808 > >         Fsharp = fun () => time_span |> $'_.Hours' : i32
00:09:44 verbose #11809 > >         Python = fun () => $'!time_span.days * 24 + !time_span.seconds // 3600'
00:09:44 verbose #11810 > > : i32
00:09:44 verbose #11811 > >     }
00:09:44 verbose #11812 > 00:09:43   debug #630 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/12132ec12012d9a1588ee98191456ca9e504bf191087c867a60f4aa09644fc1c/main.spi
00:09:44 verbose #11813 > >
00:09:44 verbose #11814 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:44 verbose #11815 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:44 verbose #11816 > > │ ### milliseconds                                                             │
00:09:44 verbose #11817 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:44 verbose #11818 > >
00:09:44 verbose #11819 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:44 verbose #11820 > > inl milliseconds (time_span : time_span) : i32 =
00:09:44 verbose #11821 > >     backend_switch {
00:09:44 verbose #11822 > >         Fsharp = fun () => time_span |> $'_.Milliseconds' : i32
00:09:44 verbose #11823 > >         Python = fun () => $'!time_span.microseconds // 1000' : i32
00:09:44 verbose #11824 > >     }
00:09:44 verbose #11825 > 00:09:43   debug #631 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/bde31a902d67442ce4b407505318d76e1c5c1bb22070c0b4f2eef8e736f9f126/main.spi
00:09:44 verbose #11826 > >
00:09:44 verbose #11827 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:44 verbose #11828 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:44 verbose #11829 > > │ ### minutes                                                                  │
00:09:44 verbose #11830 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:44 verbose #11831 > >
00:09:44 verbose #11832 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:44 verbose #11833 > > inl minutes (time_span : time_span) : i32 =
00:09:44 verbose #11834 > >     backend_switch {
00:09:44 verbose #11835 > >         Fsharp = fun () => time_span |> $'_.Minutes' : i32
00:09:44 verbose #11836 > >         Python = fun () => $'!time_span.seconds // 60' : i32
00:09:44 verbose #11837 > >     }
00:09:45 verbose #11838 > 00:09:44   debug #632 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/40e387546b264a7aad0db98d2b5dbde1a497ad3246d647bc059a8971b71b5b06/main.spi
00:09:45 verbose #11839 > >
00:09:45 verbose #11840 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:45 verbose #11841 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:45 verbose #11842 > > │ ### seconds                                                                  │
00:09:45 verbose #11843 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:45 verbose #11844 > >
00:09:45 verbose #11845 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:45 verbose #11846 > > inl seconds (time_span : time_span) : i32 =
00:09:45 verbose #11847 > >     backend_switch {
00:09:45 verbose #11848 > >         Fsharp = fun () => time_span |> $'_.Seconds' : i32
00:09:45 verbose #11849 > >         Python = fun () => $'!time_span.seconds % 60' : i32
00:09:45 verbose #11850 > >     }
00:09:45 verbose #11851 > 00:09:44   debug #633 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ab42728f8e30a9cbf097fbd1753dc5158b742d2a386b4802751ec2125457825b/main.spi
00:09:45 verbose #11852 > >
00:09:45 verbose #11853 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:45 verbose #11854 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:45 verbose #11855 > > │ ### total_seconds                                                            │
00:09:45 verbose #11856 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:45 verbose #11857 > >
00:09:45 verbose #11858 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:45 verbose #11859 > > inl total_seconds (time_span : time_span) : f64 =
00:09:45 verbose #11860 > >     backend_switch {
00:09:45 verbose #11861 > >         Fsharp = fun () => time_span |> $'_.TotalSeconds' : f64
00:09:45 verbose #11862 > >         Python = fun () => $'!time_span.total_seconds()' : f64
00:09:45 verbose #11863 > >     }
00:09:45 verbose #11864 > 00:09:44   debug #634 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2affdb85f153e2737b46223a36da7e98ce1dfc325f184c8649f247a410c465a2/main.spi
00:09:45 verbose #11865 > >
00:09:45 verbose #11866 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:45 verbose #11867 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:45 verbose #11868 > > │ ### time_zone_info                                                           │
00:09:45 verbose #11869 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:45 verbose #11870 > >
00:09:45 verbose #11871 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:45 verbose #11872 > > nominal time_zone_info = $'System.TimeZoneInfo'
00:09:46 verbose #11873 > 00:09:45   debug #635 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2bfe69717380152a788b62d98460d770a30313c177f34a54053f0b6fad0f43c8/main.spi
00:09:46 verbose #11874 > >
00:09:46 verbose #11875 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:46 verbose #11876 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:46 verbose #11877 > > │ ### add_days                                                                 │
00:09:46 verbose #11878 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:46 verbose #11879 > >
00:09:46 verbose #11880 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:46 verbose #11881 > > inl add_days (days : i32) (date_time : date_time) : date_time =
00:09:46 verbose #11882 > >     $'!date_time.AddDays' days
00:09:46 verbose #11883 > 00:09:45   debug #636 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3a3fe655714ca9396a204388f0fff099428b55e11743f8a442765eebc384e155/main.spi
00:09:46 verbose #11884 > >
00:09:46 verbose #11885 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:46 verbose #11886 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:46 verbose #11887 > > │ ### now                                                                      │
00:09:46 verbose #11888 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:46 verbose #11889 > >
00:09:46 verbose #11890 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:46 verbose #11891 > > inl now () : date_time =
00:09:46 verbose #11892 > >     backend_switch {
00:09:46 verbose #11893 > >         Fsharp = fun () => $'System.DateTime.Now' : date_time
00:09:46 verbose #11894 > >         Python = fun () =>
00:09:46 verbose #11895 > >             global "import datetime"
00:09:46 verbose #11896 > >             $'datetime.datetime.now()' : date_time
00:09:46 verbose #11897 > >     }
00:09:46 verbose #11898 > 00:09:45   debug #637 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2db92d9e8e333e3e44c4838e70a38d0567641696da522db9e999c319c865e556/main.spi
00:09:46 verbose #11899 > >
00:09:46 verbose #11900 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:46 verbose #11901 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:46 verbose #11902 > > │ ### utc_now                                                                  │
00:09:46 verbose #11903 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:46 verbose #11904 > >
00:09:46 verbose #11905 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:46 verbose #11906 > > inl utc_now () : date_time =
00:09:46 verbose #11907 > >     backend_switch {
00:09:46 verbose #11908 > >         Fsharp = fun () => $'System.DateTime.UtcNow' : date_time
00:09:46 verbose #11909 > >         Python = fun () =>
00:09:46 verbose #11910 > >             global "import datetime"
00:09:46 verbose #11911 > >             $'datetime.datetime.utcnow()' : date_time
00:09:46 verbose #11912 > >     }
00:09:47 verbose #11913 > 00:09:46   debug #638 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5adbb97aa019f658ad92478183fbc919953c698fd7c1c244810f95888abae359/main.spi
00:09:47 verbose #11914 > >
00:09:47 verbose #11915 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:47 verbose #11916 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:47 verbose #11917 > > │ ### stopwatch                                                                │
00:09:47 verbose #11918 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:47 verbose #11919 > >
00:09:47 verbose #11920 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:47 verbose #11921 > > nominal stopwatch_python =
00:09:47 verbose #11922 > >     `(
00:09:47 verbose #11923 > >         global "import timeit"
00:09:47 verbose #11924 > >         $'' : $'timeit.default_timer'
00:09:47 verbose #11925 > >     )
00:09:47 verbose #11926 > > type stopwatch_switch =
00:09:47 verbose #11927 > >     {
00:09:47 verbose #11928 > >         Fsharp : $'System.Diagnostics.Stopwatch'
00:09:47 verbose #11929 > >         Python : stopwatch_python
00:09:47 verbose #11930 > >     }
00:09:47 verbose #11931 > > nominal stopwatch = $'backend_switch `(stopwatch_switch)'
00:09:47 verbose #11932 > >
00:09:47 verbose #11933 > > inl stopwatch () : stopwatch =
00:09:47 verbose #11934 > >     backend_switch {
00:09:47 verbose #11935 > >         Fsharp = fun () => $'`stopwatch ' () : stopwatch
00:09:47 verbose #11936 > >         Python = fun () => $'`stopwatch ' : stopwatch
00:09:47 verbose #11937 > >     }
00:09:47 verbose #11938 > 00:09:46   debug #639 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9696740adcf29d3b1a87f819a445219dac422719c3586b7dfb593ab21622c44a/main.spi
00:09:47 verbose #11939 > >
00:09:47 verbose #11940 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:47 verbose #11941 > > inl stopwatch_elapsed_milliseconds (stopwatch : stopwatch) : i64 =
00:09:47 verbose #11942 > >     $'!stopwatch.ElapsedMilliseconds'
00:09:47 verbose #11943 > 00:09:47   debug #640 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/38bfea01db369e3b76016f93763a0a9c6e8e28dd295031aa4eb5119b9e412d38/main.spi
00:09:48 verbose #11944 > >
00:09:48 verbose #11945 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:48 verbose #11946 > > inl stopwatch_start (stopwatch : stopwatch) : () =
00:09:48 verbose #11947 > >     $'!stopwatch.Start' ()
00:09:48 verbose #11948 > 00:09:47   debug #641 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2b074738c869331af878d92324cf950667698a762de50c0c0ae0ac107a76b415/main.spi
00:09:48 verbose #11949 > >
00:09:48 verbose #11950 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:48 verbose #11951 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:48 verbose #11952 > > │ ## rust                                                                      │
00:09:48 verbose #11953 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:48 verbose #11954 > >
00:09:48 verbose #11955 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:48 verbose #11956 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:48 verbose #11957 > > │ ### duration                                                                 │
00:09:48 verbose #11958 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:48 verbose #11959 > >
00:09:48 verbose #11960 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:48 verbose #11961 > > nominal duration =
00:09:48 verbose #11962 > >     `(
00:09:48 verbose #11963 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:09:48 verbose #11964 > > Fable.Core.Emit(\"std::time::Duration\")>]]\n#endif\ntype std_time_Duration =
00:09:48 verbose #11965 > > class end"
00:09:48 verbose #11966 > >         $'' : $'std_time_Duration'
00:09:48 verbose #11967 > >     )
00:09:48 verbose #11968 > 00:09:47   debug #642 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/116a7c8a2925ac49567df2a3e5368d485b47494a07f5cd0d06b51639124539bb/main.spi
00:09:48 verbose #11969 > >
00:09:48 verbose #11970 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:48 verbose #11971 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:48 verbose #11972 > > │ ### date_time'                                                               │
00:09:48 verbose #11973 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:48 verbose #11974 > >
00:09:48 verbose #11975 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:48 verbose #11976 > > nominal date_time' t =
00:09:48 verbose #11977 > >     `(
00:09:48 verbose #11978 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:09:48 verbose #11979 > > Fable.Core.Emit(\"chrono::DateTime<$0>\")>]]\n#endif\ntype chrono_DateTime<'T> =
00:09:48 verbose #11980 > > class end"
00:09:48 verbose #11981 > >         $'' : $'chrono_DateTime<`t>'
00:09:48 verbose #11982 > >     )
00:09:49 verbose #11983 > 00:09:48   debug #643 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c81ecb1d75b2bf9456c6d97b17dc559104d4a4faab676362e03a3cbba6a1a836/main.spi
00:09:49 verbose #11984 > >
00:09:49 verbose #11985 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:49 verbose #11986 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:49 verbose #11987 > > │ ### local                                                                    │
00:09:49 verbose #11988 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:49 verbose #11989 > >
00:09:49 verbose #11990 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:49 verbose #11991 > > nominal local =
00:09:49 verbose #11992 > >     `(
00:09:49 verbose #11993 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:09:49 verbose #11994 > > Fable.Core.Emit(\"chrono::Local\")>]]\n#endif\ntype chrono_Local = class end"
00:09:49 verbose #11995 > >         $'' : $'chrono_Local'
00:09:49 verbose #11996 > >     )
00:09:49 verbose #11997 > 00:09:48   debug #644 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/86437b7ea20c68ba59c656ca6bbaa20fc3d2249ef8133f154a89a428b696bd81/main.spi
00:09:49 verbose #11998 > >
00:09:49 verbose #11999 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:49 verbose #12000 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:49 verbose #12001 > > │ ### naive_date_time                                                          │
00:09:49 verbose #12002 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:49 verbose #12003 > >
00:09:49 verbose #12004 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:49 verbose #12005 > > nominal naive_date_time =
00:09:49 verbose #12006 > >     `(
00:09:49 verbose #12007 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:09:49 verbose #12008 > > Fable.Core.Emit(\"chrono::NaiveDateTime\")>]]\n#endif\ntype chrono_NaiveDateTime
00:09:49 verbose #12009 > > = class end"
00:09:49 verbose #12010 > >         $'' : $'chrono_NaiveDateTime'
00:09:49 verbose #12011 > >     )
00:09:49 verbose #12012 > 00:09:48   debug #645 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9eeb7efc124c8abdeccf360fae6ccdf2329e3309f1d15dd41e5ad8de6c41d34e/main.spi
00:09:49 verbose #12013 > >
00:09:49 verbose #12014 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:49 verbose #12015 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:49 verbose #12016 > > │ ## utc                                                                       │
00:09:49 verbose #12017 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:49 verbose #12018 > >
00:09:49 verbose #12019 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:49 verbose #12020 > > nominal utc =
00:09:49 verbose #12021 > >     `(
00:09:49 verbose #12022 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:09:49 verbose #12023 > > Fable.Core.Emit(\"chrono::Utc\")>]]\n#endif\ntype chrono_Utc = class end"
00:09:49 verbose #12024 > >         $'' : $'chrono_Utc'
00:09:49 verbose #12025 > >     )
00:09:50 verbose #12026 > 00:09:49   debug #646 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8f39633b70c9be73f9414e446fc8ff36c82d1dc226b2aec71f1c31489ac4b912/main.spi
00:09:50 verbose #12027 > >
00:09:50 verbose #12028 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:50 verbose #12029 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:50 verbose #12030 > > │ ### naive_utc                                                                │
00:09:50 verbose #12031 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:50 verbose #12032 > >
00:09:50 verbose #12033 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:50 verbose #12034 > > inl naive_utc (date_time : date_time' utc) : naive_date_time =
00:09:50 verbose #12035 > >     !\\(date_time, $'"$0.naive_utc()"')
00:09:50 verbose #12036 > 00:09:49   debug #647 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/46369de47fd09b10fe86b109d8567dd30bf8e314c70d9d9274d2d7a6de3bf4f1/main.spi
00:09:50 verbose #12037 > >
00:09:50 verbose #12038 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:50 verbose #12039 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:50 verbose #12040 > > │ ### to_local                                                                 │
00:09:50 verbose #12041 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:50 verbose #12042 > >
00:09:50 verbose #12043 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:50 verbose #12044 > > inl to_local (date_time : date_time' utc) : date_time' local =
00:09:50 verbose #12045 > >     inl naive_date_time = date_time |> naive_utc
00:09:50 verbose #12046 > >     !\\(naive_date_time,
00:09:50 verbose #12047 > > $'"chrono::offset::TimeZone::from_utc_datetime(&chrono::Local, &$0)"')
00:09:50 verbose #12048 > 00:09:50   debug #648 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6dae471c5bc6bbf656aa0df1944c9bc4bba07978af78bcd3e9fa566903227f09/main.spi
00:09:51 verbose #12049 > >
00:09:51 verbose #12050 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:51 verbose #12051 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:51 verbose #12052 > > │ ### from_timestamp_micros                                                    │
00:09:51 verbose #12053 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:51 verbose #12054 > >
00:09:51 verbose #12055 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:51 verbose #12056 > > inl from_timestamp_micros forall t {number; int}. (timestamp : t) : option
00:09:51 verbose #12057 > > (date_time' utc) =
00:09:51 verbose #12058 > >     inl result : optionm'.option' (date_time' utc) =
00:09:51 verbose #12059 > >         !\\(timestamp, $'"chrono::DateTime::from_timestamp_micros($0)"')
00:09:51 verbose #12060 > >     result |> optionm'.unbox
00:09:51 verbose #12061 > 00:09:50   debug #649 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/479adc54247a025be38816b4ced90f982a645a5151d770e5d67abdcf70795b08/main.spi
00:09:51 verbose #12062 > >
00:09:51 verbose #12063 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:51 verbose #12064 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:51 verbose #12065 > > │ ### format'                                                                  │
00:09:51 verbose #12066 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:51 verbose #12067 > >
00:09:51 verbose #12068 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:51 verbose #12069 > > inl format' (format : string) (date_time : date_time' utc) : sm'.std_string =
00:09:51 verbose #12070 > >     !\\((date_time, #format), $'"$0.format($1).to_string()"')
00:09:51 verbose #12071 > 00:09:50   debug #650 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/75d52e64a4cff7b5594ae2013a09f3bda0889c1b2be58b747510c55bce1a208a/main.spi
00:09:51 verbose #12072 > >
00:09:51 verbose #12073 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:51 verbose #12074 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:51 verbose #12075 > > │ ### format''                                                                 │
00:09:51 verbose #12076 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:51 verbose #12077 > >
00:09:51 verbose #12078 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:51 verbose #12079 > > inl format'' (format : string) (date_time : date_time' _) : sm'.std_string =
00:09:51 verbose #12080 > >     !\\((date_time, #format), $'"$0.format($1).to_string()"')
00:09:52 verbose #12081 > 00:09:51   debug #651 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a32685b0c3bef58fe9e641c73d3d13a7401f5b64b53dbd3e7b8f81212eee9ec9/main.spi
00:09:52 verbose #12082 > >
00:09:52 verbose #12083 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:52 verbose #12084 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:52 verbose #12085 > > │ ### format_timestamp                                                         │
00:09:52 verbose #12086 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:52 verbose #12087 > >
00:09:52 verbose #12088 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:52 verbose #12089 > > inl format_timestamp forall t {number; int}. (timestamp : t) =
00:09:52 verbose #12090 > >     inl timestamp = join timestamp
00:09:52 verbose #12091 > >     (timestamp / 1000)
00:09:52 verbose #12092 > >     |> from_timestamp_micros
00:09:52 verbose #12093 > >     |> optionm.map fun x =>
00:09:52 verbose #12094 > >         x
00:09:52 verbose #12095 > >         |> to_local
00:09:52 verbose #12096 > >         |> format'' "%Y-%m-%d %H:%M:%S"
00:09:52 verbose #12097 > >         |> sm'.from_std_string
00:09:52 verbose #12098 > >     |> resultm.from_option
00:09:52 verbose #12099 > 00:09:51   debug #652 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4581b86a9c24f8ffda662b9ad455274d2fd17d822accf15c8bd129e7ad7e39a8/main.spi
00:09:52 verbose #12100 > >
00:09:52 verbose #12101 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:52 verbose #12102 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:52 verbose #12103 > > │ ### duration_from_millis                                                     │
00:09:52 verbose #12104 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:52 verbose #12105 > >
00:09:52 verbose #12106 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:52 verbose #12107 > > inl duration_from_millis (ms : u64) : duration =
00:09:52 verbose #12108 > >     inl ms = join ms
00:09:52 verbose #12109 > >     !\($'"std::time::Duration::from_millis(!ms)"')
00:09:52 verbose #12110 > 00:09:51   debug #653 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0d7d5bb506815666a5c1899f15a77ec097ab423f04c793edd9ea7c21e3932d1f/main.spi
00:09:52 verbose #12111 > >
00:09:52 verbose #12112 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:52 verbose #12113 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:52 verbose #12114 > > │ ## date_time                                                                 │
00:09:52 verbose #12115 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:52 verbose #12116 > >
00:09:52 verbose #12117 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:52 verbose #12118 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:52 verbose #12119 > > │ ### time_zone_local                                                          │
00:09:52 verbose #12120 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:52 verbose #12121 > >
00:09:52 verbose #12122 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:52 verbose #12123 > > inl time_zone_local () : time_zone_info =
00:09:52 verbose #12124 > >     run_target function
00:09:52 verbose #12125 > >         | Rust (Native) => fun () =>
00:09:52 verbose #12126 > >             open rust_operators
00:09:52 verbose #12127 > >             !\($'"0i64.into()"')
00:09:52 verbose #12128 > >         | Fsharp _ => fun () =>
00:09:52 verbose #12129 > >             $'System.TimeZoneInfo.Local'
00:09:52 verbose #12130 > >         | _ => fun () => null ()
00:09:53 verbose #12131 > 00:09:52   debug #654 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/06504725c81cd38a50ff059301f0251f6191f925b54c4ace635eb2449d9f9485/main.spi
00:09:53 verbose #12132 > >
00:09:53 verbose #12133 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:53 verbose #12134 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:53 verbose #12135 > > │ ### get_utc_offset                                                           │
00:09:53 verbose #12136 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:53 verbose #12137 > >
00:09:53 verbose #12138 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:53 verbose #12139 > > inl get_utc_offset (time_zone_info : time_zone_info) (date_time : date_time) :
00:09:53 verbose #12140 > > time_span =
00:09:53 verbose #12141 > >     run_target function
00:09:53 verbose #12142 > >         | Rust _ => fun () => time_span ()
00:09:53 verbose #12143 > >         | Fsharp _ => fun () => date_time |> $'_.GetUtcOffset' (time_zone_local
00:09:53 verbose #12144 > > ())
00:09:53 verbose #12145 > >         | target => fun () => failwith $'$"date_time.get_utc_offset / target:
00:09:53 verbose #12146 > > {!target}"'
00:09:53 verbose #12147 > 00:09:52   debug #655 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4103e1556b9ad6fabffc42882276916737ae940eab0db3d131a7555381e685a0/main.spi
00:09:53 verbose #12148 > >
00:09:53 verbose #12149 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:53 verbose #12150 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:53 verbose #12151 > > │ ### date_time_guid_from_date_time                                            │
00:09:53 verbose #12152 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:53 verbose #12153 > >
00:09:53 verbose #12154 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:53 verbose #12155 > > let date_time_guid_from_date_time (guid : guid.guid) (date_time : date_time) =
00:09:53 verbose #12156 > >     inl create prefix time_zone : date_time_guid =
00:09:53 verbose #12157 > >         inl guid = guid |> sm'.obj_to_string
00:09:53 verbose #12158 > >         $'`date_time_guid $"{!prefix}{!time_zone}{!guid.[[!prefix.Length +
00:09:53 verbose #12159 > > !time_zone.Length..]]}"'
00:09:53 verbose #12160 > >     run_target function
00:09:53 verbose #12161 > >         | Rust (Contract) => fun () => null ()
00:09:53 verbose #12162 > >         | Rust (Native | Wasm) => fun () =>
00:09:53 verbose #12163 > >             inl epoch =
00:09:53 verbose #12164 > >                 date_time_utc 1970 1 1 0 0 0
00:09:53 verbose #12165 > >                 |> to_universal_time
00:09:53 verbose #12166 > >             inl date_time =
00:09:53 verbose #12167 > >                 date_time
00:09:53 verbose #12168 > >                 |> specify_date_kind Local
00:09:53 verbose #12169 > >                 |> to_universal_time
00:09:53 verbose #12170 > >             inl unixticks =
00:09:53 verbose #12171 > >                 match date_time |> ticks, epoch |> ticks with
00:09:53 verbose #12172 > >                 | timestamp date_time, timestamp epoch => date_time - epoch
00:09:53 verbose #12173 > >             inl prefix =
00:09:53 verbose #12174 > >                 unixticks / 10
00:09:53 verbose #12175 > >                 |> from_timestamp_micros
00:09:53 verbose #12176 > >                 |> optionm.map (
00:09:53 verbose #12177 > >                     to_local
00:09:53 verbose #12178 > >                     >> format'' "%Y%m%d-%H%M-%S%f"
00:09:53 verbose #12179 > >                     >> sm'.from_std_string
00:09:53 verbose #12180 > >                     >> fun s => $'$"{!s.[[0..17]]}-{!s.[[18..21]]}-{!s.[[22]]}"'
00:09:53 verbose #12181 > >                 )
00:09:53 verbose #12182 > >                 |> optionm'.default_value ""
00:09:53 verbose #12183 > >             inl time_zone = date_time |> get_utc_offset (time_zone_local ())
00:09:53 verbose #12184 > >             inl time_zone_signal = if hours time_zone > 0 then 1u8 else 0
00:09:53 verbose #12185 > >             inl time_zone_value = time_zone |> time_span_format (join "hh:mm")
00:09:53 verbose #12186 > >             inl time_zone =
00:09:53 verbose #12187 > > $'$"{!time_zone_signal}{!time_zone_value.[[0..1]]}{!time_zone_value.[[3..4]]}"'
00:09:53 verbose #12188 > > : string
00:09:53 verbose #12189 > >             create prefix time_zone
00:09:53 verbose #12190 > >         | target => fun () =>
00:09:53 verbose #12191 > >             inl prefix = date_time |> format (join "yyyyMMdd-HHmm-ssff-ffff-f")
00:09:53 verbose #12192 > >             inl time_zone = date_time |> get_utc_offset (time_zone_local ())
00:09:53 verbose #12193 > >             inl time_zone_signal = if hours time_zone > 0 then 1u8 else 0
00:09:53 verbose #12194 > >             inl time_zone_value = time_zone |> time_span_format (join "hhmm")
00:09:53 verbose #12195 > >             inl time_zone = $'$"{!time_zone_signal}{!time_zone_value}"' : string
00:09:53 verbose #12196 > >             create prefix time_zone
00:09:53 verbose #12197 > 00:09:53   debug #656 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/56099b5dbb6fef1294ce8fc43c2d7f62aaff610e1c84c0a5ae6932a323f95f27/main.spi
00:09:53 verbose #12198 > >
00:09:53 verbose #12199 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:53 verbose #12200 > > //// test
00:09:53 verbose #12201 > >
00:09:53 verbose #12202 > > now () |> to_universal_time |> date_time_guid_from_date_time (test_guid ()) |>
00:09:53 verbose #12203 > > sm'.obj_to_string
00:09:53 verbose #12204 > > |> console.write_line
00:09:54 verbose #12205 > 00:09:53   debug #657 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9d2a91b5f3bad1d4151b999892a3705b79fe7c0a8b54fe9e0c61cde4e3357243/main.spi
00:09:55 verbose #12206 > >
00:09:55 verbose #12207 > > ╭─[ 1.79s - stdout ]───────────────────────────────────────────────────────────╮
00:09:55 verbose #12208 > > │ 20240710-1039-0784-8460-800300543210                                         │
00:09:55 verbose #12209 > > │                                                                              │
00:09:55 verbose #12210 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:55 verbose #12211 > >
00:09:55 verbose #12212 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:55 verbose #12213 > > //// test
00:09:55 verbose #12214 > > ///! rust -d chrono
00:09:55 verbose #12215 > >
00:09:55 verbose #12216 > > inl suffix = test_guid () |> sm'.obj_to_string |> sm'.range (am'.End fun x => x
00:09:55 verbose #12217 > > - 6i32) (am'.End id)
00:09:55 verbose #12218 > > now ()
00:09:55 verbose #12219 > > |> to_universal_time
00:09:55 verbose #12220 > > |> date_time_guid_from_date_time (test_guid ())
00:09:55 verbose #12221 > > |> sm'.obj_to_string
00:09:55 verbose #12222 > > |> fun s => s |> _assert_eq' $'$"{!s.[[0..29]]}{!suffix}"'
00:09:55 verbose #12223 > 00:09:55   debug #658 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9bd08d521eab244482c2ed7feee90c7cf53a682c416147839e0a6da7e5678ec0/main.spi
00:09:59 verbose #12224 > >
00:09:59 verbose #12225 > > ╭─[ 3.88s - return value ]─────────────────────────────────────────────────────╮
00:09:59 verbose #12226 > > │ assert_eq' / actual: "20240710-1039-1076-6462-000000543210" / expected:      │
00:09:59 verbose #12227 > > │ "20240710-1039-1076-6462-000000543210"                                       │
00:09:59 verbose #12228 > > │                                                                              │
00:09:59 verbose #12229 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:59 verbose #12230 > >
00:09:59 verbose #12231 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:59 verbose #12232 > > //// test
00:09:59 verbose #12233 > > ///! fsharp
00:09:59 verbose #12234 > > ///! rust -d chrono
00:09:59 verbose #12235 > >
00:09:59 verbose #12236 > > inl suffix = test_guid () |> sm'.obj_to_string |> sm'.range (am'.End fun x => x
00:09:59 verbose #12237 > > - 6i32) (am'.End id)
00:09:59 verbose #12238 > > min_value ()
00:09:59 verbose #12239 > > |> specify_date_kind Local
00:09:59 verbose #12240 > > |> date_time_guid_from_date_time (test_guid ())
00:09:59 verbose #12241 > > |> sm'.obj_to_string
00:09:59 verbose #12242 > > |> fun s => s |> _assert_eq'
00:09:59 verbose #12243 > > $'$"00010101-0000-0000-0000-0{!s.[[25..29]]}{!suffix}"'
00:09:59 verbose #12244 > 00:09:59   debug #659 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b36fd96ac92461c8ef4b95bb3ec80186d4603d001e532f1e0b9ea8c504c58503/main.spi
00:10:12 verbose #12245 > >
00:10:12 verbose #12246 > > ╭─[ 12.66s - return value ]────────────────────────────────────────────────────╮
00:10:12 verbose #12247 > > │ .rs output:                                                                  │
00:10:12 verbose #12248 > > │ assert_eq' / actual: "00010101-0000-0000-0000-000000543210" / expected:      │
00:10:12 verbose #12249 > > │ "00010101-0000-0000-0000-000000543210"                                       │
00:10:12 verbose #12250 > > │                                                                              │
00:10:12 verbose #12251 > > │                                                                              │
00:10:12 verbose #12252 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:12 verbose #12253 > >
00:10:12 verbose #12254 > > ╭─[ 12.66s - stdout ]──────────────────────────────────────────────────────────╮
00:10:12 verbose #12255 > > │ .fsx output:                                                                 │
00:10:12 verbose #12256 > > │ assert_eq' / actual: "00010101-0000-0000-0000-000200543210" / expected:      │
00:10:12 verbose #12257 > > │ "00010101-0000-0000-0000-000200543210"                                       │
00:10:12 verbose #12258 > > │                                                                              │
00:10:12 verbose #12259 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:12 verbose #12260 > >
00:10:12 verbose #12261 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:12 verbose #12262 > > //// test
00:10:12 verbose #12263 > > ///! fsharp
00:10:12 verbose #12264 > >
00:10:12 verbose #12265 > > inl suffix = test_guid () |> sm'.obj_to_string |> sm'.range (am'.End fun x => x
00:10:12 verbose #12266 > > - 6i32) (am'.End id)
00:10:12 verbose #12267 > > max_value ()
00:10:12 verbose #12268 > > |> specify_date_kind Utc
00:10:12 verbose #12269 > > |> add_days -1
00:10:12 verbose #12270 > > |> date_time_guid_from_date_time (test_guid ())
00:10:12 verbose #12271 > > |> sm'.obj_to_string
00:10:12 verbose #12272 > > |> fun s => s |> _assert_eq
00:10:12 verbose #12273 > > $'$"99991230-2359-5999-9999-9{!s.[[25..29]]}{!suffix}"'
00:10:12 verbose #12274 > 00:10:12   debug #660 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/46046fe947b2c6c0f2fc5383f4a3eee4b9fe4ce8559eb91b6bbae7424e721604/main.spi
00:10:14 verbose #12275 > >
00:10:14 verbose #12276 > > ╭─[ 1.93s - stdout ]───────────────────────────────────────────────────────────╮
00:10:14 verbose #12277 > > │ assert_eq / actual: "99991230-2359-5999-9999-900300543210" / expected:       │
00:10:14 verbose #12278 > > │ "99991230-2359-5999-9999-900300543210"                                       │
00:10:14 verbose #12279 > > │                                                                              │
00:10:14 verbose #12280 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:14 verbose #12281 > >
00:10:14 verbose #12282 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:14 verbose #12283 > > //// test
00:10:14 verbose #12284 > > ///! rust -d chrono
00:10:14 verbose #12285 > >
00:10:14 verbose #12286 > > inl suffix = test_guid () |> sm'.obj_to_string |> sm'.range (am'.End fun x => x
00:10:14 verbose #12287 > > - 6i32) (am'.End id)
00:10:14 verbose #12288 > > max_value ()
00:10:14 verbose #12289 > > |> specify_date_kind Utc
00:10:14 verbose #12290 > > |> add_days -1
00:10:14 verbose #12291 > > |> date_time_guid_from_date_time (test_guid ())
00:10:14 verbose #12292 > > |> sm'.obj_to_string
00:10:14 verbose #12293 > > |> fun s => s |> _assert_eq
00:10:14 verbose #12294 > > $'$"99991230-2359-5999-9999-0{!s.[[25..29]]}{!suffix}"'
00:10:15 verbose #12295 > 00:10:14   debug #661 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3fde366ae5513bc7b1d8dde2377c683f3ae18d301fdc9f88e45ef293df445018/main.spi
00:10:23 verbose #12296 > >
00:10:23 verbose #12297 > > ╭─[ 8.92s - return value ]─────────────────────────────────────────────────────╮
00:10:23 verbose #12298 > > │ assert_eq / actual: "99991230-2359-5999-9999-000000543210" / expected:       │
00:10:23 verbose #12299 > > │ "99991230-2359-5999-9999-000000543210"                                       │
00:10:23 verbose #12300 > > │                                                                              │
00:10:23 verbose #12301 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:23 verbose #12302 > >
00:10:23 verbose #12303 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:23 verbose #12304 > > //// test
00:10:23 verbose #12305 > >
00:10:23 verbose #12306 > > inl suffix = test_guid () |> sm'.obj_to_string |> sm'.range (am'.End fun x => x
00:10:23 verbose #12307 > > - 6i32) (am'.End id)
00:10:23 verbose #12308 > > unix_epoch ()
00:10:23 verbose #12309 > > |> specify_date_kind Utc
00:10:23 verbose #12310 > > |> add_days 1
00:10:23 verbose #12311 > > |> date_time_guid_from_date_time (test_guid ())
00:10:23 verbose #12312 > > |> sm'.obj_to_string
00:10:23 verbose #12313 > > |> fun s => s |> _assert_eq
00:10:23 verbose #12314 > > $'$"19700102-0000-0000-0000-0{!s.[[25..29]]}{!suffix}"'
00:10:23 verbose #12315 > 00:10:22   debug #662 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b99ac416f164ec79c581f20a2b635e8356e9f48f1ff6e6b79699973ef7c08b68/main.spi
00:10:24 verbose #12316 > >
00:10:24 verbose #12317 > > ╭─[ 1.70s - stdout ]───────────────────────────────────────────────────────────╮
00:10:24 verbose #12318 > > │ assert_eq / actual: "19700102-0000-0000-0000-000200543210" / expected:       │
00:10:24 verbose #12319 > > │ "19700102-0000-0000-0000-000200543210"                                       │
00:10:24 verbose #12320 > > │                                                                              │
00:10:24 verbose #12321 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:24 verbose #12322 > >
00:10:24 verbose #12323 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:24 verbose #12324 > > //// test
00:10:24 verbose #12325 > > ///! rust -d chrono
00:10:24 verbose #12326 > >
00:10:24 verbose #12327 > > inl suffix = test_guid () |> sm'.obj_to_string |> sm'.range (am'.End fun x => x
00:10:24 verbose #12328 > > - 6i32) (am'.End id)
00:10:24 verbose #12329 > > unix_epoch ()
00:10:24 verbose #12330 > > |> specify_date_kind Utc
00:10:24 verbose #12331 > > |> add_days 1
00:10:24 verbose #12332 > > |> date_time_guid_from_date_time (test_guid ())
00:10:24 verbose #12333 > > |> sm'.obj_to_string
00:10:24 verbose #12334 > > |> fun s => s |> _assert_eq
00:10:24 verbose #12335 > > $'$"19700102-0000-0000-0000-0{!s.[[25..29]]}{!suffix}"'
00:10:25 verbose #12336 > 00:10:24   debug #663 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6c939f160d179634ab8bfc6e8644aeb391e6204567ebee9e55f0fca25ab1d088/main.spi
00:10:33 verbose #12337 > >
00:10:33 verbose #12338 > > ╭─[ 9.13s - return value ]─────────────────────────────────────────────────────╮
00:10:33 verbose #12339 > > │ assert_eq / actual: "19700102-0000-0000-0000-000000543210" / expected:       │
00:10:33 verbose #12340 > > │ "19700102-0000-0000-0000-000000543210"                                       │
00:10:33 verbose #12341 > > │                                                                              │
00:10:33 verbose #12342 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:33 verbose #12343 > >
00:10:33 verbose #12344 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:33 verbose #12345 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:33 verbose #12346 > > │ ### date_time_from_guid                                                      │
00:10:33 verbose #12347 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:33 verbose #12348 > >
00:10:33 verbose #12349 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:33 verbose #12350 > > inl date_time_from_guid (date_time_guid : date_time_guid) =
00:10:33 verbose #12351 > >     inl date_time_guid = date_time_guid |> sm'.obj_to_string
00:10:33 verbose #12352 > >     inl sm'_replace = join sm'.replace
00:10:33 verbose #12353 > >     run_target function
00:10:33 verbose #12354 > >         | (Rust _ | TypeScript _) => fun () =>
00:10:33 verbose #12355 > >             $'System.DateTime.Parse (!date_time_guid.[[..24]] |> !sm'_replace
00:10:33 verbose #12356 > > "-" "")' : date_time
00:10:33 verbose #12357 > >         | _ => fun () => $'System.DateTime.ParseExact (!date_time_guid.[[..24]]
00:10:33 verbose #12358 > > |> !sm'_replace "-" "", "yyyyMMddHHmmssfffffff", null)' : date_time
00:10:34 verbose #12359 > 00:10:33   debug #664 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7b88ff17248e352f1f419279b7ad60ac20df28aac964bd737009584b54f1fac3/main.spi
00:10:34 verbose #12360 > >
00:10:34 verbose #12361 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:34 verbose #12362 > > //// test
00:10:34 verbose #12363 > >
00:10:34 verbose #12364 > > date_time_from_guid (guid.new_guid "00010101-0000-0000-0000-0a9876543210")
00:10:34 verbose #12365 > > |> _assert_eq' (min_value ())
00:10:35 verbose #12366 > 00:10:34   debug #665 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0d0efa39f540d23309fc01be1d2210ac5ba7eb1e1bc92bc512cbd410685e9cbd/main.spi
00:10:36 verbose #12367 > >
00:10:36 verbose #12368 > > ╭─[ 1.51s - stdout ]───────────────────────────────────────────────────────────╮
00:10:36 verbose #12369 > > │ assert_eq' / actual: 0001-01-01 12:00:00 AM / expected: 0001-01-01 12:00:00  │
00:10:36 verbose #12370 > > │ AM                                                                           │
00:10:36 verbose #12371 > > │                                                                              │
00:10:36 verbose #12372 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:36 verbose #12373 > >
00:10:36 verbose #12374 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:36 verbose #12375 > > //// test
00:10:36 verbose #12376 > >
00:10:36 verbose #12377 > > date_time_from_guid (guid.new_guid $'$"99991231-2359-5999-9999-9{(!test_guid ()
00:10:36 verbose #12378 > > |> string).[[^10..]]}"')
00:10:36 verbose #12379 > > |> _assert_eq' (max_value ())
00:10:36 verbose #12380 > 00:10:35   debug #666 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/815ff388b0a9dddb1b2e10c8e7f64d323ed006dbe61caa1a91d427630fc1d6c1/main.spi
00:10:37 verbose #12381 > >
00:10:37 verbose #12382 > > ╭─[ 1.25s - stdout ]───────────────────────────────────────────────────────────╮
00:10:37 verbose #12383 > > │ assert_eq' / actual: 9999-12-31 11:59:59 PM / expected: 9999-12-31 11:59:59  │
00:10:37 verbose #12384 > > │ PM                                                                           │
00:10:37 verbose #12385 > > │                                                                              │
00:10:37 verbose #12386 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:37 verbose #12387 > >
00:10:37 verbose #12388 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:37 verbose #12389 > > //// test
00:10:37 verbose #12390 > >
00:10:37 verbose #12391 > > date_time_from_guid (guid.new_guid $'$"19700101-0000-0000-0000-0{(!test_guid ()
00:10:37 verbose #12392 > > |> string).[[^10..]]}"')
00:10:37 verbose #12393 > > |> _assert_eq' $'System.DateTime.UnixEpoch'
00:10:38 verbose #12394 > 00:10:37   debug #667 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/44204c454f56eb0cf3072db4769f787dfb840cb5bf412a890c517b14b05201f8/main.spi
00:10:40 verbose #12395 > >
00:10:40 verbose #12396 > > ╭─[ 2.58s - stdout ]───────────────────────────────────────────────────────────╮
00:10:40 verbose #12397 > > │ assert_eq' / actual: 1970-01-01 12:00:00 AM / expected: 1970-01-01 12:00:00  │
00:10:40 verbose #12398 > > │ AM                                                                           │
00:10:40 verbose #12399 > > │                                                                              │
00:10:40 verbose #12400 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:40 verbose #12401 > >
00:10:40 verbose #12402 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:40 verbose #12403 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:40 verbose #12404 > > │ ### timestamp_guid_from_timestamp                                            │
00:10:40 verbose #12405 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:40 verbose #12406 > >
00:10:40 verbose #12407 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:40 verbose #12408 > > inl timestamp_guid_from_timestamp (guid : guid.guid) (timestamp : timestamp) :
00:10:40 verbose #12409 > > timestamp_guid =
00:10:40 verbose #12410 > >     inl guid = guid |> sm'.obj_to_string
00:10:40 verbose #12411 > >     inl timestamp = timestamp |> sm'.obj_to_string |> sm'.pad_left 18i32 '0'
00:10:40 verbose #12412 > >     $'`timestamp_guid
00:10:40 verbose #12413 > > $"{!timestamp.[[0..7]]}-{!timestamp.[[8..11]]}-{!timestamp.[[12..15]]}-{!timesta
00:10:40 verbose #12414 > > mp.[[16..17]]}{!guid.[[21..]]}"'
00:10:40 verbose #12415 > 00:10:39   debug #668 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ca43e3f9a1373f1a5031eacc90b732460a7ae7c6ed5a133812b369a06ff104a2/main.spi
00:10:41 verbose #12416 > >
00:10:41 verbose #12417 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:41 verbose #12418 > > //// test
00:10:41 verbose #12419 > >
00:10:41 verbose #12420 > > timestamp_guid_from_timestamp (test_guid ()) (timestamp 0i64)
00:10:41 verbose #12421 > > |> _assert_eq' (guid.new_guid "00000000-0000-0000-00dc-ba9876543210")
00:10:41 verbose #12422 > 00:10:40   debug #669 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/77f8552277dae4ca9a0abd804fb8ac261b63a8d14a286cc622f0911adb938758/main.spi
00:10:43 verbose #12423 > >
00:10:43 verbose #12424 > > ╭─[ 1.84s - stdout ]───────────────────────────────────────────────────────────╮
00:10:43 verbose #12425 > > │ assert_eq' / actual: 00000000-0000-0000-00dc-ba9876543210 / expected:        │
00:10:43 verbose #12426 > > │ 00000000-0000-0000-00dc-ba9876543210                                         │
00:10:43 verbose #12427 > > │                                                                              │
00:10:43 verbose #12428 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:43 verbose #12429 > >
00:10:43 verbose #12430 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:43 verbose #12431 > > //// test
00:10:43 verbose #12432 > >
00:10:43 verbose #12433 > > timestamp_guid_from_timestamp (test_guid ()) (timestamp 999999999999999999i64)
00:10:43 verbose #12434 > > |> _assert_eq' (guid.new_guid $'$"99999999-9999-9999-99dc-b{(!test_guid () |>
00:10:43 verbose #12435 > > string).[[^10..]]}"')
00:10:43 verbose #12436 > 00:10:42   debug #670 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/233e30d08aa28a953b14d01a634d1c109d5e4e96be909c8ead623b83ad978756/main.spi
00:10:44 verbose #12437 > >
00:10:44 verbose #12438 > > ╭─[ 1.52s - stdout ]───────────────────────────────────────────────────────────╮
00:10:44 verbose #12439 > > │ assert_eq' / actual: 99999999-9999-9999-99dc-ba9876543210 / expected:        │
00:10:44 verbose #12440 > > │ 99999999-9999-9999-99dc-ba9876543210                                         │
00:10:44 verbose #12441 > > │                                                                              │
00:10:44 verbose #12442 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:44 verbose #12443 > >
00:10:44 verbose #12444 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:44 verbose #12445 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:44 verbose #12446 > > │ ### timestamp_from_guid                                                      │
00:10:44 verbose #12447 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:44 verbose #12448 > >
00:10:44 verbose #12449 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:44 verbose #12450 > > inl timestamp_from_guid (guid : date_time_guid) : timestamp =
00:10:44 verbose #12451 > >     inl guid = guid |> sm'.obj_to_string
00:10:44 verbose #12452 > >     $'`i64
00:10:44 verbose #12453 > > $"{!guid.[[0..7]]}{!guid.[[9..12]]}{!guid.[[14..17]]}{!guid.[[19..20]]}"'
00:10:44 verbose #12454 > 00:10:44   debug #671 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/238dec66006474ee3cdf6576dda6d028944b1e1a29c717e06042d3edd9aceb0e/main.spi
00:10:45 verbose #12455 > >
00:10:45 verbose #12456 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:45 verbose #12457 > > //// test
00:10:45 verbose #12458 > >
00:10:45 verbose #12459 > > timestamp_from_guid (guid.new_guid "00000000-0000-0000-00dc-ba9876543210")
00:10:45 verbose #12460 > > |> _assert_eq (timestamp 0)
00:10:46 verbose #12461 > 00:10:45   debug #672 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5eb22946e755182dfb789d0795df553c90077bd795cc788c0a34c44836c0bb31/main.spi
00:10:46 verbose #12462 > >
00:10:46 verbose #12463 > > ╭─[ 1.08s - stdout ]───────────────────────────────────────────────────────────╮
00:10:46 verbose #12464 > > │ assert_eq / actual: 0L / expected: 0L                                        │
00:10:46 verbose #12465 > > │                                                                              │
00:10:46 verbose #12466 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:46 verbose #12467 > >
00:10:46 verbose #12468 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:46 verbose #12469 > > //// test
00:10:46 verbose #12470 > >
00:10:46 verbose #12471 > > timestamp_from_guid (guid.new_guid $'$"99999999-9999-9999-99{(!test_guid () |>
00:10:46 verbose #12472 > > string).[[^14..]]}"')
00:10:46 verbose #12473 > > |> _assert_eq (timestamp 999999999999999999)
00:10:47 verbose #12474 > 00:10:46   debug #673 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/dc9f366e5219057de9f71cb507236824e52be6722ef34a459e173e88d9ba170b/main.spi
00:10:47 verbose #12475 > >
00:10:47 verbose #12476 > > ╭─[ 984.58ms - stdout ]────────────────────────────────────────────────────────╮
00:10:47 verbose #12477 > > │ assert_eq / actual: 999999999999999999L / expected: 999999999999999999L      │
00:10:47 verbose #12478 > > │                                                                              │
00:10:47 verbose #12479 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:47 verbose #12480 > >
00:10:47 verbose #12481 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:47 verbose #12482 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:47 verbose #12483 > > │ ### new_guid_from_date_time                                                  │
00:10:47 verbose #12484 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:47 verbose #12485 > >
00:10:47 verbose #12486 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:47 verbose #12487 > > inl new_guid_from_date_time (date_time : date_time) =
00:10:47 verbose #12488 > >     inl guid = guid.new_raw_guid ()
00:10:47 verbose #12489 > >     date_time_guid_from_date_time guid date_time
00:10:47 verbose #12490 > 00:10:47   debug #674 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7cd05b56095d918e4e214aa04f2c720df913d7ef224ad5459ec8ea377dc143f2/main.spi
00:10:48 verbose #12491 > >
00:10:48 verbose #12492 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:48 verbose #12493 > > //// test
00:10:48 verbose #12494 > >
00:10:48 verbose #12495 > > utc_now ()
00:10:48 verbose #12496 > > |> new_guid_from_date_time
00:10:48 verbose #12497 > > |> date_time_from_guid
00:10:48 verbose #12498 > > |> fun date_time => new_time_span date_time (utc_now ()) |> total_seconds |> i32
00:10:48 verbose #12499 > > |> _assert_eq 0
00:10:48 verbose #12500 > 00:10:48   debug #675 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6874df37a56288c750d2073de5cc5c09af20954b23e299848e5b182c7cc2a4eb/main.spi
00:10:50 verbose #12501 > >
00:10:50 verbose #12502 > > ╭─[ 1.88s - stdout ]───────────────────────────────────────────────────────────╮
00:10:50 verbose #12503 > > │ assert_eq / actual: 0 / expected: 0                                          │
00:10:50 verbose #12504 > > │                                                                              │
00:10:50 verbose #12505 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:50 verbose #12506 > >
00:10:50 verbose #12507 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:50 verbose #12508 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:50 verbose #12509 > > │ ### new_guid_from_timestamp                                                  │
00:10:50 verbose #12510 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:50 verbose #12511 > >
00:10:50 verbose #12512 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:50 verbose #12513 > > inl new_guid_from_timestamp (timestamp : timestamp) =
00:10:50 verbose #12514 > >     inl guid = guid.new_raw_guid ()
00:10:50 verbose #12515 > >     timestamp_guid_from_timestamp guid timestamp
00:10:50 verbose #12516 > 00:10:50   debug #676 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8ff26cd8071211a4c571549e933da97925ea88adfd78ff7eba7945f7486c4064/main.spi
00:10:51 verbose #12517 > >
00:10:51 verbose #12518 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:51 verbose #12519 > > //// test
00:10:51 verbose #12520 > >
00:10:51 verbose #12521 > > utc_now ()
00:10:51 verbose #12522 > > |> ticks
00:10:51 verbose #12523 > > |> new_guid_from_timestamp
00:10:51 verbose #12524 > > |> timestamp_from_guid
00:10:51 verbose #12525 > > |> fun (timestamp timestamp) => (timestamp - (utc_now () |> ticks |> fun
00:10:51 verbose #12526 > > (timestamp x) => x)) / 100000i64
00:10:51 verbose #12527 > > |> _assert_eq 0i64
00:10:51 verbose #12528 > 00:10:50   debug #677 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7ee4203bbd29ce58d62be3c4e00105676192475e7c0ad58d25cdbd4bbc7cd64c/main.spi
00:10:52 verbose #12529 > >
00:10:52 verbose #12530 > > ╭─[ 831.46ms - stdout ]────────────────────────────────────────────────────────╮
00:10:52 verbose #12531 > > │ assert_eq / actual: 0L / expected: 0L                                        │
00:10:52 verbose #12532 > > │                                                                              │
00:10:52 verbose #12533 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:52 verbose #12534 > >
00:10:52 verbose #12535 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:52 verbose #12536 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:52 verbose #12537 > > │ ## main                                                                      │
00:10:52 verbose #12538 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:52 verbose #12539 > >
00:10:52 verbose #12540 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:52 verbose #12541 > > inl main () =
00:10:52 verbose #12542 > >     $'let date_time_guid_from_date_time x = !date_time_guid_from_date_time x' :
00:10:52 verbose #12543 > > ()
00:10:52 verbose #12544 > >     $'let date_time_from_guid x = !date_time_from_guid x' : ()
00:10:52 verbose #12545 > >     $'let timestamp_guid_from_timestamp x = !timestamp_guid_from_timestamp x' :
00:10:52 verbose #12546 > > ()
00:10:52 verbose #12547 > >     $'let timestamp_from_guid x = !timestamp_from_guid x' : ()
00:10:52 verbose #12548 > >     $'let new_guid_from_date_time x = !new_guid_from_date_time x' : ()
00:10:52 verbose #12549 > >     $'let new_guid_from_timestamp x = !new_guid_from_timestamp x' : ()
00:10:52 verbose #12550 > >     $'let format x = !format x' : ()
00:10:52 verbose #12551 > >     $'let format_iso8601 x = !format_iso8601 x' : ()
00:10:52 verbose #12552 > 00:10:51   debug #678 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/be8ef08682eb1bef9455c3a8d9f8640d26f6928719bf7eac874fa16ce529ea89/main.spi
00:10:54 verbose #12553 > 00:01:24 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 46579 }
00:10:54 verbose #12554 > 00:01:24   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/spiral/date_time.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/date_time.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:11:00 verbose #12555 > 00:01:30 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/date_time.dib.ipynb to html
00:11:00 verbose #12556 > 00:01:30 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:11:00 verbose #12557 > 00:01:30 verbose #7 !   validate(nb)
00:11:05 verbose #12558 > 00:01:35 verbose #8 ! [NbConvertApp] Writing 410720 bytes to c:\home\git\polyglot\lib\spiral\date_time.dib.html
00:11:05 verbose #12559 > 00:01:36 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 649 }
00:11:05 verbose #12560 > 00:01:36   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 649 }
00:11:05 verbose #12561 > 00:01:36   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/date_time.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/date_time.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:11:09 verbose #12562 > 00:01:39 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:11:09 verbose #12563 > 00:01:39   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:11:10 verbose #12564 > 00:01:40   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 47287 }
00:11:10   debug #12565 runtime.execute_with_options_async / { exit_code = 0; output_length = 51865 }
00:11:10   debug #15 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path date_time.dib --retries 3
00:11:10   debug #12566 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path math.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:11:10 verbose #12567 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "math.dib", "--retries", "3"])) }
00:11:10 verbose #12568 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/spiral/math.dib", "--output-path", "c:/home/git/polyglot/lib/spiral/math.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/math.dib" --output-path "c:/home/git/polyglot/lib/spiral/math.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:11:15 verbose #12569 > >
00:11:15 verbose #12570 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:15 verbose #12571 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:15 verbose #12572 > > │ # math                                                                       │
00:11:15 verbose #12573 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:23 verbose #12574 > >
00:11:23 verbose #12575 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:23 verbose #12576 > > //// test
00:11:23 verbose #12577 > >
00:11:23 verbose #12578 > > open testing
00:11:24 verbose #12579 > 00:11:23   debug #679 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fa7845de436c12d0ca65282fe0cd65832468ca943e72feba50e6b1bb441e251a/main.spi
00:11:24 verbose #12580 > >
00:11:24 verbose #12581 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:24 verbose #12582 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:24 verbose #12583 > > │ ## math                                                                      │
00:11:24 verbose #12584 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:24 verbose #12585 > >
00:11:24 verbose #12586 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:24 verbose #12587 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:24 verbose #12588 > > │ ### e                                                                        │
00:11:24 verbose #12589 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:24 verbose #12590 > >
00:11:24 verbose #12591 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:24 verbose #12592 > > inl e () =
00:11:24 verbose #12593 > >     exp 1f64
00:11:25 verbose #12594 > 00:11:24   debug #680 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ad8fe92be0dbc38e45aef60c1ef8263bc2c36b963b582c4daaa7a6231f197c37/main.spi
00:11:25 verbose #12595 > >
00:11:25 verbose #12596 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:25 verbose #12597 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:25 verbose #12598 > > │ ## square                                                                    │
00:11:25 verbose #12599 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:25 verbose #12600 > >
00:11:25 verbose #12601 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:25 verbose #12602 > > inl square x =
00:11:25 verbose #12603 > >     x ** 2
00:11:25 verbose #12604 > 00:11:24   debug #681 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4f777aa39b8f5387d4c32b6e3bccee1d0130085d98ddfcb94a8f66472f905006/main.spi
00:11:25 verbose #12605 > >
00:11:25 verbose #12606 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:25 verbose #12607 > > //// test
00:11:25 verbose #12608 > >
00:11:25 verbose #12609 > > 5f64
00:11:25 verbose #12610 > > |> sqrt
00:11:25 verbose #12611 > > |> square
00:11:25 verbose #12612 > > |> _assert_approx_eq None 5
00:11:25 verbose #12613 > 00:11:25   debug #682 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/27abda1843b1bbfcadf8a746514b5f9b4aed7baa93785d6b352c5b478793c0cb/main.spi
00:11:26 verbose #12614 > >
00:11:26 verbose #12615 > > ╭─[ 1.19s - stdout ]───────────────────────────────────────────────────────────╮
00:11:26 verbose #12616 > > │ assert_approx_eq / actual: 5.0 / expected: 5.0                               │
00:11:26 verbose #12617 > > │                                                                              │
00:11:26 verbose #12618 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:26 verbose #12619 > >
00:11:26 verbose #12620 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:26 verbose #12621 > > //// test
00:11:26 verbose #12622 > >
00:11:26 verbose #12623 > > e () |> square
00:11:26 verbose #12624 > > |> _assert_approx_eq None 7.3890560989306495
00:11:27 verbose #12625 > 00:11:26   debug #683 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/417634bcbae2b61fa4822bd5baddd804653f1e470adfbfe6e60ce30aaee154e7/main.spi
00:11:27 verbose #12626 > >
00:11:27 verbose #12627 > > ╭─[ 520.75ms - stdout ]────────────────────────────────────────────────────────╮
00:11:27 verbose #12628 > > │ assert_approx_eq / actual: 7.389056099 / expected: 7.389056099               │
00:11:27 verbose #12629 > > │                                                                              │
00:11:27 verbose #12630 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:27 verbose #12631 > >
00:11:27 verbose #12632 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:27 verbose #12633 > > //// test
00:11:27 verbose #12634 > >
00:11:27 verbose #12635 > > 2 * 2 / 0.4f64 |> sqrt
00:11:27 verbose #12636 > > |> _assert_approx_eq None 3.1622776601683795
00:11:27 verbose #12637 > 00:11:26   debug #684 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9803c2eeb0df6f028e71deedc9cf6fcfc95fd406c15fc3e28ef038d887e254c1/main.spi
00:11:27 verbose #12638 > >
00:11:27 verbose #12639 > > ╭─[ 378.45ms - stdout ]────────────────────────────────────────────────────────╮
00:11:27 verbose #12640 > > │ assert_approx_eq / actual: 3.16227766 / expected: 3.16227766                 │
00:11:27 verbose #12641 > > │                                                                              │
00:11:27 verbose #12642 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:27 verbose #12643 > >
00:11:27 verbose #12644 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:27 verbose #12645 > > //// test
00:11:27 verbose #12646 > >
00:11:27 verbose #12647 > > 2f64 / 3
00:11:27 verbose #12648 > > |> _assert_approx_eq None 0.6666666666666666
00:11:28 verbose #12649 > 00:11:27   debug #685 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/15fd9877050a993af976323a53d388a892895592a32716a1dac4a8a54ff66635/main.spi
00:11:28 verbose #12650 > >
00:11:28 verbose #12651 > > ╭─[ 379.92ms - stdout ]────────────────────────────────────────────────────────╮
00:11:28 verbose #12652 > > │ assert_approx_eq / actual: 0.6666666667 / expected: 0.6666666667             │
00:11:28 verbose #12653 > > │                                                                              │
00:11:28 verbose #12654 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:28 verbose #12655 > >
00:11:28 verbose #12656 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:28 verbose #12657 > > //// test
00:11:28 verbose #12658 > >
00:11:28 verbose #12659 > > 2f64 |> log
00:11:28 verbose #12660 > > |> _assert_approx_eq None 0.6931471805599453
00:11:28 verbose #12661 > 00:11:27   debug #686 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/91a5ac1fb9da5da905602bf6ccf6603aa4ef71599235328ca2f25392355606ee/main.spi
00:11:28 verbose #12662 > >
00:11:28 verbose #12663 > > ╭─[ 442.11ms - stdout ]────────────────────────────────────────────────────────╮
00:11:28 verbose #12664 > > │ assert_approx_eq / actual: 0.6931471806 / expected: 0.6931471806             │
00:11:28 verbose #12665 > > │                                                                              │
00:11:28 verbose #12666 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:28 verbose #12667 > >
00:11:28 verbose #12668 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:28 verbose #12669 > > //// test
00:11:28 verbose #12670 > >
00:11:28 verbose #12671 > > pi
00:11:28 verbose #12672 > > |> _assert_approx_eq None 3.141592653589793f64
00:11:28 verbose #12673 > 00:11:28   debug #687 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6cbd694cb8cd1fd510130e43dceb50f76dd4ba103395c011b7163372aa93e671/main.spi
00:11:28 verbose #12674 > >
00:11:28 verbose #12675 > > ╭─[ 388.85ms - stdout ]────────────────────────────────────────────────────────╮
00:11:28 verbose #12676 > > │ assert_approx_eq / actual: 3.141592654 / expected: 3.141592654               │
00:11:28 verbose #12677 > > │                                                                              │
00:11:28 verbose #12678 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:28 verbose #12679 > >
00:11:28 verbose #12680 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:28 verbose #12681 > > //// test
00:11:28 verbose #12682 > >
00:11:28 verbose #12683 > > pi |> cos
00:11:28 verbose #12684 > > |> _assert_eq -1f64
00:11:29 verbose #12685 > 00:11:28   debug #688 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4e86be50b2c4461fca5f17fc2283ebc955689147f173956fc397f2872bc810ad/main.spi
00:11:29 verbose #12686 > >
00:11:29 verbose #12687 > > ╭─[ 381.60ms - stdout ]────────────────────────────────────────────────────────╮
00:11:29 verbose #12688 > > │ assert_eq / actual: -1.0 / expected: -1.0                                    │
00:11:29 verbose #12689 > > │                                                                              │
00:11:29 verbose #12690 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:29 verbose #12691 > >
00:11:29 verbose #12692 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:29 verbose #12693 > > //// test
00:11:29 verbose #12694 > >
00:11:29 verbose #12695 > > pi
00:11:29 verbose #12696 > > |> cos
00:11:29 verbose #12697 > > |> fun n => n / 2f64
00:11:29 verbose #12698 > > |> _assert_approx_eq None -0.5
00:11:29 verbose #12699 > 00:11:28   debug #689 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d11db61b5561f4a704bae6d53d12be936cd4c75f771130279db53516c47e3dae/main.spi
00:11:29 verbose #12700 > >
00:11:29 verbose #12701 > > ╭─[ 352.22ms - stdout ]────────────────────────────────────────────────────────╮
00:11:29 verbose #12702 > > │ assert_approx_eq / actual: -0.5 / expected: -0.5                             │
00:11:29 verbose #12703 > > │                                                                              │
00:11:29 verbose #12704 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:29 verbose #12705 > >
00:11:29 verbose #12706 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:29 verbose #12707 > > //// test
00:11:29 verbose #12708 > >
00:11:29 verbose #12709 > > pi / 2 |> cos
00:11:29 verbose #12710 > > |> _assert_approx_eq None 0.00000000000000006123233995736766f64
00:11:29 verbose #12711 > 00:11:29   debug #690 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/01f000f121901a943bdbae5303e9ffeab7ff49e3de12eda710518263da40599e/main.spi
00:11:30 verbose #12712 > >
00:11:30 verbose #12713 > > ╭─[ 391.88ms - stdout ]────────────────────────────────────────────────────────╮
00:11:30 verbose #12714 > > │ assert_approx_eq / actual: 6.123233996e-17 / expected: 6.123233996e-17       │
00:11:30 verbose #12715 > > │                                                                              │
00:11:30 verbose #12716 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:30 verbose #12717 > >
00:11:30 verbose #12718 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:30 verbose #12719 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:30 verbose #12720 > > │ ## fsharp                                                                    │
00:11:30 verbose #12721 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:30 verbose #12722 > >
00:11:30 verbose #12723 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:30 verbose #12724 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:30 verbose #12725 > > │ ### atan2                                                                    │
00:11:30 verbose #12726 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:30 verbose #12727 > >
00:11:30 verbose #12728 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:30 verbose #12729 > > inl atan2 (y : f64) (x : f64) : f64 =
00:11:30 verbose #12730 > >     $'System.Math.Atan2 (!y, !x)'
00:11:30 verbose #12731 > 00:11:29   debug #691 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1f795928ff928f6502b00f51adcfc5670325e0f8442775a415b42f837b298003/main.spi
00:11:30 verbose #12732 > >
00:11:30 verbose #12733 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:30 verbose #12734 > > //// test
00:11:30 verbose #12735 > >
00:11:30 verbose #12736 > > 0 |> atan2 1
00:11:30 verbose #12737 > > |> _assert_eq 1.5707963267948966
00:11:30 verbose #12738 > 00:11:29   debug #692 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ad4a765474445f31270422024044c4a17172f04d73cd93202313b0b3214a65a3/main.spi
00:11:30 verbose #12739 > >
00:11:30 verbose #12740 > > ╭─[ 491.69ms - stdout ]────────────────────────────────────────────────────────╮
00:11:30 verbose #12741 > > │ assert_eq / actual: 1.570796327 / expected: 1.570796327                      │
00:11:30 verbose #12742 > > │                                                                              │
00:11:30 verbose #12743 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:30 verbose #12744 > >
00:11:30 verbose #12745 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:30 verbose #12746 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:30 verbose #12747 > > │ ## floor                                                                     │
00:11:30 verbose #12748 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:30 verbose #12749 > >
00:11:30 verbose #12750 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:30 verbose #12751 > > inl floor forall t {float}. (n : t) : t =
00:11:30 verbose #12752 > >     n |> $'floor'
00:11:31 verbose #12753 > 00:11:30   debug #693 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2776e4a18130fb34519738dae7dd13a1f55428748c384c33e7bf585241f0773d/main.spi
00:11:31 verbose #12754 > >
00:11:31 verbose #12755 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:31 verbose #12756 > > //// test
00:11:31 verbose #12757 > >
00:11:31 verbose #12758 > > 0.6 |> floor
00:11:31 verbose #12759 > > |> _assert_eq 0f64
00:11:31 verbose #12760 > 00:11:30   debug #694 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3279513f4fa0ca5bd482d1e9650f8cc8cb091f0ac77320be5f3172f57cdc315a/main.spi
00:11:31 verbose #12761 > >
00:11:31 verbose #12762 > > ╭─[ 480.19ms - stdout ]────────────────────────────────────────────────────────╮
00:11:31 verbose #12763 > > │ assert_eq / actual: 0.0 / expected: 0.0                                      │
00:11:31 verbose #12764 > > │                                                                              │
00:11:31 verbose #12765 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:31 verbose #12766 > >
00:11:31 verbose #12767 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:31 verbose #12768 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:31 verbose #12769 > > │ ## ceil                                                                      │
00:11:31 verbose #12770 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:31 verbose #12771 > >
00:11:31 verbose #12772 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:31 verbose #12773 > > inl ceil forall t {float}. (n : t) : t =
00:11:31 verbose #12774 > >     n |> $'ceil'
00:11:32 verbose #12775 > 00:11:31   debug #695 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f2deebd6f0612d0de94281b43c9d93bd7c0bf6592fd118f24594071024793104/main.spi
00:11:32 verbose #12776 > >
00:11:32 verbose #12777 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:32 verbose #12778 > > //// test
00:11:32 verbose #12779 > >
00:11:32 verbose #12780 > > 0.6 |> ceil
00:11:32 verbose #12781 > > |> _assert_eq 1f64
00:11:32 verbose #12782 > 00:11:31   debug #696 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/113dd8ce105485a83550e0df0f84a16a37d7c444280a0adf5cdc5df828f21ebd/main.spi
00:11:32 verbose #12783 > >
00:11:32 verbose #12784 > > ╭─[ 383.74ms - stdout ]────────────────────────────────────────────────────────╮
00:11:32 verbose #12785 > > │ assert_eq / actual: 1.0 / expected: 1.0                                      │
00:11:32 verbose #12786 > > │                                                                              │
00:11:32 verbose #12787 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:32 verbose #12788 > >
00:11:32 verbose #12789 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:32 verbose #12790 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:32 verbose #12791 > > │ ## round                                                                     │
00:11:32 verbose #12792 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:32 verbose #12793 > >
00:11:32 verbose #12794 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:32 verbose #12795 > > inl round forall t {float}. (n : t) : t =
00:11:32 verbose #12796 > >     n |> $'round'
00:11:32 verbose #12797 > 00:11:31   debug #697 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/551698a8022b42ff500312d981ac7e4a2f55ac6ae42fac2aca58eef0acb3db00/main.spi
00:11:32 verbose #12798 > >
00:11:32 verbose #12799 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:32 verbose #12800 > > //// test
00:11:32 verbose #12801 > >
00:11:32 verbose #12802 > > 0.5 |> round
00:11:32 verbose #12803 > > |> _assert_eq 0f64
00:11:32 verbose #12804 > >
00:11:32 verbose #12805 > > 1.5 |> round
00:11:32 verbose #12806 > > |> _assert_eq 2f64
00:11:32 verbose #12807 > >
00:11:32 verbose #12808 > > 2.5 |> round
00:11:32 verbose #12809 > > |> _assert_eq 2f64
00:11:32 verbose #12810 > >
00:11:32 verbose #12811 > > 3.5 |> round
00:11:32 verbose #12812 > > |> _assert_eq 4f64
00:11:33 verbose #12813 > 00:11:32   debug #698 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/edd7c077b840ea0e214886b7dc326331fc41d2875ee2656c67efa57d721e38bd/main.spi
00:11:33 verbose #12814 > >
00:11:33 verbose #12815 > > ╭─[ 420.12ms - stdout ]────────────────────────────────────────────────────────╮
00:11:33 verbose #12816 > > │ assert_eq / actual: 0.0 / expected: 0.0                                      │
00:11:33 verbose #12817 > > │ assert_eq / actual: 2.0 / expected: 2.0                                      │
00:11:33 verbose #12818 > > │ assert_eq / actual: 2.0 / expected: 2.0                                      │
00:11:33 verbose #12819 > > │ assert_eq / actual: 4.0 / expected: 4.0                                      │
00:11:33 verbose #12820 > > │                                                                              │
00:11:33 verbose #12821 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:33 verbose #12822 > >
00:11:33 verbose #12823 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:33 verbose #12824 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:33 verbose #12825 > > │ ## log_base                                                                  │
00:11:33 verbose #12826 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:33 verbose #12827 > >
00:11:33 verbose #12828 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:33 verbose #12829 > > inl log_base (new_base : f64) (a : f64) : f64 =
00:11:33 verbose #12830 > >     $'System.Math.Log (!a, !new_base)'
00:11:33 verbose #12831 > 00:11:32   debug #699 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ff6b4ebd65a25b655dafa88c4e6298d550e53475dc6f3245933eabb5a2e10eac/main.spi
00:11:33 verbose #12832 > >
00:11:33 verbose #12833 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:33 verbose #12834 > > //// test
00:11:33 verbose #12835 > >
00:11:33 verbose #12836 > > 100 |> log_base 10
00:11:33 verbose #12837 > > |> _assert_eq 2
00:11:33 verbose #12838 > 00:11:33   debug #700 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/21fe238390c53f8aeff5f03c0fc04aa447181b01c3b5cc44059e7adb74cf221a/main.spi
00:11:34 verbose #12839 > >
00:11:34 verbose #12840 > > ╭─[ 362.41ms - stdout ]────────────────────────────────────────────────────────╮
00:11:34 verbose #12841 > > │ assert_eq / actual: 2.0 / expected: 2.0                                      │
00:11:34 verbose #12842 > > │                                                                              │
00:11:34 verbose #12843 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:34 verbose #12844 > >
00:11:34 verbose #12845 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:34 verbose #12846 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:34 verbose #12847 > > │ ## round                                                                     │
00:11:34 verbose #12848 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:34 verbose #12849 > >
00:11:34 verbose #12850 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:34 verbose #12851 > > inl round forall t {float}. (x : t) : t =
00:11:34 verbose #12852 > >     x |> $'round'
00:11:34 verbose #12853 > 00:11:33   debug #701 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2d5e986840ddc840e7f478982678bb4d73d260343f1aa22faac9484c656d5104/main.spi
00:11:34 verbose #12854 > >
00:11:34 verbose #12855 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:34 verbose #12856 > > //// test
00:11:34 verbose #12857 > >
00:11:34 verbose #12858 > > 0.5 |> round
00:11:34 verbose #12859 > > |> _assert_eq 0f64
00:11:34 verbose #12860 > 00:11:33   debug #702 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/60e03150460852473585587083e836e23a357fb9462f4bec701279fd323ba429/main.spi
00:11:34 verbose #12861 > >
00:11:34 verbose #12862 > > ╭─[ 428.08ms - stdout ]────────────────────────────────────────────────────────╮
00:11:34 verbose #12863 > > │ assert_eq / actual: 0.0 / expected: 0.0                                      │
00:11:34 verbose #12864 > > │                                                                              │
00:11:34 verbose #12865 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:34 verbose #12866 > >
00:11:34 verbose #12867 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:34 verbose #12868 > > //// test
00:11:34 verbose #12869 > >
00:11:34 verbose #12870 > > 0.6 |> round
00:11:34 verbose #12871 > > |> _assert_eq 1f64
00:11:35 verbose #12872 > 00:11:34   debug #703 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/43afd09b490ef5fd462dd34af86683fb8d7f29219ecc63a18b33a0c70615ec42/main.spi
00:11:35 verbose #12873 > >
00:11:35 verbose #12874 > > ╭─[ 372.20ms - stdout ]────────────────────────────────────────────────────────╮
00:11:35 verbose #12875 > > │ assert_eq / actual: 1.0 / expected: 1.0                                      │
00:11:35 verbose #12876 > > │                                                                              │
00:11:35 verbose #12877 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:35 verbose #12878 > 00:00:24 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 12563 }
00:11:35 verbose #12879 > 00:00:24   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/spiral/math.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/math.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:11:37 verbose #12880 > 00:00:27 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/math.dib.ipynb to html
00:11:37 verbose #12881 > 00:00:27 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:11:37 verbose #12882 > 00:00:27 verbose #7 !   validate(nb)
00:11:39 verbose #12883 > 00:00:29 verbose #8 ! [NbConvertApp] Writing 304804 bytes to c:\home\git\polyglot\lib\spiral\math.dib.html
00:11:39 verbose #12884 > 00:00:29 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 639 }
00:11:39 verbose #12885 > 00:00:29   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 639 }
00:11:39 verbose #12886 > 00:00:29   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/math.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/math.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:11:41 verbose #12887 > 00:00:30 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:11:41 verbose #12888 > 00:00:30   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:11:41 verbose #12889 > 00:00:31   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 13261 }
00:11:41   debug #12890 runtime.execute_with_options_async / { exit_code = 0; output_length = 16428 }
00:11:41   debug #16 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path math.dib --retries 3
00:11:41   debug #12891 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path mapm.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:11:41 verbose #12892 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "mapm.dib", "--retries", "3"])) }
00:11:41 verbose #12893 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/spiral/mapm.dib", "--output-path", "c:/home/git/polyglot/lib/spiral/mapm.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/mapm.dib" --output-path "c:/home/git/polyglot/lib/spiral/mapm.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:11:45 verbose #12894 > >
00:11:45 verbose #12895 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:45 verbose #12896 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:45 verbose #12897 > > │ # mapm                                                                       │
00:11:45 verbose #12898 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:50 verbose #12899 > >
00:11:50 verbose #12900 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:50 verbose #12901 > > open rust_operators
00:11:51 verbose #12902 > 00:11:50   debug #704 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0d9bd8e5bb71a8e1d983506a46e54fb8c8e6cf2d0bd973135d4cdd580c5f6d39/main.spi
00:11:51 verbose #12903 > >
00:11:51 verbose #12904 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:51 verbose #12905 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:51 verbose #12906 > > │ ## rust                                                                      │
00:11:51 verbose #12907 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:51 verbose #12908 > >
00:11:51 verbose #12909 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:51 verbose #12910 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:51 verbose #12911 > > │ ### hash_map                                                                 │
00:11:51 verbose #12912 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:51 verbose #12913 > >
00:11:51 verbose #12914 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:51 verbose #12915 > > nominal hash_map k v =
00:11:51 verbose #12916 > >     `(
00:11:51 verbose #12917 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:11:51 verbose #12918 > > Fable.Core.Emit(\"std::collections::HashMap<$0, $1>\")>]]\n#endif\ntype
00:11:51 verbose #12919 > > std_collections_HashMap<'K, 'V> = class end"
00:11:51 verbose #12920 > >         $'' : $'std_collections_HashMap<`k, `v>'
00:11:51 verbose #12921 > >     )
00:11:51 verbose #12922 > 00:11:51   debug #705 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e334b60a8a95fa12b7d9731e3ce2ba4762d69fc7bd8e457c28bb23fffb1d4d41/main.spi
00:11:52 verbose #12923 > >
00:11:52 verbose #12924 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:52 verbose #12925 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:52 verbose #12926 > > │ ### b_tree_map                                                               │
00:11:52 verbose #12927 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:52 verbose #12928 > >
00:11:52 verbose #12929 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:52 verbose #12930 > > nominal b_tree_map k v =
00:11:52 verbose #12931 > >     `(
00:11:52 verbose #12932 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:11:52 verbose #12933 > > Fable.Core.Emit(\"std::collections::BTreeMap<$0, $1>\")>]]\n#endif\ntype
00:11:52 verbose #12934 > > std_collections_BTreeMap<'K, 'V> = class end"
00:11:52 verbose #12935 > >         $'' : $'std_collections_BTreeMap<`k, `v>'
00:11:52 verbose #12936 > >     )
00:11:52 verbose #12937 > 00:11:51   debug #706 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a6e4631aef199b12551af8f76ec97309171223ae686e75ba4f42bbcc8afffaf6/main.spi
00:11:52 verbose #12938 > >
00:11:52 verbose #12939 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:52 verbose #12940 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:52 verbose #12941 > > │ ### new_hash_map                                                             │
00:11:52 verbose #12942 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:52 verbose #12943 > >
00:11:52 verbose #12944 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:52 verbose #12945 > > inl new_hash_map () : hash_map _ _ =
00:11:52 verbose #12946 > >     !\($'"std::collections::HashMap::new()"')
00:11:52 verbose #12947 > 00:11:51   debug #707 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/75176220a6c05f35b88f43159096b4c05280e8c08110b536e12d1d20d9a82578/main.spi
00:11:52 verbose #12948 > >
00:11:52 verbose #12949 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:52 verbose #12950 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:52 verbose #12951 > > │ ### new_b_tree_map                                                           │
00:11:52 verbose #12952 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:52 verbose #12953 > >
00:11:52 verbose #12954 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:52 verbose #12955 > > inl new_b_tree_map () : b_tree_map _ _ =
00:11:52 verbose #12956 > >     !\($'"std::collections::BTreeMap::new()"')
00:11:52 verbose #12957 > 00:11:52   debug #708 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c41bd8863042a6c9e79ee97ef54363224beda97ebf8974e6c63413a42fcdc027/main.spi
00:11:53 verbose #12958 > >
00:11:53 verbose #12959 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:53 verbose #12960 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:53 verbose #12961 > > │ ### get                                                                      │
00:11:53 verbose #12962 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:53 verbose #12963 > >
00:11:53 verbose #12964 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:53 verbose #12965 > > inl get forall k v. (key : k) (map : hash_map k v) : optionm'.option' v =
00:11:53 verbose #12966 > >     inl key = join key
00:11:53 verbose #12967 > >     !\\(map, $'"std::collections::HashMap::get(&$0, &!key).map(|x|
00:11:53 verbose #12968 > > x).cloned()"')
00:11:53 verbose #12969 > 00:11:52   debug #709 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a67f2fe1a83ca1567fb55a059e7980506713abc7d54ee514a6a51a7a7452503d/main.spi
00:11:53 verbose #12970 > >
00:11:53 verbose #12971 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:53 verbose #12972 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:53 verbose #12973 > > │ ### insert                                                                   │
00:11:53 verbose #12974 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:53 verbose #12975 > >
00:11:53 verbose #12976 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:53 verbose #12977 > > inl insert forall k v. (key : k) (value : v) (map : hash_map k v) :
00:11:53 verbose #12978 > > optionm'.option' v =
00:11:53 verbose #12979 > >     inl key = join key
00:11:53 verbose #12980 > >     !\($'"let mut !map = !map"')
00:11:53 verbose #12981 > >     !\($'"std::collections::HashMap::insert(&mut !map, !key, !value)"')
00:11:53 verbose #12982 > 00:11:52   debug #710 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/abf0c7dc946e2204d9f96db0dcbc9ecbff94b91084f759f88f79f590e2f2c0c7/main.spi
00:11:53 verbose #12983 > >
00:11:53 verbose #12984 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:53 verbose #12985 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:53 verbose #12986 > > │ ### map'                                                                     │
00:11:53 verbose #12987 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:53 verbose #12988 > >
00:11:53 verbose #12989 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:53 verbose #12990 > > inl map' forall k v w. (fn : v -> w) (map : hash_map k v) : hash_map k w =
00:11:53 verbose #12991 > >     !\\((map, fn), $'"$0.into_iter().map(|(k, v)| (k, $1(v))).collect()"')
00:11:54 verbose #12992 > 00:11:53   debug #711 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/bae83316bb0d0b9cecb88ab90afbf9a370099c86ce0a8ca9b7cd61682cd37125/main.spi
00:11:54 verbose #12993 > >
00:11:54 verbose #12994 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:54 verbose #12995 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:54 verbose #12996 > > │ ### hash_map_count                                                           │
00:11:54 verbose #12997 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:54 verbose #12998 > >
00:11:54 verbose #12999 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:54 verbose #13000 > > inl hash_map_count forall k v. (map : hash_map k v) : i32 =
00:11:54 verbose #13001 > >     !\\(map, $'"$0.count()"')
00:11:54 verbose #13002 > 00:11:53   debug #712 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/024cf754d0f2c9fc5c11c37b99b44f0feada1f17d324bf0aa31a3e6a300dd812/main.spi
00:11:54 verbose #13003 > >
00:11:54 verbose #13004 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:54 verbose #13005 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:54 verbose #13006 > > │ ### from_vec                                                                 │
00:11:54 verbose #13007 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:54 verbose #13008 > >
00:11:54 verbose #13009 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:54 verbose #13010 > > inl from_vec forall k v. (vec : am'.vec (k * v)) : hash_map k v =
00:11:54 verbose #13011 > >     !\($'"std::collections::HashMap::from_iter(!vec)"')
00:11:54 verbose #13012 > 00:11:53   debug #713 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9486ec52dcdfd60113d3dfac07468538edc9d7eb62ececc419d98550de5241e8/main.spi
00:11:54 verbose #13013 > >
00:11:54 verbose #13014 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:54 verbose #13015 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:54 verbose #13016 > > │ ### from_vec_pairs                                                           │
00:11:54 verbose #13017 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:54 verbose #13018 > >
00:11:54 verbose #13019 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:54 verbose #13020 > > inl from_vec_pairs forall k v. (vec : am'.vec (pair k v)) : hash_map k v =
00:11:54 verbose #13021 > >     !\($'"std::collections::HashMap::from_iter(!vec.iter().map(|x|
00:11:54 verbose #13022 > > x.as_ref()).map(|&(ref k, ref v)| (k.clone(), v.clone())))"')
00:11:55 verbose #13023 > 00:11:54   debug #714 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/261979c98bcbb5034f9fd8041a2ffbabe8c579d76ef8793046d9f2d3af43ae01/main.spi
00:11:55 verbose #13024 > >
00:11:55 verbose #13025 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:55 verbose #13026 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:55 verbose #13027 > > │ ### b_tree_map_from_vec_pairs                                                │
00:11:55 verbose #13028 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:55 verbose #13029 > >
00:11:55 verbose #13030 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:55 verbose #13031 > > inl b_tree_map_from_vec_pairs forall k v. (vec : am'.vec (pair k v)) :
00:11:55 verbose #13032 > > b_tree_map k v =
00:11:55 verbose #13033 > >     !\($'"std::collections::BTreeMap::from_iter(!vec.iter().map(|x|
00:11:55 verbose #13034 > > x.as_ref()).map(|&(ref k, ref v)| (k.clone(), v.clone())))"')
00:11:55 verbose #13035 > 00:11:54   debug #715 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/94869dbbbccec386e433945d3ce43aaf30098b1cdf9cef47156085ae616623ba/main.spi
00:11:55 verbose #13036 > >
00:11:55 verbose #13037 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:55 verbose #13038 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:55 verbose #13039 > > │ ### from_array                                                               │
00:11:55 verbose #13040 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:55 verbose #13041 > >
00:11:55 verbose #13042 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:55 verbose #13043 > > inl from_array forall k v. (array : array_base (k * v)) : hash_map k v =
00:11:55 verbose #13044 > >     array |> am'.to_vec |> from_vec
00:11:55 verbose #13045 > 00:11:55   debug #716 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/332d4d10e6bb9a3042b62a5d7df63d8b0ba34035731959b5647ec31b059cf063/main.spi
00:11:55 verbose #13046 > >
00:11:55 verbose #13047 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:55 verbose #13048 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:55 verbose #13049 > > │ ### from_list                                                                │
00:11:55 verbose #13050 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:55 verbose #13051 > >
00:11:55 verbose #13052 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:55 verbose #13053 > > inl from_list forall k v. (list : list (k * v)) : hash_map k v =
00:11:55 verbose #13054 > >     inl (a list) : _ i32 _ = list |> listm.toArray
00:11:55 verbose #13055 > >     list |> am'.to_vec |> from_vec
00:11:56 verbose #13056 > 00:11:55   debug #717 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/21f90c9b57bc16c41cc6a71f815c12382df6ee6393e75cb24fd95ab3f2434ffc/main.spi
00:11:56 verbose #13057 > >
00:11:56 verbose #13058 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:56 verbose #13059 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:56 verbose #13060 > > │ ### to_vec                                                                   │
00:11:56 verbose #13061 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:56 verbose #13062 > >
00:11:56 verbose #13063 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:56 verbose #13064 > > inl to_vec forall k v. (map : hash_map k v) : am'.vec (k * v) =
00:11:56 verbose #13065 > >     !\\(map, $'"$0.into_iter().map(|(k, v)| (k, v)).collect::<Vec<_>>()"')
00:11:56 verbose #13066 > 00:11:55   debug #718 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/899cd817f0da54bcf88ce7a86de90e3ce380730c06feb938a501acb89cb0a548/main.spi
00:11:56 verbose #13067 > >
00:11:56 verbose #13068 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:56 verbose #13069 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:56 verbose #13070 > > │ ## fsharp                                                                    │
00:11:56 verbose #13071 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:56 verbose #13072 > >
00:11:56 verbose #13073 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:56 verbose #13074 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:56 verbose #13075 > > │ ### map                                                                      │
00:11:56 verbose #13076 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:56 verbose #13077 > >
00:11:56 verbose #13078 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:56 verbose #13079 > > nominal map k v = $'Map<`k, `v>'
00:11:56 verbose #13080 > 00:11:56   debug #719 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a6c93345dc459a16816ae35dfc7c6ae5bc44babe795e5acc4872b2f21073b822/main.spi
00:11:57 verbose #13081 > >
00:11:57 verbose #13082 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:57 verbose #13083 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:57 verbose #13084 > > │ ### item                                                                     │
00:11:57 verbose #13085 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:57 verbose #13086 > >
00:11:57 verbose #13087 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:57 verbose #13088 > > inl item forall k v. (k : k) (map : map k v) : v =
00:11:57 verbose #13089 > >     $'!map.[[!k]]'
00:11:57 verbose #13090 > 00:11:56   debug #720 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6464196d44d9c3a0e710eaf72f154ca23367f48be253f78465a2b05fa28c1d46/main.spi
00:11:57 verbose #13091 > >
00:11:57 verbose #13092 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:57 verbose #13093 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:57 verbose #13094 > > │ ### of_array                                                                 │
00:11:57 verbose #13095 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:57 verbose #13096 > >
00:11:57 verbose #13097 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:57 verbose #13098 > > inl of_array forall k v. (array : a _ (k * v)) : map k v =
00:11:57 verbose #13099 > >     $'!array |> Array.map (fun (struct (a, b)) -> a, b) |> Map.ofArray'
00:11:57 verbose #13100 > 00:11:56   debug #721 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6c770ab8bf48d50d5e68303855ab20c8a92f5fd06aa22c4b700cbdcde7c61517/main.spi
00:11:57 verbose #13101 > 00:00:16 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 10511 }
00:11:57 verbose #13102 > 00:00:16   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/spiral/mapm.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/mapm.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:12:00 verbose #13103 > 00:00:18 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/mapm.dib.ipynb to html
00:12:00 verbose #13104 > 00:00:18 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:12:00 verbose #13105 > 00:00:18 verbose #7 !   validate(nb)
00:12:02 verbose #13106 > 00:00:20 verbose #8 ! [NbConvertApp] Writing 301031 bytes to c:\home\git\polyglot\lib\spiral\mapm.dib.html
00:12:02 verbose #13107 > 00:00:20 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 639 }
00:12:02 verbose #13108 > 00:00:20   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 639 }
00:12:02 verbose #13109 > 00:00:20   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/mapm.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/mapm.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:12:04 verbose #13110 > 00:00:22 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:12:04 verbose #13111 > 00:00:22   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:12:04 verbose #13112 > 00:00:23   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 11209 }
00:12:04   debug #13113 runtime.execute_with_options_async / { exit_code = 0; output_length = 14186 }
00:12:04   debug #17 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path mapm.dib --retries 3
00:12:04   debug #13114 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path optionm'.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:12:04 verbose #13115 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "optionm'.dib", "--retries", "3"])) }
00:12:04 verbose #13116 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/spiral/optionm'.dib", "--output-path", "c:/home/git/polyglot/lib/spiral/optionm'.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/optionm'.dib" --output-path "c:/home/git/polyglot/lib/spiral/optionm'.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:12:08 verbose #13117 > >
00:12:08 verbose #13118 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:08 verbose #13119 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:08 verbose #13120 > > │ # optionm'                                                                   │
00:12:08 verbose #13121 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:13 verbose #13122 > >
00:12:13 verbose #13123 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:13 verbose #13124 > > open rust_operators
00:12:13 verbose #13125 > 00:12:13   debug #722 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0d9bd8e5bb71a8e1d983506a46e54fb8c8e6cf2d0bd973135d4cdd580c5f6d39/main.spi
00:12:14 verbose #13126 > >
00:12:14 verbose #13127 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:14 verbose #13128 > > //// test
00:12:14 verbose #13129 > >
00:12:14 verbose #13130 > > open testing
00:12:14 verbose #13131 > 00:12:13   debug #723 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d06211d48c36e09624381aad71e69f817df1a545af31c21067514d4d391bdd05/main.spi
00:12:14 verbose #13132 > >
00:12:14 verbose #13133 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:14 verbose #13134 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:14 verbose #13135 > > │ ## optionm'                                                                  │
00:12:14 verbose #13136 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:14 verbose #13137 > >
00:12:14 verbose #13138 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:14 verbose #13139 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:14 verbose #13140 > > │ ### default_value                                                            │
00:12:14 verbose #13141 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:14 verbose #13142 > >
00:12:14 verbose #13143 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:14 verbose #13144 > > inl default_value d =
00:12:14 verbose #13145 > >     optionm.defaultWith d
00:12:15 verbose #13146 > 00:12:14   debug #724 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3c164f6fa5ec7db865c327e7fce7e5ee6c616227a686c2b9637536352087abeb/main.spi
00:12:15 verbose #13147 > >
00:12:15 verbose #13148 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:15 verbose #13149 > > //// test
00:12:15 verbose #13150 > >
00:12:15 verbose #13151 > > None
00:12:15 verbose #13152 > > |> default_value 3i32
00:12:15 verbose #13153 > > |> _assert_eq 3i32
00:12:15 verbose #13154 > 00:12:14   debug #725 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/31bf7167085cd2610fe9290bf868d61b95157219f104f6554e3007b08b28f1df/main.spi
00:12:16 verbose #13155 > >
00:12:16 verbose #13156 > > ╭─[ 943.44ms - stdout ]────────────────────────────────────────────────────────╮
00:12:16 verbose #13157 > > │ assert_eq / actual: 3 / expected: 3                                          │
00:12:16 verbose #13158 > > │                                                                              │
00:12:16 verbose #13159 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:16 verbose #13160 > >
00:12:16 verbose #13161 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:16 verbose #13162 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:16 verbose #13163 > > │ ### (/??)                                                                    │
00:12:16 verbose #13164 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:16 verbose #13165 > >
00:12:16 verbose #13166 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:16 verbose #13167 > > inl (/??) a b =
00:12:16 verbose #13168 > >     a |> default_value b
00:12:16 verbose #13169 > 00:12:15   debug #726 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b7623cefcf9e9ad1b5940f1b6e0ee4681aaeb732eb6d615aaeaf50f1bb721acc/main.spi
00:12:16 verbose #13170 > >
00:12:16 verbose #13171 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:16 verbose #13172 > > //// test
00:12:16 verbose #13173 > >
00:12:16 verbose #13174 > > None /?? 3i32
00:12:16 verbose #13175 > > |> _assert_eq 3i32
00:12:16 verbose #13176 > 00:12:16   debug #727 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1ea87edf78df24ac65bd906b1f3bee3061b4dba74267ee343fdbddaa5a520234/main.spi
00:12:17 verbose #13177 > >
00:12:17 verbose #13178 > > ╭─[ 365.16ms - stdout ]────────────────────────────────────────────────────────╮
00:12:17 verbose #13179 > > │ assert_eq / actual: 3 / expected: 3                                          │
00:12:17 verbose #13180 > > │                                                                              │
00:12:17 verbose #13181 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:17 verbose #13182 > >
00:12:17 verbose #13183 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:17 verbose #13184 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:17 verbose #13185 > > │ ### default_with                                                             │
00:12:17 verbose #13186 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:17 verbose #13187 > >
00:12:17 verbose #13188 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:17 verbose #13189 > > inl default_with fn = function
00:12:17 verbose #13190 > >     | Some x => x
00:12:17 verbose #13191 > >     | None => fn ()
00:12:17 verbose #13192 > 00:12:16   debug #728 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/36f32166bb2660394714991a5f7e189cfce1a4cf9a2a9d58dd0f9e3c8e778246/main.spi
00:12:17 verbose #13193 > >
00:12:17 verbose #13194 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:17 verbose #13195 > > //// test
00:12:17 verbose #13196 > >
00:12:17 verbose #13197 > > None
00:12:17 verbose #13198 > > |> default_with fun () => 3i32
00:12:17 verbose #13199 > > |> _assert_eq 3i32
00:12:17 verbose #13200 > 00:12:16   debug #729 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/31e3e4b3846532668e1db0526cd04e84ca2199778c1ba5b1ee1fe58fa7540157/main.spi
00:12:17 verbose #13201 > >
00:12:17 verbose #13202 > > ╭─[ 342.13ms - stdout ]────────────────────────────────────────────────────────╮
00:12:17 verbose #13203 > > │ assert_eq / actual: 3 / expected: 3                                          │
00:12:17 verbose #13204 > > │                                                                              │
00:12:17 verbose #13205 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:17 verbose #13206 > >
00:12:17 verbose #13207 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:17 verbose #13208 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:17 verbose #13209 > > │ ### choose                                                                   │
00:12:17 verbose #13210 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:17 verbose #13211 > >
00:12:17 verbose #13212 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:17 verbose #13213 > > inl choose fn a b =
00:12:17 verbose #13214 > >     match a, b with
00:12:17 verbose #13215 > >     | Some x, Some y => fn x y |> Some
00:12:17 verbose #13216 > >     | _ => None
00:12:17 verbose #13217 > 00:12:17   debug #730 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/aecca55a4b6ea2f8e032cda6608f84b8b03c1427f86c119b6ac6f88ea97ec791/main.spi
00:12:18 verbose #13218 > >
00:12:18 verbose #13219 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:18 verbose #13220 > > //// test
00:12:18 verbose #13221 > >
00:12:18 verbose #13222 > > (Some 2i32, Some 3)
00:12:18 verbose #13223 > > ||> choose (+)
00:12:18 verbose #13224 > > |> _assert_eq (Some 5)
00:12:18 verbose #13225 > 00:12:17   debug #731 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e9d39be94d81d6fb3046df95f47ce66e5e2a572d53e86e3b7888dd3dfcc95370/main.spi
00:12:18 verbose #13226 > >
00:12:18 verbose #13227 > > ╭─[ 881.97ms - stdout ]────────────────────────────────────────────────────────╮
00:12:18 verbose #13228 > > │ assert_eq / actual: US0_0 5 / expected: US0_0 5                              │
00:12:18 verbose #13229 > > │                                                                              │
00:12:18 verbose #13230 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:18 verbose #13231 > >
00:12:18 verbose #13232 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:18 verbose #13233 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:18 verbose #13234 > > │ ### iter                                                                     │
00:12:18 verbose #13235 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:18 verbose #13236 > >
00:12:18 verbose #13237 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:18 verbose #13238 > > inl iter fn = function
00:12:18 verbose #13239 > >     | Some x => fn x
00:12:18 verbose #13240 > >     | None => ()
00:12:19 verbose #13241 > 00:12:18   debug #732 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b5a848bed362740e28665725e070ea9b221f084fec4484dea138daf5515ccb78/main.spi
00:12:19 verbose #13242 > >
00:12:19 verbose #13243 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:19 verbose #13244 > > //// test
00:12:19 verbose #13245 > >
00:12:19 verbose #13246 > > inl n = mut 1i32
00:12:19 verbose #13247 > > inl fn =
00:12:19 verbose #13248 > >     fun n' =>
00:12:19 verbose #13249 > >         n <- *n + n'
00:12:19 verbose #13250 > > Some 1i32 |> iter fn
00:12:19 verbose #13251 > > None |> iter fn
00:12:19 verbose #13252 > > *n
00:12:19 verbose #13253 > > |> _assert_eq 2i32
00:12:19 verbose #13254 > 00:12:18   debug #733 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5fc1e9f86268a4f4082904395f1ac73ef5f3b94e14a893a00532df6c7f715211/main.spi
00:12:19 verbose #13255 > >
00:12:19 verbose #13256 > > ╭─[ 553.48ms - stdout ]────────────────────────────────────────────────────────╮
00:12:19 verbose #13257 > > │ assert_eq / actual: 2 / expected: 2                                          │
00:12:19 verbose #13258 > > │                                                                              │
00:12:19 verbose #13259 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:19 verbose #13260 > >
00:12:19 verbose #13261 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:19 verbose #13262 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:19 verbose #13263 > > │ ### flatten                                                                  │
00:12:19 verbose #13264 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:19 verbose #13265 > >
00:12:19 verbose #13266 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:19 verbose #13267 > > inl flatten x =
00:12:19 verbose #13268 > >     match x with
00:12:19 verbose #13269 > >     | Some (Some x) => Some x
00:12:19 verbose #13270 > >     | _ => None
00:12:20 verbose #13271 > 00:12:19   debug #734 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/920e068bd648daafde2e99144226f0e6a91214b7443e93aae3f9983db44b2c76/main.spi
00:12:20 verbose #13272 > >
00:12:20 verbose #13273 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:20 verbose #13274 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:20 verbose #13275 > > │ ## fsharp                                                                    │
00:12:20 verbose #13276 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:20 verbose #13277 > >
00:12:20 verbose #13278 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:20 verbose #13279 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:20 verbose #13280 > > │ ### option'                                                                  │
00:12:20 verbose #13281 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:20 verbose #13282 > >
00:12:20 verbose #13283 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:20 verbose #13284 > > nominal option' t = $"backend_switch `({ Fsharp : $"`t option"; Python : t })"
00:12:20 verbose #13285 > 00:12:19   debug #735 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/063e2fc6d429d658f49c2fff20c0aaadb35c27ffeae502c3e20e095b6a257240/main.spi
00:12:20 verbose #13286 > >
00:12:20 verbose #13287 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:20 verbose #13288 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:20 verbose #13289 > > │ ### none'                                                                    │
00:12:20 verbose #13290 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:20 verbose #13291 > >
00:12:20 verbose #13292 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:20 verbose #13293 > > inl none' forall t. () : option' t =
00:12:20 verbose #13294 > >     $'None'
00:12:20 verbose #13295 > 00:12:20   debug #736 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3b3628633bbd13528cc1e5c27f17e11d1bc82ce0d83f71d2bf5afd2d58a41df1/main.spi
00:12:21 verbose #13296 > >
00:12:21 verbose #13297 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:21 verbose #13298 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:21 verbose #13299 > > │ ### some'                                                                    │
00:12:21 verbose #13300 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:21 verbose #13301 > >
00:12:21 verbose #13302 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:21 verbose #13303 > > inl some' forall t. (x : t) : option' t =
00:12:21 verbose #13304 > >     backend_switch {
00:12:21 verbose #13305 > >         Fsharp = fun () => $'Some !x ' : option' t
00:12:21 verbose #13306 > >         Python = fun () => $'!x # some\' ' : option' t
00:12:21 verbose #13307 > >     }
00:12:21 verbose #13308 > 00:12:20   debug #737 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b0cfdfd1fd2aa8b7e36fdb2e479d6adb1937c732b7c6fdc0dca08bfdc6bb432e/main.spi
00:12:21 verbose #13309 > >
00:12:21 verbose #13310 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:21 verbose #13311 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:21 verbose #13312 > > │ ### default_value'                                                           │
00:12:21 verbose #13313 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:21 verbose #13314 > >
00:12:21 verbose #13315 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:21 verbose #13316 > > inl default_value' forall t. (value : t) (x : option' t) : t =
00:12:21 verbose #13317 > >     backend_switch {
00:12:21 verbose #13318 > >         Fsharp = fun () => $'!x |> Option.defaultValue !value ' : t
00:12:21 verbose #13319 > >         Python = fun () => $'!x or !value ' : t
00:12:21 verbose #13320 > >     }
00:12:21 verbose #13321 > 00:12:20   debug #738 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8862f13b469768bd42cb0c81cfa7e96dd311f819505d91badab128a1bdefef5c/main.spi
00:12:21 verbose #13322 > >
00:12:21 verbose #13323 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:21 verbose #13324 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:21 verbose #13325 > > │ ### box                                                                      │
00:12:21 verbose #13326 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:21 verbose #13327 > >
00:12:21 verbose #13328 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:21 verbose #13329 > > inl box forall t. (x : option t) : option' t =
00:12:21 verbose #13330 > >     // x
00:12:21 verbose #13331 > >     // |> optionm.map some'
00:12:21 verbose #13332 > >     // |> default_with none'
00:12:21 verbose #13333 > >     match x with
00:12:21 verbose #13334 > >     | Some x => some' x
00:12:21 verbose #13335 > >     | None => none' ()
00:12:21 verbose #13336 > 00:12:21   debug #739 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/04741ee239278521e107db49a6e6e15ff0558194131171b368a4420b4cefb5d7/main.spi
00:12:22 verbose #13337 > >
00:12:22 verbose #13338 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:22 verbose #13339 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:22 verbose #13340 > > │ ### map                                                                      │
00:12:22 verbose #13341 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:22 verbose #13342 > >
00:12:22 verbose #13343 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:22 verbose #13344 > > inl map forall t u. (fn : t -> u) (x : option' t) : option' u =
00:12:22 verbose #13345 > >     backend_switch {
00:12:22 verbose #13346 > >         Fsharp = fun () =>
00:12:22 verbose #13347 > >             inl result : option' u = none' ()
00:12:22 verbose #13348 > >             $'let _!result = ref !result '
00:12:22 verbose #13349 > >             $'match !x with'
00:12:22 verbose #13350 > >             $'| Some x -> ('
00:12:22 verbose #13351 > >             $'(fun () ->'
00:12:22 verbose #13352 > >             $'(fun () ->'
00:12:22 verbose #13353 > >             inl x = dyn $'x'
00:12:22 verbose #13354 > >             x |> fn |> emit_unit
00:12:22 verbose #13355 > >             $')'
00:12:22 verbose #13356 > >             $'|> fun x -> x () |> Some'
00:12:22 verbose #13357 > >             $') () ) | None -> None'
00:12:22 verbose #13358 > >             $'|> fun x -> _!result.Value <- x'
00:12:22 verbose #13359 > >             $'_!result.Value ' : option' u
00:12:22 verbose #13360 > >         Python = fun () =>
00:12:22 verbose #13361 > >             if x =. none' ()
00:12:22 verbose #13362 > >             then none' ()
00:12:22 verbose #13363 > >             else fn $'!x ' |> fun x => $'!x ' : option' u
00:12:22 verbose #13364 > >     }
00:12:22 verbose #13365 > 00:12:21   debug #740 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/84435577d37554aceece76f144c96662014a15ab4a27b94a99458a7020a2c9ad/main.spi
00:12:22 verbose #13366 > >
00:12:22 verbose #13367 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:22 verbose #13368 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:22 verbose #13369 > > │ ### map''                                                                    │
00:12:22 verbose #13370 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:22 verbose #13371 > >
00:12:22 verbose #13372 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:22 verbose #13373 > > inl map'' forall t u. (fn : t -> u) (x : option' t) : option' u =
00:12:22 verbose #13374 > >     backend_switch {
00:12:22 verbose #13375 > >         Fsharp = fun () => $'!x |> Option.map !fn ' : option' u
00:12:22 verbose #13376 > >         Python = fun () => x |> map fn
00:12:22 verbose #13377 > >     }
00:12:22 verbose #13378 > 00:12:22   debug #741 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0920a52ce0fda5de162bd28dbaa4f3651cb6dd961a39c87d687c654fd6dc2ce9/main.spi
00:12:22 verbose #13379 > >
00:12:22 verbose #13380 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:22 verbose #13381 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:22 verbose #13382 > > │ ### unbox                                                                    │
00:12:22 verbose #13383 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:22 verbose #13384 > >
00:12:22 verbose #13385 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:22 verbose #13386 > > inl unbox forall t. (x : option' t) : option t =
00:12:22 verbose #13387 > >     x |> map Some |> default_value' None
00:12:22 verbose #13388 > >     // inl some x : option t = Some x
00:12:22 verbose #13389 > >     // inl some = join some
00:12:22 verbose #13390 > >     // inl none : option t = None
00:12:22 verbose #13391 > >     // $'!x |> Option.map !some |> Option.defaultValue !none '
00:12:23 verbose #13392 > 00:12:22   debug #742 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8ef33b6314d16db5bffbd02137db5c7c8a185d3762d03e06ab51db582fc98171/main.spi
00:12:23 verbose #13393 > >
00:12:23 verbose #13394 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:23 verbose #13395 > > //// test
00:12:23 verbose #13396 > > ///! fsharp
00:12:23 verbose #13397 > > ///! cuda
00:12:23 verbose #13398 > > ///! rust
00:12:23 verbose #13399 > > ///! typescript
00:12:23 verbose #13400 > > ///! python
00:12:23 verbose #13401 > >
00:12:23 verbose #13402 > > inl x = Some 3i32
00:12:23 verbose #13403 > > inl y : option i32 = None
00:12:23 verbose #13404 > > inl x' = x |> box |> unbox
00:12:23 verbose #13405 > > inl y' = y |> box |> map id |> unbox
00:12:23 verbose #13406 > > (x', y') |> _assert_eq' (x, y)
00:12:23 verbose #13407 > 00:12:22   debug #743 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/36035628d575522d310366a5fa92b5e6065957d00ff79e8ae01686968acd2394/main.spi
00:12:23 verbose #13408 > 00:12:22   debug #744 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/54650d8263674e9568b2c2b7f20b1872eef419f52d8a300dba5c60df4b892762/main.spi
00:12:29 verbose #13409 > >
00:12:29 verbose #13410 > > ╭─[ 5.78s - return value ]─────────────────────────────────────────────────────╮
00:12:29 verbose #13411 > > │ .py output (Cuda):                                                           │
00:12:29 verbose #13412 > > │ assert_eq' / actual: (US0_0(v0=3), US0_1()) / expected: (US0_0(v0=3),        │
00:12:29 verbose #13413 > > │ US0_1())                                                                     │
00:12:29 verbose #13414 > > │                                                                              │
00:12:29 verbose #13415 > > │ .rs output:                                                                  │
00:12:29 verbose #13416 > > │ assert_eq' / actual: (US0_0(3), US0_1) / expected: (US0_0(3), US0_1)         │
00:12:29 verbose #13417 > > │                                                                              │
00:12:29 verbose #13418 > > │ .ts output:                                                                  │
00:12:29 verbose #13419 > > │ assert_eq' / actual: US0_0 3,US0_1 / expected: US0_0 3,US0_1                 │
00:12:29 verbose #13420 > > │                                                                              │
00:12:29 verbose #13421 > > │ .py output:                                                                  │
00:12:29 verbose #13422 > > │ assert_eq' / actual: (US0_0 3, US0_1) / expected: (US0_0 3, US0_1)           │
00:12:29 verbose #13423 > > │                                                                              │
00:12:29 verbose #13424 > > │                                                                              │
00:12:29 verbose #13425 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:29 verbose #13426 > >
00:12:29 verbose #13427 > > ╭─[ 5.78s - stdout ]───────────────────────────────────────────────────────────╮
00:12:29 verbose #13428 > > │ .fsx output:                                                                 │
00:12:29 verbose #13429 > > │ assert_eq' / actual: struct (US0_0 3, US0_1) / expected: struct (US0_0 3,    │
00:12:29 verbose #13430 > > │ US0_1)                                                                       │
00:12:29 verbose #13431 > > │                                                                              │
00:12:29 verbose #13432 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:29 verbose #13433 > >
00:12:29 verbose #13434 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:29 verbose #13435 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:29 verbose #13436 > > │ ### of_obj                                                                   │
00:12:29 verbose #13437 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:29 verbose #13438 > >
00:12:29 verbose #13439 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:29 verbose #13440 > > inl of_obj forall t. (x : t) : option' t =
00:12:29 verbose #13441 > >     backend_switch {
00:12:29 verbose #13442 > >         Fsharp = fun () =>
00:12:29 verbose #13443 > >             $'let mutable _!x = None'
00:12:29 verbose #13444 > >             $'#if \!FABLE_COMPILER && \!WASM && \!CONTRACT'
00:12:29 verbose #13445 > >             ((x |> $'Option.ofObj') : option' t) |> emit_unit
00:12:29 verbose #13446 > >             $'#else'
00:12:29 verbose #13447 > >             $'Some !x '
00:12:29 verbose #13448 > >             $'#endif'
00:12:29 verbose #13449 > >             $'|> fun x -> _!x <- Some x'
00:12:29 verbose #13450 > >             $'match _!x with Some x -> x | None -> failwith "optionm\'.of_obj
00:12:29 verbose #13451 > > _!x=None"' : option' t
00:12:29 verbose #13452 > >         Python = fun () =>
00:12:29 verbose #13453 > >             $'!x ' : option' t
00:12:29 verbose #13454 > >     }
00:12:29 verbose #13455 > 00:12:28   debug #745 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/272a35980fd5daafcd343e10b9871e7fc6d94d30efebfda7260d612c2d96abee/main.spi
00:12:29 verbose #13456 > >
00:12:29 verbose #13457 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:29 verbose #13458 > > //// test
00:12:29 verbose #13459 > > ///! fsharp
00:12:29 verbose #13460 > > ///! cuda
00:12:29 verbose #13461 > > ////! rust // attempted to zero-initialize type `alloc::sync::Arc<dyn
00:12:29 verbose #13462 > > core::any::Any>`, which is invalid
00:12:29 verbose #13463 > > ///! typescript
00:12:29 verbose #13464 > > ///! python
00:12:29 verbose #13465 > >
00:12:29 verbose #13466 > > null ()
00:12:29 verbose #13467 > > |> of_obj
00:12:29 verbose #13468 > > |> unbox
00:12:29 verbose #13469 > > |> _assert_eq (None : option string)
00:12:29 verbose #13470 > 00:12:28   debug #746 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/035573f130228d245fae891d67161819e77d5f1e39a5c5614a1541f580c9c0e8/main.spi
00:12:29 verbose #13471 > 00:12:28   debug #747 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/544da254ffd29bf111c83b5a4133a198cf1296e0675a5aa5730301e7133328f4/main.spi
00:12:32 verbose #13472 > >
00:12:32 verbose #13473 > > ╭─[ 3.43s - return value ]─────────────────────────────────────────────────────╮
00:12:32 verbose #13474 > > │ .py output (Cuda):                                                           │
00:12:32 verbose #13475 > > │ assert_eq / actual: US0_1() / expected: US0_1()                              │
00:12:32 verbose #13476 > > │                                                                              │
00:12:32 verbose #13477 > > │ .ts output:                                                                  │
00:12:32 verbose #13478 > > │ assert_eq / actual: US0_1 / expected: US0_1                                  │
00:12:32 verbose #13479 > > │                                                                              │
00:12:32 verbose #13480 > > │ .py output:                                                                  │
00:12:32 verbose #13481 > > │ assert_eq / actual: US0_1 / expected: US0_1                                  │
00:12:32 verbose #13482 > > │                                                                              │
00:12:32 verbose #13483 > > │                                                                              │
00:12:32 verbose #13484 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:32 verbose #13485 > >
00:12:32 verbose #13486 > > ╭─[ 3.44s - stdout ]───────────────────────────────────────────────────────────╮
00:12:32 verbose #13487 > > │ .fsx output:                                                                 │
00:12:32 verbose #13488 > > │ assert_eq / actual: US0_1 / expected: US0_1                                  │
00:12:32 verbose #13489 > > │                                                                              │
00:12:32 verbose #13490 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:32 verbose #13491 > >
00:12:32 verbose #13492 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:32 verbose #13493 > > //// test
00:12:32 verbose #13494 > > ///! fsharp
00:12:32 verbose #13495 > > ///! cuda
00:12:32 verbose #13496 > > ///! rust
00:12:32 verbose #13497 > > ///! typescript
00:12:32 verbose #13498 > > ///! python
00:12:32 verbose #13499 > >
00:12:32 verbose #13500 > > ""
00:12:32 verbose #13501 > > |> of_obj
00:12:32 verbose #13502 > > |> unbox
00:12:32 verbose #13503 > > |> _assert_eq' (Some "")
00:12:33 verbose #13504 > 00:12:32   debug #748 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/70916855152f56dad541f885b516bad7047206794cb58b9f0280a5f3f50223d3/main.spi
00:12:33 verbose #13505 > 00:12:32   debug #749 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/713995bcb2e00006760e8d7463f3744ad701fef6448c3b781b7fadcc36a9f85b/main.spi
00:12:37 verbose #13506 > >
00:12:37 verbose #13507 > > ╭─[ 4.71s - return value ]─────────────────────────────────────────────────────╮
00:12:37 verbose #13508 > > │ .py output (Cuda):                                                           │
00:12:37 verbose #13509 > > │ assert_eq' / actual: US0_0(v0='') / expected: US0_0(v0='')                   │
00:12:37 verbose #13510 > > │                                                                              │
00:12:37 verbose #13511 > > │ .rs output:                                                                  │
00:12:37 verbose #13512 > > │ assert_eq' / actual: US0_0("") / expected: US0_0("")                         │
00:12:37 verbose #13513 > > │                                                                              │
00:12:37 verbose #13514 > > │ .ts output:                                                                  │
00:12:37 verbose #13515 > > │ assert_eq' / actual: US0_0  / expected: US0_0                                │
00:12:37 verbose #13516 > > │                                                                              │
00:12:37 verbose #13517 > > │ .py output:                                                                  │
00:12:37 verbose #13518 > > │ assert_eq' / actual: US0_0 "" / expected: US0_0 ""                           │
00:12:37 verbose #13519 > > │                                                                              │
00:12:37 verbose #13520 > > │                                                                              │
00:12:37 verbose #13521 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:37 verbose #13522 > >
00:12:37 verbose #13523 > > ╭─[ 4.71s - stdout ]───────────────────────────────────────────────────────────╮
00:12:37 verbose #13524 > > │ .fsx output:                                                                 │
00:12:37 verbose #13525 > > │ assert_eq' / actual: US0_0 "" / expected: US0_0 ""                           │
00:12:37 verbose #13526 > > │                                                                              │
00:12:37 verbose #13527 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:37 verbose #13528 > >
00:12:37 verbose #13529 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:37 verbose #13530 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:37 verbose #13531 > > │ ### flatten'                                                                 │
00:12:37 verbose #13532 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:37 verbose #13533 > >
00:12:37 verbose #13534 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:37 verbose #13535 > > inl flatten' x =
00:12:37 verbose #13536 > >     x
00:12:37 verbose #13537 > >     |> unbox
00:12:37 verbose #13538 > >     |> optionm.map unbox
00:12:37 verbose #13539 > >     |> flatten
00:12:37 verbose #13540 > 00:12:36   debug #750 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6d7a21d5df6ee2eee4a6170fbe650b75389b7df33faa46094435c4d33516eeea/main.spi
00:12:38 verbose #13541 > >
00:12:38 verbose #13542 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:38 verbose #13543 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:38 verbose #13544 > > │ ## rust                                                                      │
00:12:38 verbose #13545 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:38 verbose #13546 > >
00:12:38 verbose #13547 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:38 verbose #13548 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:38 verbose #13549 > > │ ### try'                                                                     │
00:12:38 verbose #13550 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:38 verbose #13551 > >
00:12:38 verbose #13552 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:38 verbose #13553 > > inl try' forall t. (x : option' t) : t =
00:12:38 verbose #13554 > >     !\\(x, $'"$0?"')
00:12:38 verbose #13555 > 00:12:37   debug #751 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e3282559f6075faa22f559e896b14f579996076982774c729d7ef85635ea63da/main.spi
00:12:38 verbose #13556 > >
00:12:38 verbose #13557 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:38 verbose #13558 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:38 verbose #13559 > > │ ### map'                                                                     │
00:12:38 verbose #13560 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:38 verbose #13561 > >
00:12:38 verbose #13562 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:38 verbose #13563 > > inl map' forall t u. (fn : t -> u) (x : option' t) : option' u =
00:12:38 verbose #13564 > >     (!\($'"true; let _result = !x.map(|x| { //"') : bool) |> ignore
00:12:38 verbose #13565 > >     (!\\(fn !\($'"x"'), $'"true; $0 })"') : bool) |> ignore
00:12:38 verbose #13566 > >     !\($'"_result"')
00:12:38 verbose #13567 > 00:12:37   debug #752 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fe3a8a73b6f3d91248562b2a7a2c04d6dfcd6f99bca0a368a1e59974709f1106/main.spi
00:12:38 verbose #13568 > >
00:12:38 verbose #13569 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:38 verbose #13570 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:38 verbose #13571 > > │ ### unwrap                                                                   │
00:12:38 verbose #13572 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:38 verbose #13573 > >
00:12:38 verbose #13574 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:38 verbose #13575 > > inl unwrap forall t. (x : option' t) : t =
00:12:38 verbose #13576 > >     !\\(x, $'"$0.unwrap()"')
00:12:39 verbose #13577 > 00:12:38   debug #753 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/15444cac8deaab83ccf1477649e4048731668de4c60a2f4878d7fdea1709b8ef/main.spi
00:12:39 verbose #13578 > >
00:12:39 verbose #13579 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:39 verbose #13580 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:39 verbose #13581 > > │ ### take                                                                     │
00:12:39 verbose #13582 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:39 verbose #13583 > >
00:12:39 verbose #13584 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:39 verbose #13585 > > inl take forall t. (x : option' t) : option' t =
00:12:39 verbose #13586 > >     (!\\(x, $'"true; let mut !x = !x"') : bool) |> ignore
00:12:39 verbose #13587 > >     !\\(x, $'"Option::take(&mut $0)"')
00:12:39 verbose #13588 > 00:12:38   debug #754 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/75c299b67bd42847ab15b5c49a605108846c2f7d6e66b73596481c7ff720e195/main.spi
00:12:39 verbose #13589 > >
00:12:39 verbose #13590 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:39 verbose #13591 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:39 verbose #13592 > > │ ### take_ref                                                                 │
00:12:39 verbose #13593 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:39 verbose #13594 > >
00:12:39 verbose #13595 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:39 verbose #13596 > > inl take_ref forall t. (x : rust.ref (option' t)) : option' t =
00:12:39 verbose #13597 > >     (!\\(x, $'"true; let mut !x = !x"') : bool) |> ignore
00:12:39 verbose #13598 > >     !\\(x, $'"Option::take(&mut $0)"')
00:12:39 verbose #13599 > 00:12:39   debug #755 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2f7b408cafcfd0e32573815a6295cbc23e01125f4d7f59fd7725b1255e4fbab4/main.spi
00:12:39 verbose #13600 > >
00:12:39 verbose #13601 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:39 verbose #13602 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:39 verbose #13603 > > │ ### take_ref_mut                                                             │
00:12:39 verbose #13604 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:39 verbose #13605 > >
00:12:39 verbose #13606 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:39 verbose #13607 > > inl take_ref_mut forall t. (x : rust.ref (rust.mut' (option' t))) : option' t =
00:12:39 verbose #13608 > >     !\\(x, $'"Option::take($0)"')
00:12:40 verbose #13609 > 00:12:39   debug #756 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9d6488e112c4698d39a8d02489b5d9b60886a166bdae109bebbb03b9b24adbe4/main.spi
00:12:40 verbose #13610 > >
00:12:40 verbose #13611 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:40 verbose #13612 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:40 verbose #13613 > > │ ### as_ref                                                                   │
00:12:40 verbose #13614 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:40 verbose #13615 > >
00:12:40 verbose #13616 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:40 verbose #13617 > > inl as_ref forall t. (x : rust.ref (option' t)) : option' (rust.ref t) =
00:12:40 verbose #13618 > >     !\\(x, $'"$0.as_ref()"')
00:12:40 verbose #13619 > 00:12:39   debug #757 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7892a9a14c9c7fd24ba4c1c107f2e24bb1fb0e9634332c633587924ea3e01b15/main.spi
00:12:40 verbose #13620 > >
00:12:40 verbose #13621 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:40 verbose #13622 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:40 verbose #13623 > > │ ### as_mut                                                                   │
00:12:40 verbose #13624 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:40 verbose #13625 > >
00:12:40 verbose #13626 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:40 verbose #13627 > > inl as_mut forall t. (x : rust.ref (rust.mut' (option' t))) : option' (rust.ref
00:12:40 verbose #13628 > > (rust.mut' t)) =
00:12:40 verbose #13629 > >     !\\(x, $'"$0.as_mut()"')
00:12:40 verbose #13630 > 00:12:40   debug #758 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0761a12c837dfa71ae88cc5af5430496f83830d8e4bdfe263323ebf13dc1bdc5/main.spi
00:12:41 verbose #13631 > >
00:12:41 verbose #13632 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:41 verbose #13633 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:41 verbose #13634 > > │ ### unwrap_or                                                                │
00:12:41 verbose #13635 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:41 verbose #13636 > >
00:12:41 verbose #13637 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:41 verbose #13638 > > inl unwrap_or forall t. (def : t) (x : option' t) : t =
00:12:41 verbose #13639 > >     !\($'"!x.unwrap_or(!def)"')
00:12:41 verbose #13640 > 00:12:40   debug #759 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2b64ccc2bfed9a9a1022e5b8faed995eb09f6d0f289051f93509687a8be85301/main.spi
00:12:41 verbose #13641 > >
00:12:41 verbose #13642 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:41 verbose #13643 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:41 verbose #13644 > > │ ### and_then                                                                 │
00:12:41 verbose #13645 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:41 verbose #13646 > >
00:12:41 verbose #13647 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:41 verbose #13648 > > inl and_then forall t u. (fn : t -> option' u) (x : option' t) : option' u =
00:12:41 verbose #13649 > >     !\\((x, fn), $'"$0.and_then(|x| $1(x))"')
00:12:41 verbose #13650 > 00:12:41   debug #760 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/052d36c7425815862593f21a712efb54526a0ad74870f61c85a7a2181653e0fb/main.spi
00:12:41 verbose #13651 > >
00:12:41 verbose #13652 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:41 verbose #13653 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:41 verbose #13654 > > │ ### rc_upgrade                                                               │
00:12:41 verbose #13655 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:41 verbose #13656 > >
00:12:41 verbose #13657 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:41 verbose #13658 > > inl rc_upgrade forall t. (x : rust.weak_rc t) : option' (rust.rc t) =
00:12:41 verbose #13659 > >     !\\(x, $'"std::rc::Weak::upgrade(&$0)"')
00:12:42 verbose #13660 > 00:12:41   debug #761 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c7e3f60e4e32baedad6eb454d314c33d1ac46146a335f85b82e9c04b27346adb/main.spi
00:12:42 verbose #13661 > >
00:12:42 verbose #13662 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:42 verbose #13663 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:42 verbose #13664 > > │ ### rc_into_inner                                                            │
00:12:42 verbose #13665 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:42 verbose #13666 > >
00:12:42 verbose #13667 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:42 verbose #13668 > > inl rc_into_inner forall t. (x : rust.rc t) : option' t =
00:12:42 verbose #13669 > >     !\\(x, $'"std::rc::Rc::into_inner($0)"')
00:12:42 verbose #13670 > 00:12:41   debug #762 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/be965601df21dd029409d036fe72a329bfdb79e910bb37e91bb9c3510994a8cf/main.spi
00:12:42 verbose #13671 > >
00:12:42 verbose #13672 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:42 verbose #13673 > > //// test
00:12:42 verbose #13674 > > ///! rust
00:12:42 verbose #13675 > >
00:12:42 verbose #13676 > > rust.new_rc 0i32
00:12:42 verbose #13677 > > |> rc_into_inner
00:12:42 verbose #13678 > > |> unbox
00:12:42 verbose #13679 > > |> _assert_eq' (Some 0i32)
00:12:43 verbose #13680 > 00:12:42   debug #763 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/68023925a56dcd8ca4927973f3f9851311b0d23a32d9b70892e58ad7ba9679b2/main.spi
00:12:45 verbose #13681 > >
00:12:45 verbose #13682 > > ╭─[ 2.80s - return value ]─────────────────────────────────────────────────────╮
00:12:45 verbose #13683 > > │ assert_eq' / actual: US0_0(0) / expected: US0_0(0)                           │
00:12:45 verbose #13684 > > │                                                                              │
00:12:45 verbose #13685 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:45 verbose #13686 > 00:00:40 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 25654 }
00:12:45 verbose #13687 > 00:00:40   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/spiral/optionm'.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/optionm'.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:12:48 verbose #13688 > 00:00:43 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/optionm'.dib.ipynb to html
00:12:48 verbose #13689 > 00:00:43 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:12:48 verbose #13690 > 00:00:43 verbose #7 !   validate(nb)
00:12:50 verbose #13691 > 00:00:45 verbose #8 ! [NbConvertApp] Writing 340814 bytes to c:\home\git\polyglot\lib\spiral\optionm'.dib.html
00:12:50 verbose #13692 > 00:00:45 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 647 }
00:12:50 verbose #13693 > 00:00:45   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 647 }
00:12:50 verbose #13694 > 00:00:45   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/optionm''.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/optionm''.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:12:51 verbose #13695 > 00:00:46 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:12:51 verbose #13696 > 00:00:46   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:12:52 verbose #13697 > 00:00:47   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 26360 }
00:12:52   debug #13698 runtime.execute_with_options_async / { exit_code = 0; output_length = 30051 }
00:12:52   debug #18 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path optionm'.dib --retries 3
00:12:52   debug #13699 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path listm'.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:12:52 verbose #13700 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "listm'.dib", "--retries", "3"])) }
00:12:52 verbose #13701 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/spiral/listm'.dib", "--output-path", "c:/home/git/polyglot/lib/spiral/listm'.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/listm'.dib" --output-path "c:/home/git/polyglot/lib/spiral/listm'.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:12:55 verbose #13702 > >
00:12:55 verbose #13703 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:55 verbose #13704 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:55 verbose #13705 > > │ # listm'                                                                     │
00:12:55 verbose #13706 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:00 verbose #13707 > >
00:13:00 verbose #13708 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:00 verbose #13709 > > //// test
00:13:00 verbose #13710 > >
00:13:00 verbose #13711 > > open testing
00:13:00 verbose #13712 > 00:13:00   debug #764 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fa7845de436c12d0ca65282fe0cd65832468ca943e72feba50e6b1bb441e251a/main.spi
00:13:01 verbose #13713 > >
00:13:01 verbose #13714 > > ── markdown ────────────────────────────────────────────────────────────────────
00:13:01 verbose #13715 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:13:01 verbose #13716 > > │ ## listm'                                                                    │
00:13:01 verbose #13717 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:01 verbose #13718 > >
00:13:01 verbose #13719 > > ── markdown ────────────────────────────────────────────────────────────────────
00:13:01 verbose #13720 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:13:01 verbose #13721 > > │ ### append                                                                   │
00:13:01 verbose #13722 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:01 verbose #13723 > >
00:13:01 verbose #13724 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:01 verbose #13725 > > instance append list t =
00:13:01 verbose #13726 > >     listm.append
00:13:01 verbose #13727 > 00:13:00   debug #765 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ac2d50a7d27726add1bcb0372fd8edbfedd5a4cebc54a7d7ed47565e7d48af7a/main.spi
00:13:01 verbose #13728 > >
00:13:01 verbose #13729 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:01 verbose #13730 > > //// test
00:13:01 verbose #13731 > >
00:13:01 verbose #13732 > > [[ "a"; "b" ]] ++ [[ "c"; "d" ]]
00:13:01 verbose #13733 > > |> _assert_eq [[ "a"; "b"; "c"; "d" ]]
00:13:02 verbose #13734 > 00:13:01   debug #766 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/86af39ebf815404325b75ab00b3547380beba07b357114185b526c84d0b4f4f6/main.spi
00:13:03 verbose #13735 > >
00:13:03 verbose #13736 > > ╭─[ 1.43s - stdout ]───────────────────────────────────────────────────────────╮
00:13:03 verbose #13737 > > │ assert_eq / actual: UH0_1 ("a", UH0_1 ("b", UH0_1 ("c", UH0_1 ("d",          │
00:13:03 verbose #13738 > > │ UH0_0)))) / expected: UH0_1 ("a", UH0_1 ("b", UH0_1 ("c", UH0_1 ("d",        │
00:13:03 verbose #13739 > > │ UH0_0))))                                                                    │
00:13:03 verbose #13740 > > │                                                                              │
00:13:03 verbose #13741 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:03 verbose #13742 > >
00:13:03 verbose #13743 > > ── markdown ────────────────────────────────────────────────────────────────────
00:13:03 verbose #13744 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:13:03 verbose #13745 > > │ ### collect                                                                  │
00:13:03 verbose #13746 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:03 verbose #13747 > >
00:13:03 verbose #13748 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:03 verbose #13749 > > inl collect forall t r. (fn : t -> list r) (items : list t) : list r =
00:13:03 verbose #13750 > >     items
00:13:03 verbose #13751 > >     |> listm.map fn
00:13:03 verbose #13752 > >     |> listm.fold (++) [[]]
00:13:03 verbose #13753 > 00:13:02   debug #767 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6cab2bfe4d19f0c9cf526dce2e91a9144ee99603a6a751acad047b780a7baea5/main.spi
00:13:03 verbose #13754 > >
00:13:03 verbose #13755 > > ── markdown ────────────────────────────────────────────────────────────────────
00:13:03 verbose #13756 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:13:03 verbose #13757 > > │ ### init_series                                                              │
00:13:03 verbose #13758 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:03 verbose #13759 > >
00:13:03 verbose #13760 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:03 verbose #13761 > > inl init_series start end inc =
00:13:03 verbose #13762 > >     inl total : f64 = conv ((end - start) / inc) + 1
00:13:03 verbose #13763 > >     listm.init total (conv >> (*) inc >> (+) start)
00:13:03 verbose #13764 > 00:13:03   debug #768 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4b70a8dcaf3befefe66bd978a8288673ed6710c1d5b3835e55cbc61c93c782c9/main.spi
00:13:04 verbose #13765 > >
00:13:04 verbose #13766 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:04 verbose #13767 > > //// test
00:13:04 verbose #13768 > >
00:13:04 verbose #13769 > > init_series 0 1 0.5
00:13:04 verbose #13770 > > |> _assert_eq [[ 0f64; 0.5; 1 ]]
00:13:04 verbose #13771 > 00:13:03   debug #769 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a8c05ad6c161fc5da481fcb1e6f63d49be5509308075539183f2aff86f0a418a/main.spi
00:13:04 verbose #13772 > >
00:13:04 verbose #13773 > > ╭─[ 488.47ms - stdout ]────────────────────────────────────────────────────────╮
00:13:04 verbose #13774 > > │ assert_eq / actual: UH0_1 (0.0, UH0_1 (0.5, UH0_1 (1.0, UH0_0))) / expected: │
00:13:04 verbose #13775 > > │ UH0_1 (0.0, UH0_1 (0.5, UH0_1 (1.0, UH0_0)))                                 │
00:13:04 verbose #13776 > > │                                                                              │
00:13:04 verbose #13777 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:04 verbose #13778 > >
00:13:04 verbose #13779 > > ── markdown ────────────────────────────────────────────────────────────────────
00:13:04 verbose #13780 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:13:04 verbose #13781 > > │ ### try_item                                                                 │
00:13:04 verbose #13782 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:04 verbose #13783 > >
00:13:04 verbose #13784 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:04 verbose #13785 > > inl rec try_item i = function
00:13:04 verbose #13786 > >     | Cons (x, _) when i = 0 => Some x
00:13:04 verbose #13787 > >     | Cons (_, xs) => try_item (i - 1) xs
00:13:04 verbose #13788 > >     | Nil => None
00:13:04 verbose #13789 > 00:13:03   debug #770 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1ece2c0cff2a4144396eb7af0cefb80fadfc988ab05fbb632ecea95afcb34fef/main.spi
00:13:04 verbose #13790 > >
00:13:04 verbose #13791 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:04 verbose #13792 > > //// test
00:13:04 verbose #13793 > >
00:13:04 verbose #13794 > > listm.init 10i32 id
00:13:04 verbose #13795 > > |> try_item 9i32
00:13:04 verbose #13796 > > |> _assert_eq (Some 9)
00:13:05 verbose #13797 > 00:13:04   debug #771 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4ddf0276108369c630833744f1dad952a4c26d5e0ecf0089874bb3a30180b4c8/main.spi
00:13:05 verbose #13798 > >
00:13:05 verbose #13799 > > ╭─[ 431.66ms - stdout ]────────────────────────────────────────────────────────╮
00:13:05 verbose #13800 > > │ assert_eq / actual: US0_0 9 / expected: US0_0 9                              │
00:13:05 verbose #13801 > > │                                                                              │
00:13:05 verbose #13802 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:05 verbose #13803 > >
00:13:05 verbose #13804 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:05 verbose #13805 > > //// test
00:13:05 verbose #13806 > >
00:13:05 verbose #13807 > > listm.init 10i32 id
00:13:05 verbose #13808 > > |> try_item 10i32
00:13:05 verbose #13809 > > |> _assert_eq None
00:13:05 verbose #13810 > 00:13:04   debug #772 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/97607e27ddbf94644fc1cd2cdfbe47241417004887a52b9c622d9078f2588f7b/main.spi
00:13:05 verbose #13811 > >
00:13:05 verbose #13812 > > ╭─[ 381.22ms - stdout ]────────────────────────────────────────────────────────╮
00:13:05 verbose #13813 > > │ assert_eq / actual: US0_1 / expected: US0_1                                  │
00:13:05 verbose #13814 > > │                                                                              │
00:13:05 verbose #13815 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:05 verbose #13816 > >
00:13:05 verbose #13817 > > ── markdown ────────────────────────────────────────────────────────────────────
00:13:05 verbose #13818 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:13:05 verbose #13819 > > │ ### item                                                                     │
00:13:05 verbose #13820 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:05 verbose #13821 > >
00:13:05 verbose #13822 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:05 verbose #13823 > > inl item i =
00:13:05 verbose #13824 > >     try_item i >> optionm.value
00:13:05 verbose #13825 > 00:13:05   debug #773 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/09eee9e762823abd1bcef11058bacaecb52b4643288953048a5b2217369a89b1/main.spi
00:13:06 verbose #13826 > >
00:13:06 verbose #13827 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:06 verbose #13828 > > //// test
00:13:06 verbose #13829 > >
00:13:06 verbose #13830 > > listm.init 10i32 id
00:13:06 verbose #13831 > > |> item 9i32
00:13:06 verbose #13832 > > |> _assert_eq 9
00:13:06 verbose #13833 > 00:13:05   debug #774 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ac6612e0e4c898638d1cbfafee9775e114d94b77844d42ea552b483bf69e75eb/main.spi
00:13:06 verbose #13834 > >
00:13:06 verbose #13835 > > ╭─[ 390.78ms - stdout ]────────────────────────────────────────────────────────╮
00:13:06 verbose #13836 > > │ assert_eq / actual: 9 / expected: 9                                          │
00:13:06 verbose #13837 > > │                                                                              │
00:13:06 verbose #13838 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:06 verbose #13839 > >
00:13:06 verbose #13840 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:06 verbose #13841 > > //// test
00:13:06 verbose #13842 > >
00:13:06 verbose #13843 > > fun () =>
00:13:06 verbose #13844 > >     listm.init 10i32 id
00:13:06 verbose #13845 > >     |> item 10i32
00:13:06 verbose #13846 > >     |> ignore
00:13:06 verbose #13847 > > |> _throws
00:13:06 verbose #13848 > > |> optionm.map sm'.format_exception
00:13:06 verbose #13849 > > |> _assert_eq (Some "System.Exception: Option does not have a value.")
00:13:06 verbose #13850 > 00:13:05   debug #775 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9efe014a1bb64aa6050ac3179df7b67e222efc310825ea3639f983e24a2092a6/main.spi
00:13:06 verbose #13851 > >
00:13:06 verbose #13852 > > ╭─[ 580.60ms - stdout ]────────────────────────────────────────────────────────╮
00:13:06 verbose #13853 > > │ assert_eq / actual: US1_0 "System.Exception: Option does not have a value."  │
00:13:06 verbose #13854 > > │ / expected: US1_0 "System.Exception: Option does not have a value."          │
00:13:06 verbose #13855 > > │                                                                              │
00:13:06 verbose #13856 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:06 verbose #13857 > >
00:13:06 verbose #13858 > > ── markdown ────────────────────────────────────────────────────────────────────
00:13:06 verbose #13859 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:13:06 verbose #13860 > > │ ### try_item_                                                                │
00:13:06 verbose #13861 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:06 verbose #13862 > >
00:13:06 verbose #13863 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:06 verbose #13864 > > let rec try_item_ i = function
00:13:06 verbose #13865 > >     | Cons (x, _) when i = 0 => Some x
00:13:06 verbose #13866 > >     | Cons (_, xs) => try_item_ (i - 1) xs
00:13:06 verbose #13867 > >     | Nil => None
00:13:07 verbose #13868 > 00:13:06   debug #776 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c5c84714f74da96fda60b04e2049ee226f55faf56e0304d03c01aa9d0d29a65a/main.spi
00:13:07 verbose #13869 > >
00:13:07 verbose #13870 > > ── markdown ────────────────────────────────────────────────────────────────────
00:13:07 verbose #13871 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:13:07 verbose #13872 > > │ ### item_                                                                    │
00:13:07 verbose #13873 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:07 verbose #13874 > >
00:13:07 verbose #13875 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:07 verbose #13876 > > inl item_ i =
00:13:07 verbose #13877 > >     try_item_ i >> optionm.value
00:13:07 verbose #13878 > 00:13:06   debug #777 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ec8d97a24caf5ba89408e5824cf34365bd9ee9a04c3163dca5e54f5889a0b4af/main.spi
00:13:07 verbose #13879 > >
00:13:07 verbose #13880 > > ── markdown ────────────────────────────────────────────────────────────────────
00:13:07 verbose #13881 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:13:07 verbose #13882 > > │ ### sum                                                                      │
00:13:07 verbose #13883 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:07 verbose #13884 > >
00:13:07 verbose #13885 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:07 verbose #13886 > > inl sum list =
00:13:07 verbose #13887 > >     list |> listm.fold (+) 0
00:13:08 verbose #13888 > 00:13:07   debug #778 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8d16d7149b84e2452fe5e8d0038a8b7248e58bd7189534c4f53ed11221478261/main.spi
00:13:08 verbose #13889 > >
00:13:08 verbose #13890 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:08 verbose #13891 > > //// test
00:13:08 verbose #13892 > >
00:13:08 verbose #13893 > > listm.init 10i32 id
00:13:08 verbose #13894 > > |> sum
00:13:08 verbose #13895 > > |> _assert_eq 45
00:13:08 verbose #13896 > 00:13:07   debug #779 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a7110fb0a4fb98c8ebeaf774577d30899dcd2afd4810e3181215398426cee8a2/main.spi
00:13:08 verbose #13897 > >
00:13:08 verbose #13898 > > ╭─[ 359.01ms - stdout ]────────────────────────────────────────────────────────╮
00:13:08 verbose #13899 > > │ assert_eq / actual: 45 / expected: 45                                        │
00:13:08 verbose #13900 > > │                                                                              │
00:13:08 verbose #13901 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:08 verbose #13902 > >
00:13:08 verbose #13903 > > ── markdown ────────────────────────────────────────────────────────────────────
00:13:08 verbose #13904 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:13:08 verbose #13905 > > │ ### unzip                                                                    │
00:13:08 verbose #13906 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:08 verbose #13907 > >
00:13:08 verbose #13908 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:08 verbose #13909 > > inl unzip list =
00:13:08 verbose #13910 > >     (([[]], [[]]), list)
00:13:08 verbose #13911 > >     ||> listm.fold fun (acc_x, acc_y) (x, y) =>
00:13:08 verbose #13912 > >         x :: acc_x, y :: acc_y
00:13:08 verbose #13913 > >     |> fun x, y =>
00:13:08 verbose #13914 > >         x |> listm.rev, y |> listm.rev
00:13:08 verbose #13915 > 00:13:07   debug #780 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2ed906661c54e10a79be7b7ae9b5600b05ab6dfd80c7975248acbc11aa6e2a7e/main.spi
00:13:08 verbose #13916 > >
00:13:08 verbose #13917 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:08 verbose #13918 > > //// test
00:13:08 verbose #13919 > >
00:13:08 verbose #13920 > > listm.init 10i32 id
00:13:08 verbose #13921 > > |> listm.map (fun x => x, x)
00:13:08 verbose #13922 > > |> unzip
00:13:08 verbose #13923 > > |> fun x, y =>
00:13:08 verbose #13924 > >     x |> sum
00:13:08 verbose #13925 > >     |> _assert_eq 45
00:13:08 verbose #13926 > >
00:13:08 verbose #13927 > >     y |> sum
00:13:08 verbose #13928 > >     |> _assert_eq 45
00:13:09 verbose #13929 > 00:13:08   debug #781 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/77f1c00d88f54ea461a23baef9f89ecd729eb33b7fd1eb4748170efe6bf71abb/main.spi
00:13:09 verbose #13930 > >
00:13:09 verbose #13931 > > ╭─[ 397.71ms - stdout ]────────────────────────────────────────────────────────╮
00:13:09 verbose #13932 > > │ assert_eq / actual: 45 / expected: 45                                        │
00:13:09 verbose #13933 > > │ assert_eq / actual: 45 / expected: 45                                        │
00:13:09 verbose #13934 > > │                                                                              │
00:13:09 verbose #13935 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:09 verbose #13936 > >
00:13:09 verbose #13937 > > ── markdown ────────────────────────────────────────────────────────────────────
00:13:09 verbose #13938 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:13:09 verbose #13939 > > │ ### try_index_of                                                             │
00:13:09 verbose #13940 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:09 verbose #13941 > >
00:13:09 verbose #13942 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:09 verbose #13943 > > inl try_index_of item list =
00:13:09 verbose #13944 > >     inl rec loop i = function
00:13:09 verbose #13945 > >         | [[]] => None
00:13:09 verbose #13946 > >         | x :: xs =>
00:13:09 verbose #13947 > >             if x = item
00:13:09 verbose #13948 > >             then Some i
00:13:09 verbose #13949 > >             else loop (i + 1) xs
00:13:09 verbose #13950 > >     loop 0 list
00:13:09 verbose #13951 > >
00:13:09 verbose #13952 > > inl index_of item =
00:13:09 verbose #13953 > >     try_index_of item >> optionm.value
00:13:09 verbose #13954 > >
00:13:09 verbose #13955 > > inl try_index_of_ item list =
00:13:09 verbose #13956 > >     let rec loop i = function
00:13:09 verbose #13957 > >         | [[]] => None
00:13:09 verbose #13958 > >         | x :: xs =>
00:13:09 verbose #13959 > >             if x = item
00:13:09 verbose #13960 > >             then Some i
00:13:09 verbose #13961 > >             else loop (i + 1) xs
00:13:09 verbose #13962 > >     loop 0 list
00:13:09 verbose #13963 > >
00:13:09 verbose #13964 > > inl index_of_ item =
00:13:09 verbose #13965 > >     try_index_of_ item >> optionm.value
00:13:09 verbose #13966 > >
00:13:09 verbose #13967 > > inl try_index_of__ item list =
00:13:09 verbose #13968 > >     inl i = mut 0
00:13:09 verbose #13969 > >     inl list = mut list
00:13:09 verbose #13970 > >     inl result = mut None
00:13:09 verbose #13971 > >     let rec loop () =
00:13:09 verbose #13972 > >         match *list with
00:13:09 verbose #13973 > >         | [[]] => result <- None
00:13:09 verbose #13974 > >         | x :: xs =>
00:13:09 verbose #13975 > >             if x = item
00:13:09 verbose #13976 > >             then result <- Some *i
00:13:09 verbose #13977 > >             else
00:13:09 verbose #13978 > >                 i <- *i + 1
00:13:09 verbose #13979 > >                 list <- xs
00:13:09 verbose #13980 > >                 loop ()
00:13:09 verbose #13981 > >     loop ()
00:13:09 verbose #13982 > >     *result
00:13:09 verbose #13983 > >
00:13:09 verbose #13984 > > inl index_of__ item =
00:13:09 verbose #13985 > >     try_index_of__ item >> optionm.value
00:13:09 verbose #13986 > 00:13:08   debug #782 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9410c20181f7476afe2394d55a1a43bb9e0c0b93ef9ab94da6bebd574bdbb1ac/main.spi
00:13:09 verbose #13987 > >
00:13:09 verbose #13988 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:09 verbose #13989 > > //// test
00:13:09 verbose #13990 > >
00:13:09 verbose #13991 > > listm.init 10i32 id
00:13:09 verbose #13992 > > |> index_of 5i32
00:13:09 verbose #13993 > > |> _assert_eq 5i32
00:13:09 verbose #13994 > 00:13:09   debug #783 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2748a0c24e0c5ff6cfc2364d7881e828f3e6484e31a9118c35f31efa43dcedb5/main.spi
00:13:10 verbose #13995 > >
00:13:10 verbose #13996 > > ╭─[ 411.18ms - stdout ]────────────────────────────────────────────────────────╮
00:13:10 verbose #13997 > > │ assert_eq / actual: 5 / expected: 5                                          │
00:13:10 verbose #13998 > > │                                                                              │
00:13:10 verbose #13999 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:10 verbose #14000 > >
00:13:10 verbose #14001 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:10 verbose #14002 > > //// test
00:13:10 verbose #14003 > >
00:13:10 verbose #14004 > > listm.init 10i32 id
00:13:10 verbose #14005 > > |> try_index_of 10i32
00:13:10 verbose #14006 > > |> _assert_eq (None : option i32)
00:13:10 verbose #14007 > 00:13:09   debug #784 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c700ac5e4646093f8d07ccd158e1be1fb43a76fd8d8402f4152eb478f87d2d22/main.spi
00:13:10 verbose #14008 > >
00:13:10 verbose #14009 > > ╭─[ 394.57ms - stdout ]────────────────────────────────────────────────────────╮
00:13:10 verbose #14010 > > │ assert_eq / actual: US0_1 / expected: US0_1                                  │
00:13:10 verbose #14011 > > │                                                                              │
00:13:10 verbose #14012 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:10 verbose #14013 > >
00:13:10 verbose #14014 > > ── markdown ────────────────────────────────────────────────────────────────────
00:13:10 verbose #14015 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:13:10 verbose #14016 > > │ ### try_find                                                                 │
00:13:10 verbose #14017 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:10 verbose #14018 > >
00:13:10 verbose #14019 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:10 verbose #14020 > > inl try_find fn list =
00:13:10 verbose #14021 > >     inl rec loop = function
00:13:10 verbose #14022 > >         | [[]] => None
00:13:10 verbose #14023 > >         | x :: xs =>
00:13:10 verbose #14024 > >             if fn x
00:13:10 verbose #14025 > >             then Some x
00:13:10 verbose #14026 > >             else loop xs
00:13:10 verbose #14027 > >     loop list
00:13:10 verbose #14028 > >
00:13:10 verbose #14029 > > inl try_find_ fn list =
00:13:10 verbose #14030 > >     let rec loop = function
00:13:10 verbose #14031 > >         | [[]] => None
00:13:10 verbose #14032 > >         | x :: xs =>
00:13:10 verbose #14033 > >             if fn x
00:13:10 verbose #14034 > >             then Some x
00:13:10 verbose #14035 > >             else loop xs
00:13:10 verbose #14036 > >     loop list
00:13:10 verbose #14037 > 00:13:09   debug #785 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/dfe320ac8ab68776ed36f0bf7fdcc5a87a13f2ea28e1ceb759e2fd90ac65a3c2/main.spi
00:13:10 verbose #14038 > >
00:13:10 verbose #14039 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:10 verbose #14040 > > //// test
00:13:10 verbose #14041 > >
00:13:10 verbose #14042 > > listm.init 10i32 id
00:13:10 verbose #14043 > > |> try_find ((=) 5i32)
00:13:10 verbose #14044 > > |> _assert_eq (Some 5i32)
00:13:11 verbose #14045 > 00:13:10   debug #786 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/da6df0c57eccfd46ec73c74d96f89420d247e56daf27900ab9c909c12444bcf4/main.spi
00:13:11 verbose #14046 > >
00:13:11 verbose #14047 > > ╭─[ 368.46ms - stdout ]────────────────────────────────────────────────────────╮
00:13:11 verbose #14048 > > │ assert_eq / actual: US0_0 5 / expected: US0_0 5                              │
00:13:11 verbose #14049 > > │                                                                              │
00:13:11 verbose #14050 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:11 verbose #14051 > >
00:13:11 verbose #14052 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:11 verbose #14053 > > inl find x =
00:13:11 verbose #14054 > >     try_find x >> optionm.value
00:13:11 verbose #14055 > >
00:13:11 verbose #14056 > > inl find_ x =
00:13:11 verbose #14057 > >     try_find_ x >> optionm.value
00:13:11 verbose #14058 > 00:13:10   debug #787 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a1821aec9fa5e2801b042726b550b210f3fd0f77e057319c773b3280cb11d566/main.spi
00:13:11 verbose #14059 > >
00:13:11 verbose #14060 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:11 verbose #14061 > > //// test
00:13:11 verbose #14062 > >
00:13:11 verbose #14063 > > listm.init 10i32 id
00:13:11 verbose #14064 > > |> find ((=) 5i32)
00:13:11 verbose #14065 > > |> _assert_eq 5i32
00:13:11 verbose #14066 > 00:13:11   debug #788 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/54626bb7db8bf25e66e400bc0b2672653abb74fb28b030403992c48ae3d5e2de/main.spi
00:13:11 verbose #14067 > >
00:13:11 verbose #14068 > > ╭─[ 368.72ms - stdout ]────────────────────────────────────────────────────────╮
00:13:11 verbose #14069 > > │ assert_eq / actual: 5 / expected: 5                                          │
00:13:11 verbose #14070 > > │                                                                              │
00:13:11 verbose #14071 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:11 verbose #14072 > >
00:13:11 verbose #14073 > > ── markdown ────────────────────────────────────────────────────────────────────
00:13:11 verbose #14074 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:13:11 verbose #14075 > > │ ### choose                                                                   │
00:13:11 verbose #14076 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:11 verbose #14077 > >
00:13:11 verbose #14078 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:11 verbose #14079 > > inl choose f l =
00:13:11 verbose #14080 > >     (l, [[]])
00:13:11 verbose #14081 > >     ||> listm.foldBack fun x acc =>
00:13:11 verbose #14082 > >         match f x with
00:13:11 verbose #14083 > >         | Some y => y :: acc
00:13:11 verbose #14084 > >         | None => acc
00:13:12 verbose #14085 > 00:13:11   debug #789 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/bc27e102a1774cd3266dc3e0000828fdb7417375f7bf974a23d5f2131a1e54cd/main.spi
00:13:12 verbose #14086 > >
00:13:12 verbose #14087 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:12 verbose #14088 > > //// test
00:13:12 verbose #14089 > >
00:13:12 verbose #14090 > > listm.init 10i32 id
00:13:12 verbose #14091 > > |> choose (fun x => if x % 2 = 0 then Some x else None)
00:13:12 verbose #14092 > > |> _assert_eq [[ 0; 2; 4; 6; 8 ]]
00:13:12 verbose #14093 > 00:13:11   debug #790 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8cba64b56c6f2a47619e841da8cf886d09ad2ea634606f60871d38ddc60ed326/main.spi
00:13:12 verbose #14094 > >
00:13:12 verbose #14095 > > ╭─[ 403.75ms - stdout ]────────────────────────────────────────────────────────╮
00:13:12 verbose #14096 > > │ assert_eq / actual: UH0_1 (0, UH0_1 (2, UH0_1 (4, UH0_1 (6, UH0_1 (8,        │
00:13:12 verbose #14097 > > │ UH0_0))))) / expected: UH0_1 (0, UH0_1 (2, UH0_1 (4, UH0_1 (6, UH0_1 (8,     │
00:13:12 verbose #14098 > > │ UH0_0)))))                                                                   │
00:13:12 verbose #14099 > > │                                                                              │
00:13:12 verbose #14100 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:12 verbose #14101 > >
00:13:12 verbose #14102 > > ── markdown ────────────────────────────────────────────────────────────────────
00:13:12 verbose #14103 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:13:12 verbose #14104 > > │ ### filter                                                                   │
00:13:12 verbose #14105 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:12 verbose #14106 > >
00:13:12 verbose #14107 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:12 verbose #14108 > > inl filter forall t. (fn : t -> bool) (list : list t) : list t =
00:13:12 verbose #14109 > >     (list, Nil)
00:13:12 verbose #14110 > >     ||> listm.foldBack fun x acc =>
00:13:12 verbose #14111 > >         if fn x then x :: acc else acc
00:13:13 verbose #14112 > 00:13:12   debug #791 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7c89e2877f6980ba0b691c887bd82f3505751f120357d2f8ec1196db746a0bec/main.spi
00:13:13 verbose #14113 > >
00:13:13 verbose #14114 > > ── markdown ────────────────────────────────────────────────────────────────────
00:13:13 verbose #14115 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:13:13 verbose #14116 > > │ ### zip_with                                                                 │
00:13:13 verbose #14117 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:13 verbose #14118 > >
00:13:13 verbose #14119 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:13 verbose #14120 > > inl zip_with fn xs ys =
00:13:13 verbose #14121 > >     inl rec loop acc xs ys =
00:13:13 verbose #14122 > >         match xs, ys with
00:13:13 verbose #14123 > >         | Cons (x, xs), Cons (y, ys) =>
00:13:13 verbose #14124 > >             loop (fn x y :: acc) xs ys
00:13:13 verbose #14125 > >         | _ => listm.rev acc
00:13:13 verbose #14126 > >     loop [[]] xs ys
00:13:13 verbose #14127 > >
00:13:13 verbose #14128 > > inl zip_with_ fn xs ys =
00:13:13 verbose #14129 > >     let rec loop acc xs ys =
00:13:13 verbose #14130 > >         match xs, ys with
00:13:13 verbose #14131 > >         | Cons (x, xs), Cons (y, ys) =>
00:13:13 verbose #14132 > >             loop (fn x y :: acc) xs ys
00:13:13 verbose #14133 > >         | _ => listm.rev acc
00:13:13 verbose #14134 > >     loop [[]] xs ys
00:13:13 verbose #14135 > 00:13:12   debug #792 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e72df7220c23bed98ed14a55ce842f6a6aa059186e76dcc7a201a2cfb70ccc8f/main.spi
00:13:13 verbose #14136 > >
00:13:13 verbose #14137 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:13 verbose #14138 > > //// test
00:13:13 verbose #14139 > >
00:13:13 verbose #14140 > > ([[ 1i32; 2; 3 ]], [[ 4; 5; 6 ]])
00:13:13 verbose #14141 > > ||> zip_with (+)
00:13:13 verbose #14142 > > |> _assert_eq [[ 5; 7; 9 ]]
00:13:13 verbose #14143 > 00:13:12   debug #793 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/14da4286ed89be4b37a7c48e1ca86e8e63672fe3918696599958ade30b811e54/main.spi
00:13:13 verbose #14144 > >
00:13:13 verbose #14145 > > ╭─[ 485.94ms - stdout ]────────────────────────────────────────────────────────╮
00:13:13 verbose #14146 > > │ assert_eq / actual: UH0_1 (5, UH0_1 (7, UH0_1 (9, UH0_0))) / expected: UH0_1 │
00:13:13 verbose #14147 > > │ (5, UH0_1 (7, UH0_1 (9, UH0_0)))                                             │
00:13:13 verbose #14148 > > │                                                                              │
00:13:13 verbose #14149 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:13 verbose #14150 > >
00:13:13 verbose #14151 > > ── markdown ────────────────────────────────────────────────────────────────────
00:13:13 verbose #14152 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:13:13 verbose #14153 > > │ ### zip                                                                      │
00:13:13 verbose #14154 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:13 verbose #14155 > >
00:13:13 verbose #14156 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:13 verbose #14157 > > inl zip xs ys =
00:13:13 verbose #14158 > >     zip_with pair xs ys
00:13:13 verbose #14159 > >
00:13:13 verbose #14160 > > inl zip_ xs ys =
00:13:13 verbose #14161 > >     zip_with_ pair xs ys
00:13:14 verbose #14162 > 00:13:13   debug #794 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e2e0f7f80191515ef21f7a5c0e07187fac8a46ed7f0131c404cd85aa1893c5f3/main.spi
00:13:14 verbose #14163 > >
00:13:14 verbose #14164 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:14 verbose #14165 > > //// test
00:13:14 verbose #14166 > >
00:13:14 verbose #14167 > > ([[ 1i32; 2; 3 ]], [[ 4i32; 5; 6 ]])
00:13:14 verbose #14168 > > ||> zip
00:13:14 verbose #14169 > > |> _assert_eq [[ 1, 4; 2, 5; 3, 6 ]]
00:13:14 verbose #14170 > 00:13:13   debug #795 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2092e6581b1b53dae5464546f30538c71f315e378806230ffed6e6ce63a07381/main.spi
00:13:14 verbose #14171 > >
00:13:14 verbose #14172 > > ╭─[ 444.83ms - stdout ]────────────────────────────────────────────────────────╮
00:13:14 verbose #14173 > > │ assert_eq / actual: UH0_1 (1, 4, UH0_1 (2, 5, UH0_1 (3, 6, UH0_0))) /        │
00:13:14 verbose #14174 > > │ expected: UH0_1 (1, 4, UH0_1 (2, 5, UH0_1 (3, 6, UH0_0)))                    │
00:13:14 verbose #14175 > > │                                                                              │
00:13:14 verbose #14176 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:14 verbose #14177 > >
00:13:14 verbose #14178 > > ── markdown ────────────────────────────────────────────────────────────────────
00:13:14 verbose #14179 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:13:14 verbose #14180 > > │ ### indexed                                                                  │
00:13:14 verbose #14181 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:14 verbose #14182 > >
00:13:14 verbose #14183 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:14 verbose #14184 > > inl indexed list =
00:13:14 verbose #14185 > >     (([[]], 0), list)
00:13:14 verbose #14186 > >     ||> listm.fold fun (acc, i) x =>
00:13:14 verbose #14187 > >         (i, x) :: acc, i + 1
00:13:14 verbose #14188 > >     |> fst
00:13:14 verbose #14189 > >     |> listm.rev
00:13:15 verbose #14190 > 00:13:14   debug #796 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7790cdd4e704a1546e4155eaa513eb2684859039b9eca39bc7a542285c21f6de/main.spi
00:13:15 verbose #14191 > >
00:13:15 verbose #14192 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:15 verbose #14193 > > //// test
00:13:15 verbose #14194 > >
00:13:15 verbose #14195 > > listm.init 5i32 ((*) 2)
00:13:15 verbose #14196 > > |> indexed
00:13:15 verbose #14197 > > |> _assert_eq [[ 0i32, 0; 1, 2; 2, 4; 3, 6; 4, 8 ]]
00:13:15 verbose #14198 > 00:13:14   debug #797 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/48b8239b3a9a61573ff10c54c56cae3352a51b0dd7ae36fb43851fec470b97f4/main.spi
00:13:15 verbose #14199 > >
00:13:15 verbose #14200 > > ╭─[ 521.04ms - stdout ]────────────────────────────────────────────────────────╮
00:13:15 verbose #14201 > > │ assert_eq / actual: UH0_1 (0, 0, UH0_1 (1, 2, UH0_1 (2, 4, UH0_1 (3, 6,      │
00:13:15 verbose #14202 > > │ UH0_1 (4, 8, UH0_0))))) / expected: UH0_1 (0, 0, UH0_1 (1, 2, UH0_1 (2, 4,   │
00:13:15 verbose #14203 > > │ UH0_1 (3, 6, UH0_1 (4, 8, UH0_0)))))                                         │
00:13:15 verbose #14204 > > │                                                                              │
00:13:15 verbose #14205 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:15 verbose #14206 > >
00:13:15 verbose #14207 > > ── markdown ────────────────────────────────────────────────────────────────────
00:13:15 verbose #14208 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:13:15 verbose #14209 > > │ ### group_by                                                                 │
00:13:15 verbose #14210 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:15 verbose #14211 > >
00:13:15 verbose #14212 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:15 verbose #14213 > > inl group_by fn list =
00:13:15 verbose #14214 > >     (list, [[]])
00:13:15 verbose #14215 > >     ||> listm.foldBack fun x acc =>
00:13:15 verbose #14216 > >         inl xk = fn x
00:13:15 verbose #14217 > >         inl found, new_acc =
00:13:15 verbose #14218 > >             ((false, [[]]), acc)
00:13:15 verbose #14219 > >             ||> listm.fold fun (found, acc') (k, xs) =>
00:13:15 verbose #14220 > >                 if k = xk
00:13:15 verbose #14221 > >                 then true, (k, x :: xs) :: acc'
00:13:15 verbose #14222 > >                 else found, (k, xs) :: acc'
00:13:15 verbose #14223 > >         if found
00:13:15 verbose #14224 > >         then new_acc
00:13:15 verbose #14225 > >         else (xk, [[ x ]]) :: new_acc
00:13:15 verbose #14226 > 00:13:15   debug #798 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/195e6ad65fcb0882a9afd68cf1e99a00f941af283e8ec6d9b56f501a381b5d13/main.spi
00:13:16 verbose #14227 > >
00:13:16 verbose #14228 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:16 verbose #14229 > > //// test
00:13:16 verbose #14230 > >
00:13:16 verbose #14231 > > listm.init 10i32 id
00:13:16 verbose #14232 > > |> group_by (fun x => x % 2 = 0)
00:13:16 verbose #14233 > > |> _assert_eq [[ true, [[ 0; 2; 4; 6; 8 ]]; false, [[ 1; 3; 5; 7; 9 ]] ]]
00:13:16 verbose #14234 > 00:13:15   debug #799 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/92a891871c62ff507482306f406c9ffc02859257b9f695f5f880f829e2aa625c/main.spi
00:13:16 verbose #14235 > >
00:13:16 verbose #14236 > > ╭─[ 705.55ms - stdout ]────────────────────────────────────────────────────────╮
00:13:16 verbose #14237 > > │ assert_eq / actual: UH1_1                                                    │
00:13:16 verbose #14238 > > │   (true, UH0_1 (0, UH0_1 (2, UH0_1 (4, UH0_1 (6, UH0_1 (8, UH0_0))))),       │
00:13:16 verbose #14239 > > │    UH1_1                                                                     │
00:13:16 verbose #14240 > > │      (false, UH0_1 (1, UH0_1 (3, UH0_1 (5, UH0_1 (7, UH0_1 (9, UH0_0))))),   │
00:13:16 verbose #14241 > > │ UH1_0)) / expected: UH1_1                                                    │
00:13:16 verbose #14242 > > │   (true, UH0_1 (0, UH0_1 (2, UH0_1 (4, UH0_1 (6, UH0_1 (8, UH0_0))))),       │
00:13:16 verbose #14243 > > │    UH1_1                                                                     │
00:13:16 verbose #14244 > > │      (false, UH0_1 (1, UH0_1 (3, UH0_1 (5, UH0_1 (7, UH0_1 (9, UH0_0))))),   │
00:13:16 verbose #14245 > > │ UH1_0))                                                                      │
00:13:16 verbose #14246 > > │                                                                              │
00:13:16 verbose #14247 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:16 verbose #14248 > >
00:13:16 verbose #14249 > > ── markdown ────────────────────────────────────────────────────────────────────
00:13:16 verbose #14250 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:13:16 verbose #14251 > > │ ### forall'                                                                  │
00:13:16 verbose #14252 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:16 verbose #14253 > >
00:13:16 verbose #14254 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:16 verbose #14255 > > inl forall' fn (head :: tail) =
00:13:16 verbose #14256 > >     (true, tail)
00:13:16 verbose #14257 > >     ||> listm.fold fun acc x =>
00:13:16 verbose #14258 > >         acc && x = head
00:13:17 verbose #14259 > 00:13:16   debug #800 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4b9d2d1ff5bfcf87f01a2aa0cc43982fe88fd6c85f7f968c30b142c45aa2fe98/main.spi
00:13:17 verbose #14260 > >
00:13:17 verbose #14261 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:17 verbose #14262 > > //// test
00:13:17 verbose #14263 > >
00:13:17 verbose #14264 > > [[ 1i32; 1; 1; 1; 1 ]]
00:13:17 verbose #14265 > > |> forall' ((=) 1i32)
00:13:17 verbose #14266 > > |> _assert_eq true
00:13:17 verbose #14267 > 00:13:16   debug #801 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1e274c07f1e0d30263eae35dd53ecdf071733f2fd87bc4bb66ca415ff91bb91e/main.spi
00:13:17 verbose #14268 > >
00:13:17 verbose #14269 > > ╭─[ 434.00ms - stdout ]────────────────────────────────────────────────────────╮
00:13:17 verbose #14270 > > │ assert_eq / actual: true / expected: true                                    │
00:13:17 verbose #14271 > > │                                                                              │
00:13:17 verbose #14272 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:17 verbose #14273 > >
00:13:17 verbose #14274 > > ── markdown ────────────────────────────────────────────────────────────────────
00:13:17 verbose #14275 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:13:17 verbose #14276 > > │ ### last                                                                     │
00:13:17 verbose #14277 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:17 verbose #14278 > >
00:13:17 verbose #14279 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:17 verbose #14280 > > inl last list =
00:13:17 verbose #14281 > >     list
00:13:17 verbose #14282 > >     |> listm.rev
00:13:17 verbose #14283 > >     |> item 0i32
00:13:18 verbose #14284 > 00:13:17   debug #802 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b818ebef9e709fa2747c8affd06d9e430875f66132f7e3656a1942ee4293cc8f/main.spi
00:13:18 verbose #14285 > >
00:13:18 verbose #14286 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:18 verbose #14287 > > //// test
00:13:18 verbose #14288 > >
00:13:18 verbose #14289 > > listm.init 10i32 id
00:13:18 verbose #14290 > > |> last
00:13:18 verbose #14291 > > |> _assert_eq 9
00:13:18 verbose #14292 > 00:13:17   debug #803 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ba6754a77758facec97723b3d569d9109cb6015ecd9d9efec438e2a95c6ec886/main.spi
00:13:18 verbose #14293 > >
00:13:18 verbose #14294 > > ╭─[ 362.82ms - stdout ]────────────────────────────────────────────────────────╮
00:13:18 verbose #14295 > > │ assert_eq / actual: 9 / expected: 9                                          │
00:13:18 verbose #14296 > > │                                                                              │
00:13:18 verbose #14297 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:18 verbose #14298 > >
00:13:18 verbose #14299 > > ── markdown ────────────────────────────────────────────────────────────────────
00:13:18 verbose #14300 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:13:18 verbose #14301 > > │ ### try_pick                                                                 │
00:13:18 verbose #14302 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:18 verbose #14303 > >
00:13:18 verbose #14304 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:18 verbose #14305 > > inl try_pick fn list =
00:13:18 verbose #14306 > >     inl rec body fn = function
00:13:18 verbose #14307 > >         | [[]] => None
00:13:18 verbose #14308 > >         | x :: xs =>
00:13:18 verbose #14309 > >             match fn x with
00:13:18 verbose #14310 > >             | Some y => Some y
00:13:18 verbose #14311 > >             | None => loop xs
00:13:18 verbose #14312 > >     and inl loop list =
00:13:18 verbose #14313 > >         if var_is list |> not
00:13:18 verbose #14314 > >         then body fn list
00:13:18 verbose #14315 > >         else
00:13:18 verbose #14316 > >             inl fn = join fn
00:13:18 verbose #14317 > >             inl list = dyn list
00:13:18 verbose #14318 > >             join body fn list
00:13:18 verbose #14319 > >     loop list
00:13:18 verbose #14320 > 00:13:17   debug #804 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/44699bcd3e14dfe2949bedb41b2099f064971d5ef69c22fc0470e7880cde34fb/main.spi
00:13:18 verbose #14321 > >
00:13:18 verbose #14322 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:18 verbose #14323 > > //// test
00:13:18 verbose #14324 > >
00:13:18 verbose #14325 > > listm.init 10i32 id
00:13:18 verbose #14326 > > |> try_pick (fun x => if x = 5i32 then Some x else None)
00:13:18 verbose #14327 > > |> _assert_eq (Some 5i32)
00:13:19 verbose #14328 > 00:13:18   debug #805 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9e412b3deeacf64930140305b47ade398b853cf7bbec13c5a887858e63195a59/main.spi
00:13:19 verbose #14329 > >
00:13:19 verbose #14330 > > ╭─[ 494.29ms - stdout ]────────────────────────────────────────────────────────╮
00:13:19 verbose #14331 > > │ assert_eq / actual: US0_0 5 / expected: US0_0 5                              │
00:13:19 verbose #14332 > > │                                                                              │
00:13:19 verbose #14333 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:19 verbose #14334 > >
00:13:19 verbose #14335 > > ── markdown ────────────────────────────────────────────────────────────────────
00:13:19 verbose #14336 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:13:19 verbose #14337 > > │ ### exists'                                                                  │
00:13:19 verbose #14338 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:19 verbose #14339 > >
00:13:19 verbose #14340 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:19 verbose #14341 > > inl exists' f x =
00:13:19 verbose #14342 > >     inl length_x : i64 = x |> listm.length
00:13:19 verbose #14343 > >     let rec loop i =
00:13:19 verbose #14344 > >         if i >= length_x
00:13:19 verbose #14345 > >         then false
00:13:19 verbose #14346 > >         elif x |> item i |> f
00:13:19 verbose #14347 > >         then true
00:13:19 verbose #14348 > >         else loop (i + 1)
00:13:19 verbose #14349 > >     loop 0
00:13:19 verbose #14350 > 00:13:18   debug #806 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ac298a668672d93f64eb8e9ffca419fec4833723f905c1644e1737c9dce3573d/main.spi
00:13:19 verbose #14351 > >
00:13:19 verbose #14352 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:19 verbose #14353 > > //// test
00:13:19 verbose #14354 > >
00:13:19 verbose #14355 > > [[ 'a'; 'b'; 'c' ]]
00:13:19 verbose #14356 > > |> exists' fun x => x = 'b'
00:13:19 verbose #14357 > > |> _assert_eq true
00:13:19 verbose #14358 > >
00:13:19 verbose #14359 > > [[ 'a'; 'b' ]]
00:13:19 verbose #14360 > > |> exists' fun x => x = 'c'
00:13:19 verbose #14361 > > |> _assert_eq false
00:13:19 verbose #14362 > >
00:13:19 verbose #14363 > > [[]]
00:13:19 verbose #14364 > > |> exists' fun x => x = 'a'
00:13:19 verbose #14365 > > |> _assert_eq false
00:13:20 verbose #14366 > 00:13:19   debug #807 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9c5445379b3e3455f365331f6d0ba17fb6e14aad833a707aa55760256d6653dd/main.spi
00:13:20 verbose #14367 > >
00:13:20 verbose #14368 > > ╭─[ 485.80ms - stdout ]────────────────────────────────────────────────────────╮
00:13:20 verbose #14369 > > │ assert_eq / actual: true / expected: true                                    │
00:13:20 verbose #14370 > > │ assert_eq / actual: false / expected: false                                  │
00:13:20 verbose #14371 > > │ assert_eq / actual: false / expected: false                                  │
00:13:20 verbose #14372 > > │                                                                              │
00:13:20 verbose #14373 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:20 verbose #14374 > >
00:13:20 verbose #14375 > > ── markdown ────────────────────────────────────────────────────────────────────
00:13:20 verbose #14376 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:13:20 verbose #14377 > > │ ## fsharp                                                                    │
00:13:20 verbose #14378 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:20 verbose #14379 > >
00:13:20 verbose #14380 > > ── markdown ────────────────────────────────────────────────────────────────────
00:13:20 verbose #14381 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:13:20 verbose #14382 > > │ ### list'                                                                    │
00:13:20 verbose #14383 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:20 verbose #14384 > >
00:13:20 verbose #14385 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:20 verbose #14386 > > nominal list' t = $"backend_switch `({ Fsharp : $'`t list'; Python :
00:13:20 verbose #14387 > > $'List[[`t]]' })"
00:13:20 verbose #14388 > 00:13:19   debug #808 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/cc41ed68f166c8007ab7e930b199a9f0376a0d8b7220eef3fadee76cf688923b/main.spi
00:13:20 verbose #14389 > >
00:13:20 verbose #14390 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:20 verbose #14391 > > inl empty' forall t. () : list' t =
00:13:20 verbose #14392 > >     $'[[]]'
00:13:21 verbose #14393 > 00:13:20   debug #809 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4228352ff945d47ad00895cc766c80681c03fafb00fbff735a6baf3db88b291c/main.spi
00:13:21 verbose #14394 > >
00:13:21 verbose #14395 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:21 verbose #14396 > > inl cons' forall t. (head : t) (tail : list' t) : list' t =
00:13:21 verbose #14397 > >     backend_switch {
00:13:21 verbose #14398 > >         Fsharp = fun () => $'!head :: !tail ' : list' t
00:13:21 verbose #14399 > >         Python = fun () =>
00:13:21 verbose #14400 > >             $'!tail.insert(0, !head)'
00:13:21 verbose #14401 > >             $'!tail ' : list' t
00:13:21 verbose #14402 > >     }
00:13:21 verbose #14403 > 00:13:20   debug #810 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/51124402b26b82a57afc07366f5a9c8c41df375cb4713a1e59655bd6965bd02e/main.spi
00:13:21 verbose #14404 > >
00:13:21 verbose #14405 > > ── markdown ────────────────────────────────────────────────────────────────────
00:13:21 verbose #14406 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:13:21 verbose #14407 > > │ ### box                                                                      │
00:13:21 verbose #14408 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:21 verbose #14409 > >
00:13:21 verbose #14410 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:21 verbose #14411 > > inl box forall t. (list : list t) : list' t =
00:13:21 verbose #14412 > >     (list, empty' ())
00:13:21 verbose #14413 > >     ||> listm.foldBack fun x acc =>
00:13:21 verbose #14414 > >         acc |> cons' x
00:13:21 verbose #14415 > 00:13:20   debug #811 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/35ab1849b21ae783fc28309cce0eccbaac352daf4df53b1259fe24c6fb12b11b/main.spi
00:13:22 verbose #14416 > >
00:13:22 verbose #14417 > > ── markdown ────────────────────────────────────────────────────────────────────
00:13:22 verbose #14418 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:13:22 verbose #14419 > > │ ### fold'                                                                    │
00:13:22 verbose #14420 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:22 verbose #14421 > >
00:13:22 verbose #14422 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:22 verbose #14423 > > inl fold' forall t u. (fn : t -> u) (init : list u) (list : list' t) : list u =
00:13:22 verbose #14424 > >     backend_switch {
00:13:22 verbose #14425 > >         Fsharp = fun () =>
00:13:22 verbose #14426 > >             (init, list)
00:13:22 verbose #14427 > >             ||> $'List.fold' join fun acc x => Cons (fn x, acc)
00:13:22 verbose #14428 > >             : list u
00:13:22 verbose #14429 > >         Python = fun () =>
00:13:22 verbose #14430 > >             $'x = !init '
00:13:22 verbose #14431 > >             $'for x in !list: x = !fn(x)'
00:13:22 verbose #14432 > >             $'x' : list u
00:13:22 verbose #14433 > >     }
00:13:22 verbose #14434 > 00:13:21   debug #812 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/41eed85454897c606d69ab05d696a6e8eaa1e5d47028a65daa36c12b72a4c57b/main.spi
00:13:22 verbose #14435 > >
00:13:22 verbose #14436 > > ── markdown ────────────────────────────────────────────────────────────────────
00:13:22 verbose #14437 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:13:22 verbose #14438 > > │ ### fold_back'                                                               │
00:13:22 verbose #14439 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:22 verbose #14440 > >
00:13:22 verbose #14441 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:22 verbose #14442 > > inl fold_back' forall t u. (fn : t -> u) (list : list' t) (init : list u) : list
00:13:22 verbose #14443 > > u =
00:13:22 verbose #14444 > >     backend_switch {
00:13:22 verbose #14445 > >         Fsharp = fun () =>
00:13:22 verbose #14446 > >             (list, init)
00:13:22 verbose #14447 > >             ||> $'List.foldBack' join fun x acc => Cons (fn x, acc)
00:13:22 verbose #14448 > >             : list u
00:13:22 verbose #14449 > >         Python = fun () =>
00:13:22 verbose #14450 > >             $'x = !init '
00:13:22 verbose #14451 > >             $'for x in reversed(!list): x = !fn(x)'
00:13:22 verbose #14452 > >             $'x' : list u
00:13:22 verbose #14453 > >     }
00:13:22 verbose #14454 > 00:13:21   debug #813 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b5ba365603ae86a2e4752c6bec5c8755597c68e2e4492e12fe6e9650c66f4682/main.spi
00:13:22 verbose #14455 > >
00:13:22 verbose #14456 > > ── markdown ────────────────────────────────────────────────────────────────────
00:13:22 verbose #14457 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:13:22 verbose #14458 > > │ ### filter'                                                                  │
00:13:22 verbose #14459 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:22 verbose #14460 > >
00:13:22 verbose #14461 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:22 verbose #14462 > > inl filter' forall t. (fn : t -> bool) (list : list' t) : list' t =
00:13:22 verbose #14463 > >     backend_switch {
00:13:22 verbose #14464 > >         Fsharp = fun () => list |> $'"List.filter !fn"' : list' t
00:13:22 verbose #14465 > >         Python = fun () => $'list(filter(!fn, !list))' : list' t
00:13:22 verbose #14466 > >     }
00:13:23 verbose #14467 > 00:13:22   debug #814 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/519d116cfb210de81a8d77b9265008d585244714099a9c4249297fd49bb72c3f/main.spi
00:13:23 verbose #14468 > >
00:13:23 verbose #14469 > > ── markdown ────────────────────────────────────────────────────────────────────
00:13:23 verbose #14470 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:13:23 verbose #14471 > > │ ### map                                                                      │
00:13:23 verbose #14472 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:23 verbose #14473 > >
00:13:23 verbose #14474 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:23 verbose #14475 > > inl map forall t u. (fn : t -> u) (list : list' t) : list' u =
00:13:23 verbose #14476 > >     backend_switch {
00:13:23 verbose #14477 > >         Fsharp = fun () => list |> $'List.map' fn : list' u
00:13:23 verbose #14478 > >         Python = fun () => $'list(map(!fn, !list))' : list' u
00:13:23 verbose #14479 > >     }
00:13:23 verbose #14480 > 00:13:22   debug #815 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/999b4a8a741111821ee91ab04f56cb357cf8c4974c9beaa0e450825e5a3cef55/main.spi
00:13:23 verbose #14481 > >
00:13:23 verbose #14482 > > ── markdown ────────────────────────────────────────────────────────────────────
00:13:23 verbose #14483 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:13:23 verbose #14484 > > │ ### unbox                                                                    │
00:13:23 verbose #14485 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:23 verbose #14486 > >
00:13:23 verbose #14487 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:23 verbose #14488 > > inl unbox forall t. (list : list' t) : list t =
00:13:23 verbose #14489 > >     (list, Nil)
00:13:23 verbose #14490 > >     ||> fold_back' id
00:13:23 verbose #14491 > 00:13:23   debug #816 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/259beec62d897679f5f2d7bfbc413aeb2ba147c53575a2ce4b572e2f3f8cb111/main.spi
00:13:24 verbose #14492 > >
00:13:24 verbose #14493 > > ── markdown ────────────────────────────────────────────────────────────────────
00:13:24 verbose #14494 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:13:24 verbose #14495 > > │ ### distinct'                                                                │
00:13:24 verbose #14496 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:24 verbose #14497 > >
00:13:24 verbose #14498 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:24 verbose #14499 > > inl distinct' forall t. (list : list' t) : list' t =
00:13:24 verbose #14500 > >     backend_switch {
00:13:24 verbose #14501 > >         Fsharp = fun () => list |> $'List.distinct' : list' t
00:13:24 verbose #14502 > >         Python = fun () => $'list(set(!list))' : list' t
00:13:24 verbose #14503 > >     }
00:13:24 verbose #14504 > 00:13:23   debug #817 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5ea3172eca6510064925eb2bb736f43799fbd09049af3faedddd2d6b654a73fd/main.spi
00:13:24 verbose #14505 > >
00:13:24 verbose #14506 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:24 verbose #14507 > > //// test
00:13:24 verbose #14508 > >
00:13:24 verbose #14509 > > [[ "1"; "2"; "2"; "3" ]]
00:13:24 verbose #14510 > > |> box
00:13:24 verbose #14511 > > |> distinct'
00:13:24 verbose #14512 > > |> unbox
00:13:24 verbose #14513 > > |> _assert_eq [[ "1"; "2"; "3" ]]
00:13:24 verbose #14514 > 00:13:23   debug #818 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/08b005aedc9eba44762be4f5a7e9c4527a2d911f59a9715ababb2e08c0636a9d/main.spi
00:13:25 verbose #14515 > >
00:13:25 verbose #14516 > > ╭─[ 617.03ms - stdout ]────────────────────────────────────────────────────────╮
00:13:25 verbose #14517 > > │ assert_eq / actual: UH0_1 ("1", UH0_1 ("2", UH0_1 ("3", UH0_0))) / expected: │
00:13:25 verbose #14518 > > │ UH0_1 ("1", UH0_1 ("2", UH0_1 ("3", UH0_0)))                                 │
00:13:25 verbose #14519 > > │                                                                              │
00:13:25 verbose #14520 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:25 verbose #14521 > >
00:13:25 verbose #14522 > > ── markdown ────────────────────────────────────────────────────────────────────
00:13:25 verbose #14523 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:13:25 verbose #14524 > > │ ### to_array'                                                                │
00:13:25 verbose #14525 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:25 verbose #14526 > >
00:13:25 verbose #14527 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:25 verbose #14528 > > inl to_array' forall t. (items : list' t) : array_base t =
00:13:25 verbose #14529 > >     backend_switch {
00:13:25 verbose #14530 > >         Fsharp = fun () => items |> $'List.toArray' : array_base t
00:13:25 verbose #14531 > >         Python = fun () => $'cp.array(!items)' : array_base t
00:13:25 verbose #14532 > >     }
00:13:25 verbose #14533 > 00:13:24   debug #819 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9fa875c208245b60c0430c5074806f3035b1b924967cc598429aaf4ecbee6017/main.spi
00:13:25 verbose #14534 > 00:00:32 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 32996 }
00:13:25 verbose #14535 > 00:00:32   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/spiral/listm'.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/listm'.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:13:28 verbose #14536 > 00:00:35 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/listm'.dib.ipynb to html
00:13:28 verbose #14537 > 00:00:35 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:13:28 verbose #14538 > 00:00:35 verbose #7 !   validate(nb)
00:13:30 verbose #14539 > 00:00:37 verbose #8 ! [NbConvertApp] Writing 380323 bytes to c:\home\git\polyglot\lib\spiral\listm'.dib.html
00:13:30 verbose #14540 > 00:00:37 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 643 }
00:13:30 verbose #14541 > 00:00:37   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 643 }
00:13:30 verbose #14542 > 00:00:37   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/listm''.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/listm''.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:13:31 verbose #14543 > 00:00:38 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:13:31 verbose #14544 > 00:00:38   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:13:32 verbose #14545 > 00:00:39   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 33698 }
00:13:32   debug #14546 runtime.execute_with_options_async / { exit_code = 0; output_length = 37869 }
00:13:32   debug #19 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path listm'.dib --retries 3
00:13:32   debug #14547 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path reflection.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:13:32 verbose #14548 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "reflection.dib", "--retries", "3"])) }
00:13:32 verbose #14549 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/spiral/reflection.dib", "--output-path", "c:/home/git/polyglot/lib/spiral/reflection.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/reflection.dib" --output-path "c:/home/git/polyglot/lib/spiral/reflection.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:13:34 verbose #14550 > >
00:13:34 verbose #14551 > > ── markdown ────────────────────────────────────────────────────────────────────
00:13:34 verbose #14552 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:13:34 verbose #14553 > > │ # reflection                                                                 │
00:13:34 verbose #14554 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:39 verbose #14555 > >
00:13:39 verbose #14556 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:39 verbose #14557 > > //// test
00:13:39 verbose #14558 > >
00:13:39 verbose #14559 > > open testing
00:13:40 verbose #14560 > 00:13:39   debug #820 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fa7845de436c12d0ca65282fe0cd65832468ca943e72feba50e6b1bb441e251a/main.spi
00:13:40 verbose #14561 > >
00:13:40 verbose #14562 > > ── markdown ────────────────────────────────────────────────────────────────────
00:13:40 verbose #14563 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:13:40 verbose #14564 > > │ ## reflection                                                                │
00:13:40 verbose #14565 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:40 verbose #14566 > >
00:13:40 verbose #14567 > > ── markdown ────────────────────────────────────────────────────────────────────
00:13:40 verbose #14568 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:13:40 verbose #14569 > > │ ### get_union_fields                                                         │
00:13:40 verbose #14570 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:40 verbose #14571 > >
00:13:40 verbose #14572 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:40 verbose #14573 > > inl get_union_fields forall union_type. () : list (string * union_type) =
00:13:40 verbose #14574 > >     real
00:13:40 verbose #14575 > >         real_core.union_to_record
00:13:40 verbose #14576 > >             `union_type
00:13:40 verbose #14577 > >             forall union_record_type. =>
00:13:40 verbose #14578 > >                 real_core.record_type_fold
00:13:40 verbose #14579 > >                     fun acc key =>
00:13:40 verbose #14580 > >                         forall value. =>
00:13:40 verbose #14581 > >                             inl item = real_core.nominal_create `union_type
00:13:40 verbose #14582 > > (key, ())
00:13:40 verbose #14583 > >                             inl key' = real_sm'.symbol_to_string `(`key)
00:13:40 verbose #14584 > >                             (::) `(string * union_type) (key', item) acc
00:13:40 verbose #14585 > >                     (Nil `(string * union_type))
00:13:40 verbose #14586 > >                     `union_record_type
00:13:40 verbose #14587 > 00:13:40   debug #821 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/474e08872511d8605cecc2e70a6243211a296a51fc1796f350e312a4756c3e8d/main.spi
00:13:41 verbose #14588 > >
00:13:41 verbose #14589 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:41 verbose #14590 > > //// test
00:13:41 verbose #14591 > > ///! fsharp
00:13:41 verbose #14592 > > ///! rust
00:13:41 verbose #14593 > > ///! typescript
00:13:41 verbose #14594 > > ///! python
00:13:41 verbose #14595 > >
00:13:41 verbose #14596 > > get_union_fields ()
00:13:41 verbose #14597 > > |> listm'.box
00:13:41 verbose #14598 > > |> listm'.to_array'
00:13:41 verbose #14599 > > |> a
00:13:41 verbose #14600 > > |> am'.sort_by snd
00:13:41 verbose #14601 > > |> fun (a x : _ int _) => x
00:13:41 verbose #14602 > > |> _assert_eq' ;[[ "Native", Native; "Wasm", Wasm; "Contract", Contract ]]
00:13:41 verbose #14603 > 00:13:40   debug #822 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d42090b14173d4e442559e63aa331b7dd7157da039e8c170aa077a82766775c5/main.spi
00:13:46 verbose #14604 > >
00:13:46 verbose #14605 > > ╭─[ 5.31s - return value ]─────────────────────────────────────────────────────╮
00:13:46 verbose #14606 > > │ .rs output:                                                                  │
00:13:46 verbose #14607 > > │ assert_eq' / actual: Array(MutCell([("Native", US0_0), ("Wasm", US0_1),      │
00:13:46 verbose #14608 > > │ ("Contract", US0_2)])) / expected: Array(MutCell([("Native", US0_0),         │
00:13:46 verbose #14609 > > │ ("Wasm", US0_1), ("Contract", US0_2)]))                                      │
00:13:46 verbose #14610 > > │                                                                              │
00:13:46 verbose #14611 > > │ .ts output:                                                                  │
00:13:46 verbose #14612 > > │ assert_eq' / actual: Native,US0_0,Wasm,US0_1,Contract,US0_2 / expected:      │
00:13:46 verbose #14613 > > │ Native,US0_0,Wasm,US0_1,Contract,US0_2                                       │
00:13:46 verbose #14614 > > │                                                                              │
00:13:46 verbose #14615 > > │ .py output:                                                                  │
00:13:46 verbose #14616 > > │ assert_eq' / actual: [('Native', US0_0), ('Wasm', US0_1), ('Contract',       │
00:13:46 verbose #14617 > > │ US0_2)] / expected: [('Native', US0_0), ('Wasm', US0_1), ('Contract',        │
00:13:46 verbose #14618 > > │ US0_2)]                                                                      │
00:13:46 verbose #14619 > > │                                                                              │
00:13:46 verbose #14620 > > │                                                                              │
00:13:46 verbose #14621 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:46 verbose #14622 > >
00:13:46 verbose #14623 > > ╭─[ 5.32s - stdout ]───────────────────────────────────────────────────────────╮
00:13:46 verbose #14624 > > │ .fsx output:                                                                 │
00:13:46 verbose #14625 > > │ assert_eq' / actual: [|struct ("Native", US0_0); struct ("Wasm", US0_1);     │
00:13:46 verbose #14626 > > │ struct ("Contract", US0_2)|] / expected: [|struct ("Native", US0_0); struct  │
00:13:46 verbose #14627 > > │ ("Wasm", US0_1); struct ("Contract", US0_2)|]                                │
00:13:46 verbose #14628 > > │                                                                              │
00:13:46 verbose #14629 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:46 verbose #14630 > >
00:13:46 verbose #14631 > > ── markdown ────────────────────────────────────────────────────────────────────
00:13:46 verbose #14632 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:13:46 verbose #14633 > > │ ### get_union_fields_untag                                                   │
00:13:46 verbose #14634 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:46 verbose #14635 > >
00:13:46 verbose #14636 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:46 verbose #14637 > > inl get_union_fields_untag forall union_type. () : list (string * union_type) =
00:13:46 verbose #14638 > >     real
00:13:46 verbose #14639 > >         real_core.union_to_record
00:13:46 verbose #14640 > >             `union_type
00:13:46 verbose #14641 > >             forall union_record_type. =>
00:13:46 verbose #14642 > >                 inl result =
00:13:46 verbose #14643 > >                     real_core.record_type_fold_back
00:13:46 verbose #14644 > >                         fun _key =>
00:13:46 verbose #14645 > >                             forall value. (acc, (i : i32)) =>
00:13:46 verbose #14646 > >                                 inl key, item : (string * union_type) =
00:13:46 verbose #14647 > >                                     real_core.union_untag `union_type i
00:13:46 verbose #14648 > >                                         (fun key => forall value. =>
00:13:46 verbose #14649 > >                                             inl key' = real_sm'.symbol_to_string
00:13:46 verbose #14650 > > `(`key)
00:13:46 verbose #14651 > >                                             key', real_core.nominal_create
00:13:46 verbose #14652 > > `union_type (key, ())
00:13:46 verbose #14653 > >                                         )
00:13:46 verbose #14654 > >                                         (fun _ => failwith `(string *
00:13:46 verbose #14655 > > union_type) "reflection.get_union_fields_untag / invalid tag")
00:13:46 verbose #14656 > >                                 (::) `(string * union_type) (key, item) acc, (+)
00:13:46 verbose #14657 > > `i32 i 1
00:13:46 verbose #14658 > >                         `union_record_type
00:13:46 verbose #14659 > >                         (Nil `(string * union_type), 0i32)
00:13:46 verbose #14660 > >                 inl result = fst `(list (string * union_type)) `i32 result
00:13:46 verbose #14661 > >                 listm.rev `(string * union_type) result
00:13:46 verbose #14662 > 00:13:45   debug #823 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/30fc8ba0cbe8a8d0c80c1b9253d11db0a622ab536855196661a7228160bafa9c/main.spi
00:13:46 verbose #14663 > >
00:13:46 verbose #14664 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:46 verbose #14665 > > //// test
00:13:46 verbose #14666 > > ///! fsharp
00:13:46 verbose #14667 > > ///! rust
00:13:46 verbose #14668 > > ///! typescript
00:13:46 verbose #14669 > > ///! python
00:13:46 verbose #14670 > >
00:13:46 verbose #14671 > > get_union_fields_untag ()
00:13:46 verbose #14672 > > |> listm'.box
00:13:46 verbose #14673 > > |> listm'.to_array'
00:13:46 verbose #14674 > > |> _assert_eq' ;[[ "Native", Native; "Wasm", Wasm; "Contract", Contract ]]
00:13:47 verbose #14675 > 00:13:46   debug #824 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a1f0be2c27f87e69454bb0543b3734a2e01daab0d5642138f66fa69c5060f1db/main.spi
00:13:50 verbose #14676 > >
00:13:50 verbose #14677 > > ╭─[ 3.87s - return value ]─────────────────────────────────────────────────────╮
00:13:50 verbose #14678 > > │ .rs output:                                                                  │
00:13:50 verbose #14679 > > │ assert_eq' / actual: Array(MutCell([("Native", US0_0), ("Wasm", US0_1),      │
00:13:50 verbose #14680 > > │ ("Contract", US0_2)])) / expected: Array(MutCell([("Native", US0_0),         │
00:13:50 verbose #14681 > > │ ("Wasm", US0_1), ("Contract", US0_2)]))                                      │
00:13:50 verbose #14682 > > │                                                                              │
00:13:50 verbose #14683 > > │ .ts output:                                                                  │
00:13:50 verbose #14684 > > │ assert_eq' / actual: Native,US0_0,Wasm,US0_1,Contract,US0_2 / expected:      │
00:13:50 verbose #14685 > > │ Native,US0_0,Wasm,US0_1,Contract,US0_2                                       │
00:13:50 verbose #14686 > > │                                                                              │
00:13:50 verbose #14687 > > │ .py output:                                                                  │
00:13:50 verbose #14688 > > │ assert_eq' / actual: [('Native', US0_0), ('Wasm', US0_1), ('Contract',       │
00:13:50 verbose #14689 > > │ US0_2)] / expected: [('Native', US0_0), ('Wasm', US0_1), ('Contract',        │
00:13:50 verbose #14690 > > │ US0_2)]                                                                      │
00:13:50 verbose #14691 > > │                                                                              │
00:13:50 verbose #14692 > > │                                                                              │
00:13:50 verbose #14693 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:50 verbose #14694 > >
00:13:50 verbose #14695 > > ╭─[ 3.90s - stdout ]───────────────────────────────────────────────────────────╮
00:13:50 verbose #14696 > > │ .fsx output:                                                                 │
00:13:50 verbose #14697 > > │ assert_eq' / actual: [|struct ("Native", US0_0); struct ("Wasm", US0_1);     │
00:13:50 verbose #14698 > > │ struct ("Contract", US0_2)|] / expected: [|struct ("Native", US0_0); struct  │
00:13:50 verbose #14699 > > │ ("Wasm", US0_1); struct ("Contract", US0_2)|]                                │
00:13:50 verbose #14700 > > │                                                                              │
00:13:50 verbose #14701 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:50 verbose #14702 > >
00:13:50 verbose #14703 > > ── markdown ────────────────────────────────────────────────────────────────────
00:13:50 verbose #14704 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:13:50 verbose #14705 > > │ ### union_try_pick                                                           │
00:13:50 verbose #14706 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:50 verbose #14707 > >
00:13:50 verbose #14708 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:50 verbose #14709 > > inl union_try_pick forall t. (key : string) : option t =
00:13:50 verbose #14710 > >     real get_union_fields_untag `t ()
00:13:50 verbose #14711 > >     |> listm'.try_pick fun key', x =>
00:13:50 verbose #14712 > >         if key' = key
00:13:50 verbose #14713 > >         then Some x
00:13:50 verbose #14714 > >         else None
00:13:50 verbose #14715 > 00:13:50   debug #825 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2e82ef62ce3ab9cf967f507288ed9d841f685ec45e648463d9124fadcbc8f5ad/main.spi
00:13:51 verbose #14716 > >
00:13:51 verbose #14717 > > ── markdown ────────────────────────────────────────────────────────────────────
00:13:51 verbose #14718 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:13:51 verbose #14719 > > │ ### union_to_string                                                          │
00:13:51 verbose #14720 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:51 verbose #14721 > >
00:13:51 verbose #14722 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:51 verbose #14723 > > inl union_to_string forall t. (x : t) : string =
00:13:51 verbose #14724 > >     real get_union_fields_untag `t ()
00:13:51 verbose #14725 > >     |> listm'.try_pick fun key, x' =>
00:13:51 verbose #14726 > >         if x' = x
00:13:51 verbose #14727 > >         then Some key
00:13:51 verbose #14728 > >         else None
00:13:51 verbose #14729 > >     |> optionm.value
00:13:51 verbose #14730 > 00:13:50   debug #826 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/df2181e8dbb4027cbb9690aeb0d65ad3f0f3d4f8b5cd82cb9f2a0c41e46f061c/main.spi
00:13:51 verbose #14731 > >
00:13:51 verbose #14732 > > ── markdown ────────────────────────────────────────────────────────────────────
00:13:51 verbose #14733 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:13:51 verbose #14734 > > │ ### nameof                                                                   │
00:13:51 verbose #14735 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:51 verbose #14736 > >
00:13:51 verbose #14737 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:51 verbose #14738 > > inl nameof forall t. (x : t) : string =
00:13:51 verbose #14739 > >     real
00:13:51 verbose #14740 > >         inl result : string =
00:13:51 verbose #14741 > >             real_core.record_type_fold_back
00:13:51 verbose #14742 > >                 fun key =>
00:13:51 verbose #14743 > >                     forall value. _ =>
00:13:51 verbose #14744 > >                         real_sm'.symbol_to_string `(`key)
00:13:51 verbose #14745 > >                 `t
00:13:51 verbose #14746 > >                 ""
00:13:51 verbose #14747 > >         result
00:13:51 verbose #14748 > 00:13:50   debug #827 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/aec94b4fb543e75c5a4a87def4511a6a949cfc614954a2a194bc734e1e2d6b04/main.spi
00:13:51 verbose #14749 > >
00:13:51 verbose #14750 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:51 verbose #14751 > > //// test
00:13:51 verbose #14752 > >
00:13:51 verbose #14753 > > { test1 = ""; test2 = "" }
00:13:51 verbose #14754 > > |> nameof
00:13:51 verbose #14755 > > |> _assert_eq' "test1"
00:13:52 verbose #14756 > 00:13:51   debug #828 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/65e32eb20c6c46db9298fc0b13c086f64f9b9f54ef7834043b7bbde0b2277326/main.spi
00:13:52 verbose #14757 > >
00:13:52 verbose #14758 > > ╭─[ 561.95ms - stdout ]────────────────────────────────────────────────────────╮
00:13:52 verbose #14759 > > │ assert_eq' / actual: "test1" / expected: "test1"                             │
00:13:52 verbose #14760 > > │                                                                              │
00:13:52 verbose #14761 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:52 verbose #14762 > 00:00:20 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 10347 }
00:13:52 verbose #14763 > 00:00:20   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/spiral/reflection.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/reflection.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:13:55 verbose #14764 > 00:00:23 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/reflection.dib.ipynb to html
00:13:55 verbose #14765 > 00:00:23 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:13:55 verbose #14766 > 00:00:23 verbose #7 !   validate(nb)
00:13:57 verbose #14767 > 00:00:24 verbose #8 ! [NbConvertApp] Writing 294204 bytes to c:\home\git\polyglot\lib\spiral\reflection.dib.html
00:13:57 verbose #14768 > 00:00:25 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 651 }
00:13:57 verbose #14769 > 00:00:25   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 651 }
00:13:57 verbose #14770 > 00:00:25   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/reflection.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/reflection.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:13:58 verbose #14771 > 00:00:26 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:13:58 verbose #14772 > 00:00:26   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:13:59 verbose #14773 > 00:00:27   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 11057 }
00:13:59   debug #14774 runtime.execute_with_options_async / { exit_code = 0; output_length = 14116 }
00:13:59   debug #20 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path reflection.dib --retries 3
00:13:59   debug #14775 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path base.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:13:59 verbose #14776 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "base.dib", "--retries", "3"])) }
00:13:59 verbose #14777 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/spiral/base.dib", "--output-path", "c:/home/git/polyglot/lib/spiral/base.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/base.dib" --output-path "c:/home/git/polyglot/lib/spiral/base.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:14:01 verbose #14778 > >
00:14:01 verbose #14779 > > ── markdown ────────────────────────────────────────────────────────────────────
00:14:01 verbose #14780 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:14:01 verbose #14781 > > │ # base                                                                       │
00:14:01 verbose #14782 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:06 verbose #14783 > >
00:14:06 verbose #14784 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:14:06 verbose #14785 > > //// test
00:14:06 verbose #14786 > >
00:14:06 verbose #14787 > > open testing
00:14:06 verbose #14788 > 00:14:06   debug #829 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fa7845de436c12d0ca65282fe0cd65832468ca943e72feba50e6b1bb441e251a/main.spi
00:14:07 verbose #14789 > >
00:14:07 verbose #14790 > > ── markdown ────────────────────────────────────────────────────────────────────
00:14:07 verbose #14791 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:14:07 verbose #14792 > > │ ## execution                                                                 │
00:14:07 verbose #14793 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:07 verbose #14794 > >
00:14:07 verbose #14795 > > ── markdown ────────────────────────────────────────────────────────────────────
00:14:07 verbose #14796 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:14:07 verbose #14797 > > │ ### emit                                                                     │
00:14:07 verbose #14798 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:07 verbose #14799 > >
00:14:07 verbose #14800 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:14:07 verbose #14801 > > inl emit forall t. (x : t) : t =
00:14:07 verbose #14802 > >     $'!x '
00:14:08 verbose #14803 > 00:14:07   debug #830 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/648b92af66c7db6a77722a4a6300f8b9819861d85a6afe069d09153158c2e8fb/main.spi
00:14:08 verbose #14804 > >
00:14:08 verbose #14805 > > ── markdown ────────────────────────────────────────────────────────────────────
00:14:08 verbose #14806 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:14:08 verbose #14807 > > │ ### emit_unit                                                                │
00:14:08 verbose #14808 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:08 verbose #14809 > >
00:14:08 verbose #14810 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:14:08 verbose #14811 > > inl emit_unit forall t. (x : t) : () =
00:14:08 verbose #14812 > >     $'!x '
00:14:08 verbose #14813 > 00:14:07   debug #831 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a68981bb224e67662ae65b1efd646f57c712748e5adb5a7453c50f0cb03cb098/main.spi
00:14:08 verbose #14814 > >
00:14:08 verbose #14815 > > ── markdown ────────────────────────────────────────────────────────────────────
00:14:08 verbose #14816 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:14:08 verbose #14817 > > │ ### use                                                                      │
00:14:08 verbose #14818 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:08 verbose #14819 > >
00:14:08 verbose #14820 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:14:08 verbose #14821 > > inl use forall t. (x : t) : t =
00:14:08 verbose #14822 > >     $'use !x = !x ' : ()
00:14:08 verbose #14823 > >     $'!x '
00:14:08 verbose #14824 > 00:14:08   debug #832 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/255dc504edb81506a2836ae4ca98dc7ae9f1c46b0aa971409c339af5c43180db/main.spi
00:14:09 verbose #14825 > >
00:14:09 verbose #14826 > > ── markdown ────────────────────────────────────────────────────────────────────
00:14:09 verbose #14827 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:14:09 verbose #14828 > > │ ## target                                                                    │
00:14:09 verbose #14829 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:09 verbose #14830 > >
00:14:09 verbose #14831 > > ── markdown ────────────────────────────────────────────────────────────────────
00:14:09 verbose #14832 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:14:09 verbose #14833 > > │ ### backend_switch                                                           │
00:14:09 verbose #14834 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:09 verbose #14835 > >
00:14:09 verbose #14836 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:14:09 verbose #14837 > > inl backend_switch forall t. x : t =
00:14:09 verbose #14838 > >     real
00:14:09 verbose #14839 > >         inl backend key : t =
00:14:09 verbose #14840 > >             inl s = real_core.string_lit_to_symbol key
00:14:09 verbose #14841 > >             real_core.record_type_try_find `(`x) s
00:14:09 verbose #14842 > >                 (forall v'. => (x s) ())
00:14:09 verbose #14843 > >                 (fun () => $'' : t)
00:14:09 verbose #14844 > >         !!!!BackendSwitch (
00:14:09 verbose #14845 > >             ("Fsharp", backend "Fsharp"),
00:14:09 verbose #14846 > >             ("Python", backend "Python"),
00:14:09 verbose #14847 > >             ("Cuda", backend "Cuda")
00:14:09 verbose #14848 > >         )
00:14:09 verbose #14849 > 00:14:08   debug #833 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9054738f9d81744854b1b3685214364aa68b910cf4837f26208db48e06f2b5f1/main.spi
00:14:09 verbose #14850 > >
00:14:09 verbose #14851 > > ── markdown ────────────────────────────────────────────────────────────────────
00:14:09 verbose #14852 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:14:09 verbose #14853 > > │ ### target_runtime                                                           │
00:14:09 verbose #14854 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:09 verbose #14855 > >
00:14:09 verbose #14856 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:14:09 verbose #14857 > > union target_runtime =
00:14:09 verbose #14858 > >     | Native
00:14:09 verbose #14859 > >     | Wasm
00:14:09 verbose #14860 > >     | Contract
00:14:09 verbose #14861 > 00:14:08   debug #834 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6de5deb231ab8703150b71c20a5ffb753dc6ec6a6b755eff1bc556125ae92f88/main.spi
00:14:09 verbose #14862 > >
00:14:09 verbose #14863 > > ── markdown ────────────────────────────────────────────────────────────────────
00:14:09 verbose #14864 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:14:09 verbose #14865 > > │ ### target                                                                   │
00:14:09 verbose #14866 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:09 verbose #14867 > >
00:14:09 verbose #14868 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:14:09 verbose #14869 > > union target =
00:14:09 verbose #14870 > >     | Fsharp : target_runtime
00:14:09 verbose #14871 > >     | Cuda : target_runtime
00:14:09 verbose #14872 > >     | Rust : target_runtime
00:14:09 verbose #14873 > >     | TypeScript : target_runtime
00:14:09 verbose #14874 > >     | Python : target_runtime
00:14:09 verbose #14875 > 00:14:09   debug #835 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/212555e699979423ab21936100a02d5c099ee43a8d755a9b1207a996416acfd4/main.spi
00:14:10 verbose #14876 > >
00:14:10 verbose #14877 > > ── markdown ────────────────────────────────────────────────────────────────────
00:14:10 verbose #14878 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:14:10 verbose #14879 > > │ ### run_target                                                               │
00:14:10 verbose #14880 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:10 verbose #14881 > >
00:14:10 verbose #14882 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:14:10 verbose #14883 > > inl run_target forall t. (fn : target -> (() -> t)) : t =
00:14:10 verbose #14884 > >     backend_switch {
00:14:10 verbose #14885 > >         Fsharp = fun () =>
00:14:10 verbose #14886 > >             inl result = dyn true
00:14:10 verbose #14887 > >             $'let mutable _!result : `t option = None '
00:14:10 verbose #14888 > >             $'\n#if FABLE_COMPILER || WASM || CONTRACT'
00:14:10 verbose #14889 > >             $'\n#if FABLE_COMPILER_RUST && \!WASM && \!CONTRACT'
00:14:10 verbose #14890 > >             fn (Rust Native) () |> emit_unit
00:14:10 verbose #14891 > >             $'#endif\n#if FABLE_COMPILER_RUST && WASM'
00:14:10 verbose #14892 > >             fn (Rust Wasm) () |> emit_unit
00:14:10 verbose #14893 > >             $'#endif\n#if FABLE_COMPILER_RUST && CONTRACT'
00:14:10 verbose #14894 > >             fn (Rust Contract) () |> emit_unit
00:14:10 verbose #14895 > >             $'#endif\n#if FABLE_COMPILER_TYPESCRIPT'
00:14:10 verbose #14896 > >             fn (TypeScript Native) () |> emit_unit
00:14:10 verbose #14897 > >             $'#endif\n#if FABLE_COMPILER_PYTHON'
00:14:10 verbose #14898 > >             fn (Python Native) () |> emit_unit
00:14:10 verbose #14899 > >             $'#endif\n#else'
00:14:10 verbose #14900 > >             fn (Fsharp Native) () |> emit_unit
00:14:10 verbose #14901 > >             $'#endif'
00:14:10 verbose #14902 > >             $'|> fun x -> _!result <- Some x'
00:14:10 verbose #14903 > >             $'match _!result with Some x -> x | None -> failwith
00:14:10 verbose #14904 > > "base.run_target / _!result=None"' : t
00:14:10 verbose #14905 > >         Python = fun () =>
00:14:10 verbose #14906 > >             fn (Cuda Native) ()
00:14:10 verbose #14907 > >     }
00:14:10 verbose #14908 > 00:14:09   debug #836 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ec9d9a62af58dcd02418544d13f7a6635a4531a196d687ba51746386148db6ad/main.spi
00:14:10 verbose #14909 > >
00:14:10 verbose #14910 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:14:10 verbose #14911 > > //// test
00:14:10 verbose #14912 > > ///! fsharp
00:14:10 verbose #14913 > > ///! cuda
00:14:10 verbose #14914 > > ///! rust
00:14:10 verbose #14915 > > ///! typescript
00:14:10 verbose #14916 > > ///! python
00:14:10 verbose #14917 > >
00:14:10 verbose #14918 > > run_target function
00:14:10 verbose #14919 > >     | Fsharp (Native) => fun () => $'1uy'
00:14:10 verbose #14920 > >     | Cuda (Native) => fun () => $'1'
00:14:10 verbose #14921 > >     | Rust (Native) => fun () => $'1uy'
00:14:10 verbose #14922 > >     | TypeScript (Native) => fun () => $'1uy'
00:14:10 verbose #14923 > >     | Python (Native) => fun () => $'1uy'
00:14:10 verbose #14924 > >     | _ => fun () => $'2uy'
00:14:10 verbose #14925 > > |> _assert_eq 1u8
00:14:10 verbose #14926 > 00:14:09   debug #837 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6293d3133dd9a0ff624513efbeb48f5fcab4c3324dd72086780e7b072a515ac3/main.spi
00:14:10 verbose #14927 > 00:14:09   debug #838 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4696a6a0d4d784f39adbf2c40a9db43644a1e331f06871dee08058604ac80e46/main.spi
00:14:17 verbose #14928 > >
00:14:17 verbose #14929 > > ╭─[ 7.20s - return value ]─────────────────────────────────────────────────────╮
00:14:17 verbose #14930 > > │ .py output (Cuda):                                                           │
00:14:17 verbose #14931 > > │ assert_eq / actual: 1 / expected: 1                                          │
00:14:17 verbose #14932 > > │                                                                              │
00:14:17 verbose #14933 > > │ .rs output:                                                                  │
00:14:17 verbose #14934 > > │ assert_eq / actual: 1 / expected: 1                                          │
00:14:17 verbose #14935 > > │                                                                              │
00:14:17 verbose #14936 > > │ .ts output:                                                                  │
00:14:17 verbose #14937 > > │ assert_eq / actual: 1 / expected: 1                                          │
00:14:17 verbose #14938 > > │                                                                              │
00:14:17 verbose #14939 > > │ .py output:                                                                  │
00:14:17 verbose #14940 > > │ assert_eq / actual: 1 / expected: 1                                          │
00:14:17 verbose #14941 > > │                                                                              │
00:14:17 verbose #14942 > > │                                                                              │
00:14:17 verbose #14943 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:17 verbose #14944 > >
00:14:17 verbose #14945 > > ╭─[ 7.22s - stdout ]───────────────────────────────────────────────────────────╮
00:14:17 verbose #14946 > > │ .fsx output:                                                                 │
00:14:17 verbose #14947 > > │ assert_eq / actual: 1uy / expected: 1uy                                      │
00:14:17 verbose #14948 > > │                                                                              │
00:14:17 verbose #14949 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:17 verbose #14950 > >
00:14:17 verbose #14951 > > ── markdown ────────────────────────────────────────────────────────────────────
00:14:17 verbose #14952 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:14:17 verbose #14953 > > │ ## function                                                                  │
00:14:17 verbose #14954 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:17 verbose #14955 > >
00:14:17 verbose #14956 > > ── markdown ────────────────────────────────────────────────────────────────────
00:14:17 verbose #14957 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:14:17 verbose #14958 > > │ ### invoke                                                                   │
00:14:17 verbose #14959 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:17 verbose #14960 > >
00:14:17 verbose #14961 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:14:17 verbose #14962 > > inl invoke fn =
00:14:17 verbose #14963 > >     fn ()
00:14:17 verbose #14964 > 00:14:17   debug #839 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e478234a9538e8d8c293229bb5adc0f58638aa7100031a93d3f7c005f9bfb4be/main.spi
00:14:18 verbose #14965 > >
00:14:18 verbose #14966 > > ── markdown ────────────────────────────────────────────────────────────────────
00:14:18 verbose #14967 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:14:18 verbose #14968 > > │ ### lazy                                                                     │
00:14:18 verbose #14969 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:18 verbose #14970 > >
00:14:18 verbose #14971 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:14:18 verbose #14972 > > nominal lazy t = $'Lazy<`t>'
00:14:18 verbose #14973 > 00:14:17   debug #840 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ea13f2b990cabb2a5305e46948074770465f889126d419caf2cf87669ab5caf4/main.spi
00:14:18 verbose #14974 > >
00:14:18 verbose #14975 > > ── markdown ────────────────────────────────────────────────────────────────────
00:14:18 verbose #14976 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:14:18 verbose #14977 > > │ ### memoize                                                                  │
00:14:18 verbose #14978 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:18 verbose #14979 > >
00:14:18 verbose #14980 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:14:18 verbose #14981 > > nominal lazy t = $'Lazy<`t>'
00:14:18 verbose #14982 > >
00:14:18 verbose #14983 > > inl memoize forall t. (fn : () -> t) : () -> t =
00:14:18 verbose #14984 > >     inl fn = join fn
00:14:18 verbose #14985 > >     backend_switch {
00:14:18 verbose #14986 > >         Fsharp = fun () =>
00:14:18 verbose #14987 > >             inl result : lazy t = $'lazy !fn ()'
00:14:18 verbose #14988 > >             fun () => $'!result.Value' : t
00:14:18 verbose #14989 > >         Python = fun () =>
00:14:18 verbose #14990 > >             inl result = mut None
00:14:18 verbose #14991 > >             inl computed = mut false
00:14:18 verbose #14992 > >             fun () =>
00:14:18 verbose #14993 > >                 if *computed
00:14:18 verbose #14994 > >                 then *result
00:14:18 verbose #14995 > >                 else
00:14:18 verbose #14996 > >                     result <- fn () |> Some
00:14:18 verbose #14997 > >                     computed <- true
00:14:18 verbose #14998 > >                     *result
00:14:18 verbose #14999 > >                 |> optionm.value
00:14:18 verbose #15000 > >     }
00:14:18 verbose #15001 > 00:14:17   debug #841 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/79b670314107b71eda7bde7c58f9755efee43bac71ba4195e68b16b2e85131a9/main.spi
00:14:18 verbose #15002 > >
00:14:18 verbose #15003 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:14:18 verbose #15004 > > //// test
00:14:18 verbose #15005 > > ///! fsharp
00:14:18 verbose #15006 > > ///! cuda
00:14:18 verbose #15007 > > ///! rust
00:14:18 verbose #15008 > > ///! typescript
00:14:18 verbose #15009 > > ///! python
00:14:18 verbose #15010 > >
00:14:18 verbose #15011 > > inl count = mut 0i32
00:14:18 verbose #15012 > > inl add =
00:14:18 verbose #15013 > >     fun () =>
00:14:18 verbose #15014 > >         count <- *count + 1
00:14:18 verbose #15015 > >         count
00:14:18 verbose #15016 > >     |> memoize
00:14:18 verbose #15017 > >
00:14:18 verbose #15018 > > add () |> ignore
00:14:18 verbose #15019 > > add () |> ignore
00:14:18 verbose #15020 > > add () |> ignore
00:14:18 verbose #15021 > >
00:14:18 verbose #15022 > > *count
00:14:18 verbose #15023 > > |> _assert_eq 1
00:14:19 verbose #15024 > 00:14:18   debug #842 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/73a6f3c0d59895f3a323acc7b8e41cea04a658cdea2a362fe7b1d0dd03a75d52/main.spi
00:14:19 verbose #15025 > 00:14:18   debug #843 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a3ddcc73b8dd9c6267e8a93e7c632e23a066230f1ef0f0b9d2334d6e38364f25/main.spi
00:14:24 verbose #15026 > >
00:14:24 verbose #15027 > > ╭─[ 5.90s - return value ]─────────────────────────────────────────────────────╮
00:14:24 verbose #15028 > > │ .py output (Cuda):                                                           │
00:14:24 verbose #15029 > > │ assert_eq / actual: 1 / expected: 1                                          │
00:14:24 verbose #15030 > > │                                                                              │
00:14:24 verbose #15031 > > │ .rs output:                                                                  │
00:14:24 verbose #15032 > > │ assert_eq / actual: 1 / expected: 1                                          │
00:14:24 verbose #15033 > > │                                                                              │
00:14:24 verbose #15034 > > │ .ts output:                                                                  │
00:14:24 verbose #15035 > > │ assert_eq / actual: 1 / expected: 1                                          │
00:14:24 verbose #15036 > > │                                                                              │
00:14:24 verbose #15037 > > │ .py output:                                                                  │
00:14:24 verbose #15038 > > │ assert_eq / actual: 1 / expected: 1                                          │
00:14:24 verbose #15039 > > │                                                                              │
00:14:24 verbose #15040 > > │                                                                              │
00:14:24 verbose #15041 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:24 verbose #15042 > >
00:14:24 verbose #15043 > > ╭─[ 5.90s - stdout ]───────────────────────────────────────────────────────────╮
00:14:24 verbose #15044 > > │ .fsx output:                                                                 │
00:14:24 verbose #15045 > > │ assert_eq / actual: 1 / expected: 1                                          │
00:14:24 verbose #15046 > > │                                                                              │
00:14:24 verbose #15047 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:24 verbose #15048 > >
00:14:24 verbose #15049 > > ── markdown ────────────────────────────────────────────────────────────────────
00:14:24 verbose #15050 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:14:24 verbose #15051 > > │ ### capture                                                                  │
00:14:24 verbose #15052 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:24 verbose #15053 > >
00:14:24 verbose #15054 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:14:24 verbose #15055 > > inl capture forall t. (fn : () -> t) : t =
00:14:24 verbose #15056 > >     inl result = dyn true
00:14:24 verbose #15057 > >     $'let mutable _!result : `t option = None '
00:14:24 verbose #15058 > >     $'('
00:14:24 verbose #15059 > >     $'(fun () ->'
00:14:24 verbose #15060 > >     $'(fun () ->'
00:14:24 verbose #15061 > >     fn () |> emit_unit
00:14:24 verbose #15062 > >     $')'
00:14:24 verbose #15063 > >     $'|> fun x -> x ()'
00:14:24 verbose #15064 > >     $') () )'
00:14:24 verbose #15065 > >     $'|> fun x -> _!result <- Some x'
00:14:24 verbose #15066 > >     $'match _!result with Some x -> x | None -> failwith "base.capture
00:14:24 verbose #15067 > > _!result=None"'
00:14:24 verbose #15068 > 00:14:24   debug #844 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/088b85f58e2daed78ef4e28ee8720d97444f48b9c2d8b87680a4d64919c48c8c/main.spi
00:14:25 verbose #15069 > >
00:14:25 verbose #15070 > > ── markdown ────────────────────────────────────────────────────────────────────
00:14:25 verbose #15071 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:14:25 verbose #15072 > > │ ## arithmetic                                                                │
00:14:25 verbose #15073 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:25 verbose #15074 > >
00:14:25 verbose #15075 > > ── markdown ────────────────────────────────────────────────────────────────────
00:14:25 verbose #15076 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:14:25 verbose #15077 > > │ ### (+.)                                                                     │
00:14:25 verbose #15078 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:25 verbose #15079 > >
00:14:25 verbose #15080 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:14:25 verbose #15081 > > inl (+.) forall t. (a : t) (b : t) : t =
00:14:25 verbose #15082 > >     $'!a + !b '
00:14:25 verbose #15083 > 00:14:24   debug #845 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f88bc935aeed3306e7a710679d99702754ed10bed775060ee076c792f6fefd06/main.spi
00:14:25 verbose #15084 > >
00:14:25 verbose #15085 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:14:25 verbose #15086 > > //// test
00:14:25 verbose #15087 > > ///! fsharp
00:14:25 verbose #15088 > > ///! cuda
00:14:25 verbose #15089 > > ///! rust
00:14:25 verbose #15090 > > ///! typescript
00:14:25 verbose #15091 > > ///! python
00:14:25 verbose #15092 > >
00:14:25 verbose #15093 > > ($'3' : i32) +. ($'-6' : i32)
00:14:25 verbose #15094 > > |> _assert_eq -3i32
00:14:25 verbose #15095 > 00:14:24   debug #846 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/df35fafda58ac1fa1be830acbdb2facc8ca919959d668463bb148b5fd77277d4/main.spi
00:14:25 verbose #15096 > 00:14:24   debug #847 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fe50388b02b6d97770ae2e693d428f23fbfba6929643f8a0d73aa6fa4069fc76/main.spi
00:14:30 verbose #15097 > >
00:14:30 verbose #15098 > > ╭─[ 4.81s - return value ]─────────────────────────────────────────────────────╮
00:14:30 verbose #15099 > > │ .py output (Cuda):                                                           │
00:14:30 verbose #15100 > > │ assert_eq / actual: -3 / expected: -3                                        │
00:14:30 verbose #15101 > > │                                                                              │
00:14:30 verbose #15102 > > │ .rs output:                                                                  │
00:14:30 verbose #15103 > > │ assert_eq / actual: -3 / expected: -3                                        │
00:14:30 verbose #15104 > > │                                                                              │
00:14:30 verbose #15105 > > │ .ts output:                                                                  │
00:14:30 verbose #15106 > > │ assert_eq / actual: -3 / expected: -3                                        │
00:14:30 verbose #15107 > > │                                                                              │
00:14:30 verbose #15108 > > │ .py output:                                                                  │
00:14:30 verbose #15109 > > │ assert_eq / actual: -3 / expected: -3                                        │
00:14:30 verbose #15110 > > │                                                                              │
00:14:30 verbose #15111 > > │                                                                              │
00:14:30 verbose #15112 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:30 verbose #15113 > >
00:14:30 verbose #15114 > > ╭─[ 4.81s - stdout ]───────────────────────────────────────────────────────────╮
00:14:30 verbose #15115 > > │ .fsx output:                                                                 │
00:14:30 verbose #15116 > > │ assert_eq / actual: -3 / expected: -3                                        │
00:14:30 verbose #15117 > > │                                                                              │
00:14:30 verbose #15118 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:30 verbose #15119 > >
00:14:30 verbose #15120 > > ── markdown ────────────────────────────────────────────────────────────────────
00:14:30 verbose #15121 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:14:30 verbose #15122 > > │ ### (-.)                                                                     │
00:14:30 verbose #15123 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:30 verbose #15124 > >
00:14:30 verbose #15125 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:14:30 verbose #15126 > > inl (-.) forall t. (a : t) (b : t) : t =
00:14:30 verbose #15127 > >     $'!a - !b '
00:14:30 verbose #15128 > 00:14:29   debug #848 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c1ff3ae3cc78d3abf4a8683ffa886a7a12c10f9f150daf8661bb11b96a46f617/main.spi
00:14:30 verbose #15129 > >
00:14:30 verbose #15130 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:14:30 verbose #15131 > > //// test
00:14:30 verbose #15132 > > ///! fsharp
00:14:30 verbose #15133 > > ///! cuda
00:14:30 verbose #15134 > > ///! rust
00:14:30 verbose #15135 > > ///! typescript
00:14:30 verbose #15136 > > ///! python
00:14:30 verbose #15137 > >
00:14:30 verbose #15138 > > ($'3' : i32) -. ($'6' : i32)
00:14:30 verbose #15139 > > |> _assert_eq -3i32
00:14:30 verbose #15140 > 00:14:29   debug #849 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/cf9086b060f67d464484632dc50ce8b359fe4094d8945ae51d4d561778d3d0b7/main.spi
00:14:30 verbose #15141 > 00:14:29   debug #850 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c8cecb4e0319207640d394bdc0b52ce5f1fdfbe5ef4442b694b641e1a1424332/main.spi
00:14:35 verbose #15142 > >
00:14:35 verbose #15143 > > ╭─[ 4.72s - return value ]─────────────────────────────────────────────────────╮
00:14:35 verbose #15144 > > │ .py output (Cuda):                                                           │
00:14:35 verbose #15145 > > │ assert_eq / actual: -3 / expected: -3                                        │
00:14:35 verbose #15146 > > │                                                                              │
00:14:35 verbose #15147 > > │ .rs output:                                                                  │
00:14:35 verbose #15148 > > │ assert_eq / actual: -3 / expected: -3                                        │
00:14:35 verbose #15149 > > │                                                                              │
00:14:35 verbose #15150 > > │ .ts output:                                                                  │
00:14:35 verbose #15151 > > │ assert_eq / actual: -3 / expected: -3                                        │
00:14:35 verbose #15152 > > │                                                                              │
00:14:35 verbose #15153 > > │ .py output:                                                                  │
00:14:35 verbose #15154 > > │ assert_eq / actual: -3 / expected: -3                                        │
00:14:35 verbose #15155 > > │                                                                              │
00:14:35 verbose #15156 > > │                                                                              │
00:14:35 verbose #15157 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:35 verbose #15158 > >
00:14:35 verbose #15159 > > ╭─[ 4.72s - stdout ]───────────────────────────────────────────────────────────╮
00:14:35 verbose #15160 > > │ .fsx output:                                                                 │
00:14:35 verbose #15161 > > │ assert_eq / actual: -3 / expected: -3                                        │
00:14:35 verbose #15162 > > │                                                                              │
00:14:35 verbose #15163 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:35 verbose #15164 > >
00:14:35 verbose #15165 > > ── markdown ────────────────────────────────────────────────────────────────────
00:14:35 verbose #15166 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:14:35 verbose #15167 > > │ ### (*.)                                                                     │
00:14:35 verbose #15168 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:35 verbose #15169 > >
00:14:35 verbose #15170 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:14:35 verbose #15171 > > inl (*.) forall t. (a : t) (b : t) : t =
00:14:35 verbose #15172 > >     $'!a * !b '
00:14:35 verbose #15173 > 00:14:34   debug #851 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2773ddcd203ab8f85cdcf228fce8a9c6ac5a16e721e9d102c0bf66f441c97c84/main.spi
00:14:35 verbose #15174 > >
00:14:35 verbose #15175 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:14:35 verbose #15176 > > //// test
00:14:35 verbose #15177 > > ///! fsharp
00:14:35 verbose #15178 > > ///! cuda
00:14:35 verbose #15179 > > ///! rust
00:14:35 verbose #15180 > > ///! typescript
00:14:35 verbose #15181 > > ///! python
00:14:35 verbose #15182 > >
00:14:35 verbose #15183 > > ($'3' : i32) *. ($'-1' : i32)
00:14:35 verbose #15184 > > |> _assert_eq -3i32
00:14:35 verbose #15185 > 00:14:35   debug #852 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f29852ed548fec5827e886734d011f83ad3e8708fb68e22e06a03f6a62638275/main.spi
00:14:35 verbose #15186 > 00:14:35   debug #853 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/06aa84768bb1c8ab9e202422c8728ef1e3c7262ffa64663f01425eccef0b5d4a/main.spi
00:14:40 verbose #15187 > >
00:14:40 verbose #15188 > > ╭─[ 4.64s - return value ]─────────────────────────────────────────────────────╮
00:14:40 verbose #15189 > > │ .py output (Cuda):                                                           │
00:14:40 verbose #15190 > > │ assert_eq / actual: -3 / expected: -3                                        │
00:14:40 verbose #15191 > > │                                                                              │
00:14:40 verbose #15192 > > │ .rs output:                                                                  │
00:14:40 verbose #15193 > > │ assert_eq / actual: -3 / expected: -3                                        │
00:14:40 verbose #15194 > > │                                                                              │
00:14:40 verbose #15195 > > │ .ts output:                                                                  │
00:14:40 verbose #15196 > > │ assert_eq / actual: -3 / expected: -3                                        │
00:14:40 verbose #15197 > > │                                                                              │
00:14:40 verbose #15198 > > │ .py output:                                                                  │
00:14:40 verbose #15199 > > │ assert_eq / actual: -3 / expected: -3                                        │
00:14:40 verbose #15200 > > │                                                                              │
00:14:40 verbose #15201 > > │                                                                              │
00:14:40 verbose #15202 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:40 verbose #15203 > >
00:14:40 verbose #15204 > > ╭─[ 4.64s - stdout ]───────────────────────────────────────────────────────────╮
00:14:40 verbose #15205 > > │ .fsx output:                                                                 │
00:14:40 verbose #15206 > > │ assert_eq / actual: -3 / expected: -3                                        │
00:14:40 verbose #15207 > > │                                                                              │
00:14:40 verbose #15208 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:40 verbose #15209 > >
00:14:40 verbose #15210 > > ── markdown ────────────────────────────────────────────────────────────────────
00:14:40 verbose #15211 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:14:40 verbose #15212 > > │ ### (/.)                                                                     │
00:14:40 verbose #15213 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:40 verbose #15214 > >
00:14:40 verbose #15215 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:14:40 verbose #15216 > > inl (/.) forall t. (a : t) (b : t) : t =
00:14:40 verbose #15217 > >     $'!a / !b '
00:14:40 verbose #15218 > 00:14:39   debug #854 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/791039f6c21951b43618f8116a01db6ceec102a6736ce7fbdf5bfe5bef5f5ee1/main.spi
00:14:40 verbose #15219 > >
00:14:40 verbose #15220 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:14:40 verbose #15221 > > //// test
00:14:40 verbose #15222 > > ///! fsharp
00:14:40 verbose #15223 > > ///! cuda
00:14:40 verbose #15224 > > ///! rust
00:14:40 verbose #15225 > > ///! typescript
00:14:40 verbose #15226 > > ///! python
00:14:40 verbose #15227 > >
00:14:40 verbose #15228 > > ($'-3' : i32) /. ($'1' : i32)
00:14:40 verbose #15229 > > |> _assert_eq -3i32
00:14:40 verbose #15230 > 00:14:40   debug #855 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1b2dcca12dc3ff18919af81e584cab45f02f36b0a78ff408d1748c756a9af342/main.spi
00:14:40 verbose #15231 > 00:14:40   debug #856 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b57a1bae56af6eb981d706953524585c943eb9c83d679d108138b5d0098e39ab/main.spi
00:14:45 verbose #15232 > >
00:14:45 verbose #15233 > > ╭─[ 4.85s - return value ]─────────────────────────────────────────────────────╮
00:14:45 verbose #15234 > > │ .py output (Cuda):                                                           │
00:14:45 verbose #15235 > > │ assert_eq / actual: -3.0 / expected: -3                                      │
00:14:45 verbose #15236 > > │                                                                              │
00:14:45 verbose #15237 > > │ .rs output:                                                                  │
00:14:45 verbose #15238 > > │ assert_eq / actual: -3 / expected: -3                                        │
00:14:45 verbose #15239 > > │                                                                              │
00:14:45 verbose #15240 > > │ .ts output:                                                                  │
00:14:45 verbose #15241 > > │ assert_eq / actual: -3 / expected: -3                                        │
00:14:45 verbose #15242 > > │                                                                              │
00:14:45 verbose #15243 > > │ .py output:                                                                  │
00:14:45 verbose #15244 > > │ assert_eq / actual: -3 / expected: -3                                        │
00:14:45 verbose #15245 > > │                                                                              │
00:14:45 verbose #15246 > > │                                                                              │
00:14:45 verbose #15247 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:45 verbose #15248 > >
00:14:45 verbose #15249 > > ╭─[ 4.85s - stdout ]───────────────────────────────────────────────────────────╮
00:14:45 verbose #15250 > > │ .fsx output:                                                                 │
00:14:45 verbose #15251 > > │ assert_eq / actual: -3 / expected: -3                                        │
00:14:45 verbose #15252 > > │                                                                              │
00:14:45 verbose #15253 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:45 verbose #15254 > >
00:14:45 verbose #15255 > > ── markdown ────────────────────────────────────────────────────────────────────
00:14:45 verbose #15256 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:14:45 verbose #15257 > > │ ## comparison                                                                │
00:14:45 verbose #15258 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:45 verbose #15259 > >
00:14:45 verbose #15260 > > ── markdown ────────────────────────────────────────────────────────────────────
00:14:45 verbose #15261 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:14:45 verbose #15262 > > │ ### (=.)                                                                     │
00:14:45 verbose #15263 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:45 verbose #15264 > >
00:14:45 verbose #15265 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:14:45 verbose #15266 > > inl (=.) forall t. (a : t) (b : t) : bool =
00:14:45 verbose #15267 > >     backend_switch {
00:14:45 verbose #15268 > >         Fsharp = fun () => $'!a = !b ' : bool
00:14:45 verbose #15269 > >         Python = fun () => $'!a == !b ' : bool
00:14:45 verbose #15270 > >     }
00:14:45 verbose #15271 > 00:14:44   debug #857 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a8c0f0e5762a08ff379cf14df0ca4d81252b98b982d1dcd086227143307ac49d/main.spi
00:14:45 verbose #15272 > >
00:14:45 verbose #15273 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:14:45 verbose #15274 > > //// test
00:14:45 verbose #15275 > > ///! fsharp
00:14:45 verbose #15276 > > ///! cuda
00:14:45 verbose #15277 > > ///! rust
00:14:45 verbose #15278 > > ///! typescript
00:14:45 verbose #15279 > > ///! python
00:14:45 verbose #15280 > >
00:14:45 verbose #15281 > > ($'-3' : i32) =. ($'-3' : i32)
00:14:45 verbose #15282 > > |> _assert_eq true
00:14:46 verbose #15283 > 00:14:45   debug #858 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/86953148dd24772448afe681fe264e07b3e837eb14b60331b5dec0a8fb6daecf/main.spi
00:14:46 verbose #15284 > 00:14:45   debug #859 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/500cc873ed4b082c06a2fe8eedb4eaa8d4c525da2642e769486935293f3ee5c7/main.spi
00:14:50 verbose #15285 > >
00:14:50 verbose #15286 > > ╭─[ 4.94s - return value ]─────────────────────────────────────────────────────╮
00:14:50 verbose #15287 > > │ .py output (Cuda):                                                           │
00:14:50 verbose #15288 > > │ assert_eq / actual: True / expected: True                                    │
00:14:50 verbose #15289 > > │                                                                              │
00:14:50 verbose #15290 > > │ .rs output:                                                                  │
00:14:50 verbose #15291 > > │ assert_eq / actual: true / expected: true                                    │
00:14:50 verbose #15292 > > │                                                                              │
00:14:50 verbose #15293 > > │ .ts output:                                                                  │
00:14:50 verbose #15294 > > │ assert_eq / actual: true / expected: true                                    │
00:14:50 verbose #15295 > > │                                                                              │
00:14:50 verbose #15296 > > │ .py output:                                                                  │
00:14:50 verbose #15297 > > │ assert_eq / actual: true / expected: true                                    │
00:14:50 verbose #15298 > > │                                                                              │
00:14:50 verbose #15299 > > │                                                                              │
00:14:50 verbose #15300 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:50 verbose #15301 > >
00:14:50 verbose #15302 > > ╭─[ 4.94s - stdout ]───────────────────────────────────────────────────────────╮
00:14:50 verbose #15303 > > │ .fsx output:                                                                 │
00:14:50 verbose #15304 > > │ assert_eq / actual: true / expected: true                                    │
00:14:50 verbose #15305 > > │                                                                              │
00:14:50 verbose #15306 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:50 verbose #15307 > >
00:14:50 verbose #15308 > > ── markdown ────────────────────────────────────────────────────────────────────
00:14:50 verbose #15309 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:14:50 verbose #15310 > > │ ### (<>.)                                                                    │
00:14:50 verbose #15311 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:50 verbose #15312 > >
00:14:50 verbose #15313 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:14:50 verbose #15314 > > inl (<>.) forall t. (a : t) (b : t) : bool =
00:14:50 verbose #15315 > >     backend_switch {
00:14:50 verbose #15316 > >         Fsharp = fun () => $'!a <> !b ' : bool
00:14:50 verbose #15317 > >         Python = fun () => $'!a \!= !b ' : bool
00:14:50 verbose #15318 > >     }
00:14:51 verbose #15319 > 00:14:50   debug #860 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e0e33c4652e429b2ea000ae4e3345f8b63bd16219cec5189f4293a84e1aca058/main.spi
00:14:51 verbose #15320 > >
00:14:51 verbose #15321 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:14:51 verbose #15322 > > //// test
00:14:51 verbose #15323 > > ///! fsharp
00:14:51 verbose #15324 > > ///! cuda
00:14:51 verbose #15325 > > ///! rust
00:14:51 verbose #15326 > > ///! typescript
00:14:51 verbose #15327 > > ///! python
00:14:51 verbose #15328 > >
00:14:51 verbose #15329 > > ($'-3' : i32) <>. ($'3' : i32)
00:14:51 verbose #15330 > > |> _assert_eq true
00:14:51 verbose #15331 > 00:14:50   debug #861 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/22c7a55c6b1254de19eb61d973e9052e0bc6b613e01af70ff63535801730d3c1/main.spi
00:14:51 verbose #15332 > 00:14:50   debug #862 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1aebc32c2d1deedf4465deed496832edd0d06e49b0fa5c06ff3edf2cb92d1fb1/main.spi
00:14:55 verbose #15333 > >
00:14:55 verbose #15334 > > ╭─[ 4.27s - return value ]─────────────────────────────────────────────────────╮
00:14:55 verbose #15335 > > │ .py output (Cuda):                                                           │
00:14:55 verbose #15336 > > │ assert_eq / actual: True / expected: True                                    │
00:14:55 verbose #15337 > > │                                                                              │
00:14:55 verbose #15338 > > │ .rs output:                                                                  │
00:14:55 verbose #15339 > > │ assert_eq / actual: true / expected: true                                    │
00:14:55 verbose #15340 > > │                                                                              │
00:14:55 verbose #15341 > > │ .ts output:                                                                  │
00:14:55 verbose #15342 > > │ assert_eq / actual: true / expected: true                                    │
00:14:55 verbose #15343 > > │                                                                              │
00:14:55 verbose #15344 > > │ .py output:                                                                  │
00:14:55 verbose #15345 > > │ assert_eq / actual: true / expected: true                                    │
00:14:55 verbose #15346 > > │                                                                              │
00:14:55 verbose #15347 > > │                                                                              │
00:14:55 verbose #15348 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:55 verbose #15349 > >
00:14:55 verbose #15350 > > ╭─[ 4.27s - stdout ]───────────────────────────────────────────────────────────╮
00:14:55 verbose #15351 > > │ .fsx output:                                                                 │
00:14:55 verbose #15352 > > │ assert_eq / actual: true / expected: true                                    │
00:14:55 verbose #15353 > > │                                                                              │
00:14:55 verbose #15354 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:55 verbose #15355 > >
00:14:55 verbose #15356 > > ── markdown ────────────────────────────────────────────────────────────────────
00:14:55 verbose #15357 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:14:55 verbose #15358 > > │ ## (<>..)                                                                    │
00:14:55 verbose #15359 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:55 verbose #15360 > >
00:14:55 verbose #15361 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:14:55 verbose #15362 > > inl (<>..) a b =
00:14:55 verbose #15363 > >     fun () => a = b
00:14:55 verbose #15364 > >     |> dyn
00:14:55 verbose #15365 > >     |> invoke
00:14:55 verbose #15366 > >     |> not
00:14:55 verbose #15367 > 00:14:54   debug #863 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1f17c43ae9476ac6d38aeb8b2026cff24d60c670e07920f2ac63eb6c3ff985bc/main.spi
00:14:55 verbose #15368 > >
00:14:55 verbose #15369 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:14:55 verbose #15370 > > //// test
00:14:55 verbose #15371 > > ///! fsharp
00:14:55 verbose #15372 > > ///! cuda
00:14:55 verbose #15373 > > ///! rust
00:14:55 verbose #15374 > > ///! typescript
00:14:55 verbose #15375 > > ///! python
00:14:55 verbose #15376 > >
00:14:55 verbose #15377 > > ($'-3' : i32) <>.. ($'3' : i32)
00:14:55 verbose #15378 > > |> _assert_eq true
00:14:56 verbose #15379 > 00:14:55   debug #864 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/bece00be37b4eefa5731a508b29fc3a585b7038031c241b8529ea4eec64053e4/main.spi
00:14:56 verbose #15380 > 00:14:55   debug #865 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3ce9e44857698914d6eb16dbf69d23cd90384c978eef6d65b828479dac79d50a/main.spi
00:15:00 verbose #15381 > >
00:15:00 verbose #15382 > > ╭─[ 4.89s - return value ]─────────────────────────────────────────────────────╮
00:15:00 verbose #15383 > > │ .py output (Cuda):                                                           │
00:15:00 verbose #15384 > > │ assert_eq / actual: True / expected: True                                    │
00:15:00 verbose #15385 > > │                                                                              │
00:15:00 verbose #15386 > > │ .rs output:                                                                  │
00:15:00 verbose #15387 > > │ assert_eq / actual: true / expected: true                                    │
00:15:00 verbose #15388 > > │                                                                              │
00:15:00 verbose #15389 > > │ .ts output:                                                                  │
00:15:00 verbose #15390 > > │ assert_eq / actual: true / expected: true                                    │
00:15:00 verbose #15391 > > │                                                                              │
00:15:00 verbose #15392 > > │ .py output:                                                                  │
00:15:00 verbose #15393 > > │ assert_eq / actual: true / expected: true                                    │
00:15:00 verbose #15394 > > │                                                                              │
00:15:00 verbose #15395 > > │                                                                              │
00:15:00 verbose #15396 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:00 verbose #15397 > >
00:15:00 verbose #15398 > > ╭─[ 4.89s - stdout ]───────────────────────────────────────────────────────────╮
00:15:00 verbose #15399 > > │ .fsx output:                                                                 │
00:15:00 verbose #15400 > > │ assert_eq / actual: true / expected: true                                    │
00:15:00 verbose #15401 > > │                                                                              │
00:15:00 verbose #15402 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:00 verbose #15403 > >
00:15:00 verbose #15404 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:00 verbose #15405 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:00 verbose #15406 > > │ ## composition                                                               │
00:15:00 verbose #15407 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:00 verbose #15408 > >
00:15:00 verbose #15409 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:00 verbose #15410 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:00 verbose #15411 > > │ ### append                                                                   │
00:15:00 verbose #15412 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:00 verbose #15413 > >
00:15:00 verbose #15414 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:00 verbose #15415 > > prototype append t : t -> t -> t
00:15:01 verbose #15416 > 00:15:00   debug #866 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/11178265e9355209d0a61672fdb0e2d9461cf37053b379727c9fea32f5c12136/main.spi
00:15:01 verbose #15417 > >
00:15:01 verbose #15418 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:01 verbose #15419 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:01 verbose #15420 > > │ ### (++)                                                                     │
00:15:01 verbose #15421 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:01 verbose #15422 > >
00:15:01 verbose #15423 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:01 verbose #15424 > > inl (++) a b =
00:15:01 verbose #15425 > >     b |> append a
00:15:01 verbose #15426 > 00:15:00   debug #867 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8e5aa09ea5ce71ec0745d292809fe5ba095b7486e2959267be167994637ad75c/main.spi
00:15:01 verbose #15427 > >
00:15:01 verbose #15428 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:01 verbose #15429 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:01 verbose #15430 > > │ ## application                                                               │
00:15:01 verbose #15431 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:01 verbose #15432 > >
00:15:01 verbose #15433 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:01 verbose #15434 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:01 verbose #15435 > > │ ### (||>)                                                                    │
00:15:01 verbose #15436 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:01 verbose #15437 > >
00:15:01 verbose #15438 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:01 verbose #15439 > > inl (||>) (arg1, arg2) fn =
00:15:01 verbose #15440 > >     arg2 |> fn arg1
00:15:01 verbose #15441 > 00:15:00   debug #868 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/21f1c1160789e6a5be28165af3a46cdf36d3d8eeebfb566a27f048db9a52c872/main.spi
00:15:01 verbose #15442 > >
00:15:01 verbose #15443 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:01 verbose #15444 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:01 verbose #15445 > > │ ### fix_condition                                                            │
00:15:01 verbose #15446 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:01 verbose #15447 > >
00:15:01 verbose #15448 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:01 verbose #15449 > > inl fix_condition x a b =
00:15:01 verbose #15450 > >     if x ()
00:15:01 verbose #15451 > >     then a () |> fun x => $'(*' : ()
00:15:01 verbose #15452 > >     else
00:15:01 verbose #15453 > >         $'*) else' : ()
00:15:01 verbose #15454 > >         b () |> fun x => $'(*' : ()
00:15:01 verbose #15455 > >     |> fun x => $'*)' : ()
00:15:02 verbose #15456 > 00:15:01   debug #869 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/698f1c990db02f5e5454e6562384bd6da2ff08fbf9a3edadfb5ac7e172f29720/main.spi
00:15:02 verbose #15457 > >
00:15:02 verbose #15458 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:02 verbose #15459 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:02 verbose #15460 > > │ ## type                                                                      │
00:15:02 verbose #15461 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:02 verbose #15462 > >
00:15:02 verbose #15463 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:02 verbose #15464 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:02 verbose #15465 > > │ ### infer                                                                    │
00:15:02 verbose #15466 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:02 verbose #15467 > >
00:15:02 verbose #15468 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:02 verbose #15469 > > nominal infer = $'_'
00:15:02 verbose #15470 > 00:15:01   debug #870 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/74f87e3552183ff78550a8759dd7b09e7a2bdc1c8ce5e565f37e34a14603fa5a/main.spi
00:15:02 verbose #15471 > >
00:15:02 verbose #15472 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:02 verbose #15473 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:02 verbose #15474 > > │ ### any                                                                      │
00:15:02 verbose #15475 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:02 verbose #15476 > >
00:15:02 verbose #15477 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:02 verbose #15478 > > nominal any = $'obj'
00:15:03 verbose #15479 > 00:15:02   debug #871 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/97749482f5bea52b204db1472bc6f4406f375ed03b4db9cb37f76820eae3e67d/main.spi
00:15:03 verbose #15480 > >
00:15:03 verbose #15481 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:03 verbose #15482 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:03 verbose #15483 > > │ ### unit                                                                     │
00:15:03 verbose #15484 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:03 verbose #15485 > >
00:15:03 verbose #15486 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:03 verbose #15487 > > nominal unit = $'unit'
00:15:03 verbose #15488 > 00:15:02   debug #872 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/841de4c9c061c1a7bcac1fc68b4e3d2fa30364cb47a442a8a6ab23dba2fe8f34/main.spi
00:15:03 verbose #15489 > >
00:15:03 verbose #15490 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:03 verbose #15491 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:03 verbose #15492 > > │ ### null                                                                     │
00:15:03 verbose #15493 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:03 verbose #15494 > >
00:15:03 verbose #15495 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:03 verbose #15496 > > inl null forall t. () : t =
00:15:03 verbose #15497 > >     backend_switch {
00:15:03 verbose #15498 > >         Fsharp = fun () => $'null |> unbox<`t>' : t
00:15:03 verbose #15499 > >         Python = fun () => $'None' : t
00:15:03 verbose #15500 > >     }
00:15:03 verbose #15501 > 00:15:03   debug #873 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/cdd3023d18d5bfd686ba9e53982369bbc877e99de2a263e382c12e9f8d7020d9/main.spi
00:15:04 verbose #15502 > >
00:15:04 verbose #15503 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:04 verbose #15504 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:04 verbose #15505 > > │ ### defaultof                                                                │
00:15:04 verbose #15506 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:04 verbose #15507 > >
00:15:04 verbose #15508 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:04 verbose #15509 > > inl defaultof forall t. () : t =
00:15:04 verbose #15510 > >     $'Unchecked.defaultof<`t>'
00:15:04 verbose #15511 > 00:15:03   debug #874 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f840cf05e4e6db327c07b8e51bd527153d786892ad1a7941640b975a7ecbd5ea/main.spi
00:15:04 verbose #15512 > >
00:15:04 verbose #15513 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:04 verbose #15514 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:04 verbose #15515 > > │ ### choice2'                                                                 │
00:15:04 verbose #15516 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:04 verbose #15517 > >
00:15:04 verbose #15518 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:04 verbose #15519 > > nominal choice2' a b = $'Choice<`a, `b>'
00:15:05 verbose #15520 > 00:15:04   debug #875 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ab6a255666e2a35303381079503d6d1097609dfad99f3342ecb5285c663c26e8/main.spi
00:15:05 verbose #15521 > >
00:15:05 verbose #15522 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:05 verbose #15523 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:05 verbose #15524 > > │ ### choice2_unbox                                                            │
00:15:05 verbose #15525 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:05 verbose #15526 > >
00:15:05 verbose #15527 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:05 verbose #15528 > > inl choice2_unbox forall t1 t2. (choice : choice2' t1 t2) : choice2 t1 t2 =
00:15:05 verbose #15529 > >     run_target function
00:15:05 verbose #15530 > >         | Fsharp (Native) => fun () =>
00:15:05 verbose #15531 > >             inl c1of2 (x : t1) : _ _ t2 = C1of2 x
00:15:05 verbose #15532 > >             inl c2of2 (x : t2) : _ t1 _ = C2of2 x
00:15:05 verbose #15533 > >             $'match !choice with Choice1Of2 x -> !c1of2 x | Choice2Of2 x ->
00:15:05 verbose #15534 > > !c2of2 x'
00:15:05 verbose #15535 > >         | _ => fun () => null ()
00:15:05 verbose #15536 > 00:15:04   debug #876 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/59ada10f237bbc6d70735ec416453655f8550e738a14edef8999d60b9e8bae4b/main.spi
00:15:05 verbose #15537 > >
00:15:05 verbose #15538 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:05 verbose #15539 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:05 verbose #15540 > > │ ## pair                                                                      │
00:15:05 verbose #15541 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:05 verbose #15542 > >
00:15:05 verbose #15543 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:05 verbose #15544 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:05 verbose #15545 > > │ ### pair                                                                     │
00:15:05 verbose #15546 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:05 verbose #15547 > >
00:15:05 verbose #15548 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:05 verbose #15549 > > nominal pair a b = $'(`a * `b)'
00:15:05 verbose #15550 > >
00:15:05 verbose #15551 > > inl pair x y =
00:15:05 verbose #15552 > >     x, y
00:15:05 verbose #15553 > 00:15:05   debug #877 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/76ae47e1954720cd6bd9ba24c922ff38fa4b58e72444a820ba45a671ec55566d/main.spi
00:15:06 verbose #15554 > >
00:15:06 verbose #15555 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:06 verbose #15556 > > //// test
00:15:06 verbose #15557 > > ///! fsharp
00:15:06 verbose #15558 > > ///! cuda
00:15:06 verbose #15559 > > ///! rust
00:15:06 verbose #15560 > > ///! typescript
00:15:06 verbose #15561 > > ///! python
00:15:06 verbose #15562 > >
00:15:06 verbose #15563 > > pair 1i32 2i32
00:15:06 verbose #15564 > > |> _assert_eq (1, 2)
00:15:06 verbose #15565 > 00:15:05   debug #878 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ca8b483086d0b0ae7d110de6bfe7775f7aae329293c5a680437c7931de214d3d/main.spi
00:15:06 verbose #15566 > 00:15:05   debug #879 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a2910aed703e0200118c326a6520cfb9d030cccd705a3960fd10f7d53aef98f2/main.spi
00:15:10 verbose #15567 > >
00:15:10 verbose #15568 > > ╭─[ 4.04s - return value ]─────────────────────────────────────────────────────╮
00:15:10 verbose #15569 > > │ .py output (Cuda):                                                           │
00:15:10 verbose #15570 > > │ assert_eq / actual: (1, 2) / expected: (1, 2)                                │
00:15:10 verbose #15571 > > │                                                                              │
00:15:10 verbose #15572 > > │ .rs output:                                                                  │
00:15:10 verbose #15573 > > │ assert_eq / actual: (1, 2) / expected: (1, 2)                                │
00:15:10 verbose #15574 > > │                                                                              │
00:15:10 verbose #15575 > > │ .ts output:                                                                  │
00:15:10 verbose #15576 > > │ assert_eq / actual: 1,2 / expected: 1,2                                      │
00:15:10 verbose #15577 > > │                                                                              │
00:15:10 verbose #15578 > > │ .py output:                                                                  │
00:15:10 verbose #15579 > > │ assert_eq / actual: (1, 2) / expected: (1, 2)                                │
00:15:10 verbose #15580 > > │                                                                              │
00:15:10 verbose #15581 > > │                                                                              │
00:15:10 verbose #15582 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:10 verbose #15583 > >
00:15:10 verbose #15584 > > ╭─[ 4.04s - stdout ]───────────────────────────────────────────────────────────╮
00:15:10 verbose #15585 > > │ .fsx output:                                                                 │
00:15:10 verbose #15586 > > │ assert_eq / actual: struct (1, 2) / expected: struct (1, 2)                  │
00:15:10 verbose #15587 > > │                                                                              │
00:15:10 verbose #15588 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:10 verbose #15589 > >
00:15:10 verbose #15590 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:10 verbose #15591 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:10 verbose #15592 > > │ ### new_pair                                                                 │
00:15:10 verbose #15593 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:10 verbose #15594 > >
00:15:10 verbose #15595 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:10 verbose #15596 > > inl new_pair forall a b. (a : a) (b : b) : pair a b =
00:15:10 verbose #15597 > >     $'!a, !b '
00:15:10 verbose #15598 > 00:15:09   debug #880 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c5ad2b60beed19e1f82efea32b9bae7226e9813c3da2a96fbcdc91679e6a50a5/main.spi
00:15:10 verbose #15599 > >
00:15:10 verbose #15600 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:10 verbose #15601 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:10 verbose #15602 > > │ ### from_pair                                                                │
00:15:10 verbose #15603 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:10 verbose #15604 > >
00:15:10 verbose #15605 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:10 verbose #15606 > > inl from_pair forall a b. (pair : pair a b) : a * b =
00:15:10 verbose #15607 > >     backend_switch {
00:15:10 verbose #15608 > >         Fsharp = fun () =>
00:15:10 verbose #15609 > >             $'let (a, b) = !pair '
00:15:10 verbose #15610 > >             ($'a' : a), ($'b' : b)
00:15:10 verbose #15611 > >         Python = fun () =>
00:15:10 verbose #15612 > >             $'a, b = !pair '
00:15:10 verbose #15613 > >             ($'a' : a), ($'b' : b)
00:15:10 verbose #15614 > >     }
00:15:10 verbose #15615 > 00:15:09   debug #881 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2db9d9e7476e1a48a9b8b23622d8b85008d6bd3940eafffb78e766696263b433/main.spi
00:15:10 verbose #15616 > >
00:15:10 verbose #15617 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:10 verbose #15618 > > //// test
00:15:10 verbose #15619 > > ///! fsharp
00:15:10 verbose #15620 > > ///! cuda
00:15:10 verbose #15621 > > ///! rust
00:15:10 verbose #15622 > > ///! typescript
00:15:10 verbose #15623 > > ///! python
00:15:10 verbose #15624 > >
00:15:10 verbose #15625 > > new_pair "a" (new_pair 1i32 "b")
00:15:10 verbose #15626 > > |> from_pair
00:15:10 verbose #15627 > > |> _assert_eq' ("a", (new_pair 1i32 "b"))
00:15:11 verbose #15628 > 00:15:10   debug #882 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/31bf2ee04046f01af9d49f1a62215a491118ac9448eb45c1ab334bb1b6a682ea/main.spi
00:15:11 verbose #15629 > 00:15:10   debug #883 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/aa5c093d674c667d8c3500db3591c724f51e0b40d3cb4c0bd52141f77e41335d/main.spi
00:15:15 verbose #15630 > >
00:15:15 verbose #15631 > > ╭─[ 4.99s - return value ]─────────────────────────────────────────────────────╮
00:15:15 verbose #15632 > > │ .py output (Cuda):                                                           │
00:15:15 verbose #15633 > > │ assert_eq' / actual: ('a', (1, 'b')) / expected: ('a', (1, 'b'))             │
00:15:15 verbose #15634 > > │                                                                              │
00:15:15 verbose #15635 > > │ .rs output:                                                                  │
00:15:15 verbose #15636 > > │ assert_eq' / actual: ("a", (1, "b")) / expected: ("a", (1, "b"))             │
00:15:15 verbose #15637 > > │                                                                              │
00:15:15 verbose #15638 > > │ .ts output:                                                                  │
00:15:15 verbose #15639 > > │ assert_eq' / actual: a,1,b / expected: a,1,b                                 │
00:15:15 verbose #15640 > > │                                                                              │
00:15:15 verbose #15641 > > │ .py output:                                                                  │
00:15:15 verbose #15642 > > │ assert_eq' / actual: ('a', (1, 'b')) / expected: ('a', (1, 'b'))             │
00:15:15 verbose #15643 > > │                                                                              │
00:15:15 verbose #15644 > > │                                                                              │
00:15:15 verbose #15645 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:15 verbose #15646 > >
00:15:15 verbose #15647 > > ╭─[ 4.99s - stdout ]───────────────────────────────────────────────────────────╮
00:15:15 verbose #15648 > > │ .fsx output:                                                                 │
00:15:15 verbose #15649 > > │ assert_eq' / actual: struct ("a", (1, "b")) / expected: struct ("a", (1,     │
00:15:15 verbose #15650 > > │ "b"))                                                                        │
00:15:15 verbose #15651 > > │                                                                              │
00:15:15 verbose #15652 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:15 verbose #15653 > >
00:15:15 verbose #15654 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:15 verbose #15655 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:15 verbose #15656 > > │ ## ref                                                                       │
00:15:15 verbose #15657 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:15 verbose #15658 > >
00:15:15 verbose #15659 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:15 verbose #15660 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:15 verbose #15661 > > │ ### ref                                                                      │
00:15:15 verbose #15662 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:15 verbose #15663 > >
00:15:15 verbose #15664 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:15 verbose #15665 > > nominal ref t = $'`t ref'
00:15:16 verbose #15666 > 00:15:15   debug #884 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/59a078b48f15e4ccde1dea0d836799c4bfbb7b082db687383ff46238721e3d2c/main.spi
00:15:16 verbose #15667 > >
00:15:16 verbose #15668 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:16 verbose #15669 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:16 verbose #15670 > > │ ### new_ref                                                                  │
00:15:16 verbose #15671 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:16 verbose #15672 > >
00:15:16 verbose #15673 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:16 verbose #15674 > > inl new_ref forall t. (x : t) : ref t =
00:15:16 verbose #15675 > >     $'ref !x '
00:15:16 verbose #15676 > 00:15:15   debug #885 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/52d625b7cd055f464080333964e5c5f9fadc6c5220e86739f50dcbe95f476836/main.spi
00:15:16 verbose #15677 > >
00:15:16 verbose #15678 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:16 verbose #15679 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:16 verbose #15680 > > │ ### ref_value                                                                │
00:15:16 verbose #15681 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:16 verbose #15682 > >
00:15:16 verbose #15683 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:16 verbose #15684 > > inl ref_value forall t. (x : ref t) : t =
00:15:16 verbose #15685 > >     $'!x.Value'
00:15:16 verbose #15686 > 00:15:16   debug #886 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a261a719b6d8e98a24de6f7c9d21fc2def282d2da2d088d1e958cfef4814f921/main.spi
00:15:17 verbose #15687 > >
00:15:17 verbose #15688 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:17 verbose #15689 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:17 verbose #15690 > > │ ### ref_set_value                                                            │
00:15:17 verbose #15691 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:17 verbose #15692 > >
00:15:17 verbose #15693 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:17 verbose #15694 > > inl ref_set_value forall t. (value : t) (ref : ref t) : ref t =
00:15:17 verbose #15695 > >     $'!ref.Value <- !value '
00:15:17 verbose #15696 > >     ref
00:15:17 verbose #15697 > 00:15:16   debug #887 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/94eb3172cad6293896da047a8aaf1553e0e7eb18328cc756c29adf66b2b8941f/main.spi
00:15:17 verbose #15698 > >
00:15:17 verbose #15699 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:17 verbose #15700 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:17 verbose #15701 > > │ ## convert                                                                   │
00:15:17 verbose #15702 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:17 verbose #15703 > >
00:15:17 verbose #15704 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:17 verbose #15705 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:17 verbose #15706 > > │ ### convert                                                                  │
00:15:17 verbose #15707 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:17 verbose #15708 > >
00:15:17 verbose #15709 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:17 verbose #15710 > > inl convert forall t u. (x : t) : u =
00:15:17 verbose #15711 > >     backend_switch {
00:15:17 verbose #15712 > >         Fsharp = fun () => $'!x |> `u ' : u
00:15:17 verbose #15713 > >         Python = fun () => $'!x ' : u
00:15:17 verbose #15714 > >     }
00:15:17 verbose #15715 > 00:15:16   debug #888 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ef1453a7c182adfe9237797ebc8f8f38673def064a0f634212619564425eedee/main.spi
00:15:17 verbose #15716 > >
00:15:17 verbose #15717 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:17 verbose #15718 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:17 verbose #15719 > > │ ### unbox                                                                    │
00:15:17 verbose #15720 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:17 verbose #15721 > >
00:15:17 verbose #15722 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:17 verbose #15723 > > inl unbox forall t u. (x : t) : u =
00:15:17 verbose #15724 > >     backend_switch {
00:15:17 verbose #15725 > >         Fsharp = fun () => $'!x |> unbox<`u>' : u
00:15:17 verbose #15726 > >         Python = fun () => $'!x ' : u
00:15:17 verbose #15727 > >     }
00:15:17 verbose #15728 > 00:15:17   debug #889 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/bda95bbf64015f10b433bca4dfda841aa24c4f0e293d3ed1bf2e90a9a4a198d5/main.spi
00:15:18 verbose #15729 > >
00:15:18 verbose #15730 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:18 verbose #15731 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:18 verbose #15732 > > │ ### u8                                                                       │
00:15:18 verbose #15733 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:18 verbose #15734 > >
00:15:18 verbose #15735 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:18 verbose #15736 > > inl u8 forall t. (x : t) : u8 =
00:15:18 verbose #15737 > >     x |> $'uint8'
00:15:18 verbose #15738 > 00:15:17   debug #890 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ec8a0975894dbfbcd66c82c7f965668ec88ff98a7638ec4941c95c494f4291b8/main.spi
00:15:18 verbose #15739 > >
00:15:18 verbose #15740 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:18 verbose #15741 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:18 verbose #15742 > > │ ### u16                                                                      │
00:15:18 verbose #15743 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:18 verbose #15744 > >
00:15:18 verbose #15745 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:18 verbose #15746 > > inl u16 forall t. (x : t) : u16 =
00:15:18 verbose #15747 > >     x |> $'uint16'
00:15:18 verbose #15748 > 00:15:17   debug #891 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/12fb4fb529e8b48b5ba7ecf4a2f67ee19f99a2028df7625c49df90c6a4714b6c/main.spi
00:15:18 verbose #15749 > >
00:15:18 verbose #15750 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:18 verbose #15751 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:18 verbose #15752 > > │ ### u64                                                                      │
00:15:18 verbose #15753 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:18 verbose #15754 > >
00:15:18 verbose #15755 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:18 verbose #15756 > > inl u64 forall t. (x : t) : u64 =
00:15:18 verbose #15757 > >     x |> $'uint64'
00:15:19 verbose #15758 > 00:15:18   debug #892 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d5a10b54acdcc0e794a92e5d12429c48a26ae6fd2edaf295793e535bad641e6e/main.spi
00:15:19 verbose #15759 > >
00:15:19 verbose #15760 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:19 verbose #15761 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:19 verbose #15762 > > │ ### i32                                                                      │
00:15:19 verbose #15763 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:19 verbose #15764 > >
00:15:19 verbose #15765 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:19 verbose #15766 > > inl i32 forall t. (x : t) : i32 =
00:15:19 verbose #15767 > >     x |> $'int32'
00:15:19 verbose #15768 > 00:15:18   debug #893 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5bc9fe208b8c8dd373b2227e3edb1d2ee0c61a31401c18e938d27ab9b42b644f/main.spi
00:15:19 verbose #15769 > >
00:15:19 verbose #15770 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:19 verbose #15771 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:19 verbose #15772 > > │ ### i64                                                                      │
00:15:19 verbose #15773 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:19 verbose #15774 > >
00:15:19 verbose #15775 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:19 verbose #15776 > > inl i64 forall t. (x : t) : i64 =
00:15:19 verbose #15777 > >     x |> $'int64'
00:15:19 verbose #15778 > 00:15:19   debug #894 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8a5171648e9716e5e3de8589168faef51f5d74716fa53f3a8c1a457cda1295d5/main.spi
00:15:20 verbose #15779 > >
00:15:20 verbose #15780 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:20 verbose #15781 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:20 verbose #15782 > > │ ### f32                                                                      │
00:15:20 verbose #15783 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:20 verbose #15784 > >
00:15:20 verbose #15785 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:20 verbose #15786 > > inl f32 forall t. (x : t) : f32 =
00:15:20 verbose #15787 > >     x |> $'float32'
00:15:20 verbose #15788 > 00:15:19   debug #895 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b01fca0e6c86bacf39a4636e94bcb53ceb1f7fe712f21e990d6048f05992c012/main.spi
00:15:20 verbose #15789 > >
00:15:20 verbose #15790 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:20 verbose #15791 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:20 verbose #15792 > > │ ### f64                                                                      │
00:15:20 verbose #15793 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:20 verbose #15794 > >
00:15:20 verbose #15795 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:20 verbose #15796 > > inl f64 forall t. (x : t) : f64 =
00:15:20 verbose #15797 > >     x |> $'float'
00:15:20 verbose #15798 > 00:15:19   debug #896 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0658ca09c85351cadb16cca922f65f78968e72414bc2242de3e7ad1cd9055844/main.spi
00:15:20 verbose #15799 > >
00:15:20 verbose #15800 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:20 verbose #15801 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:20 verbose #15802 > > │ ### unativeint                                                               │
00:15:20 verbose #15803 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:20 verbose #15804 > >
00:15:20 verbose #15805 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:20 verbose #15806 > > nominal unativeint = $'unativeint'
00:15:21 verbose #15807 > 00:15:20   debug #897 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/52b009d5f3019fd7779afa90baea6ffe94ff840c5f07ade402c53fa37d74c8db/main.spi
00:15:21 verbose #15808 > >
00:15:21 verbose #15809 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:21 verbose #15810 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:21 verbose #15811 > > │ ### convert_i32                                                              │
00:15:21 verbose #15812 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:21 verbose #15813 > >
00:15:21 verbose #15814 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:21 verbose #15815 > > inl convert_i32 forall t. (x : t) : i32 =
00:15:21 verbose #15816 > >     x |> $'System.Convert.ToInt32'
00:15:21 verbose #15817 > 00:15:20   debug #898 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/15e07b6ef898b55f33fdf6ca15c98ff33df8eb72f3dab31ba19fe7572b565397/main.spi
00:15:21 verbose #15818 > >
00:15:21 verbose #15819 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:21 verbose #15820 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:21 verbose #15821 > > │ ### convert_i32_base                                                         │
00:15:21 verbose #15822 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:21 verbose #15823 > >
00:15:21 verbose #15824 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:21 verbose #15825 > > inl convert_i32_base forall t. (base : i32) (x : t) : i32 =
00:15:21 verbose #15826 > >     $'System.Convert.ToInt32 (!x, !base)'
00:15:21 verbose #15827 > 00:15:20   debug #899 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f05a25aff804478ed87bc5235c755ec481c9718412412ba1dd6273d13257279d/main.spi
00:15:21 verbose #15828 > >
00:15:21 verbose #15829 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:21 verbose #15830 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:21 verbose #15831 > > │ ## error                                                                     │
00:15:21 verbose #15832 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:21 verbose #15833 > >
00:15:21 verbose #15834 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:21 verbose #15835 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:21 verbose #15836 > > │ ### exn                                                                      │
00:15:21 verbose #15837 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:21 verbose #15838 > >
00:15:21 verbose #15839 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:21 verbose #15840 > > nominal exn = $"backend_switch `({ Fsharp : $'exn'; Python : $'BaseException'
00:15:21 verbose #15841 > > })"
00:15:21 verbose #15842 > >
00:15:21 verbose #15843 > > inl exn x =
00:15:21 verbose #15844 > >     x |> $'`exn '
00:15:22 verbose #15845 > 00:15:21   debug #900 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ae26f4b8153e4a50cf5f95b38577d51b9e515d8aa7e838df7b981e1916eb0989/main.spi
00:15:22 verbose #15846 > >
00:15:22 verbose #15847 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:22 verbose #15848 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:22 verbose #15849 > > │ ### try                                                                      │
00:15:22 verbose #15850 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:22 verbose #15851 > >
00:15:22 verbose #15852 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:22 verbose #15853 > > inl try forall t. (fn : () -> t) (ex_fn : exn -> option t) : option t =
00:15:22 verbose #15854 > >     backend_switch {
00:15:22 verbose #15855 > >         Fsharp = fun () =>
00:15:22 verbose #15856 > >             inl some x : option t = Some x
00:15:22 verbose #15857 > >             inl some = dyn some
00:15:22 verbose #15858 > >             inl fn = dyn fn
00:15:22 verbose #15859 > >             inl ex_fn = dyn ex_fn
00:15:22 verbose #15860 > >             $'let result = ref !(None : option t)'
00:15:22 verbose #15861 > >             $'try'
00:15:22 verbose #15862 > >             $'    result.Value <- !fn () |> !some '
00:15:22 verbose #15863 > >             $'with ex ->'
00:15:22 verbose #15864 > >             $'    result.Value <- !ex_fn ex '
00:15:22 verbose #15865 > >             $'result.Value' : option t
00:15:22 verbose #15866 > >         Python = fun () =>
00:15:22 verbose #15867 > >             $'result = !(None : option t)'
00:15:22 verbose #15868 > >             inl fn = dyn fn
00:15:22 verbose #15869 > >             inl ex_fn = dyn ex_fn
00:15:22 verbose #15870 > >             $'try:'
00:15:22 verbose #15871 > >             $'    result = !fn()\n        \'\'\''
00:15:22 verbose #15872 > >             $'\'\'\''
00:15:22 verbose #15873 > >             $'except Exception as e:'
00:15:22 verbose #15874 > >             $'    result = !ex_fn(e)'
00:15:22 verbose #15875 > >             $'result' : option t
00:15:22 verbose #15876 > >     }
00:15:22 verbose #15877 > 00:15:21   debug #901 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f6388a0b6f6b63b2d79daeb9e30e107babca294d2b14f0b9a38ee308f7ae0861/main.spi
00:15:22 verbose #15878 > >
00:15:22 verbose #15879 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:22 verbose #15880 > > //// test
00:15:22 verbose #15881 > > ///! fsharp
00:15:22 verbose #15882 > > ////! cuda // cudaErrorInsufficientDriver: CUDA driver version is insufficient
00:15:22 verbose #15883 > > for CUDA runtime version
00:15:22 verbose #15884 > > ///! rust
00:15:22 verbose #15885 > > ///! typescript
00:15:22 verbose #15886 > > ///! python
00:15:22 verbose #15887 > >
00:15:22 verbose #15888 > > try
00:15:22 verbose #15889 > >     fun () => a ;[[ 0i32 ]] |> am'.index 1i32 |> sm'.format
00:15:22 verbose #15890 > >     (fun ex => $'!ex ' |> sm'.format_exception |> Some)
00:15:22 verbose #15891 > > |> optionm.value
00:15:22 verbose #15892 > > |> _assert_eq (run_target function
00:15:22 verbose #15893 > >     | Fsharp => fun () => "System.IndexOutOfRangeException: Index was outside
00:15:22 verbose #15894 > > the bounds of the array."
00:15:22 verbose #15895 > >     | Cuda => fun () => "array index out of range"
00:15:22 verbose #15896 > >     | Rust => fun () => "Exception { message: \"index out of bounds: the len is
00:15:22 verbose #15897 > > 1 but the index is 1\" }"
00:15:22 verbose #15898 > >     | TypeScript => fun () => "Error: Index was outside the bounds of the
00:15:22 verbose #15899 > > array.\\nParameter name: index"
00:15:22 verbose #15900 > >     | Python => fun () => "array index out of range"
00:15:22 verbose #15901 > > )
00:15:22 verbose #15902 > 00:15:22   debug #902 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/844f33cbbaf941206ecc42e7cdff8cd94cf03e3fe39bf3b669d11e217c1ce1cb/main.spi
00:15:25 verbose #15903 > >
00:15:25 verbose #15904 > > ╭─[ 3.29s - return value ]─────────────────────────────────────────────────────╮
00:15:25 verbose #15905 > > │ .rs output:                                                                  │
00:15:25 verbose #15906 > > │ assert_eq / actual: "Exception { message: "index out of bounds: the len is 1 │
00:15:25 verbose #15907 > > │ but the index is 1" }" / expected: "Exception { message: "index out of       │
00:15:25 verbose #15908 > > │ bounds: the len is 1 but the index is 1" }"                                  │
00:15:25 verbose #15909 > > │                                                                              │
00:15:25 verbose #15910 > > │ .ts output:                                                                  │
00:15:25 verbose #15911 > > │ assert_eq / actual: Error: Index was outside the bounds of the               │
00:15:25 verbose #15912 > > │ array.\nParameter name: index / expected: Error: Index was outside the       │
00:15:25 verbose #15913 > > │ bounds of the array.\nParameter name: index                                  │
00:15:25 verbose #15914 > > │                                                                              │
00:15:25 verbose #15915 > > │ .py output:                                                                  │
00:15:25 verbose #15916 > > │ assert_eq / actual: array index out of range / expected: array index out of  │
00:15:25 verbose #15917 > > │ range                                                                        │
00:15:25 verbose #15918 > > │                                                                              │
00:15:25 verbose #15919 > > │                                                                              │
00:15:25 verbose #15920 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:25 verbose #15921 > >
00:15:25 verbose #15922 > > ╭─[ 3.29s - stdout ]───────────────────────────────────────────────────────────╮
00:15:25 verbose #15923 > > │ .fsx output:                                                                 │
00:15:25 verbose #15924 > > │ assert_eq / actual: "System.IndexOutOfRangeException: Index was outside the  │
00:15:25 verbose #15925 > > │ bounds of the array." / expected: "System.IndexOutOfRangeException: Index    │
00:15:25 verbose #15926 > > │ was outside the bounds of the array."                                        │
00:15:25 verbose #15927 > > │                                                                              │
00:15:25 verbose #15928 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:25 verbose #15929 > >
00:15:25 verbose #15930 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:25 verbose #15931 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:25 verbose #15932 > > │ ### try_unit                                                                 │
00:15:25 verbose #15933 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:25 verbose #15934 > >
00:15:25 verbose #15935 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:25 verbose #15936 > > inl try_unit forall t. (fn : () -> ()) (ex_fn : exn -> ()) : t =
00:15:25 verbose #15937 > >     $'try'
00:15:25 verbose #15938 > >     fn ()
00:15:25 verbose #15939 > >     |> ignore
00:15:25 verbose #15940 > >     $'with ex ->'
00:15:25 verbose #15941 > >     ex_fn $'ex'
00:15:25 verbose #15942 > >     |> ignore
00:15:25 verbose #15943 > >     $'(*'
00:15:25 verbose #15944 > >     $'*)'
00:15:26 verbose #15945 > 00:15:25   debug #903 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/428c72a97a67dee75fe6afb54340ac612514018e95c742919633d435f7cb2840/main.spi
00:15:26 verbose #15946 > >
00:15:26 verbose #15947 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:26 verbose #15948 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:26 verbose #15949 > > │ ### try_finally                                                              │
00:15:26 verbose #15950 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:26 verbose #15951 > >
00:15:26 verbose #15952 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:26 verbose #15953 > > inl try_finally forall t. (fn : () -> ()) (finally : () -> ()) : t =
00:15:26 verbose #15954 > >     $'try'
00:15:26 verbose #15955 > >     fn ()
00:15:26 verbose #15956 > >     |> ignore
00:15:26 verbose #15957 > >     $'finally'
00:15:26 verbose #15958 > >     finally ()
00:15:26 verbose #15959 > >     |> ignore
00:15:26 verbose #15960 > >     $'(*'
00:15:26 verbose #15961 > >     $'*)'
00:15:26 verbose #15962 > 00:15:25   debug #904 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/59edc2b4f50132a991092ac2cfa0601b1ce51e4ce802853da98461d107d3c774/main.spi
00:15:26 verbose #15963 > 00:01:27 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 56090 }
00:15:26 verbose #15964 > 00:01:27   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/spiral/base.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/base.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:15:29 verbose #15965 > 00:01:29 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/base.dib.ipynb to html
00:15:29 verbose #15966 > 00:01:29 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:15:29 verbose #15967 > 00:01:29 verbose #7 !   validate(nb)
00:15:31 verbose #15968 > 00:01:31 verbose #8 ! [NbConvertApp] Writing 402692 bytes to c:\home\git\polyglot\lib\spiral\base.dib.html
00:15:31 verbose #15969 > 00:01:32 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 639 }
00:15:31 verbose #15970 > 00:01:32   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 639 }
00:15:31 verbose #15971 > 00:01:32   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/base.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/base.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:15:33 verbose #15972 > 00:01:33 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:15:33 verbose #15973 > 00:01:33   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:15:34 verbose #15974 > 00:01:34   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 56788 }
00:15:34   debug #15975 runtime.execute_with_options_async / { exit_code = 0; output_length = 61605 }
00:15:34   debug #21 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path base.dib --retries 3
00:15:34   debug #15976 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path iter.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:15:34 verbose #15977 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "iter.dib", "--retries", "3"])) }
00:15:34 verbose #15978 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/spiral/iter.dib", "--output-path", "c:/home/git/polyglot/lib/spiral/iter.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/iter.dib" --output-path "c:/home/git/polyglot/lib/spiral/iter.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:15:37 verbose #15979 > >
00:15:37 verbose #15980 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:37 verbose #15981 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:37 verbose #15982 > > │ # iter                                                                       │
00:15:37 verbose #15983 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:41 verbose #15984 > >
00:15:41 verbose #15985 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:41 verbose #15986 > > open rust_operators
00:15:42 verbose #15987 > 00:15:41   debug #905 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0d9bd8e5bb71a8e1d983506a46e54fb8c8e6cf2d0bd973135d4cdd580c5f6d39/main.spi
00:15:43 verbose #15988 > >
00:15:43 verbose #15989 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:43 verbose #15990 > > //// test
00:15:43 verbose #15991 > >
00:15:43 verbose #15992 > > open testing
00:15:43 verbose #15993 > 00:15:42   debug #906 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d06211d48c36e09624381aad71e69f817df1a545af31c21067514d4d391bdd05/main.spi
00:15:43 verbose #15994 > >
00:15:43 verbose #15995 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:43 verbose #15996 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:43 verbose #15997 > > │ ## rust                                                                      │
00:15:43 verbose #15998 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:43 verbose #15999 > >
00:15:43 verbose #16000 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:43 verbose #16001 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:43 verbose #16002 > > │ ### iter_enumerate                                                           │
00:15:43 verbose #16003 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:43 verbose #16004 > >
00:15:43 verbose #16005 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:43 verbose #16006 > > inl iter_enumerate forall t. (iter : into_iterator t) : into_iterator (pair
00:15:43 verbose #16007 > > unativeint t) =
00:15:43 verbose #16008 > >     !\($'"!iter.enumerate().map(std::sync::Arc::new)"')
00:15:43 verbose #16009 > 00:15:42   debug #907 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e21b87ce933a62da2b79776e1921bf90fa717114a26e7d0d43db0009dfda36c3/main.spi
00:15:43 verbose #16010 > >
00:15:43 verbose #16011 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:43 verbose #16012 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:43 verbose #16013 > > │ ### into_iter                                                                │
00:15:43 verbose #16014 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:43 verbose #16015 > >
00:15:43 verbose #16016 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:43 verbose #16017 > > inl into_iter forall (t : * -> *) u. (x : t u) : into_iterator u =
00:15:43 verbose #16018 > >     !\($'"!x.into_iter()"')
00:15:44 verbose #16019 > 00:15:43   debug #908 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3372a69a4c8ccb285a9a290b1e10710a7503c414995413654a8481259fe73a1f/main.spi
00:15:44 verbose #16020 > >
00:15:44 verbose #16021 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:44 verbose #16022 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:44 verbose #16023 > > │ ### iter                                                                     │
00:15:44 verbose #16024 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:44 verbose #16025 > >
00:15:44 verbose #16026 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:44 verbose #16027 > > inl iter forall (t : * -> *) u. (x : t u) : into_iterator u =
00:15:44 verbose #16028 > >     !\($'"!x.iter()"')
00:15:44 verbose #16029 > 00:15:43   debug #909 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e8aff4656c3bd4729694976522d7488fe01c25c84b0935cedce7061623b70d06/main.spi
00:15:44 verbose #16030 > >
00:15:44 verbose #16031 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:44 verbose #16032 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:44 verbose #16033 > > │ ### iter_map                                                                 │
00:15:44 verbose #16034 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:44 verbose #16035 > >
00:15:44 verbose #16036 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:44 verbose #16037 > > inl iter_map forall t u. (fn : t -> u) (iter : into_iterator t) : into_iterator
00:15:44 verbose #16038 > > u =
00:15:44 verbose #16039 > >     !\\(fn, $'"!iter.map(|x| $0(x))"')
00:15:44 verbose #16040 > 00:15:44   debug #910 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/568c8b7c2babf62c3116a145902ead14a51a8d465c96d9e5f8b4676306fd3395/main.spi
00:15:45 verbose #16041 > >
00:15:45 verbose #16042 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:45 verbose #16043 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:45 verbose #16044 > > │ ### try_for_each                                                             │
00:15:45 verbose #16045 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:45 verbose #16046 > >
00:15:45 verbose #16047 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:45 verbose #16048 > > inl try_for_each forall t. (fn : t -> rust.try ()) x : resultm.result' () string
00:15:45 verbose #16049 > > =
00:15:45 verbose #16050 > >     (!\($'"true; let mut !x = !x; let _result = !x.try_for_each(|x| { //"') :
00:15:45 verbose #16051 > > bool) |> ignore
00:15:45 verbose #16052 > >     (!\\(fn !\($'"x"'), $'"true; $0 }); //"') : bool) |> ignore
00:15:45 verbose #16053 > >     !\($'"_result.map_err(|x| x.into())"')
00:15:45 verbose #16054 > 00:15:44   debug #911 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2e950dc74fa9a2b7aaba0782e50a82662fded796c68044f156eb3ed439816743/main.spi
00:15:45 verbose #16055 > >
00:15:45 verbose #16056 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:45 verbose #16057 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:45 verbose #16058 > > │ ### enumerate                                                                │
00:15:45 verbose #16059 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:45 verbose #16060 > >
00:15:45 verbose #16061 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:45 verbose #16062 > > inl enumerate forall dim {int; number} t. (ar : a dim t) : a dim (unativeint *
00:15:45 verbose #16063 > > t) =
00:15:45 verbose #16064 > >     inl (a ar) = ar
00:15:45 verbose #16065 > >     ar
00:15:45 verbose #16066 > >     |> am'.to_vec
00:15:45 verbose #16067 > >     |> into_iter
00:15:45 verbose #16068 > >     |> iter_enumerate
00:15:45 verbose #16069 > >     |> iter_collect
00:15:45 verbose #16070 > >     |> am'.vec_map' from_pair
00:15:45 verbose #16071 > >     |> am'.from_vec
00:15:45 verbose #16072 > 00:15:44   debug #912 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9faf5765272075f1021ed7162b8688003fbbd19b3ad7f8f46d2363773b5b8791/main.spi
00:15:45 verbose #16073 > >
00:15:45 verbose #16074 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:45 verbose #16075 > > //// test
00:15:45 verbose #16076 > > ///! rust
00:15:45 verbose #16077 > >
00:15:45 verbose #16078 > > am'.init_series 0i32 2 1
00:15:45 verbose #16079 > > |> fun x => a x : _ int _
00:15:45 verbose #16080 > > |> enumerate
00:15:45 verbose #16081 > > |> fun (a x : _ int _) => x
00:15:45 verbose #16082 > > |> _assert_eq' ;[[ convert 0i32, 0; convert 1i32, 1; convert 2i32, 2 ]]
00:15:46 verbose #16083 > 00:15:45   debug #913 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/251d8f04deadd3cc62791f3f20bc320c83b88c38228b3cbb03699c9110537b9a/main.spi
00:15:49 verbose #16084 > >
00:15:49 verbose #16085 > > ╭─[ 3.46s - return value ]─────────────────────────────────────────────────────╮
00:15:49 verbose #16086 > > │ assert_eq' / actual: Array(MutCell([(0, 0), (1, 1), (2, 2)])) / expected:    │
00:15:49 verbose #16087 > > │ Array(MutCell([(0, 0), (1, 1), (2, 2)]))                                     │
00:15:49 verbose #16088 > > │                                                                              │
00:15:49 verbose #16089 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:49 verbose #16090 > 00:00:15 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 4949 }
00:15:49 verbose #16091 > 00:00:15   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/spiral/iter.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/iter.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:15:52 verbose #16092 > 00:00:18 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/iter.dib.ipynb to html
00:15:52 verbose #16093 > 00:00:18 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:15:52 verbose #16094 > 00:00:18 verbose #7 !   validate(nb)
00:15:53 verbose #16095 > 00:00:19 verbose #8 ! [NbConvertApp] Writing 286284 bytes to c:\home\git\polyglot\lib\spiral\iter.dib.html
00:15:54 verbose #16096 > 00:00:19 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 639 }
00:15:54 verbose #16097 > 00:00:19   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 639 }
00:15:54 verbose #16098 > 00:00:19   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/iter.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/iter.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:15:55 verbose #16099 > 00:00:20 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:15:55 verbose #16100 > 00:00:20   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:15:55 verbose #16101 > 00:00:21   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 5647 }
00:15:55   debug #16102 runtime.execute_with_options_async / { exit_code = 0; output_length = 8448 }
00:15:55   debug #22 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path iter.dib --retries 3
00:15:55   debug #16103 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path wasm.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:15:55 verbose #16104 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "wasm.dib", "--retries", "3"])) }
00:15:55 verbose #16105 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/spiral/wasm.dib", "--output-path", "c:/home/git/polyglot/lib/spiral/wasm.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/wasm.dib" --output-path "c:/home/git/polyglot/lib/spiral/wasm.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:15:57 verbose #16106 > >
00:15:57 verbose #16107 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:57 verbose #16108 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:57 verbose #16109 > > │ # wasm                                                                       │
00:15:57 verbose #16110 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:01 verbose #16111 > >
00:16:01 verbose #16112 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:01 verbose #16113 > > open rust_operators
00:16:02 verbose #16114 > 00:16:01   debug #914 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0d9bd8e5bb71a8e1d983506a46e54fb8c8e6cf2d0bd973135d4cdd580c5f6d39/main.spi
00:16:03 verbose #16115 > >
00:16:03 verbose #16116 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:03 verbose #16117 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:03 verbose #16118 > > │ ### rexie                                                                    │
00:16:03 verbose #16119 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:03 verbose #16120 > >
00:16:03 verbose #16121 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:03 verbose #16122 > > nominal rexie =
00:16:03 verbose #16123 > >     `(
00:16:03 verbose #16124 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:16:03 verbose #16125 > > Fable.Core.Emit(\"rexie::Rexie\")>]]\n#endif\ntype rexie_Rexie = class end"
00:16:03 verbose #16126 > >         $'' : $'rexie_Rexie'
00:16:03 verbose #16127 > >     )
00:16:03 verbose #16128 > 00:16:02   debug #915 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0ad419a2ef1d2fc7bbb047cb5dc05f9c42f48dbbee7b0f8df668672891a3a38a/main.spi
00:16:03 verbose #16129 > >
00:16:03 verbose #16130 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:03 verbose #16131 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:03 verbose #16132 > > │ ### rexie_store                                                              │
00:16:03 verbose #16133 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:03 verbose #16134 > >
00:16:03 verbose #16135 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:03 verbose #16136 > > nominal rexie_store =
00:16:03 verbose #16137 > >     `(
00:16:03 verbose #16138 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:16:03 verbose #16139 > > Fable.Core.Emit(\"rexie::Store\")>]]\n#endif\ntype rexie_Store = class end"
00:16:03 verbose #16140 > >         $'' : $'rexie_Store'
00:16:03 verbose #16141 > >     )
00:16:03 verbose #16142 > 00:16:02   debug #916 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7949748792480f1193673244068e76c36af73302b17ea93dca27b817c43ce41a/main.spi
00:16:03 verbose #16143 > >
00:16:03 verbose #16144 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:03 verbose #16145 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:03 verbose #16146 > > │ ### rexie_transaction                                                        │
00:16:03 verbose #16147 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:03 verbose #16148 > >
00:16:03 verbose #16149 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:03 verbose #16150 > > nominal rexie_transaction =
00:16:03 verbose #16151 > >     `(
00:16:03 verbose #16152 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:16:03 verbose #16153 > > Fable.Core.Emit(\"rexie::Transaction\")>]]\n#endif\ntype rexie_Transaction =
00:16:03 verbose #16154 > > class end"
00:16:03 verbose #16155 > >         $'' : $'rexie_Transaction'
00:16:03 verbose #16156 > >     )
00:16:04 verbose #16157 > 00:16:03   debug #917 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1135e9ff180b47882b4ebdd360284fb26f61953325f5175942e06a535911edb4/main.spi
00:16:04 verbose #16158 > >
00:16:04 verbose #16159 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:04 verbose #16160 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:04 verbose #16161 > > │ ### rexie_error                                                              │
00:16:04 verbose #16162 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:04 verbose #16163 > >
00:16:04 verbose #16164 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:04 verbose #16165 > > nominal rexie_error =
00:16:04 verbose #16166 > >     `(
00:16:04 verbose #16167 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:16:04 verbose #16168 > > Fable.Core.Emit(\"rexie::Error\")>]]\n#endif\ntype rexie_Error = class end"
00:16:04 verbose #16169 > >         $'' : $'rexie_Error'
00:16:04 verbose #16170 > >     )
00:16:04 verbose #16171 > 00:16:03   debug #918 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8328eb0e1f3ed1bdc6ad9b6a768acfecb3b0f5b1f8780dd9a096d8d69b63d887/main.spi
00:16:04 verbose #16172 > >
00:16:04 verbose #16173 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:04 verbose #16174 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:04 verbose #16175 > > │ ### js_value                                                                 │
00:16:04 verbose #16176 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:04 verbose #16177 > >
00:16:04 verbose #16178 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:04 verbose #16179 > > nominal js_value =
00:16:04 verbose #16180 > >     `(
00:16:04 verbose #16181 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:16:04 verbose #16182 > > Fable.Core.Emit(\"wasm_bindgen::JsValue\")>]]\n#endif\ntype wasm_bindgen_JsValue
00:16:04 verbose #16183 > > = class end"
00:16:04 verbose #16184 > >         $'' : $'wasm_bindgen_JsValue'
00:16:04 verbose #16185 > >     )
00:16:04 verbose #16186 > 00:16:03   debug #919 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4a66bff74fe731ea17163d98a04867cbc8f81c4d993dfe1831aeac784c67a535/main.spi
00:16:04 verbose #16187 > >
00:16:04 verbose #16188 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:04 verbose #16189 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:04 verbose #16190 > > │ ### closure                                                                  │
00:16:04 verbose #16191 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:04 verbose #16192 > >
00:16:04 verbose #16193 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:04 verbose #16194 > > nominal closure t =
00:16:04 verbose #16195 > >     `(
00:16:04 verbose #16196 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:16:04 verbose #16197 > > Fable.Core.Emit(\"wasm_bindgen::closure::Closure<$0>\")>]]\n#endif\ntype
00:16:04 verbose #16198 > > wasm_bindgen_closure_Closure<'T> = class end"
00:16:04 verbose #16199 > >         $'' : $'wasm_bindgen_closure_Closure<`t>'
00:16:04 verbose #16200 > >     )
00:16:05 verbose #16201 > 00:16:04   debug #920 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/37a640d155b15b717cd632fbabfdd39a9f35232da94d497265e3cbb75820cbea/main.spi
00:16:05 verbose #16202 > >
00:16:05 verbose #16203 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:05 verbose #16204 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:05 verbose #16205 > > │ ### js_function                                                              │
00:16:05 verbose #16206 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:05 verbose #16207 > >
00:16:05 verbose #16208 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:05 verbose #16209 > > nominal js_function =
00:16:05 verbose #16210 > >     `(
00:16:05 verbose #16211 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:16:05 verbose #16212 > > Fable.Core.Emit(\"js_sys::Function\")>]]\n#endif\ntype js_sys_Function = class
00:16:05 verbose #16213 > > end"
00:16:05 verbose #16214 > >         $'' : $'js_sys_Function'
00:16:05 verbose #16215 > >     )
00:16:05 verbose #16216 > 00:16:04   debug #921 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5e90f72fb67b79e49ef60d94eab5d1652062223a7d9f51a3997eccf23fa4ec5c/main.spi
00:16:06 verbose #16217 > >
00:16:06 verbose #16218 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:06 verbose #16219 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:06 verbose #16220 > > │ ### window                                                                   │
00:16:06 verbose #16221 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:06 verbose #16222 > >
00:16:06 verbose #16223 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:06 verbose #16224 > > nominal window =
00:16:06 verbose #16225 > >     `(
00:16:06 verbose #16226 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:16:06 verbose #16227 > > Fable.Core.Emit(\"web_sys::Window\")>]]\n#endif\ntype web_sys_Window = class
00:16:06 verbose #16228 > > end"
00:16:06 verbose #16229 > >         $'' : $'web_sys_Window'
00:16:06 verbose #16230 > >     )
00:16:06 verbose #16231 > 00:16:05   debug #922 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/97ec8a96584bc683b625066fa50151062169fb12e9298c79903ce44d1e8aa873/main.spi
00:16:06 verbose #16232 > >
00:16:06 verbose #16233 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:06 verbose #16234 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:06 verbose #16235 > > │ ### document                                                                 │
00:16:06 verbose #16236 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:06 verbose #16237 > >
00:16:06 verbose #16238 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:06 verbose #16239 > > nominal document =
00:16:06 verbose #16240 > >     `(
00:16:06 verbose #16241 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:16:06 verbose #16242 > > Fable.Core.Emit(\"web_sys::Document\")>]]\n#endif\ntype web_sys_Document = class
00:16:06 verbose #16243 > > end"
00:16:06 verbose #16244 > >         $'' : $'web_sys_Document'
00:16:06 verbose #16245 > >     )
00:16:06 verbose #16246 > 00:16:05   debug #923 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/71cf05156130f4fa09e20adad7f099ea90389bfad6c144d27ed9d2c119118103/main.spi
00:16:06 verbose #16247 > >
00:16:06 verbose #16248 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:06 verbose #16249 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:06 verbose #16250 > > │ ### html_element                                                             │
00:16:06 verbose #16251 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:06 verbose #16252 > >
00:16:06 verbose #16253 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:06 verbose #16254 > > nominal html_element =
00:16:06 verbose #16255 > >     `(
00:16:06 verbose #16256 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:16:06 verbose #16257 > > Fable.Core.Emit(\"web_sys::HtmlElement\")>]]\n#endif\ntype web_sys_HtmlElement =
00:16:06 verbose #16258 > > class end"
00:16:06 verbose #16259 > >         $'' : $'web_sys_HtmlElement'
00:16:06 verbose #16260 > >     )
00:16:07 verbose #16261 > 00:16:06   debug #924 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/eb338527cb171bc1b18862d602c1b1c7c03720a77020f8f71518ef5783df767b/main.spi
00:16:07 verbose #16262 > >
00:16:07 verbose #16263 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:07 verbose #16264 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:07 verbose #16265 > > │ ### storage                                                                  │
00:16:07 verbose #16266 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:07 verbose #16267 > >
00:16:07 verbose #16268 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:07 verbose #16269 > > nominal storage =
00:16:07 verbose #16270 > >     `(
00:16:07 verbose #16271 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:16:07 verbose #16272 > > Fable.Core.Emit(\"web_sys::Storage\")>]]\n#endif\ntype web_sys_Storage = class
00:16:07 verbose #16273 > > end"
00:16:07 verbose #16274 > >         $'' : $'web_sys_Storage'
00:16:07 verbose #16275 > >     )
00:16:07 verbose #16276 > 00:16:06   debug #925 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d1d9db5ee519497df15500a9d41316cd41e80bd4a7b150bc384852489f155f59/main.spi
00:16:07 verbose #16277 > >
00:16:07 verbose #16278 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:07 verbose #16279 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:07 verbose #16280 > > │ ### closure_wrap                                                             │
00:16:07 verbose #16281 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:07 verbose #16282 > >
00:16:07 verbose #16283 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:07 verbose #16284 > > inl closure_wrap forall t. (x : rust.box t) : closure t =
00:16:07 verbose #16285 > >     inl x = join x
00:16:07 verbose #16286 > >     !\($'"wasm_bindgen::closure::Closure::wrap(!x)"')
00:16:08 verbose #16287 > 00:16:07   debug #926 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a01bd2f36f7a5e49c736bb142133a99e5c95d1a1d765c498cc3b9763ea38c3f4/main.spi
00:16:08 verbose #16288 > >
00:16:08 verbose #16289 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:08 verbose #16290 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:08 verbose #16291 > > │ ### closure_forget                                                           │
00:16:08 verbose #16292 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:08 verbose #16293 > >
00:16:08 verbose #16294 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:08 verbose #16295 > > inl closure_forget forall t. (closure : closure t) =
00:16:08 verbose #16296 > >     !\($'"!closure.forget()"') : ()
00:16:08 verbose #16297 > 00:16:07   debug #927 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6b2224e81208e9694841f6f515884097b50e93ebe7564c286dc52befd2b0e206/main.spi
00:16:08 verbose #16298 > >
00:16:08 verbose #16299 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:08 verbose #16300 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:08 verbose #16301 > > │ ### closure_as_ref                                                           │
00:16:08 verbose #16302 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:08 verbose #16303 > >
00:16:08 verbose #16304 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:08 verbose #16305 > > inl closure_as_ref forall t. (closure : closure t) : rust.ref js_value =
00:16:08 verbose #16306 > >     !\($'"wasm_bindgen::closure::Closure::as_ref(&!closure)"')
00:16:08 verbose #16307 > 00:16:07   debug #928 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/cf863e52e8eefae3a5b3ea8a45060d7f695b000a4b7ef3653b44522797491495/main.spi
00:16:08 verbose #16308 > >
00:16:08 verbose #16309 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:08 verbose #16310 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:08 verbose #16311 > > │ ### unchecked_ref                                                            │
00:16:08 verbose #16312 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:08 verbose #16313 > >
00:16:08 verbose #16314 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:08 verbose #16315 > > inl unchecked_ref (ref : rust.ref js_value) : rust.ref js_function =
00:16:08 verbose #16316 > >     !\($'"wasm_bindgen::JsCast::unchecked_ref(!ref)"')
00:16:09 verbose #16317 > 00:16:08   debug #929 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5eb15b08d453b66231d089dd9bc7aedacf027ff37575e896d4792c089119cfd1/main.spi
00:16:09 verbose #16318 > >
00:16:09 verbose #16319 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:09 verbose #16320 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:09 verbose #16321 > > │ ### set_inner_html                                                           │
00:16:09 verbose #16322 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:09 verbose #16323 > >
00:16:09 verbose #16324 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:09 verbose #16325 > > inl set_inner_html (html : string) (el : html_element) =
00:16:09 verbose #16326 > >     inl html = join html
00:16:09 verbose #16327 > >     inl html = html |> sm'.as_str
00:16:09 verbose #16328 > >     inl el = join el
00:16:09 verbose #16329 > >     !\($'"!el.set_inner_html(!html)"')
00:16:09 verbose #16330 > 00:16:08   debug #930 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ca374f3acbab2b54265b7ae21af8557c451b4162ba35e2d2c2eb1b2cd5f47dd3/main.spi
00:16:09 verbose #16331 > >
00:16:09 verbose #16332 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:09 verbose #16333 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:09 verbose #16334 > > │ ### from_js_value                                                            │
00:16:09 verbose #16335 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:09 verbose #16336 > >
00:16:09 verbose #16337 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:09 verbose #16338 > > inl from_js_value (value : js_value) : resultm.result' (optionm'.option'
00:16:09 verbose #16339 > > sm'.json_value) sm'.std_string =
00:16:09 verbose #16340 > >     inl value = join value
00:16:09 verbose #16341 > >     !\($'"serde_wasm_bindgen::from_value(!value)"')
00:16:09 verbose #16342 > >     |> resultm.map_error' fun (x : sm'.serde_wasm_bindgen_error) => x |>
00:16:09 verbose #16343 > > sm'.format'
00:16:09 verbose #16344 > 00:16:09   debug #931 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2df7d6528436a4be893397164b3b6a36447d8ca7194118e9d3f625219c651f32/main.spi
00:16:10 verbose #16345 > 00:00:14 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 10621 }
00:16:10 verbose #16346 > 00:00:14   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/spiral/wasm.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/wasm.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:16:12 verbose #16347 > 00:00:17 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/wasm.dib.ipynb to html
00:16:12 verbose #16348 > 00:00:17 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:16:12 verbose #16349 > 00:00:17 verbose #7 !   validate(nb)
00:16:14 verbose #16350 > 00:00:18 verbose #8 ! [NbConvertApp] Writing 302136 bytes to c:\home\git\polyglot\lib\spiral\wasm.dib.html
00:16:14 verbose #16351 > 00:00:18 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 639 }
00:16:14 verbose #16352 > 00:00:18   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 639 }
00:16:14 verbose #16353 > 00:00:18   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/wasm.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/wasm.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:16:15 verbose #16354 > 00:00:19 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:16:15 verbose #16355 > 00:00:19   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:16:16 verbose #16356 > 00:00:20   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 11319 }
00:16:16   debug #16357 runtime.execute_with_options_async / { exit_code = 0; output_length = 14360 }
00:16:16   debug #23 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path wasm.dib --retries 3
00:16:16   debug #16358 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path leptos/leptos.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:16:16 verbose #16359 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "leptos/leptos.dib", "--retries", "3"])) }
00:16:16 verbose #16360 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/spiral/leptos/leptos.dib", "--output-path", "c:/home/git/polyglot/lib/spiral/leptos/leptos.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/leptos/leptos.dib" --output-path "c:/home/git/polyglot/lib/spiral/leptos/leptos.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:16:18 verbose #16361 > >
00:16:18 verbose #16362 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:18 verbose #16363 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:18 verbose #16364 > > │ # leptos                                                                     │
00:16:18 verbose #16365 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:22 verbose #16366 > >
00:16:22 verbose #16367 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:22 verbose #16368 > > open rust_operators
00:16:22 verbose #16369 > > open sm'_operators
00:16:23 verbose #16370 > 00:16:22   debug #932 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/bf61618f8655d8e50dd31f6ed591bb82f1f3131ec57d5c0ea9955695867e89ad/main.spi
00:16:24 verbose #16371 > >
00:16:24 verbose #16372 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:24 verbose #16373 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:24 verbose #16374 > > │ ### a'                                                                       │
00:16:24 verbose #16375 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:24 verbose #16376 > >
00:16:24 verbose #16377 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:24 verbose #16378 > > nominal a' =
00:16:24 verbose #16379 > >     `(
00:16:24 verbose #16380 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:16:24 verbose #16381 > > Fable.Core.Emit(\"leptos::html::A\")>]]\n#endif\ntype leptos_html_A = class end"
00:16:24 verbose #16382 > >         $'' : $'leptos_html_A'
00:16:24 verbose #16383 > >     )
00:16:24 verbose #16384 > 00:16:23   debug #933 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6968b835696a45b9e57c876c72244ebc2ef877d08ea0c4d9f808795369735f46/main.spi
00:16:24 verbose #16385 > >
00:16:24 verbose #16386 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:24 verbose #16387 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:24 verbose #16388 > > │ ### event                                                                    │
00:16:24 verbose #16389 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:24 verbose #16390 > >
00:16:24 verbose #16391 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:24 verbose #16392 > > nominal event =
00:16:24 verbose #16393 > >     `(
00:16:24 verbose #16394 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:16:24 verbose #16395 > > Fable.Core.Emit(\"leptos::ev::Event\")>]]\n#endif\ntype leptos_ev_Event = class
00:16:24 verbose #16396 > > end"
00:16:24 verbose #16397 > >         $'' : $'leptos_ev_Event'
00:16:24 verbose #16398 > >     )
00:16:24 verbose #16399 > 00:16:23   debug #934 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/39c6636af1db0d0e663e6b842a90d8be33c8d8cf04a2611a164cc082ab75f79c/main.spi
00:16:24 verbose #16400 > >
00:16:24 verbose #16401 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:24 verbose #16402 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:24 verbose #16403 > > │ ### mouse_event                                                              │
00:16:24 verbose #16404 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:24 verbose #16405 > >
00:16:24 verbose #16406 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:24 verbose #16407 > > nominal mouse_event =
00:16:24 verbose #16408 > >     `(
00:16:24 verbose #16409 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:16:24 verbose #16410 > > Fable.Core.Emit(\"leptos::ev::MouseEvent\")>]]\n#endif\ntype
00:16:24 verbose #16411 > > leptos_ev_MouseEvent = class end"
00:16:24 verbose #16412 > >         $'' : $'leptos_ev_MouseEvent'
00:16:24 verbose #16413 > >     )
00:16:24 verbose #16414 > 00:16:24   debug #935 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/090ad12b087e86c6e95c5605f6a2ba907950018966233686b4fc11c3a6e1c654/main.spi
00:16:25 verbose #16415 > >
00:16:25 verbose #16416 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:25 verbose #16417 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:25 verbose #16418 > > │ ### button                                                                   │
00:16:25 verbose #16419 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:25 verbose #16420 > >
00:16:25 verbose #16421 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:25 verbose #16422 > > nominal button =
00:16:25 verbose #16423 > >     `(
00:16:25 verbose #16424 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:16:25 verbose #16425 > > Fable.Core.Emit(\"leptos::html::Button\")>]]\n#endif\ntype leptos_html_Button =
00:16:25 verbose #16426 > > class end"
00:16:25 verbose #16427 > >         $'' : $'leptos_html_Button'
00:16:25 verbose #16428 > >     )
00:16:25 verbose #16429 > 00:16:24   debug #936 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b96229fe5a0c21401c7f4c2024fcf1f5798a9d009552a002261b914eae4eb057/main.spi
00:16:25 verbose #16430 > >
00:16:25 verbose #16431 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:25 verbose #16432 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:25 verbose #16433 > > │ ### details                                                                  │
00:16:25 verbose #16434 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:25 verbose #16435 > >
00:16:25 verbose #16436 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:25 verbose #16437 > > nominal details =
00:16:25 verbose #16438 > >     `(
00:16:25 verbose #16439 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:16:25 verbose #16440 > > Fable.Core.Emit(\"leptos::html::Details\")>]]\n#endif\ntype leptos_html_Details
00:16:25 verbose #16441 > > = class end"
00:16:25 verbose #16442 > >         $'' : $'leptos_html_Details'
00:16:25 verbose #16443 > >     )
00:16:25 verbose #16444 > 00:16:24   debug #937 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/51e323cfa1cc89aa16a84b2cd6ed27ddac7fb82ae6ba8428b1d35c567fdb91f8/main.spi
00:16:25 verbose #16445 > >
00:16:25 verbose #16446 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:25 verbose #16447 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:25 verbose #16448 > > │ ### dd                                                                       │
00:16:25 verbose #16449 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:25 verbose #16450 > >
00:16:25 verbose #16451 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:25 verbose #16452 > > nominal dd =
00:16:25 verbose #16453 > >     `(
00:16:25 verbose #16454 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:16:25 verbose #16455 > > Fable.Core.Emit(\"leptos::html::Dd\")>]]\n#endif\ntype leptos_html_Dd = class
00:16:25 verbose #16456 > > end"
00:16:25 verbose #16457 > >         $'' : $'leptos_html_Dd'
00:16:25 verbose #16458 > >     )
00:16:25 verbose #16459 > 00:16:25   debug #938 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/28238a206304bbfa5d57032b8469937a9cd6a29fe471d72b553123cf98bcc704/main.spi
00:16:26 verbose #16460 > >
00:16:26 verbose #16461 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:26 verbose #16462 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:26 verbose #16463 > > │ ### div                                                                      │
00:16:26 verbose #16464 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:26 verbose #16465 > >
00:16:26 verbose #16466 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:26 verbose #16467 > > nominal div =
00:16:26 verbose #16468 > >     `(
00:16:26 verbose #16469 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:16:26 verbose #16470 > > Fable.Core.Emit(\"leptos::html::Div\")>]]\n#endif\ntype leptos_html_Div = class
00:16:26 verbose #16471 > > end"
00:16:26 verbose #16472 > >         $'' : $'leptos_html_Div'
00:16:26 verbose #16473 > >     )
00:16:26 verbose #16474 > 00:16:25   debug #939 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/735358a111e45da77c26aa44c20417b2586df29b867b7b6b359c97d458802dc9/main.spi
00:16:26 verbose #16475 > >
00:16:26 verbose #16476 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:26 verbose #16477 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:26 verbose #16478 > > │ ### dl                                                                       │
00:16:26 verbose #16479 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:26 verbose #16480 > >
00:16:26 verbose #16481 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:26 verbose #16482 > > nominal dl =
00:16:26 verbose #16483 > >     `(
00:16:26 verbose #16484 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:16:26 verbose #16485 > > Fable.Core.Emit(\"leptos::html::Dl\")>]]\n#endif\ntype leptos_html_Dl = class
00:16:26 verbose #16486 > > end"
00:16:26 verbose #16487 > >         $'' : $'leptos_html_Dl'
00:16:26 verbose #16488 > >     )
00:16:26 verbose #16489 > 00:16:25   debug #940 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5638c4ffbfaf0df9a5c1c3bb867dac20def39554a9cf7fb3b1e519ce26da3c2b/main.spi
00:16:26 verbose #16490 > >
00:16:26 verbose #16491 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:26 verbose #16492 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:26 verbose #16493 > > │ ### dt                                                                       │
00:16:26 verbose #16494 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:26 verbose #16495 > >
00:16:26 verbose #16496 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:26 verbose #16497 > > nominal dt =
00:16:26 verbose #16498 > >     `(
00:16:26 verbose #16499 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:16:26 verbose #16500 > > Fable.Core.Emit(\"leptos::html::Dt\")>]]\n#endif\ntype leptos_html_Dt = class
00:16:26 verbose #16501 > > end"
00:16:26 verbose #16502 > >         $'' : $'leptos_html_Dt'
00:16:26 verbose #16503 > >     )
00:16:27 verbose #16504 > 00:16:26   debug #941 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d2481b08521aca5f1ba0cc496ec74706a08cf6e002539a23c3c06b90f2bfecb0/main.spi
00:16:27 verbose #16505 > >
00:16:27 verbose #16506 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:27 verbose #16507 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:27 verbose #16508 > > │ ### footer                                                                   │
00:16:27 verbose #16509 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:27 verbose #16510 > >
00:16:27 verbose #16511 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:27 verbose #16512 > > nominal footer =
00:16:27 verbose #16513 > >     `(
00:16:27 verbose #16514 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:16:27 verbose #16515 > > Fable.Core.Emit(\"leptos::html::Footer\")>]]\n#endif\ntype leptos_html_Footer =
00:16:27 verbose #16516 > > class end"
00:16:27 verbose #16517 > >         $'' : $'leptos_html_Footer'
00:16:27 verbose #16518 > >     )
00:16:27 verbose #16519 > 00:16:26   debug #942 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/25d4a27af038ea7d93e6dfa13d04ac0f5da7501eae7df16c8be9167e65d723cd/main.spi
00:16:27 verbose #16520 > >
00:16:27 verbose #16521 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:27 verbose #16522 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:27 verbose #16523 > > │ ### header                                                                   │
00:16:27 verbose #16524 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:27 verbose #16525 > >
00:16:27 verbose #16526 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:27 verbose #16527 > > nominal header =
00:16:27 verbose #16528 > >     `(
00:16:27 verbose #16529 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:16:27 verbose #16530 > > Fable.Core.Emit(\"leptos::html::Header\")>]]\n#endif\ntype leptos_html_Header =
00:16:27 verbose #16531 > > class end"
00:16:27 verbose #16532 > >         $'' : $'leptos_html_Header'
00:16:27 verbose #16533 > >     )
00:16:27 verbose #16534 > 00:16:26   debug #943 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7192516ed2324d6c0a0c5f1b0a786bcfab1d1c163290512790391f94552851a3/main.spi
00:16:27 verbose #16535 > >
00:16:27 verbose #16536 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:27 verbose #16537 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:27 verbose #16538 > > │ ### input                                                                    │
00:16:27 verbose #16539 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:27 verbose #16540 > >
00:16:27 verbose #16541 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:27 verbose #16542 > > nominal input =
00:16:27 verbose #16543 > >     `(
00:16:27 verbose #16544 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:16:27 verbose #16545 > > Fable.Core.Emit(\"leptos::html::Input\")>]]\n#endif\ntype leptos_html_Input =
00:16:27 verbose #16546 > > class end"
00:16:27 verbose #16547 > >         $'' : $'leptos_html_Input'
00:16:27 verbose #16548 > >     )
00:16:28 verbose #16549 > 00:16:27   debug #944 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1ab483ff2c83ef128326ba6497f9d4c5c8cd65ad39fb509e1df92c696f126517/main.spi
00:16:28 verbose #16550 > >
00:16:28 verbose #16551 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:28 verbose #16552 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:28 verbose #16553 > > │ ### label                                                                    │
00:16:28 verbose #16554 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:28 verbose #16555 > >
00:16:28 verbose #16556 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:28 verbose #16557 > > nominal label =
00:16:28 verbose #16558 > >     `(
00:16:28 verbose #16559 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:16:28 verbose #16560 > > Fable.Core.Emit(\"leptos::html::Label\")>]]\n#endif\ntype leptos_html_Label =
00:16:28 verbose #16561 > > class end"
00:16:28 verbose #16562 > >         $'' : $'leptos_html_Label'
00:16:28 verbose #16563 > >     )
00:16:28 verbose #16564 > 00:16:27   debug #945 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e93d1f21679d8bc49f927809c4312168d90acd834172824e60f94cfe83149aea/main.spi
00:16:28 verbose #16565 > >
00:16:28 verbose #16566 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:28 verbose #16567 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:28 verbose #16568 > > │ ### main                                                                     │
00:16:28 verbose #16569 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:28 verbose #16570 > >
00:16:28 verbose #16571 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:28 verbose #16572 > > nominal main =
00:16:28 verbose #16573 > >     `(
00:16:28 verbose #16574 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:16:28 verbose #16575 > > Fable.Core.Emit(\"leptos::html::Main\")>]]\n#endif\ntype leptos_html_Main =
00:16:28 verbose #16576 > > class end"
00:16:28 verbose #16577 > >         $'' : $'leptos_html_Main'
00:16:28 verbose #16578 > >     )
00:16:28 verbose #16579 > 00:16:28   debug #946 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/10664dbd116ce18e5d2db7470ce43546ad44e4ab3b3b69061cbe5d9b6a486182/main.spi
00:16:28 verbose #16580 > >
00:16:28 verbose #16581 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:28 verbose #16582 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:28 verbose #16583 > > │ ### nav                                                                      │
00:16:28 verbose #16584 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:28 verbose #16585 > >
00:16:28 verbose #16586 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:28 verbose #16587 > > nominal nav =
00:16:28 verbose #16588 > >     `(
00:16:28 verbose #16589 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:16:28 verbose #16590 > > Fable.Core.Emit(\"leptos::html::Nav\")>]]\n#endif\ntype leptos_html_Nav = class
00:16:28 verbose #16591 > > end"
00:16:28 verbose #16592 > >         $'' : $'leptos_html_Nav'
00:16:28 verbose #16593 > >     )
00:16:29 verbose #16594 > 00:16:28   debug #947 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1d7e3967161a904ba73b43b83c41d34a9e53ae0c94e1c543ce4a62f5247695dc/main.spi
00:16:29 verbose #16595 > >
00:16:29 verbose #16596 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:29 verbose #16597 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:29 verbose #16598 > > │ ### option'                                                                  │
00:16:29 verbose #16599 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:29 verbose #16600 > >
00:16:29 verbose #16601 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:29 verbose #16602 > > nominal option' =
00:16:29 verbose #16603 > >     `(
00:16:29 verbose #16604 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:16:29 verbose #16605 > > Fable.Core.Emit(\"leptos::html::Option_\")>]]\n#endif\ntype leptos_html_Option =
00:16:29 verbose #16606 > > class end"
00:16:29 verbose #16607 > >         $'' : $'leptos_html_Option'
00:16:29 verbose #16608 > >     )
00:16:29 verbose #16609 > 00:16:28   debug #948 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/bcc18ba3ab756378f146086ebe2de7a981244990c2876669458e88ded611a592/main.spi
00:16:29 verbose #16610 > >
00:16:29 verbose #16611 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:29 verbose #16612 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:29 verbose #16613 > > │ ### pre                                                                      │
00:16:29 verbose #16614 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:29 verbose #16615 > >
00:16:29 verbose #16616 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:29 verbose #16617 > > nominal pre =
00:16:29 verbose #16618 > >     `(
00:16:29 verbose #16619 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:16:29 verbose #16620 > > Fable.Core.Emit(\"leptos::html::Pre\")>]]\n#endif\ntype leptos_html_Pre = class
00:16:29 verbose #16621 > > end"
00:16:29 verbose #16622 > >         $'' : $'leptos_html_Pre'
00:16:29 verbose #16623 > >     )
00:16:29 verbose #16624 > 00:16:29   debug #949 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/faa36d467e21e398b284092765e4287d5908f2e08f466d70e23bbcb269df12c4/main.spi
00:16:30 verbose #16625 > >
00:16:30 verbose #16626 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:30 verbose #16627 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:30 verbose #16628 > > │ ### select                                                                   │
00:16:30 verbose #16629 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:30 verbose #16630 > >
00:16:30 verbose #16631 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:30 verbose #16632 > > nominal select =
00:16:30 verbose #16633 > >     `(
00:16:30 verbose #16634 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:16:30 verbose #16635 > > Fable.Core.Emit(\"leptos::html::Select\")>]]\n#endif\ntype leptos_html_Select =
00:16:30 verbose #16636 > > class end"
00:16:30 verbose #16637 > >         $'' : $'leptos_html_Select'
00:16:30 verbose #16638 > >     )
00:16:30 verbose #16639 > 00:16:29   debug #950 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/53c0d76b0a0457e33a03da12eb1960e1621dd6b3455930eb6541e2d4fe55d5e6/main.spi
00:16:30 verbose #16640 > >
00:16:30 verbose #16641 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:30 verbose #16642 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:30 verbose #16643 > > │ ### span                                                                     │
00:16:30 verbose #16644 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:30 verbose #16645 > >
00:16:30 verbose #16646 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:30 verbose #16647 > > nominal span =
00:16:30 verbose #16648 > >     `(
00:16:30 verbose #16649 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:16:30 verbose #16650 > > Fable.Core.Emit(\"leptos::html::Span\")>]]\n#endif\ntype leptos_html_Span =
00:16:30 verbose #16651 > > class end"
00:16:30 verbose #16652 > >         $'' : $'leptos_html_Span'
00:16:30 verbose #16653 > >     )
00:16:30 verbose #16654 > 00:16:29   debug #951 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/80bd95efba1a28cb86911ddfe7155b31b23f961aaf67ccca2cd53f85fbf1c5df/main.spi
00:16:30 verbose #16655 > >
00:16:30 verbose #16656 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:30 verbose #16657 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:30 verbose #16658 > > │ ### summary                                                                  │
00:16:30 verbose #16659 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:30 verbose #16660 > >
00:16:30 verbose #16661 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:30 verbose #16662 > > nominal summary =
00:16:30 verbose #16663 > >     `(
00:16:30 verbose #16664 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:16:30 verbose #16665 > > Fable.Core.Emit(\"leptos::html::Summary\")>]]\n#endif\ntype leptos_html_Summary
00:16:30 verbose #16666 > > = class end"
00:16:30 verbose #16667 > >         $'' : $'leptos_html_Summary'
00:16:30 verbose #16668 > >     )
00:16:30 verbose #16669 > 00:16:30   debug #952 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fab1f8f90940628928559bc41524dffc69b9431c11892ca9224b2ef0f1724b04/main.spi
00:16:30 verbose #16670 > >
00:16:30 verbose #16671 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:30 verbose #16672 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:30 verbose #16673 > > │ ### table                                                                    │
00:16:30 verbose #16674 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:30 verbose #16675 > >
00:16:30 verbose #16676 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:30 verbose #16677 > > nominal table =
00:16:30 verbose #16678 > >     `(
00:16:30 verbose #16679 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:16:30 verbose #16680 > > Fable.Core.Emit(\"leptos::html::Table\")>]]\n#endif\ntype leptos_html_Table =
00:16:30 verbose #16681 > > class end"
00:16:30 verbose #16682 > >         $'' : $'leptos_html_Table'
00:16:30 verbose #16683 > >     )
00:16:31 verbose #16684 > 00:16:30   debug #953 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/13ad5e8e27c3009e889133a85af5e6b38271d1094ea9d88556a2b56b65136aa0/main.spi
00:16:31 verbose #16685 > >
00:16:31 verbose #16686 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:31 verbose #16687 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:31 verbose #16688 > > │ ### thead                                                                    │
00:16:31 verbose #16689 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:31 verbose #16690 > >
00:16:31 verbose #16691 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:31 verbose #16692 > > nominal thead =
00:16:31 verbose #16693 > >     `(
00:16:31 verbose #16694 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:16:31 verbose #16695 > > Fable.Core.Emit(\"leptos::html::Thead\")>]]\n#endif\ntype leptos_html_Thead =
00:16:31 verbose #16696 > > class end"
00:16:31 verbose #16697 > >         $'' : $'leptos_html_Thead'
00:16:31 verbose #16698 > >     )
00:16:31 verbose #16699 > 00:16:30   debug #954 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fe6a939212eb94bd4c53c2abdc0c5447b0bb3a1cb3cebd8a71cb47a8f7afdaf2/main.spi
00:16:31 verbose #16700 > >
00:16:31 verbose #16701 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:31 verbose #16702 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:31 verbose #16703 > > │ ### tbody                                                                    │
00:16:31 verbose #16704 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:31 verbose #16705 > >
00:16:31 verbose #16706 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:31 verbose #16707 > > nominal tbody =
00:16:31 verbose #16708 > >     `(
00:16:31 verbose #16709 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:16:31 verbose #16710 > > Fable.Core.Emit(\"leptos::html::Tbody\")>]]\n#endif\ntype leptos_html_Tbody =
00:16:31 verbose #16711 > > class end"
00:16:31 verbose #16712 > >         $'' : $'leptos_html_Tbody'
00:16:31 verbose #16713 > >     )
00:16:31 verbose #16714 > 00:16:31   debug #955 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0ff7ce50c1642529a5c218ea1a8ee1fd6c28e435714ba774e2296e6453b58226/main.spi
00:16:32 verbose #16715 > >
00:16:32 verbose #16716 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:32 verbose #16717 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:32 verbose #16718 > > │ ### tr                                                                       │
00:16:32 verbose #16719 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:32 verbose #16720 > >
00:16:32 verbose #16721 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:32 verbose #16722 > > nominal tr =
00:16:32 verbose #16723 > >     `(
00:16:32 verbose #16724 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:16:32 verbose #16725 > > Fable.Core.Emit(\"leptos::html::Tr\")>]]\n#endif\ntype leptos_html_Tr = class
00:16:32 verbose #16726 > > end"
00:16:32 verbose #16727 > >         $'' : $'leptos_html_Tr'
00:16:32 verbose #16728 > >     )
00:16:32 verbose #16729 > 00:16:31   debug #956 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/48007529db299c0eda4d5c052f66771aed651375fe5c8f902119073fcc511444/main.spi
00:16:32 verbose #16730 > >
00:16:32 verbose #16731 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:32 verbose #16732 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:32 verbose #16733 > > │ ### th                                                                       │
00:16:32 verbose #16734 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:32 verbose #16735 > >
00:16:32 verbose #16736 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:32 verbose #16737 > > nominal th =
00:16:32 verbose #16738 > >     `(
00:16:32 verbose #16739 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:16:32 verbose #16740 > > Fable.Core.Emit(\"leptos::html::Th\")>]]\n#endif\ntype leptos_html_Th = class
00:16:32 verbose #16741 > > end"
00:16:32 verbose #16742 > >         $'' : $'leptos_html_Th'
00:16:32 verbose #16743 > >     )
00:16:32 verbose #16744 > 00:16:31   debug #957 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/66ccbed1a961dbbee78ac537aec1c63e5830f0086ef0494efe802b93974d5b7f/main.spi
00:16:32 verbose #16745 > >
00:16:32 verbose #16746 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:32 verbose #16747 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:32 verbose #16748 > > │ ### td                                                                       │
00:16:32 verbose #16749 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:32 verbose #16750 > >
00:16:32 verbose #16751 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:32 verbose #16752 > > nominal td =
00:16:32 verbose #16753 > >     `(
00:16:32 verbose #16754 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:16:32 verbose #16755 > > Fable.Core.Emit(\"leptos::html::Td\")>]]\n#endif\ntype leptos_html_Td = class
00:16:32 verbose #16756 > > end"
00:16:32 verbose #16757 > >         $'' : $'leptos_html_Td'
00:16:32 verbose #16758 > >     )
00:16:32 verbose #16759 > 00:16:32   debug #958 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9a23ca1fb636057f46f7e652e933fb2b28aa402f62b91bf6797c3704f4faee02/main.spi
00:16:33 verbose #16760 > >
00:16:33 verbose #16761 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:33 verbose #16762 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:33 verbose #16763 > > │ ### svg                                                                      │
00:16:33 verbose #16764 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:33 verbose #16765 > >
00:16:33 verbose #16766 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:33 verbose #16767 > > nominal svg =
00:16:33 verbose #16768 > >     `(
00:16:33 verbose #16769 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:16:33 verbose #16770 > > Fable.Core.Emit(\"leptos::svg::Svg\")>]]\n#endif\ntype leptos_svg_Svg = class
00:16:33 verbose #16771 > > end"
00:16:33 verbose #16772 > >         $'' : $'leptos_svg_Svg'
00:16:33 verbose #16773 > >     )
00:16:33 verbose #16774 > 00:16:32   debug #959 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9b4aa61e0d89b97ff4e036f26223cf32c66ccea7875406d9606abf9c55a98c1e/main.spi
00:16:33 verbose #16775 > >
00:16:33 verbose #16776 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:33 verbose #16777 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:33 verbose #16778 > > │ ### path                                                                     │
00:16:33 verbose #16779 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:33 verbose #16780 > >
00:16:33 verbose #16781 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:33 verbose #16782 > > nominal path =
00:16:33 verbose #16783 > >     `(
00:16:33 verbose #16784 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:16:33 verbose #16785 > > Fable.Core.Emit(\"leptos::svg::Path\")>]]\n#endif\ntype leptos_svg_Path = class
00:16:33 verbose #16786 > > end"
00:16:33 verbose #16787 > >         $'' : $'leptos_svg_Path'
00:16:33 verbose #16788 > >     )
00:16:33 verbose #16789 > 00:16:32   debug #960 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1080e51257ad4b348d39e596aa3b66969f586143b737997e6d64bff0070c9155/main.spi
00:16:33 verbose #16790 > >
00:16:33 verbose #16791 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:33 verbose #16792 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:33 verbose #16793 > > │ ### circle                                                                   │
00:16:33 verbose #16794 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:33 verbose #16795 > >
00:16:33 verbose #16796 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:33 verbose #16797 > > nominal circle =
00:16:33 verbose #16798 > >     `(
00:16:33 verbose #16799 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:16:33 verbose #16800 > > Fable.Core.Emit(\"leptos::svg::Circle\")>]]\n#endif\ntype leptos_svg_Circle =
00:16:33 verbose #16801 > > class end"
00:16:33 verbose #16802 > >         $'' : $'leptos_svg_Circle'
00:16:33 verbose #16803 > >     )
00:16:34 verbose #16804 > 00:16:33   debug #961 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c2d2de8f4ac760490e5dd4eeb56d82c516b7552e6f5da236813a9bcec26b2c72/main.spi
00:16:34 verbose #16805 > >
00:16:34 verbose #16806 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:34 verbose #16807 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:34 verbose #16808 > > │ ### rect                                                                     │
00:16:34 verbose #16809 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:34 verbose #16810 > >
00:16:34 verbose #16811 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:34 verbose #16812 > > nominal rect =
00:16:34 verbose #16813 > >     `(
00:16:34 verbose #16814 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:16:34 verbose #16815 > > Fable.Core.Emit(\"leptos::svg::Rect\")>]]\n#endif\ntype leptos_svg_Rect = class
00:16:34 verbose #16816 > > end"
00:16:34 verbose #16817 > >         $'' : $'leptos_svg_Rect'
00:16:34 verbose #16818 > >     )
00:16:34 verbose #16819 > 00:16:33   debug #962 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/64b93d1c070bd93cf24365839a8dd6d5f990bb61dfc8320631d14532df8afc3e/main.spi
00:16:34 verbose #16820 > >
00:16:34 verbose #16821 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:34 verbose #16822 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:34 verbose #16823 > > │ ### animate                                                                  │
00:16:34 verbose #16824 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:34 verbose #16825 > >
00:16:34 verbose #16826 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:34 verbose #16827 > > nominal animate =
00:16:34 verbose #16828 > >     `(
00:16:34 verbose #16829 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:16:34 verbose #16830 > > Fable.Core.Emit(\"leptos::svg::Animate\")>]]\n#endif\ntype leptos_svg_Animate =
00:16:34 verbose #16831 > > class end"
00:16:34 verbose #16832 > >         $'' : $'leptos_svg_Animate'
00:16:34 verbose #16833 > >     )
00:16:34 verbose #16834 > 00:16:33   debug #963 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/aaf349329fcd04bff478c2d3c8c3e9cfbeb2500265e520e0861ece890e23cba4/main.spi
00:16:34 verbose #16835 > >
00:16:34 verbose #16836 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:34 verbose #16837 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:34 verbose #16838 > > │ ### action                                                                   │
00:16:34 verbose #16839 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:34 verbose #16840 > >
00:16:34 verbose #16841 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:34 verbose #16842 > > nominal action t u =
00:16:34 verbose #16843 > >     `(
00:16:34 verbose #16844 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:16:34 verbose #16845 > > Fable.Core.Emit(\"leptos::Action<$0, $1>\")>]]\n#endif\ntype leptos_Action<'T,
00:16:34 verbose #16846 > > 'U> = class end"
00:16:34 verbose #16847 > >         $'' : $'leptos_Action<`t, `u>'
00:16:34 verbose #16848 > >     )
00:16:35 verbose #16849 > 00:16:34   debug #964 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/882e6e832d70bc0d2c530823490cf35da3f5471e73fb843a9d7e3d29bf08ee89/main.spi
00:16:35 verbose #16850 > >
00:16:35 verbose #16851 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:35 verbose #16852 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:35 verbose #16853 > > │ ### for                                                                      │
00:16:35 verbose #16854 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:35 verbose #16855 > >
00:16:35 verbose #16856 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:35 verbose #16857 > > nominal for =
00:16:35 verbose #16858 > >     `(
00:16:35 verbose #16859 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:16:35 verbose #16860 > > Fable.Core.Emit(\"leptos::For\")>]]\n#endif\ntype leptos_For = class end"
00:16:35 verbose #16861 > >         $'' : $'leptos_For'
00:16:35 verbose #16862 > >     )
00:16:35 verbose #16863 > 00:16:34   debug #965 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b1ce86bd265757af840c635e52f5d591aa35e67d63bd0b6c6af6fde4461b8d71/main.spi
00:16:35 verbose #16864 > >
00:16:35 verbose #16865 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:35 verbose #16866 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:35 verbose #16867 > > │ ### show                                                                     │
00:16:35 verbose #16868 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:35 verbose #16869 > >
00:16:35 verbose #16870 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:35 verbose #16871 > > nominal show =
00:16:35 verbose #16872 > >     `(
00:16:35 verbose #16873 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:16:35 verbose #16874 > > Fable.Core.Emit(\"leptos::Show\")>]]\n#endif\ntype leptos_Show = class end"
00:16:35 verbose #16875 > >         $'' : $'leptos_Show'
00:16:35 verbose #16876 > >     )
00:16:35 verbose #16877 > 00:16:35   debug #966 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6136a984348c9ecda686b3fa3c0b1f9c826e72885a885f4bd475215b78fe590e/main.spi
00:16:35 verbose #16878 > >
00:16:35 verbose #16879 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:35 verbose #16880 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:35 verbose #16881 > > │ ### fragment                                                                 │
00:16:35 verbose #16882 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:35 verbose #16883 > >
00:16:35 verbose #16884 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:35 verbose #16885 > > nominal fragment =
00:16:35 verbose #16886 > >     `(
00:16:35 verbose #16887 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:16:35 verbose #16888 > > Fable.Core.Emit(\"leptos::Fragment\")>]]\n#endif\ntype leptos_Fragment = class
00:16:35 verbose #16889 > > end"
00:16:35 verbose #16890 > >         $'' : $'leptos_Fragment'
00:16:35 verbose #16891 > >     )
00:16:36 verbose #16892 > 00:16:35   debug #967 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c9fc80852b5d85ef655a263b471b0c28592dbdea74e231169e9a6436800c939d/main.spi
00:16:36 verbose #16893 > >
00:16:36 verbose #16894 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:36 verbose #16895 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:36 verbose #16896 > > │ ### interval_handle                                                          │
00:16:36 verbose #16897 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:36 verbose #16898 > >
00:16:36 verbose #16899 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:36 verbose #16900 > > nominal interval_handle =
00:16:36 verbose #16901 > >     `(
00:16:36 verbose #16902 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:16:36 verbose #16903 > > Fable.Core.Emit(\"leptos::leptos_dom::helpers::IntervalHandle\")>]]\n#endif\ntyp
00:16:36 verbose #16904 > > e leptos_dom_IntervalHandle = class end"
00:16:36 verbose #16905 > >         $'' : $'leptos_dom_IntervalHandle'
00:16:36 verbose #16906 > >     )
00:16:36 verbose #16907 > 00:16:35   debug #968 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/41151bfac49502fbc5c44f51c66d474b66fe48a6bd35e9374796d23aa93c8288/main.spi
00:16:36 verbose #16908 > >
00:16:36 verbose #16909 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:36 verbose #16910 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:36 verbose #16911 > > │ ### text                                                                     │
00:16:36 verbose #16912 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:36 verbose #16913 > >
00:16:36 verbose #16914 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:36 verbose #16915 > > nominal text =
00:16:36 verbose #16916 > >     `(
00:16:36 verbose #16917 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:16:36 verbose #16918 > > Fable.Core.Emit(\"leptos::leptos_dom::Text\")>]]\n#endif\ntype leptos_dom_Text =
00:16:36 verbose #16919 > > class end"
00:16:36 verbose #16920 > >         $'' : $'leptos_dom_Text'
00:16:36 verbose #16921 > >     )
00:16:36 verbose #16922 > 00:16:36   debug #969 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b18391c88f7db029154c1faf7fb2a5733439d7469ac0523da1309b2f491df203/main.spi
00:16:37 verbose #16923 > >
00:16:37 verbose #16924 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:37 verbose #16925 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:37 verbose #16926 > > │ ### transparent                                                              │
00:16:37 verbose #16927 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:37 verbose #16928 > >
00:16:37 verbose #16929 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:37 verbose #16930 > > nominal transparent =
00:16:37 verbose #16931 > >     `(
00:16:37 verbose #16932 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:16:37 verbose #16933 > > Fable.Core.Emit(\"leptos::leptos_dom::Transparent\")>]]\n#endif\ntype
00:16:37 verbose #16934 > > leptos_dom_Transparent = class end"
00:16:37 verbose #16935 > >         $'' : $'leptos_dom_Transparent'
00:16:37 verbose #16936 > >     )
00:16:37 verbose #16937 > 00:16:36   debug #970 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7abcc1d0588b4f193e769721a8c5cdf9045825884adab521efade63a37159cba/main.spi
00:16:37 verbose #16938 > >
00:16:37 verbose #16939 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:37 verbose #16940 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:37 verbose #16941 > > │ ### route                                                                    │
00:16:37 verbose #16942 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:37 verbose #16943 > >
00:16:37 verbose #16944 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:37 verbose #16945 > > nominal route =
00:16:37 verbose #16946 > >     `(
00:16:37 verbose #16947 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:16:37 verbose #16948 > > Fable.Core.Emit(\"leptos_router::Route\")>]]\n#endif\ntype leptos_router_Route =
00:16:37 verbose #16949 > > class end"
00:16:37 verbose #16950 > >         $'' : $'leptos_router_Route'
00:16:37 verbose #16951 > >     )
00:16:37 verbose #16952 > 00:16:36   debug #971 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/434a6c23b93eaa1acc7c4df931b41231b433aff4c4d3bf48013db441f623360d/main.spi
00:16:37 verbose #16953 > >
00:16:37 verbose #16954 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:37 verbose #16955 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:37 verbose #16956 > > │ ### route_definition                                                         │
00:16:37 verbose #16957 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:37 verbose #16958 > >
00:16:37 verbose #16959 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:37 verbose #16960 > > nominal route_definition =
00:16:37 verbose #16961 > >     `(
00:16:37 verbose #16962 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:16:37 verbose #16963 > > Fable.Core.Emit(\"leptos_router::RouteDefinition\")>]]\n#endif\ntype
00:16:37 verbose #16964 > > leptos_router_RouteDefinition = class end"
00:16:37 verbose #16965 > >         $'' : $'leptos_router_RouteDefinition'
00:16:37 verbose #16966 > >     )
00:16:38 verbose #16967 > 00:16:37   debug #972 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d1cb5f5005ca5d4549591b1ff0622dac81b4da327a340cb8fa6eabc5a14b6287/main.spi
00:16:38 verbose #16968 > >
00:16:38 verbose #16969 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:38 verbose #16970 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:38 verbose #16971 > > │ ### router                                                                   │
00:16:38 verbose #16972 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:38 verbose #16973 > >
00:16:38 verbose #16974 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:38 verbose #16975 > > nominal router =
00:16:38 verbose #16976 > >     `(
00:16:38 verbose #16977 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:16:38 verbose #16978 > > Fable.Core.Emit(\"leptos_router::Router\")>]]\n#endif\ntype leptos_router_Router
00:16:38 verbose #16979 > > = class end"
00:16:38 verbose #16980 > >         $'' : $'leptos_router_Router'
00:16:38 verbose #16981 > >     )
00:16:38 verbose #16982 > 00:16:37   debug #973 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1a1d6456a41140ddd3f11475de9aea7456164d698392a1e9b55ca1ebdb0e6112/main.spi
00:16:38 verbose #16983 > >
00:16:38 verbose #16984 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:38 verbose #16985 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:38 verbose #16986 > > │ ### routes                                                                   │
00:16:38 verbose #16987 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:38 verbose #16988 > >
00:16:38 verbose #16989 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:38 verbose #16990 > > nominal routes =
00:16:38 verbose #16991 > >     `(
00:16:38 verbose #16992 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:16:38 verbose #16993 > > Fable.Core.Emit(\"leptos_router::Routes\")>]]\n#endif\ntype leptos_router_Routes
00:16:38 verbose #16994 > > = class end"
00:16:38 verbose #16995 > >         $'' : $'leptos_router_Routes'
00:16:38 verbose #16996 > >     )
00:16:38 verbose #16997 > 00:16:37   debug #974 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b01366a338f38043f7b9dcdff067bda9579716dbbd4950b9ee4bd5fd52dc80b2/main.spi
00:16:39 verbose #16998 > >
00:16:39 verbose #16999 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:39 verbose #17000 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:39 verbose #17001 > > │ ### html_element                                                             │
00:16:39 verbose #17002 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:39 verbose #17003 > >
00:16:39 verbose #17004 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:39 verbose #17005 > > nominal html_element t =
00:16:39 verbose #17006 > >     `(
00:16:39 verbose #17007 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:16:39 verbose #17008 > > Fable.Core.Emit(\"leptos::HtmlElement<$0>\")>]]\n#endif\ntype
00:16:39 verbose #17009 > > leptos_HtmlElement<'T> = class end"
00:16:39 verbose #17010 > >         $'' : $'leptos_HtmlElement<`t>'
00:16:39 verbose #17011 > >     )
00:16:39 verbose #17012 > 00:16:38   debug #975 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6d689f71932f7a90c8852e8fb41cd86b8cdbf795d39a2c897dc9c5aa30d0bbd8/main.spi
00:16:39 verbose #17013 > >
00:16:39 verbose #17014 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:39 verbose #17015 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:39 verbose #17016 > > │ ### into_view                                                                │
00:16:39 verbose #17017 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:39 verbose #17018 > >
00:16:39 verbose #17019 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:39 verbose #17020 > > nominal into_view =
00:16:39 verbose #17021 > >     `(
00:16:39 verbose #17022 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:16:39 verbose #17023 > > Fable.Core.Emit(\"leptos::IntoView\")>]]\n#endif\ntype leptos_IntoView = class
00:16:39 verbose #17024 > > end"
00:16:39 verbose #17025 > >         $'' : $'leptos_IntoView'
00:16:39 verbose #17026 > >     )
00:16:39 verbose #17027 > 00:16:39   debug #976 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/05596fdba4c97926c8e265aff00486d40384510195104a8cdc49a020fc5d6292/main.spi
00:16:40 verbose #17028 > >
00:16:40 verbose #17029 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:40 verbose #17030 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:40 verbose #17031 > > │ ### location                                                                 │
00:16:40 verbose #17032 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:40 verbose #17033 > >
00:16:40 verbose #17034 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:40 verbose #17035 > > nominal location =
00:16:40 verbose #17036 > >     `(
00:16:40 verbose #17037 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:16:40 verbose #17038 > > Fable.Core.Emit(\"leptos_router::Location\")>]]\n#endif\ntype
00:16:40 verbose #17039 > > leptos_router_Location = class end"
00:16:40 verbose #17040 > >         $'' : $'leptos_router_Location'
00:16:40 verbose #17041 > >     )
00:16:40 verbose #17042 > 00:16:39   debug #977 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e09cde780e69c13f13ad3e306a3ef1aa5565975376025b9842f04844da9e58af/main.spi
00:16:40 verbose #17043 > >
00:16:40 verbose #17044 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:40 verbose #17045 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:40 verbose #17046 > > │ ### navigate_options                                                         │
00:16:40 verbose #17047 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:40 verbose #17048 > >
00:16:40 verbose #17049 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:40 verbose #17050 > > nominal navigate_options =
00:16:40 verbose #17051 > >     `(
00:16:40 verbose #17052 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:16:40 verbose #17053 > > Fable.Core.Emit(\"leptos_router::NavigateOptions\")>]]\n#endif\ntype
00:16:40 verbose #17054 > > leptos_router_NavigateOptions = class end"
00:16:40 verbose #17055 > >         $'' : $'leptos_router_NavigateOptions'
00:16:40 verbose #17056 > >     )
00:16:40 verbose #17057 > 00:16:39   debug #978 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/af0aad98e11ca501f145196a122071eeb72021356c83462cbc824008193cc0cd/main.spi
00:16:40 verbose #17058 > >
00:16:40 verbose #17059 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:40 verbose #17060 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:40 verbose #17061 > > │ ### url                                                                      │
00:16:40 verbose #17062 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:40 verbose #17063 > >
00:16:40 verbose #17064 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:40 verbose #17065 > > nominal url =
00:16:40 verbose #17066 > >     `(
00:16:40 verbose #17067 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:16:40 verbose #17068 > > Fable.Core.Emit(\"leptos_router::Url\")>]]\n#endif\ntype leptos_router_Url =
00:16:40 verbose #17069 > > class end"
00:16:40 verbose #17070 > >         $'' : $'leptos_router_Url'
00:16:40 verbose #17071 > >     )
00:16:41 verbose #17072 > 00:16:40   debug #979 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b14f58093b075241a801ccc998f1ff25fc848ee5e3171a0c253995bccea7a768/main.spi
00:16:41 verbose #17073 > >
00:16:41 verbose #17074 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:41 verbose #17075 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:41 verbose #17076 > > │ ### memo                                                                     │
00:16:41 verbose #17077 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:41 verbose #17078 > >
00:16:41 verbose #17079 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:41 verbose #17080 > > nominal memo t =
00:16:41 verbose #17081 > >     `(
00:16:41 verbose #17082 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:16:41 verbose #17083 > > Fable.Core.Emit(\"leptos::Memo<$0>\")>]]\n#endif\ntype leptos_Memo<'T> = class
00:16:41 verbose #17084 > > end"
00:16:41 verbose #17085 > >         $'' : $'leptos_Memo<`t>'
00:16:41 verbose #17086 > >     )
00:16:41 verbose #17087 > 00:16:40   debug #980 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d226f1e734cd19f149847a024a1fadc6da0b8fbef3dd765def5b46964fca9116/main.spi
00:16:41 verbose #17088 > >
00:16:41 verbose #17089 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:41 verbose #17090 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:41 verbose #17091 > > │ ### rw_signal                                                                │
00:16:41 verbose #17092 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:41 verbose #17093 > >
00:16:41 verbose #17094 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:41 verbose #17095 > > nominal rw_signal t =
00:16:41 verbose #17096 > >     `(
00:16:41 verbose #17097 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:16:41 verbose #17098 > > Fable.Core.Emit(\"leptos::RwSignal<$0>\")>]]\n#endif\ntype leptos_RwSignal<'T> =
00:16:41 verbose #17099 > > class end"
00:16:41 verbose #17100 > >         $'' : $'leptos_RwSignal<`t>'
00:16:41 verbose #17101 > >     )
00:16:41 verbose #17102 > 00:16:41   debug #981 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/720f67cb8768db7e570ee9664699637cda83fcc9de45d823e894f9077b4c6293/main.spi
00:16:42 verbose #17103 > >
00:16:42 verbose #17104 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:42 verbose #17105 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:42 verbose #17106 > > │ ### signal                                                                   │
00:16:42 verbose #17107 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:42 verbose #17108 > >
00:16:42 verbose #17109 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:42 verbose #17110 > > nominal signal t =
00:16:42 verbose #17111 > >     `(
00:16:42 verbose #17112 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:16:42 verbose #17113 > > Fable.Core.Emit(\"leptos::Signal<$0>\")>]]\n#endif\ntype leptos_Signal<'T> =
00:16:42 verbose #17114 > > class end"
00:16:42 verbose #17115 > >         $'' : $'leptos_Signal<`t>'
00:16:42 verbose #17116 > >     )
00:16:42 verbose #17117 > 00:16:41   debug #982 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4ea6e2959b6914ccd7af1a66b8f87c074c2739d4bb554bc9bd827d4a48891254/main.spi
00:16:42 verbose #17118 > >
00:16:42 verbose #17119 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:42 verbose #17120 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:42 verbose #17121 > > │ ### read_signal                                                              │
00:16:42 verbose #17122 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:42 verbose #17123 > >
00:16:42 verbose #17124 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:42 verbose #17125 > > nominal read_signal t =
00:16:42 verbose #17126 > >     `(
00:16:42 verbose #17127 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:16:42 verbose #17128 > > Fable.Core.Emit(\"leptos::ReadSignal<$0>\")>]]\n#endif\ntype
00:16:42 verbose #17129 > > leptos_ReadSignal<'T> = class end"
00:16:42 verbose #17130 > >         $'' : $'leptos_ReadSignal<`t>'
00:16:42 verbose #17131 > >     )
00:16:42 verbose #17132 > 00:16:41   debug #983 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6d849dba66ec54393af72bc13b058cdbbbd812c7507535a26c115da4bc2d4b6b/main.spi
00:16:42 verbose #17133 > >
00:16:42 verbose #17134 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:42 verbose #17135 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:42 verbose #17136 > > │ ### write_signal                                                             │
00:16:42 verbose #17137 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:42 verbose #17138 > >
00:16:42 verbose #17139 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:42 verbose #17140 > > nominal write_signal t =
00:16:42 verbose #17141 > >     `(
00:16:42 verbose #17142 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:16:42 verbose #17143 > > Fable.Core.Emit(\"leptos::WriteSignal<$0>\")>]]\n#endif\ntype
00:16:42 verbose #17144 > > leptos_WriteSignal<'T> = class end"
00:16:42 verbose #17145 > >         $'' : $'leptos_WriteSignal<`t>'
00:16:42 verbose #17146 > >     )
00:16:42 verbose #17147 > 00:16:42   debug #984 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a714d2909fda7ffd55fee7854d77fd8d76f7ad19a58fbc98cb805c997694db84/main.spi
00:16:43 verbose #17148 > >
00:16:43 verbose #17149 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:43 verbose #17150 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:43 verbose #17151 > > │ ### resource                                                                 │
00:16:43 verbose #17152 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:43 verbose #17153 > >
00:16:43 verbose #17154 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:43 verbose #17155 > > nominal resource t u =
00:16:43 verbose #17156 > >     `(
00:16:43 verbose #17157 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:16:43 verbose #17158 > > Fable.Core.Emit(\"leptos::Resource<$0, $1>\")>]]\n#endif\ntype
00:16:43 verbose #17159 > > leptos_Resource<'T, 'U> = class end"
00:16:43 verbose #17160 > >         $'' : $'leptos_Resource<`t, `u>'
00:16:43 verbose #17161 > >     )
00:16:43 verbose #17162 > 00:16:42   debug #985 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/07ccedb02b0629ae940bfbf335138e14536cbca586c7d0f9c79058c0a507fee4/main.spi
00:16:43 verbose #17163 > >
00:16:43 verbose #17164 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:43 verbose #17165 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:43 verbose #17166 > > │ ### view                                                                     │
00:16:43 verbose #17167 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:43 verbose #17168 > >
00:16:43 verbose #17169 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:43 verbose #17170 > > nominal view =
00:16:43 verbose #17171 > >     `(
00:16:43 verbose #17172 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:16:43 verbose #17173 > > Fable.Core.Emit(\"leptos::View\")>]]\n#endif\ntype leptos_View = class end"
00:16:43 verbose #17174 > >         $'' : $'leptos_View'
00:16:43 verbose #17175 > >     )
00:16:43 verbose #17176 > 00:16:42   debug #986 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1f9c142ece4ad70a52311849e2edc1c93c318d160212def33cc8f897c5d35ea1/main.spi
00:16:43 verbose #17177 > >
00:16:43 verbose #17178 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:43 verbose #17179 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:43 verbose #17180 > > │ ### signal_get                                                               │
00:16:43 verbose #17181 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:43 verbose #17182 > >
00:16:43 verbose #17183 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:43 verbose #17184 > > prototype signal_get signal t : signal t -> t
00:16:44 verbose #17185 > 00:16:43   debug #987 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c225d562202766797b3ca16bcfc45fc133fb55ff89beb6f840a0b5fb218764d4/main.spi
00:16:44 verbose #17186 > >
00:16:44 verbose #17187 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:44 verbose #17188 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:44 verbose #17189 > > │ ### signal_get_untracked                                                     │
00:16:44 verbose #17190 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:44 verbose #17191 > >
00:16:44 verbose #17192 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:44 verbose #17193 > > prototype signal_get_untracked signal t : signal t -> t
00:16:44 verbose #17194 > 00:16:43   debug #988 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/84a3435dceed366f8177ab33d23ad7fc65451f244ac7b216f43eefe50a8b7140/main.spi
00:16:44 verbose #17195 > >
00:16:44 verbose #17196 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:44 verbose #17197 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:44 verbose #17198 > > │ ### signal_update                                                            │
00:16:44 verbose #17199 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:44 verbose #17200 > >
00:16:44 verbose #17201 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:44 verbose #17202 > > prototype signal_update signal t : (t -> t) -> signal t -> ()
00:16:44 verbose #17203 > 00:16:43   debug #989 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b046ea048f36616515751653f9505dbbe01306ffa4b14bb61bb8f0adf435ecf1/main.spi
00:16:44 verbose #17204 > >
00:16:44 verbose #17205 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:44 verbose #17206 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:44 verbose #17207 > > │ ### signal_set                                                               │
00:16:44 verbose #17208 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:44 verbose #17209 > >
00:16:44 verbose #17210 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:44 verbose #17211 > > prototype signal_set signal t : t -> signal t -> ()
00:16:45 verbose #17212 > 00:16:44   debug #990 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b17c4a8a039cd51022e8a45a694d8042ed34104ca8d93a06bf3c9fd577e52b5e/main.spi
00:16:45 verbose #17213 > >
00:16:45 verbose #17214 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:45 verbose #17215 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:45 verbose #17216 > > │ ### log_string                                                               │
00:16:45 verbose #17217 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:45 verbose #17218 > >
00:16:45 verbose #17219 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:45 verbose #17220 > > inl log_string (text : string) =
00:16:45 verbose #17221 > >     (!\($'@@"true; leptos::logging::log\!(""" + !text + @@""");"') : bool) |>
00:16:45 verbose #17222 > > ignore
00:16:45 verbose #17223 > 00:16:44   debug #991 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1700c9dafce87fc6472700ce612528f4e85d82c964a36d8ab1e165887de38cfe/main.spi
00:16:45 verbose #17224 > >
00:16:45 verbose #17225 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:45 verbose #17226 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:45 verbose #17227 > > │ ### log                                                                      │
00:16:45 verbose #17228 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:45 verbose #17229 > >
00:16:45 verbose #17230 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:45 verbose #17231 > > inl log (text : string) =
00:16:45 verbose #17232 > >     (!\\(text, $'@@$"true; leptos::logging::log\!(""{{}}"", $0)"') : bool) |>
00:16:45 verbose #17233 > > ignore
00:16:45 verbose #17234 > 00:16:45   debug #992 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/30c2926ea92e9656b81aeb8fa680ba526ca8323dd7810029fd5174b30bd7a171/main.spi
00:16:46 verbose #17235 > >
00:16:46 verbose #17236 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:46 verbose #17237 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:46 verbose #17238 > > │ ### log_debug                                                                │
00:16:46 verbose #17239 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:46 verbose #17240 > >
00:16:46 verbose #17241 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:46 verbose #17242 > > inl log_debug (text : string) =
00:16:46 verbose #17243 > >     (!\\(text, $'@@$"true; leptos::logging::log\!(""{{:?}}"", $0)"') : bool) |>
00:16:46 verbose #17244 > > ignore
00:16:46 verbose #17245 > 00:16:45   debug #993 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e3a1648363dd87a598088c7cb4ee6f84d2782572616bbabb511c47f6327790ed/main.spi
00:16:46 verbose #17246 > >
00:16:46 verbose #17247 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:46 verbose #17248 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:46 verbose #17249 > > │ ### log_pretty                                                               │
00:16:46 verbose #17250 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:46 verbose #17251 > >
00:16:46 verbose #17252 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:46 verbose #17253 > > inl log_pretty (text : string) =
00:16:46 verbose #17254 > >     (!\\(text, $'@@$"true; leptos::logging::log\!(""{{:#?}}"", $0)"') : bool) |>
00:16:46 verbose #17255 > > ignore
00:16:46 verbose #17256 > 00:16:45   debug #994 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b899bce5e8be7a730bab88c2bbba018e31d37d31107b73467e7654f05dc62587/main.spi
00:16:46 verbose #17257 > >
00:16:46 verbose #17258 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:46 verbose #17259 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:46 verbose #17260 > > │ ### log_format                                                               │
00:16:46 verbose #17261 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:46 verbose #17262 > >
00:16:46 verbose #17263 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:46 verbose #17264 > > inl log_format fn obj =
00:16:46 verbose #17265 > >     inl obj_log = obj |> sm'.format_debug
00:16:46 verbose #17266 > >     inl text = fn obj_log |> sm'.ellipsis_end 200
00:16:46 verbose #17267 > >     log text
00:16:46 verbose #17268 > >     obj
00:16:47 verbose #17269 > 00:16:46   debug #995 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ad7395e2f437e5a31bd98f42d32258d1a0b2fbbbcd0dac5b30db802edcf3bc45/main.spi
00:16:47 verbose #17270 > >
00:16:47 verbose #17271 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:47 verbose #17272 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:47 verbose #17273 > > │ ### mount_to_body                                                            │
00:16:47 verbose #17274 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:47 verbose #17275 > >
00:16:47 verbose #17276 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:47 verbose #17277 > > inl mount_to_body (view_fn : () -> rust.impl into_view) : () =
00:16:47 verbose #17278 > >     (!\\(view_fn, $'"true; leptos::mount_to_body(|| $0());"') : bool) |> ignore
00:16:47 verbose #17279 > 00:16:46   debug #996 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/68bf9e8e1b14ef647f29f8a2d58254908a0412b905bbe4b9193dfdd006b6cbaf/main.spi
00:16:47 verbose #17280 > >
00:16:47 verbose #17281 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:47 verbose #17282 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:47 verbose #17283 > > │ ### view_vec_to_fragment                                                     │
00:16:47 verbose #17284 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:47 verbose #17285 > >
00:16:47 verbose #17286 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:47 verbose #17287 > > inl view_vec_to_fragment (view : am'.vec view) : fragment =
00:16:47 verbose #17288 > >     !\\(view, $'"leptos::Fragment::new($0)"')
00:16:47 verbose #17289 > 00:16:47   debug #997 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6acf50bd375412f9d9efa08d2912e1527eaf8f4eac0da8c1901212170d7356b6/main.spi
00:16:48 verbose #17290 > >
00:16:48 verbose #17291 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:48 verbose #17292 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:48 verbose #17293 > > │ ### view_array_to_fragment                                                   │
00:16:48 verbose #17294 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:48 verbose #17295 > >
00:16:48 verbose #17296 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:48 verbose #17297 > > inl view_array_to_fragment (view : array_base view) : fragment =
00:16:48 verbose #17298 > >     view |> am'.to_vec |> view_vec_to_fragment
00:16:48 verbose #17299 > 00:16:47   debug #998 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ff2af7a1c6c8c2db82835ac9d44a6806b5d2dc54b1a1ef3894848a1aef91f8ab/main.spi
00:16:48 verbose #17300 > >
00:16:48 verbose #17301 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:48 verbose #17302 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:48 verbose #17303 > > │ ### element_to_view                                                          │
00:16:48 verbose #17304 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:48 verbose #17305 > >
00:16:48 verbose #17306 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:48 verbose #17307 > > inl element_to_view (view : html_element _) : view =
00:16:48 verbose #17308 > >     !\\(view, $'"leptos::IntoView::into_view($0)"')
00:16:48 verbose #17309 > 00:16:47   debug #999 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8111dc2f46f135fb25709f0a88f11bcdc8ad38cd4f2a1ca420ea3f395367ef6f/main.spi
00:16:48 verbose #17310 > >
00:16:48 verbose #17311 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:48 verbose #17312 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:48 verbose #17313 > > │ ### view_to_fragment                                                         │
00:16:48 verbose #17314 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:48 verbose #17315 > >
00:16:48 verbose #17316 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:48 verbose #17317 > > inl view_to_fragment (view : view) : fragment =
00:16:48 verbose #17318 > >     ;[[view]] |> view_array_to_fragment
00:16:48 verbose #17319 > 00:16:48   debug #1000 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/801e1f98698b5996b08bd3810520959bbbf4c1b296d08f1a7d4b8633ff9dbb74/main.spi
00:16:49 verbose #17320 > >
00:16:49 verbose #17321 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:49 verbose #17322 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:49 verbose #17323 > > │ ### fragment_to_view                                                         │
00:16:49 verbose #17324 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:49 verbose #17325 > >
00:16:49 verbose #17326 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:49 verbose #17327 > > inl fragment_to_view (fragment : fragment) : view =
00:16:49 verbose #17328 > >     !\\(fragment, $'"leptos::IntoView::into_view($0)"')
00:16:49 verbose #17329 > 00:16:48   debug #1001 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/456191bbf10212f46bc1088d76e995eb1cec2f3b1adf597aa2a04dac02812771/main.spi
00:16:49 verbose #17330 > >
00:16:49 verbose #17331 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:49 verbose #17332 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:49 verbose #17333 > > │ ### element_to_fragment                                                      │
00:16:49 verbose #17334 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:49 verbose #17335 > >
00:16:49 verbose #17336 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:49 verbose #17337 > > inl element_to_fragment (view : html_element _) : fragment =
00:16:49 verbose #17338 > >     view
00:16:49 verbose #17339 > >     |> element_to_view
00:16:49 verbose #17340 > >     |> view_to_fragment
00:16:49 verbose #17341 > 00:16:48   debug #1002 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7b2e3cd582d05fde0b96117c28a859873cd18d3cd86a9b3d2bc942518b601b8e/main.spi
00:16:49 verbose #17342 > >
00:16:49 verbose #17343 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:49 verbose #17344 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:49 verbose #17345 > > │ ### (~:>) fragment                                                           │
00:16:49 verbose #17346 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:49 verbose #17347 > >
00:16:49 verbose #17348 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:49 verbose #17349 > > instance (~:>) fragment = fun x =>
00:16:49 verbose #17350 > >     real
00:16:49 verbose #17351 > >         typecase t with
00:16:49 verbose #17352 > >         | array_base (html_element ~el) =>
00:16:49 verbose #17353 > >             inl x = am'.to_vec `(html_element el) x
00:16:49 verbose #17354 > >             inl x = am'.vec_map' `(html_element el) `view (element_to_view `el)
00:16:49 verbose #17355 > > x
00:16:49 verbose #17356 > >             inl x : a i32 view = am'.from_vec `i32 `view x
00:16:49 verbose #17357 > >             inl (a x) = x
00:16:49 verbose #17358 > >             view_array_to_fragment x
00:16:49 verbose #17359 > >         | array_base view => view_array_to_fragment x
00:16:49 verbose #17360 > >         | _ => x
00:16:49 verbose #17361 > 00:16:49   debug #1003 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d1c36f51f2e578418d24a10539144db0465e2d62782ac7eb7f06692fa6470479/main.spi
00:16:50 verbose #17362 > >
00:16:50 verbose #17363 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:50 verbose #17364 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:50 verbose #17365 > > │ ### (~:>) view                                                               │
00:16:50 verbose #17366 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:50 verbose #17367 > >
00:16:50 verbose #17368 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:50 verbose #17369 > > instance (~:>) view = fun x =>
00:16:50 verbose #17370 > >     real
00:16:50 verbose #17371 > >         typecase t with
00:16:50 verbose #17372 > >         | html_element _ => element_to_view x
00:16:50 verbose #17373 > >         | _ => x
00:16:50 verbose #17374 > 00:16:49   debug #1004 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c0ed5ae0381ae79f06600ad9082103c6b7d00bc2687497f361cb31d1fc4d2804/main.spi
00:16:50 verbose #17375 > >
00:16:50 verbose #17376 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:50 verbose #17377 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:50 verbose #17378 > > │ ### view_trait_to_element                                                    │
00:16:50 verbose #17379 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:50 verbose #17380 > >
00:16:50 verbose #17381 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:50 verbose #17382 > > inl view_trait_to_element (view : rust.impl into_view) : html_element _ =
00:16:50 verbose #17383 > >     $'!view |> unbox'
00:16:50 verbose #17384 > 00:16:50   debug #1005 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/70a1fc3805a5d7f58440dd2860bdda76c718baf57eca2ad3332cd57c8057f8e1/main.spi
00:16:51 verbose #17385 > >
00:16:51 verbose #17386 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:51 verbose #17387 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:51 verbose #17388 > > │ ### view_trait_to_route_definition                                           │
00:16:51 verbose #17389 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:51 verbose #17390 > >
00:16:51 verbose #17391 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:51 verbose #17392 > > inl view_trait_to_route_definition (view : rust.impl into_view) :
00:16:51 verbose #17393 > > route_definition =
00:16:51 verbose #17394 > >     $'!view |> unbox'
00:16:51 verbose #17395 > 00:16:50   debug #1006 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a5078878420abcd9813eeb8ffcc37d3e35e8be7c9065e4791037faa660ea9806/main.spi
00:16:51 verbose #17396 > >
00:16:51 verbose #17397 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:51 verbose #17398 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:51 verbose #17399 > > │ ### to_element_view                                                          │
00:16:51 verbose #17400 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:51 verbose #17401 > >
00:16:51 verbose #17402 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:51 verbose #17403 > > inl to_element_view (view : html_element _) : rust.impl into_view =
00:16:51 verbose #17404 > >     $'!view |> unbox'
00:16:51 verbose #17405 > 00:16:50   debug #1007 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a600dff64e873e87258f8aa718c305c4452e0b000d0cfb849bcaf8fce150acde/main.spi
00:16:51 verbose #17406 > >
00:16:51 verbose #17407 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:51 verbose #17408 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:51 verbose #17409 > > │ ### to_view_trait                                                            │
00:16:51 verbose #17410 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:51 verbose #17411 > >
00:16:51 verbose #17412 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:51 verbose #17413 > > inl to_view_trait (view : view) : rust.impl into_view =
00:16:51 verbose #17414 > >     $'!view |> unbox'
00:16:52 verbose #17415 > 00:16:51   debug #1008 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/66175f251255e9cca9c8ac45c37a10f4a894cc229a0f097abc013093ba47da6b/main.spi
00:16:52 verbose #17416 > >
00:16:52 verbose #17417 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:52 verbose #17418 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:52 verbose #17419 > > │ ### to_fragment_unbox                                                        │
00:16:52 verbose #17420 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:52 verbose #17421 > >
00:16:52 verbose #17422 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:52 verbose #17423 > > inl to_fragment_unbox view : fragment =
00:16:52 verbose #17424 > >     $'!view |> unbox'
00:16:52 verbose #17425 > 00:16:51   debug #1009 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/de44d558ec884866a33e34c50d8953c18f311535b5712238d1ecb1ba48e23386/main.spi
00:16:52 verbose #17426 > >
00:16:52 verbose #17427 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:52 verbose #17428 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:52 verbose #17429 > > │ ### from_fragment_unbox                                                      │
00:16:52 verbose #17430 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:52 verbose #17431 > >
00:16:52 verbose #17432 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:52 verbose #17433 > > inl from_fragment_unbox (fragment : fragment) =
00:16:52 verbose #17434 > >     $'!fragment |> unbox'
00:16:52 verbose #17435 > 00:16:52   debug #1010 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9171eaa070ba767243efa75530564e248bcc13e9c9be7271eae5c9de01ac7e76/main.spi
00:16:53 verbose #17436 > >
00:16:53 verbose #17437 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:53 verbose #17438 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:53 verbose #17439 > > │ ### element_to_view_trait                                                    │
00:16:53 verbose #17440 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:53 verbose #17441 > >
00:16:53 verbose #17442 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:53 verbose #17443 > > inl element_to_view_trait (macro : html_element _) : rust.impl into_view =
00:16:53 verbose #17444 > >     !\($'"leptos::view\! { {!macro} }"')
00:16:53 verbose #17445 > 00:16:52   debug #1011 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/536faa424e5820798819abdaf166e96bb9eba31b21271a489506944caf9d3aab/main.spi
00:16:53 verbose #17446 > >
00:16:53 verbose #17447 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:53 verbose #17448 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:53 verbose #17449 > > │ ### macro_to_view_trait                                                      │
00:16:53 verbose #17450 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:53 verbose #17451 > >
00:16:53 verbose #17452 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:53 verbose #17453 > > inl macro_to_view_trait (macro : string) : rust.impl into_view =
00:16:53 verbose #17454 > >     !\($'"leptos::view\! { " + !macro + " }"')
00:16:53 verbose #17455 > 00:16:52   debug #1012 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/cecab3126a01de515a437fc1a8da0f0a6d5224dfd2c64d1e24c691b750fdaa3f/main.spi
00:16:53 verbose #17456 > >
00:16:53 verbose #17457 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:53 verbose #17458 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:53 verbose #17459 > > │ ### macro_to_fragment                                                        │
00:16:53 verbose #17460 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:53 verbose #17461 > >
00:16:53 verbose #17462 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:53 verbose #17463 > > inl macro_to_fragment (macro : string) : fragment =
00:16:53 verbose #17464 > >     !\($'"leptos::view\! { " + !macro + " }"')
00:16:53 verbose #17465 > 00:16:53   debug #1013 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e9955720c882559abc4fa7ac51fa8e2a16fa579bd959c48a6e226165361d96d7/main.spi
00:16:54 verbose #17466 > >
00:16:54 verbose #17467 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:54 verbose #17468 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:54 verbose #17469 > > │ ### new_transparent                                                          │
00:16:54 verbose #17470 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:54 verbose #17471 > >
00:16:54 verbose #17472 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:54 verbose #17473 > > inl new_transparent x : transparent =
00:16:54 verbose #17474 > >     !\\(x, $'"leptos::leptos_dom::Transparent::new($0)"')
00:16:54 verbose #17475 > 00:16:53   debug #1014 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/336de78ee21ade439b63d9852d9272d803204efe48f0dd03f7439447367cd2c4/main.spi
00:16:54 verbose #17476 > >
00:16:54 verbose #17477 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:54 verbose #17478 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:54 verbose #17479 > > │ ### closure_to_view                                                          │
00:16:54 verbose #17480 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:54 verbose #17481 > >
00:16:54 verbose #17482 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:54 verbose #17483 > > inl closure_to_view (closure : rust.func0 view) : view =
00:16:54 verbose #17484 > >     !\\(closure, $'"leptos::IntoView::into_view(move || $0())"')
00:16:54 verbose #17485 > 00:16:53   debug #1015 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/267b33ea0f1344f0f637cac3bfda150a73fa05f3529ee5e6d06e11f1a7c28c5d/main.spi
00:16:54 verbose #17486 > >
00:16:54 verbose #17487 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:54 verbose #17488 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:54 verbose #17489 > > │ ### batch                                                                    │
00:16:54 verbose #17490 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:54 verbose #17491 > >
00:16:54 verbose #17492 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:54 verbose #17493 > > inl batch (fn : () -> ()) : () =
00:16:54 verbose #17494 > >     (!\\(fn, $'"true; leptos::batch(move || $0());"') : bool) |> ignore
00:16:55 verbose #17495 > 00:16:54   debug #1016 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3e1222f6168bffab4cb8e6d28b0b1bccdbdd104391924b82781c84a0e1ff4acd/main.spi
00:16:55 verbose #17496 > >
00:16:55 verbose #17497 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:55 verbose #17498 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:55 verbose #17499 > > │ ### closure_to_fragment                                                      │
00:16:55 verbose #17500 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:55 verbose #17501 > >
00:16:55 verbose #17502 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:55 verbose #17503 > > inl closure_to_fragment (closure : rust.func0 fragment) : fragment =
00:16:55 verbose #17504 > >     !\\(closure, $'"leptos::IntoView::into_view(move || $0())"')
00:16:55 verbose #17505 > >     |> view_to_fragment
00:16:55 verbose #17506 > 00:16:54   debug #1017 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5366cda42f21950763799263508962d100b50e802ef40f504e3c810c9c65baed/main.spi
00:16:55 verbose #17507 > >
00:16:55 verbose #17508 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:55 verbose #17509 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:55 verbose #17510 > > │ ### array_to_view                                                            │
00:16:55 verbose #17511 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:55 verbose #17512 > >
00:16:55 verbose #17513 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:55 verbose #17514 > > inl array_to_view (view : a _ view) : view =
00:16:55 verbose #17515 > >     !\\(view, $'"leptos::CollectView::collect_view($0.to_vec())"')
00:16:55 verbose #17516 > 00:16:54   debug #1018 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4a32ef041968f92d1d54ba24d64d6954c34de0bd64b31dfd0b810ff715e79972/main.spi
00:16:55 verbose #17517 > >
00:16:55 verbose #17518 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:55 verbose #17519 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:55 verbose #17520 > > │ ### to_fragment                                                              │
00:16:55 verbose #17521 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:55 verbose #17522 > >
00:16:55 verbose #17523 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:55 verbose #17524 > > inl to_fragment x : fragment =
00:16:55 verbose #17525 > >     $'!x |> unbox'
00:16:56 verbose #17526 > 00:16:55   debug #1019 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e2925ca238647b7254858f734af9fbfc2943df644d5a2df8f251f79efb98b015/main.spi
00:16:56 verbose #17527 > >
00:16:56 verbose #17528 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:56 verbose #17529 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:56 verbose #17530 > > │ ### text_to_view                                                             │
00:16:56 verbose #17531 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:56 verbose #17532 > >
00:16:56 verbose #17533 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:56 verbose #17534 > > inl text_to_view (text : text) : view =
00:16:56 verbose #17535 > >     !\\(text, $'"leptos::IntoView::into_view($0)"')
00:16:56 verbose #17536 > 00:16:55   debug #1020 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b18d26a9e83694cd67bc5b98d61375a3573d52c7b552a205d27da98fd29b7fa1/main.spi
00:16:56 verbose #17537 > >
00:16:56 verbose #17538 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:56 verbose #17539 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:56 verbose #17540 > > │ ### text_to_fragment                                                         │
00:16:56 verbose #17541 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:56 verbose #17542 > >
00:16:56 verbose #17543 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:56 verbose #17544 > > inl text_to_fragment (text : text) : fragment =
00:16:56 verbose #17545 > >     text
00:16:56 verbose #17546 > >     |> text_to_view
00:16:56 verbose #17547 > >     |> view_to_fragment
00:16:56 verbose #17548 > 00:16:56   debug #1021 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0764f0e4433112ba9f3d6e6fdd6868361fd43bdd727500f09f367d4c8a01563f/main.spi
00:16:56 verbose #17549 > >
00:16:56 verbose #17550 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:56 verbose #17551 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:56 verbose #17552 > > │ ### macro_to_view                                                            │
00:16:56 verbose #17553 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:56 verbose #17554 > >
00:16:56 verbose #17555 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:56 verbose #17556 > > inl macro_to_view (macro : string) : view =
00:16:56 verbose #17557 > >     !\($'"leptos::IntoView::into_view(leptos::view\! { " + !macro + " })"')
00:16:57 verbose #17558 > 00:16:56   debug #1022 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4a00c9adcb8616e45765261c24bc2d850ab5e2878772b36a21cbb213fea30282/main.spi
00:16:57 verbose #17559 > >
00:16:57 verbose #17560 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:57 verbose #17561 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:57 verbose #17562 > > │ ### transparent_to_view                                                      │
00:16:57 verbose #17563 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:57 verbose #17564 > >
00:16:57 verbose #17565 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:57 verbose #17566 > > inl transparent_to_view (transparent : transparent) : view =
00:16:57 verbose #17567 > >     !\\(transparent, $'"leptos::IntoView::into_view($0)"')
00:16:57 verbose #17568 > 00:16:56   debug #1023 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c142ae4d2b008bae54ea861a1aee4f1675ad038a31a20d6d5f2fbf3e81a4fd08/main.spi
00:16:57 verbose #17569 > >
00:16:57 verbose #17570 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:57 verbose #17571 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:57 verbose #17572 > > │ ### transparent_to_fragment                                                  │
00:16:57 verbose #17573 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:57 verbose #17574 > >
00:16:57 verbose #17575 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:57 verbose #17576 > > inl transparent_to_fragment (transparent : transparent) : fragment =
00:16:57 verbose #17577 > >     transparent
00:16:57 verbose #17578 > >     |> transparent_to_view
00:16:57 verbose #17579 > >     |> view_to_fragment
00:16:57 verbose #17580 > 00:16:57   debug #1024 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/aa227672a7724773e51fe7db03b333cfda5574fd7f7101aab4af38b6cbc8d18f/main.spi
00:16:58 verbose #17581 > >
00:16:58 verbose #17582 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:58 verbose #17583 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:58 verbose #17584 > > │ ### macro_to_element                                                         │
00:16:58 verbose #17585 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:58 verbose #17586 > >
00:16:58 verbose #17587 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:58 verbose #17588 > > inl macro_to_element (view : string) : html_element _ =
00:16:58 verbose #17589 > >     view |> macro_to_view_trait |> view_trait_to_element
00:16:58 verbose #17590 > 00:16:57   debug #1025 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3b8896ec5cdc954c8e51d7e1de0012edacf76671d66699b2188ee33a9b132741/main.spi
00:16:58 verbose #17591 > >
00:16:58 verbose #17592 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:58 verbose #17593 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:58 verbose #17594 > > │ ### transparents_fragment                                                    │
00:16:58 verbose #17595 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:58 verbose #17596 > >
00:16:58 verbose #17597 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:58 verbose #17598 > > inl transparents_fragment (items : array_base transparent) : fragment =
00:16:58 verbose #17599 > >     inl items = items |> am'.to_vec
00:16:58 verbose #17600 > >     !\\((items, transparent_to_view), $'"$0.iter().map(|x|
00:16:58 verbose #17601 > > $1(x.clone())).collect::<leptos::Fragment>()"')
00:16:58 verbose #17602 > 00:16:57   debug #1026 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/af5b4634d4639456fed8eb73f9a3fb182ac65e17a351348c9fb26079e5f571e9/main.spi
00:16:58 verbose #17603 > >
00:16:58 verbose #17604 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:58 verbose #17605 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:58 verbose #17606 > > │ ### views_to_view                                                            │
00:16:58 verbose #17607 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:58 verbose #17608 > >
00:16:58 verbose #17609 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:58 verbose #17610 > > inl views_to_view (items : array_base view) : view =
00:16:58 verbose #17611 > >     inl items = join items
00:16:58 verbose #17612 > >     items
00:16:58 verbose #17613 > >     // |> fun x => a (join x) : a u64 _
00:16:58 verbose #17614 > >     |> fun x => a x : a u64 _
00:16:58 verbose #17615 > >     |> array_to_view
00:16:59 verbose #17616 > 00:16:58   debug #1027 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3d2ad19defc8865efe0028e3c8f824b42aabdbf91c683494cb6a8b7d31aec814/main.spi
00:16:59 verbose #17617 > >
00:16:59 verbose #17618 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:59 verbose #17619 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:59 verbose #17620 > > │ ### new_text                                                                 │
00:16:59 verbose #17621 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:59 verbose #17622 > >
00:16:59 verbose #17623 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:59 verbose #17624 > > inl new_text (text : string) : text =
00:16:59 verbose #17625 > >     inl text = text |> sm'.to_std_string
00:16:59 verbose #17626 > >     !\\(text, $'"leptos::html::text($0)"')
00:16:59 verbose #17627 > 00:16:58   debug #1028 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9e2683fc517e14e6ad7b7fa6e788472cf94af480c89aeff45c4f53d8c689f3d5/main.spi
00:16:59 verbose #17628 > >
00:16:59 verbose #17629 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:59 verbose #17630 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:59 verbose #17631 > > │ ### text_view                                                                │
00:16:59 verbose #17632 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:59 verbose #17633 > >
00:16:59 verbose #17634 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:59 verbose #17635 > > inl text_view (text : string) : view =
00:16:59 verbose #17636 > >     text
00:16:59 verbose #17637 > >     |> new_text
00:16:59 verbose #17638 > >     |> text_to_view
00:16:59 verbose #17639 > 00:16:58   debug #1029 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b000b009b81f5e3e7ee07a2e51a8b8eb900fd75cd0da1534ae7ac4491e80a065/main.spi
00:16:59 verbose #17640 > >
00:16:59 verbose #17641 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:59 verbose #17642 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:59 verbose #17643 > > │ ### text_fragment                                                            │
00:16:59 verbose #17644 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:59 verbose #17645 > >
00:16:59 verbose #17646 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:59 verbose #17647 > > inl text_fragment (text : string) : fragment =
00:16:59 verbose #17648 > >     text
00:16:59 verbose #17649 > >     |> text_view
00:16:59 verbose #17650 > >     |> view_to_fragment
00:17:00 verbose #17651 > 00:16:59   debug #1030 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/15f04c7f33877cda90e81f50946971d383e61970a3dfe9876992f6d97fd7081d/main.spi
00:17:00 verbose #17652 > >
00:17:00 verbose #17653 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:00 verbose #17654 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:00 verbose #17655 > > │ ### provide_meta_context                                                     │
00:17:00 verbose #17656 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:00 verbose #17657 > >
00:17:00 verbose #17658 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:00 verbose #17659 > > inl provide_meta_context () =
00:17:00 verbose #17660 > >     (!\($'"true; leptos_meta::provide_meta_context()"') : bool) |> ignore
00:17:00 verbose #17661 > 00:16:59   debug #1031 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c2aa6fc20a8e3864724d59932b95f21f6e950d3168b1ccf56ce129afe8ff060f/main.spi
00:17:00 verbose #17662 > >
00:17:00 verbose #17663 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:00 verbose #17664 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:00 verbose #17665 > > │ ### provide_context                                                          │
00:17:00 verbose #17666 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:00 verbose #17667 > >
00:17:00 verbose #17668 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:00 verbose #17669 > > inl provide_context forall t. (x : t) =
00:17:00 verbose #17670 > >     (!\\(x, $'$"true; leptos::provide_context::<std::sync::Arc<`t>>($0)"') :
00:17:00 verbose #17671 > > bool) |> ignore
00:17:00 verbose #17672 > 00:17:00   debug #1032 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ff7f0498165a3ed11e21b59a922ee8a5620ea6032ef081538f63cc20dab2f56b/main.spi
00:17:01 verbose #17673 > >
00:17:01 verbose #17674 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:01 verbose #17675 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:01 verbose #17676 > > │ ### create_signal                                                            │
00:17:01 verbose #17677 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:01 verbose #17678 > >
00:17:01 verbose #17679 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:01 verbose #17680 > > inl create_signal forall t. (value : t) : read_signal t * write_signal t =
00:17:01 verbose #17681 > >     !\\(value, $'$"leptos::create_signal($0)"')
00:17:01 verbose #17682 > 00:17:00   debug #1033 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/952afd06666b36b345d30d5cf6583837280690c3028ff603c9a37c68ff20d617/main.spi
00:17:01 verbose #17683 > >
00:17:01 verbose #17684 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:01 verbose #17685 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:01 verbose #17686 > > │ ### create_rw_signal                                                         │
00:17:01 verbose #17687 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:01 verbose #17688 > >
00:17:01 verbose #17689 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:01 verbose #17690 > > inl create_rw_signal forall t. (value : t) : rw_signal t =
00:17:01 verbose #17691 > >     !\\(value, $'$"leptos::create_rw_signal($0)"')
00:17:01 verbose #17692 > 00:17:00   debug #1034 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/bab1069d92c632b54e8c4cf91ccd46d706cac21c0b191365c0ab827d56405467/main.spi
00:17:01 verbose #17693 > >
00:17:01 verbose #17694 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:01 verbose #17695 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:01 verbose #17696 > > │ ### read_only                                                                │
00:17:01 verbose #17697 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:01 verbose #17698 > >
00:17:01 verbose #17699 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:01 verbose #17700 > > inl read_only forall t. (value : rw_signal t) : read_signal t =
00:17:01 verbose #17701 > >     !\\(value, $'$"leptos::RwSignal::read_only(&$0)"')
00:17:02 verbose #17702 > 00:17:01   debug #1035 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8290287e39b61859fcbe37f7e23e127d056c52d90bc17dbb39ba7f43bf4f39ac/main.spi
00:17:02 verbose #17703 > >
00:17:02 verbose #17704 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:02 verbose #17705 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:02 verbose #17706 > > │ ### write_only                                                               │
00:17:02 verbose #17707 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:02 verbose #17708 > >
00:17:02 verbose #17709 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:02 verbose #17710 > > inl write_only forall t. (value : rw_signal t) : write_signal t =
00:17:02 verbose #17711 > >     !\\(value, $'$"leptos::RwSignal::write_only(&$0)"')
00:17:02 verbose #17712 > 00:17:01   debug #1036 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fb5ff93136662d9b00eb004a6c3313eda06e83c208183681dce023df58b799c9/main.spi
00:17:02 verbose #17713 > >
00:17:02 verbose #17714 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:02 verbose #17715 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:02 verbose #17716 > > │ ### typecheck_signal                                                         │
00:17:02 verbose #17717 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:02 verbose #17718 > >
00:17:02 verbose #17719 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:02 verbose #17720 > > inl typecheck_signal forall (t : * -> *) u. (signal : t u) : () =
00:17:02 verbose #17721 > >     real
00:17:02 verbose #17722 > >         typecase t with
00:17:02 verbose #17723 > >         | signal => ()
00:17:02 verbose #17724 > >         | rw_signal => ()
00:17:02 verbose #17725 > >         | read_signal => ()
00:17:02 verbose #17726 > >         | write_signal => ()
00:17:02 verbose #17727 > >         | memo => ()
00:17:02 verbose #17728 > >         | _ => error_type `(()) ("invalid signal", ``(t u))
00:17:02 verbose #17729 > 00:17:02   debug #1037 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0d137a1e184d399d46a2179e4d52449be95fc1dbb25b63e24f7543e97da7246e/main.spi
00:17:02 verbose #17730 > >
00:17:02 verbose #17731 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:02 verbose #17732 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:02 verbose #17733 > > │ ### memo_get'                                                                │
00:17:02 verbose #17734 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:02 verbose #17735 > >
00:17:02 verbose #17736 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:02 verbose #17737 > > inl memo_get' forall t. (memo : memo t) : t =
00:17:02 verbose #17738 > >     !\\(memo, $'$"$0()"')
00:17:03 verbose #17739 > 00:17:02   debug #1038 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d57e0924d7a96f3ff837489dd9c6a2713cf4badfd46f07f45e10b29bbed9018f/main.spi
00:17:03 verbose #17740 > >
00:17:03 verbose #17741 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:03 verbose #17742 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:03 verbose #17743 > > │ ### signal_get'                                                              │
00:17:03 verbose #17744 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:03 verbose #17745 > >
00:17:03 verbose #17746 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:03 verbose #17747 > > inl signal_get' forall (t : * -> *) u. (signal : t u) : u =
00:17:03 verbose #17748 > >     signal |> typecheck_signal
00:17:03 verbose #17749 > >     !\\(signal, $'$"leptos::SignalGet::get(&$0)"')
00:17:03 verbose #17750 > 00:17:02   debug #1039 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2fe28798a44fbdd415a1563e0ffc50bc30f9bee1381d3b71c48c27bab0d61656/main.spi
00:17:03 verbose #17751 > >
00:17:03 verbose #17752 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:03 verbose #17753 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:03 verbose #17754 > > │ ### signal_get signal                                                        │
00:17:03 verbose #17755 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:03 verbose #17756 > >
00:17:03 verbose #17757 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:03 verbose #17758 > > instance signal_get signal = signal_get'
00:17:03 verbose #17759 > 00:17:03   debug #1040 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/11877184890cd84aee13cf2dafab343f28c4d46fe40920fdc7530f5517accf26/main.spi
00:17:04 verbose #17760 > >
00:17:04 verbose #17761 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:04 verbose #17762 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:04 verbose #17763 > > │ ### signal_get rw_signal                                                     │
00:17:04 verbose #17764 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:04 verbose #17765 > >
00:17:04 verbose #17766 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:04 verbose #17767 > > instance signal_get rw_signal = signal_get'
00:17:04 verbose #17768 > 00:17:03   debug #1041 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/92486eac0866f02e98f32bfebbeefc2d3cec26bdf5942fad7f075360d1ddc8c0/main.spi
00:17:04 verbose #17769 > >
00:17:04 verbose #17770 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:04 verbose #17771 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:04 verbose #17772 > > │ ### signal_get read_signal                                                   │
00:17:04 verbose #17773 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:04 verbose #17774 > >
00:17:04 verbose #17775 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:04 verbose #17776 > > instance signal_get read_signal = signal_get'
00:17:04 verbose #17777 > 00:17:03   debug #1042 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8a487bebd06104eb312549328db9ac35d106ce50b33329babfadc9e78dbb188c/main.spi
00:17:04 verbose #17778 > >
00:17:04 verbose #17779 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:04 verbose #17780 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:04 verbose #17781 > > │ ### signal_get memo                                                          │
00:17:04 verbose #17782 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:04 verbose #17783 > >
00:17:04 verbose #17784 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:04 verbose #17785 > > instance signal_get memo = memo_get'
00:17:05 verbose #17786 > 00:17:04   debug #1043 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3e3972d0e07d4e5c6430e784d89c869f61ccf11c500a306aea46f0dd1db5b012/main.spi
00:17:05 verbose #17787 > >
00:17:05 verbose #17788 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:05 verbose #17789 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:05 verbose #17790 > > │ ### signal_update'                                                           │
00:17:05 verbose #17791 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:05 verbose #17792 > >
00:17:05 verbose #17793 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:05 verbose #17794 > > inl signal_update' forall (t : * -> *) u. (fn : u -> u) (signal : t u) : () =
00:17:05 verbose #17795 > >     signal |> typecheck_signal
00:17:05 verbose #17796 > >     (!\\((signal, fn), $'"true; leptos::SignalUpdate::update(&$0, |x| { *x =
00:17:05 verbose #17797 > > $1(x.clone()) });"') : bool) |> ignore
00:17:05 verbose #17798 > 00:17:04   debug #1044 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/63a16762fe112342a14c6f4b7aa5f5f9575401f59579dc4bcff020c48e82e2ed/main.spi
00:17:05 verbose #17799 > >
00:17:05 verbose #17800 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:05 verbose #17801 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:05 verbose #17802 > > │ ### signal_update rw_signal                                                  │
00:17:05 verbose #17803 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:05 verbose #17804 > >
00:17:05 verbose #17805 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:05 verbose #17806 > > instance signal_update rw_signal = signal_update'
00:17:05 verbose #17807 > 00:17:05   debug #1045 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2f3069eddc963bdd9d8cd5baf37f5a0008ee04d1be3b3c500587b9e6c62609d2/main.spi
00:17:06 verbose #17808 > >
00:17:06 verbose #17809 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:06 verbose #17810 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:06 verbose #17811 > > │ ### signal_update write_signal                                               │
00:17:06 verbose #17812 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:06 verbose #17813 > >
00:17:06 verbose #17814 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:06 verbose #17815 > > instance signal_update write_signal = signal_update'
00:17:06 verbose #17816 > 00:17:05   debug #1046 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/90be8c5ed000799a818f5ce41af2b651f9bc3dfb38a1cced1dfcde50fd4a6f30/main.spi
00:17:06 verbose #17817 > >
00:17:06 verbose #17818 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:06 verbose #17819 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:06 verbose #17820 > > │ ### signal_get_untracked'                                                    │
00:17:06 verbose #17821 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:06 verbose #17822 > >
00:17:06 verbose #17823 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:06 verbose #17824 > > inl signal_get_untracked' forall (t : * -> *) u. (signal : t u) : u =
00:17:06 verbose #17825 > >     signal |> typecheck_signal
00:17:06 verbose #17826 > >     !\\(signal, $'$"leptos::SignalGetUntracked::get_untracked(&$0)"')
00:17:06 verbose #17827 > 00:17:05   debug #1047 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/437f490e818e9f0e160067072c27a970e2843e988ee5342c8b87d094e94e3d05/main.spi
00:17:06 verbose #17828 > >
00:17:06 verbose #17829 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:06 verbose #17830 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:06 verbose #17831 > > │ ### signal_get_untracked rw_signal                                           │
00:17:06 verbose #17832 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:06 verbose #17833 > >
00:17:06 verbose #17834 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:06 verbose #17835 > > instance signal_get_untracked rw_signal = signal_get_untracked'
00:17:07 verbose #17836 > 00:17:06   debug #1048 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c57ae81b3b660a980390d4c54d346977a1d3fbce8fb4b7b45c3c26e690612359/main.spi
00:17:07 verbose #17837 > >
00:17:07 verbose #17838 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:07 verbose #17839 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:07 verbose #17840 > > │ ### signal_get_untracked read_signal                                         │
00:17:07 verbose #17841 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:07 verbose #17842 > >
00:17:07 verbose #17843 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:07 verbose #17844 > > instance signal_get_untracked read_signal = signal_get_untracked'
00:17:07 verbose #17845 > 00:17:06   debug #1049 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7bef3e47f82821bc38b3d7f9cd6418fb3bf94e46ff6b458b82ac987813c59912/main.spi
00:17:07 verbose #17846 > >
00:17:07 verbose #17847 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:07 verbose #17848 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:07 verbose #17849 > > │ ### signal_get_untracked memo                                                │
00:17:07 verbose #17850 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:07 verbose #17851 > >
00:17:07 verbose #17852 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:07 verbose #17853 > > instance signal_get_untracked memo = signal_get_untracked'
00:17:07 verbose #17854 > 00:17:06   debug #1050 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3b35808b21bf31785a28f8aab7d732e2e6e674fac5c117d4c3d28cee337133ca/main.spi
00:17:07 verbose #17855 > >
00:17:07 verbose #17856 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:07 verbose #17857 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:07 verbose #17858 > > │ ### signal_set'                                                              │
00:17:07 verbose #17859 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:07 verbose #17860 > >
00:17:07 verbose #17861 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:07 verbose #17862 > > inl signal_set' forall (t : * -> *) u. (value : u) (signal : t u) =
00:17:07 verbose #17863 > >     signal |> typecheck_signal
00:17:07 verbose #17864 > >     (!\\((signal, value), $'$"true; leptos::SignalSet::set(&$0, $1);"') : bool)
00:17:07 verbose #17865 > > |> ignore
00:17:08 verbose #17866 > 00:17:07   debug #1051 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/877ad2902e02a97c2e008820f0a8d0e297c3bfa6b6822e8e0d526e3aef3ff2b6/main.spi
00:17:08 verbose #17867 > >
00:17:08 verbose #17868 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:08 verbose #17869 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:08 verbose #17870 > > │ ### signal_set rw_signal                                                     │
00:17:08 verbose #17871 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:08 verbose #17872 > >
00:17:08 verbose #17873 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:08 verbose #17874 > > instance signal_set rw_signal = signal_set'
00:17:08 verbose #17875 > 00:17:07   debug #1052 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0fef090d84746e8e84b70f8ae0da95d6a34f10d8afe7d703964b6f76de3cd741/main.spi
00:17:08 verbose #17876 > >
00:17:08 verbose #17877 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:08 verbose #17878 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:08 verbose #17879 > > │ ### signal_set write_signal                                                  │
00:17:08 verbose #17880 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:08 verbose #17881 > >
00:17:08 verbose #17882 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:08 verbose #17883 > > instance signal_set write_signal = signal_set'
00:17:09 verbose #17884 > 00:17:08   debug #1053 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/cf0dd9418793da90d5841fedd3c8f26069fe773791d588afc532a432f348d63b/main.spi
00:17:09 verbose #17885 > >
00:17:09 verbose #17886 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:09 verbose #17887 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:09 verbose #17888 > > │ ### create_local_resource                                                    │
00:17:09 verbose #17889 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:09 verbose #17890 > >
00:17:09 verbose #17891 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:09 verbose #17892 > > inl create_local_resource forall t u.
00:17:09 verbose #17893 > >     closure_fix
00:17:09 verbose #17894 > >     (source : () -> t)
00:17:09 verbose #17895 > >     (fetcher : t -> async.future_pin u)
00:17:09 verbose #17896 > >     : resource t u
00:17:09 verbose #17897 > >     =
00:17:09 verbose #17898 > >     // inl fetcher x = rust.move fun () =>
00:17:09 verbose #17899 > >     //    fetcher x
00:17:09 verbose #17900 > >     // inl fetcher = join fetcher
00:17:09 verbose #17901 > >     // !\($'"leptos::create_local_resource(move || !source(), move |x| async
00:17:09 verbose #17902 > > move { !fetcher(x)().await })"')
00:17:09 verbose #17903 > >
00:17:09 verbose #17904 > >     // ---
00:17:09 verbose #17905 > >
00:17:09 verbose #17906 > >     // inl fn x = async.new_future fun () =>
00:17:09 verbose #17907 > >     //     inl x' = fetcher x
00:17:09 verbose #17908 > >     //     x' |> async.await
00:17:09 verbose #17909 > >
00:17:09 verbose #17910 > >     // !\\((source, fn), $'"leptos::create_local_resource(move || $0(), |x|
00:17:09 verbose #17911 > > async move { $1(x).await })"')
00:17:09 verbose #17912 > >
00:17:09 verbose #17913 > >
00:17:09 verbose #17914 > >     join
00:17:09 verbose #17915 > >         !\\(source, $'"let __result = leptos::create_local_resource(move ||
00:17:09 verbose #17916 > > $0(), |x| async move { //"')
00:17:09 verbose #17917 > >
00:17:09 verbose #17918 > >         inl x = !\($'"x"')
00:17:09 verbose #17919 > >         inl x' = fetcher x
00:17:09 verbose #17920 > >         inl x' = join x'
00:17:09 verbose #17921 > >         inl x' = x' |> async.await
00:17:09 verbose #17922 > >
00:17:09 verbose #17923 > >         x' |> rust.fix_closure closure_fix
00:17:09 verbose #17924 > >
00:17:09 verbose #17925 > >         !\($'"__result"')
00:17:09 verbose #17926 > 00:17:08   debug #1054 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f4d99889cba50459c14affa5fc36dd4640a832bc24fb76d59efbb1c8ae9bc34b/main.spi
00:17:09 verbose #17927 > >
00:17:09 verbose #17928 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:09 verbose #17929 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:09 verbose #17930 > > │ ### create_resource                                                          │
00:17:09 verbose #17931 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:09 verbose #17932 > >
00:17:09 verbose #17933 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:09 verbose #17934 > > // inl create_resource forall t u. (source : () -> t) (fetcher : t ->
00:17:09 verbose #17935 > > async.future_pin u) : resource t u =
00:17:09 verbose #17936 > > //     inl source = join source
00:17:09 verbose #17937 > > //     !\\(fetcher, $'"leptos::create_resource(move || !source(), |x| async move
00:17:09 verbose #17938 > > { $0(x).await })"')
00:17:09 verbose #17939 > 00:17:09   debug #1055 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/638509f709915531429f60b021110e2061a59addffe7a429f9d677296107213d/main.spi
00:17:10 verbose #17940 > >
00:17:10 verbose #17941 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:10 verbose #17942 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:10 verbose #17943 > > │ ### create_action                                                            │
00:17:10 verbose #17944 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:10 verbose #17945 > >
00:17:10 verbose #17946 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:10 verbose #17947 > > inl create_action forall t u. (action_fn : t -> async.future_pin u) : action t u
00:17:10 verbose #17948 > > =
00:17:10 verbose #17949 > >     !\\(action_fn, $'"leptos::create_action(move |value: &std::sync::Arc<`t>|
00:17:10 verbose #17950 > > $0(value.clone()))"')
00:17:10 verbose #17951 > 00:17:09   debug #1056 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a4c2232f86f04a8b2a44eb25ea69ba24791fc3f4861a4c26d0cc0d3a1b1c6fc1/main.spi
00:17:10 verbose #17952 > >
00:17:10 verbose #17953 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:10 verbose #17954 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:10 verbose #17955 > > │ ### action_dispatch                                                          │
00:17:10 verbose #17956 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:10 verbose #17957 > >
00:17:10 verbose #17958 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:10 verbose #17959 > > inl action_dispatch forall t u. (value : heap t) (action : action (heap t) u) :
00:17:10 verbose #17960 > > () =
00:17:10 verbose #17961 > >     (!\\((action, value), $'"true; leptos::Action::dispatch(&$0, $1.clone())"')
00:17:10 verbose #17962 > > : bool) |> ignore
00:17:10 verbose #17963 > 00:17:09   debug #1057 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9059225eafae0053582aca905bec2c7f6a7d63044aa1e521f7dfddc6371558fd/main.spi
00:17:10 verbose #17964 > >
00:17:10 verbose #17965 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:10 verbose #17966 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:10 verbose #17967 > > │ ### action_input                                                             │
00:17:10 verbose #17968 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:10 verbose #17969 > >
00:17:10 verbose #17970 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:10 verbose #17971 > > inl action_input forall t u. (action : action (heap t) u) : rw_signal
00:17:10 verbose #17972 > > (optionm'.option' t) =
00:17:10 verbose #17973 > >     !\\(action, $'"leptos::Action::input(&$0)"')
00:17:11 verbose #17974 > 00:17:10   debug #1058 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/81fcde90befcc27f80e513e4043ab8f02be44792f9e3a1f5b489a1fa761cec12/main.spi
00:17:11 verbose #17975 > >
00:17:11 verbose #17976 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:11 verbose #17977 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:11 verbose #17978 > > │ ### action_pending                                                           │
00:17:11 verbose #17979 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:11 verbose #17980 > >
00:17:11 verbose #17981 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:11 verbose #17982 > > inl action_pending forall t u. (action : action (heap t) u) : read_signal bool =
00:17:11 verbose #17983 > >     !\\(action, $'"leptos::Action::pending(&$0)"')
00:17:11 verbose #17984 > 00:17:10   debug #1059 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9ff106944385eae2c5d9b3b535862638694a352a24161a69170204aafbbd1333/main.spi
00:17:11 verbose #17985 > >
00:17:11 verbose #17986 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:11 verbose #17987 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:11 verbose #17988 > > │ ### action_value                                                             │
00:17:11 verbose #17989 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:11 verbose #17990 > >
00:17:11 verbose #17991 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:11 verbose #17992 > > inl action_value forall t u. (action : action (heap t) u) : rw_signal
00:17:11 verbose #17993 > > (optionm'.option' u) =
00:17:11 verbose #17994 > >     !\\(action, $'"leptos::Action::value(&$0)"')
00:17:12 verbose #17995 > 00:17:11   debug #1060 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b5d1d0d10821ceb3e560980026d51d9ae085d97e71c7424f16079aa2acdff878/main.spi
00:17:12 verbose #17996 > >
00:17:12 verbose #17997 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:12 verbose #17998 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:12 verbose #17999 > > │ ### use_context                                                              │
00:17:12 verbose #18000 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:12 verbose #18001 > >
00:17:12 verbose #18002 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:12 verbose #18003 > > inl use_context forall t. () : optionm'.option' t =
00:17:12 verbose #18004 > >     !\($'"leptos::use_context::<std::sync::Arc<`t>>()"')
00:17:12 verbose #18005 > 00:17:11   debug #1061 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/551774e83edcba81c5c217beaa0538f2508a6ed85b5a9e4c82f742bd76006dc4/main.spi
00:17:12 verbose #18006 > >
00:17:12 verbose #18007 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:12 verbose #18008 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:12 verbose #18009 > > │ ### resource_loading                                                         │
00:17:12 verbose #18010 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:12 verbose #18011 > >
00:17:12 verbose #18012 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:12 verbose #18013 > > inl resource_loading forall t u. (resource : resource t u) : signal bool =
00:17:12 verbose #18014 > >     !\\(resource, $'$"leptos::Resource::loading(&$0)"')
00:17:13 verbose #18015 > 00:17:12   debug #1062 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b9e13c6182e6f6e7d82f8d5d83f3fcda87513a473e177d09cb6d42bfb0097568/main.spi
00:17:13 verbose #18016 > >
00:17:13 verbose #18017 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:13 verbose #18018 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:13 verbose #18019 > > │ ### resource_get                                                             │
00:17:13 verbose #18020 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:13 verbose #18021 > >
00:17:13 verbose #18022 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:13 verbose #18023 > > inl resource_get forall t u. (resource : resource t u) : optionm'.option' u =
00:17:13 verbose #18024 > >     !\\(resource, $'$"leptos::SignalGet::get(&$0)"')
00:17:13 verbose #18025 > 00:17:12   debug #1063 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d2ac4d392aaf19d005c6bf2a805d1bb70ffde3673324ad6be54a62314f02de02/main.spi
00:17:13 verbose #18026 > >
00:17:13 verbose #18027 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:13 verbose #18028 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:13 verbose #18029 > > │ ### resource_with                                                            │
00:17:13 verbose #18030 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:13 verbose #18031 > >
00:17:13 verbose #18032 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:13 verbose #18033 > > inl resource_with forall t u v. (resource : resource t u) (fn : optionm'.option'
00:17:13 verbose #18034 > > u -> v) : v =
00:17:13 verbose #18035 > >     !\\((resource, fn), $'$"leptos::SignalWith::with(&$0, |x| $1(x.clone()))"')
00:17:13 verbose #18036 > 00:17:13   debug #1064 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ccfd183028c8ae85761425e5aed56dc94a995c820a5ecdc6be4df6c58be4768e/main.spi
00:17:14 verbose #18037 > >
00:17:14 verbose #18038 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:14 verbose #18039 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:14 verbose #18040 > > │ ### create_effect                                                            │
00:17:14 verbose #18041 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:14 verbose #18042 > >
00:17:14 verbose #18043 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:14 verbose #18044 > > inl create_effect (fn : () -> ()) : () =
00:17:14 verbose #18045 > >     inl fn = fn |> rust.emit
00:17:14 verbose #18046 > >     (!\($'"true; leptos::create_effect(move |_| { !fn(()) })"') : bool) |>
00:17:14 verbose #18047 > > ignore
00:17:14 verbose #18048 > 00:17:13   debug #1065 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/418367f22065392bc66114a0458b362d98492605e5524bd45e2ea43e71ebba1f/main.spi
00:17:14 verbose #18049 > >
00:17:14 verbose #18050 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:14 verbose #18051 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:14 verbose #18052 > > │ ### create_effect'                                                           │
00:17:14 verbose #18053 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:14 verbose #18054 > >
00:17:14 verbose #18055 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:14 verbose #18056 > > inl create_effect' forall t. (fn : optionm'.option' t -> t) : () =
00:17:14 verbose #18057 > >     (!\\(fn, $'"true; leptos::create_effect(move |x| { $0(x) })"') : bool) |>
00:17:14 verbose #18058 > > ignore
00:17:14 verbose #18059 > 00:17:13   debug #1066 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7b8502545c794381f155c4ee4fbb8c19655b0fa203d9be1c9b354ba72d6f5cd5/main.spi
00:17:14 verbose #18060 > >
00:17:14 verbose #18061 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:14 verbose #18062 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:14 verbose #18063 > > │ ### interval_handle_clear                                                    │
00:17:14 verbose #18064 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:14 verbose #18065 > >
00:17:14 verbose #18066 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:14 verbose #18067 > > inl interval_handle_clear (interval_handle : interval_handle) =
00:17:14 verbose #18068 > >     (!\\(interval_handle, $'$"true;
00:17:14 verbose #18069 > > leptos::leptos_dom::helpers::IntervalHandle::clear(&$0)"') : bool) |> ignore
00:17:15 verbose #18070 > 00:17:14   debug #1067 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0c95529087f924b60aabdadeae2610d3e90f399557c6fd3489c84daf433604a5/main.spi
00:17:15 verbose #18071 > >
00:17:15 verbose #18072 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:15 verbose #18073 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:15 verbose #18074 > > │ ### set_interval_with_handle                                                 │
00:17:15 verbose #18075 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:15 verbose #18076 > >
00:17:15 verbose #18077 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:15 verbose #18078 > > inl set_interval_with_handle
00:17:15 verbose #18079 > >     (fn : () -> ())
00:17:15 verbose #18080 > >     (interval_millis : date_time.duration)
00:17:15 verbose #18081 > >     : resultm.result' interval_handle wasm.js_value
00:17:15 verbose #18082 > >     =
00:17:15 verbose #18083 > >     !\\((fn, interval_millis), $'$"leptos::set_interval_with_handle(move ||
00:17:15 verbose #18084 > > $0(), $1)"')
00:17:15 verbose #18085 > 00:17:14   debug #1068 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9677174e17425223733e4ac62f8f51ee198e08353b1fd1790c53bfeb3e1ef98d/main.spi
00:17:15 verbose #18086 > >
00:17:15 verbose #18087 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:15 verbose #18088 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:15 verbose #18089 > > │ ### create_memo                                                              │
00:17:15 verbose #18090 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:15 verbose #18091 > >
00:17:15 verbose #18092 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:15 verbose #18093 > > inl create_memo forall t. (fn : () -> t) : memo t =
00:17:15 verbose #18094 > >     inl fn = fn |> rust.emit
00:17:15 verbose #18095 > >     !\($'"leptos::create_memo(move |_| { !fn(()) })"')
00:17:15 verbose #18096 > 00:17:15   debug #1069 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0c41f1cd7870609f836373509b6f8eeab3b57d7c96fe728dcef20b681fba17b7/main.spi
00:17:16 verbose #18097 > >
00:17:16 verbose #18098 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:16 verbose #18099 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:16 verbose #18100 > > │ ### window                                                                   │
00:17:16 verbose #18101 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:16 verbose #18102 > >
00:17:16 verbose #18103 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:16 verbose #18104 > > let window () : wasm.window =
00:17:16 verbose #18105 > >     !\($'"leptos::leptos_dom::window()"')
00:17:16 verbose #18106 > 00:17:15   debug #1070 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8c2679cbc7648702e3b78151ca3149bfbc5797891b8544e911c769ed1265e2e9/main.spi
00:17:16 verbose #18107 > >
00:17:16 verbose #18108 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:16 verbose #18109 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:16 verbose #18110 > > │ ### bool_prop                                                                │
00:17:16 verbose #18111 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:16 verbose #18112 > >
00:17:16 verbose #18113 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:16 verbose #18114 > > inl bool_prop (prop : string) (fn : () -> bool) : string =
00:17:16 verbose #18115 > >     inl fn = join fn
00:17:16 verbose #18116 > >     $'"" + !prop + "={move || !fn()}"'
00:17:16 verbose #18117 > 00:17:15   debug #1071 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/74154767444b8f4e89c1280bee34a09fe17c4d754752fd1df0d5ee7ecdeeb31c/main.spi
00:17:16 verbose #18118 > >
00:17:16 verbose #18119 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:16 verbose #18120 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:16 verbose #18121 > > │ ### concat_props                                                             │
00:17:16 verbose #18122 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:16 verbose #18123 > >
00:17:16 verbose #18124 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:16 verbose #18125 > > inl concat_props props =
00:17:16 verbose #18126 > >     ("", props)
00:17:16 verbose #18127 > >     ||> listm.fold fun acc (x : string) =>
00:17:16 verbose #18128 > >         $'" " + !x + !acc + ""'
00:17:17 verbose #18129 > 00:17:16   debug #1072 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/24c04ab07adefba8716d5d78aa74583c58fb0461ed82cc7bc14571134c6aa971/main.spi
00:17:17 verbose #18130 > >
00:17:17 verbose #18131 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:17 verbose #18132 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:17 verbose #18133 > > │ ### move_to_fragment                                                         │
00:17:17 verbose #18134 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:17 verbose #18135 > >
00:17:17 verbose #18136 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:17 verbose #18137 > > inl move_to_fragment fn =
00:17:17 verbose #18138 > >     rust.move fn
00:17:17 verbose #18139 > >     |> closure_to_fragment
00:17:17 verbose #18140 > 00:17:16   debug #1073 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/98ac4e35806fc9e7f553a63797456c8457a72a4ed808af66151e620af4989c24/main.spi
00:17:17 verbose #18141 > >
00:17:17 verbose #18142 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:17 verbose #18143 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:17 verbose #18144 > > │ ### tag_raw                                                                  │
00:17:17 verbose #18145 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:17 verbose #18146 > >
00:17:17 verbose #18147 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:17 verbose #18148 > > inl tag_raw tag props children =
00:17:17 verbose #18149 > >     inl tag : string = tag
00:17:17 verbose #18150 > >     inl props = props |> concat_props
00:17:17 verbose #18151 > >     inl children = join children
00:17:17 verbose #18152 > >     inl children = fun () => children |> move_to_fragment
00:17:17 verbose #18153 > >     inl children : () -> fragment = join children
00:17:17 verbose #18154 > >     $'"<" + !tag + " " + !props + ">{!children()}</" + !tag + ">"'
00:17:17 verbose #18155 > 00:17:17   debug #1074 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1a85e2a55a1502838aee69a61fa592d2629de41f377a2bd942c45768170bfc85/main.spi
00:17:18 verbose #18156 > >
00:17:18 verbose #18157 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:18 verbose #18158 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:18 verbose #18159 > > │ ### tag_element                                                              │
00:17:18 verbose #18160 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:18 verbose #18161 > >
00:17:18 verbose #18162 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:18 verbose #18163 > > inl tag_element tag props children : html_element _ =
00:17:18 verbose #18164 > >     inl children = join children
00:17:18 verbose #18165 > >     tag_raw tag props children
00:17:18 verbose #18166 > >     |> macro_to_element
00:17:18 verbose #18167 > 00:17:17   debug #1075 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/064a6115b080c03f5fd69fa51e099b459689f63b012f67a4c093d2d4b97a61fd/main.spi
00:17:18 verbose #18168 > >
00:17:18 verbose #18169 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:18 verbose #18170 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:18 verbose #18171 > > │ ### tag_closed_raw                                                           │
00:17:18 verbose #18172 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:18 verbose #18173 > >
00:17:18 verbose #18174 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:18 verbose #18175 > > inl tag_closed_raw tag props =
00:17:18 verbose #18176 > >     inl tag : string = tag
00:17:18 verbose #18177 > >     inl props = props |> concat_props
00:17:18 verbose #18178 > >     $'"<" + !tag + " " + !props + " />"'
00:17:18 verbose #18179 > 00:17:17   debug #1076 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5b2e50a926204e36d1938c8b977583f22795223d40fa0f2b14e24aba00825b00/main.spi
00:17:18 verbose #18180 > >
00:17:18 verbose #18181 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:18 verbose #18182 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:18 verbose #18183 > > │ ### tag_closed                                                               │
00:17:18 verbose #18184 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:18 verbose #18185 > >
00:17:18 verbose #18186 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:18 verbose #18187 > > inl tag_closed tag props : html_element _ =
00:17:18 verbose #18188 > >     tag_closed_raw tag props
00:17:18 verbose #18189 > >     |> macro_to_element
00:17:19 verbose #18190 > 00:17:18   debug #1077 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c9a11bea0d0d909fdd223dcde44e16b59adea37308a65eaad0a102f81fffaa19/main.spi
00:17:19 verbose #18191 > >
00:17:19 verbose #18192 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:19 verbose #18193 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:19 verbose #18194 > > │ ### for                                                                      │
00:17:19 verbose #18195 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:19 verbose #18196 > >
00:17:19 verbose #18197 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:19 verbose #18198 > > inl for props : view =
00:17:19 verbose #18199 > >     tag_closed_raw "leptos::For" props
00:17:19 verbose #18200 > >     |> macro_to_view
00:17:19 verbose #18201 > 00:17:18   debug #1078 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6c13ee82616ff541f292d3e5d9d648559e14cd29560919e04bb316b8538f3fc1/main.spi
00:17:19 verbose #18202 > >
00:17:19 verbose #18203 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:19 verbose #18204 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:19 verbose #18205 > > │ ### for                                                                      │
00:17:19 verbose #18206 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:19 verbose #18207 > >
00:17:19 verbose #18208 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:19 verbose #18209 > > inl for forall t u (signal : * -> *).
00:17:19 verbose #18210 > >     (signal : signal (am'.vec t))
00:17:19 verbose #18211 > >     (key_fn : t -> u)
00:17:19 verbose #18212 > >     (children' : t -> fragment)
00:17:19 verbose #18213 > >     : view
00:17:19 verbose #18214 > >     =
00:17:19 verbose #18215 > >     inl signal = join signal
00:17:19 verbose #18216 > >     signal |> typecheck_signal
00:17:19 verbose #18217 > >     inl key_fn = join key_fn
00:17:19 verbose #18218 > >     inl children' = join children'
00:17:19 verbose #18219 > >     for [[
00:17:19 verbose #18220 > >         $'"each=!signal"'
00:17:19 verbose #18221 > >         $'"key=move |x| !key_fn(x.to_owned())"'
00:17:19 verbose #18222 > >         $'"let:x"'
00:17:19 verbose #18223 > >         $'"children=move |x| !children'(x)"'
00:17:19 verbose #18224 > >     ]]
00:17:19 verbose #18225 > 00:17:19   debug #1079 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8550dbb8617592eb744face9e76b61e88e316b6ed063d2ff4934c3d7a9e549fc/main.spi
00:17:20 verbose #18226 > >
00:17:20 verbose #18227 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:20 verbose #18228 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:20 verbose #18229 > > │ ### show                                                                     │
00:17:20 verbose #18230 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:20 verbose #18231 > >
00:17:20 verbose #18232 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:20 verbose #18233 > > inl show props : view =
00:17:20 verbose #18234 > >     tag_closed_raw "leptos::Show" props
00:17:20 verbose #18235 > >     |> macro_to_view
00:17:20 verbose #18236 > 00:17:19   debug #1080 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/259d03731f05526a063bb582b9a6b792cc999c360c732cf0b518cdbedaee8a86/main.spi
00:17:20 verbose #18237 > >
00:17:20 verbose #18238 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:20 verbose #18239 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:20 verbose #18240 > > │ ### show                                                                     │
00:17:20 verbose #18241 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:20 verbose #18242 > >
00:17:20 verbose #18243 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:20 verbose #18244 > > inl show (when_fn : () -> bool) (fallback : () -> view) (children : () ->
00:17:20 verbose #18245 > > fragment) : view =
00:17:20 verbose #18246 > >     inl when_fn = join when_fn
00:17:20 verbose #18247 > >     inl when_fn = join when_fn
00:17:20 verbose #18248 > >     inl fallback = join fallback
00:17:20 verbose #18249 > >     inl children = join children
00:17:20 verbose #18250 > >     show [[
00:17:20 verbose #18251 > >         $'"when=move || !when_fn()"'
00:17:20 verbose #18252 > >         $'"fallback=move || !fallback()"'
00:17:20 verbose #18253 > >         $'"children=std::rc::Rc::new(move || !children())"'
00:17:20 verbose #18254 > >     ]]
00:17:20 verbose #18255 > 00:17:19   debug #1081 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8cd462558c880f09f4f76553d1d2fad7cfbcfe93b61555f6420256e580158b8a/main.spi
00:17:20 verbose #18256 > >
00:17:20 verbose #18257 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:20 verbose #18258 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:20 verbose #18259 > > │ ### use_location                                                             │
00:17:20 verbose #18260 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:20 verbose #18261 > >
00:17:20 verbose #18262 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:20 verbose #18263 > > inl use_location () : location =
00:17:20 verbose #18264 > >     !\($'"leptos_router::use_location()"')
00:17:21 verbose #18265 > 00:17:20   debug #1082 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/771f387948124c0883ec86b7d1b9266ce63defcc780b16a8f626f2dc7265193d/main.spi
00:17:21 verbose #18266 > >
00:17:21 verbose #18267 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:21 verbose #18268 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:21 verbose #18269 > > │ ### use_navigate                                                             │
00:17:21 verbose #18270 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:21 verbose #18271 > >
00:17:21 verbose #18272 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:21 verbose #18273 > > inl use_navigate () : string -> () =
00:17:21 verbose #18274 > >     inl navigate : threading.arc (rust.dyn' (rust.action_fn2 (rust.ref sm'.str)
00:17:21 verbose #18275 > > navigate_options)) =
00:17:21 verbose #18276 > >         !\($'"std::sync::Arc::new(leptos_router::use_navigate())"')
00:17:21 verbose #18277 > >     fun url =>
00:17:21 verbose #18278 > >         inl url = url |> sm'.as_str
00:17:21 verbose #18279 > >         !\\(navigate, $'"$0(!url, Default::default())"')
00:17:21 verbose #18280 > 00:17:20   debug #1083 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fb2379f2470623c5afa2bc41ad42aa9d59e761e8f81766b06108f7b64eba1d71/main.spi
00:17:21 verbose #18281 > >
00:17:21 verbose #18282 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:21 verbose #18283 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:21 verbose #18284 > > │ ### location_hash                                                            │
00:17:21 verbose #18285 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:21 verbose #18286 > >
00:17:21 verbose #18287 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:21 verbose #18288 > > inl location_hash (location : location) : memo sm'.std_string =
00:17:21 verbose #18289 > >     !\\(location, $'"$0.hash"')
00:17:21 verbose #18290 > 00:17:21   debug #1084 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d17d96a1cbb327ea3c77eea57186b7cec3293e6b598d6705bde65a488f465a93/main.spi
00:17:22 verbose #18291 > >
00:17:22 verbose #18292 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:22 verbose #18293 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:22 verbose #18294 > > │ ### location_pathname                                                        │
00:17:22 verbose #18295 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:22 verbose #18296 > >
00:17:22 verbose #18297 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:22 verbose #18298 > > inl location_pathname (location : location) : memo sm'.std_string =
00:17:22 verbose #18299 > >     !\\(location, $'"$0.pathname"')
00:17:22 verbose #18300 > 00:17:21   debug #1085 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/704c4bc5b72b79e11dd3c47691428db6b0c776f75ba28010135d8a440d8d6181/main.spi
00:17:22 verbose #18301 > >
00:17:22 verbose #18302 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:22 verbose #18303 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:22 verbose #18304 > > │ ### location_search                                                          │
00:17:22 verbose #18305 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:22 verbose #18306 > >
00:17:22 verbose #18307 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:22 verbose #18308 > > inl location_search (location : location) : memo sm'.std_string =
00:17:22 verbose #18309 > >     !\\(location, $'"$0.search"')
00:17:22 verbose #18310 > 00:17:21   debug #1086 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1cea2ab3a51eca93d596564f1826c79b07f31bec3e64eb3a34d3ca780d5964ff/main.spi
00:17:22 verbose #18311 > >
00:17:22 verbose #18312 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:22 verbose #18313 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:22 verbose #18314 > > │ ### url_try_from                                                             │
00:17:22 verbose #18315 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:22 verbose #18316 > >
00:17:22 verbose #18317 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:22 verbose #18318 > > inl url_try_from (s : rust.ref sm'.str) : resultm.result' url sm'.std_string =
00:17:22 verbose #18319 > >     !\\(s, $'"leptos_router::Url::try_from($0)"')
00:17:23 verbose #18320 > 00:17:22   debug #1087 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/dd840e0a66ea9dc56fa669fa90d98d9b4c2cb4953d59df997e03e565d2b9faab/main.spi
00:17:23 verbose #18321 > >
00:17:23 verbose #18322 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:23 verbose #18323 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:23 verbose #18324 > > │ ### url_pathname                                                             │
00:17:23 verbose #18325 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:23 verbose #18326 > >
00:17:23 verbose #18327 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:23 verbose #18328 > > inl url_pathname (url : url) : sm'.std_string =
00:17:23 verbose #18329 > >     !\\(url, $'"$0.pathname"')
00:17:23 verbose #18330 > 00:17:22   debug #1088 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e5754b46944a7bb86ff1af116031b8719039155ef980d2ff12867ee4ec61f176/main.spi
00:17:23 verbose #18331 > >
00:17:23 verbose #18332 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:23 verbose #18333 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:23 verbose #18334 > > │ ### use_url                                                                  │
00:17:23 verbose #18335 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:23 verbose #18336 > >
00:17:23 verbose #18337 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:23 verbose #18338 > > inl use_url () =
00:17:23 verbose #18339 > >     inl location = use_location ()
00:17:23 verbose #18340 > >
00:17:23 verbose #18341 > >     create_memo fun () =>
00:17:23 verbose #18342 > >         inl url_pathname = location |> location_pathname |> signal_get |>
00:17:23 verbose #18343 > > sm'.from_std_string
00:17:23 verbose #18344 > >         inl url_search = location |> location_search |> signal_get |>
00:17:23 verbose #18345 > > sm'.from_std_string
00:17:23 verbose #18346 > >         inl url_search =
00:17:23 verbose #18347 > >             if url_search = ""
00:17:23 verbose #18348 > >             then ""
00:17:23 verbose #18349 > >             else $'$"?{!url_search}"'
00:17:23 verbose #18350 > >         url_pathname +. url_search
00:17:23 verbose #18351 > 00:17:23   debug #1089 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c0f067ea8d98594f1a550bffb28ff0597d999eb7c561dc10f88cf540ab329ee0/main.spi
00:17:23 verbose #18352 > >
00:17:23 verbose #18353 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:23 verbose #18354 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:23 verbose #18355 > > │ ### route                                                                    │
00:17:23 verbose #18356 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:23 verbose #18357 > >
00:17:23 verbose #18358 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:23 verbose #18359 > > inl route path view children : view =
00:17:23 verbose #18360 > >     inl path = join path
00:17:23 verbose #18361 > >     inl path = path |> sm'.to_std_string
00:17:23 verbose #18362 > >     inl view : () -> fragment = join view
00:17:23 verbose #18363 > >     inl children : () -> fragment = join children
00:17:23 verbose #18364 > >     tag_closed_raw "leptos_router::Route" [[
00:17:23 verbose #18365 > >         $'"path=!path"'
00:17:23 verbose #18366 > >         $'"view=move || !view()"'
00:17:23 verbose #18367 > >         $'"children=Box::new(move || !children())"'
00:17:23 verbose #18368 > >     ]]
00:17:23 verbose #18369 > >     |> macro_to_view
00:17:24 verbose #18370 > 00:17:23   debug #1090 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/80d5d7d4c5bdd324fbb72347e6f2d1cf2117e1402867e55ad7484cb203b7699f/main.spi
00:17:24 verbose #18371 > >
00:17:24 verbose #18372 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:24 verbose #18373 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:24 verbose #18374 > > │ ### router                                                                   │
00:17:24 verbose #18375 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:24 verbose #18376 > >
00:17:24 verbose #18377 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:24 verbose #18378 > > inl router children : view =
00:17:24 verbose #18379 > >     inl children () =
00:17:24 verbose #18380 > >         children ()
00:17:24 verbose #18381 > >     inl children : () -> fragment = join children
00:17:24 verbose #18382 > >     tag_closed_raw "leptos_router::Router" [[
00:17:24 verbose #18383 > >         $'"children=Box::new(move || !children())"'
00:17:24 verbose #18384 > >     ]]
00:17:24 verbose #18385 > >     |> macro_to_view
00:17:24 verbose #18386 > 00:17:23   debug #1091 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5a14df1b5e9fc971a54c376a9d025384cc1c097e175780dc8cc730a44562c8aa/main.spi
00:17:24 verbose #18387 > >
00:17:24 verbose #18388 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:24 verbose #18389 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:24 verbose #18390 > > │ ### routes                                                                   │
00:17:24 verbose #18391 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:24 verbose #18392 > >
00:17:24 verbose #18393 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:24 verbose #18394 > > inl routes children : view =
00:17:24 verbose #18395 > >     inl children : () -> fragment = children |> rust.emit
00:17:24 verbose #18396 > >     tag_closed_raw "leptos_router::Routes" [[
00:17:24 verbose #18397 > >         $'"children=Box::new(move || !children(()))"'
00:17:24 verbose #18398 > >     ]]
00:17:24 verbose #18399 > >     |> macro_to_view
00:17:25 verbose #18400 > 00:17:24   debug #1092 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/cc860bd08725a462ea5d5e9dc56efd3a52fae91f6598c18903d586ac283ee574/main.spi
00:17:25 verbose #18401 > >
00:17:25 verbose #18402 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:25 verbose #18403 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:25 verbose #18404 > > │ ### a'                                                                       │
00:17:25 verbose #18405 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:25 verbose #18406 > >
00:17:25 verbose #18407 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:25 verbose #18408 > > inl a' props children : _ a' =
00:17:25 verbose #18409 > >     tag_element "a" props children
00:17:25 verbose #18410 > 00:17:24   debug #1093 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/66fb52c7a03ac352f5623205cf957e4bce305ed2ef753fe7453586752d8fc492/main.spi
00:17:25 verbose #18411 > >
00:17:25 verbose #18412 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:25 verbose #18413 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:25 verbose #18414 > > │ ### button                                                                   │
00:17:25 verbose #18415 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:25 verbose #18416 > >
00:17:25 verbose #18417 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:25 verbose #18418 > > inl button props children : _ button =
00:17:25 verbose #18419 > >     tag_element "button" props children
00:17:25 verbose #18420 > 00:17:24   debug #1094 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b88c6ddbe397745fb5761ef4246ab401b2424e44ed40b9e8170d03c68322461e/main.spi
00:17:25 verbose #18421 > >
00:17:25 verbose #18422 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:25 verbose #18423 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:25 verbose #18424 > > │ ### details                                                                  │
00:17:25 verbose #18425 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:25 verbose #18426 > >
00:17:25 verbose #18427 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:25 verbose #18428 > > inl details props children : _ details =
00:17:25 verbose #18429 > >     tag_element "details" props children
00:17:26 verbose #18430 > 00:17:25   debug #1095 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0daa02d19cbb4f6d446e29e8e45b695598eee400076891ef73fb5589f80517d9/main.spi
00:17:26 verbose #18431 > >
00:17:26 verbose #18432 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:26 verbose #18433 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:26 verbose #18434 > > │ ### div                                                                      │
00:17:26 verbose #18435 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:26 verbose #18436 > >
00:17:26 verbose #18437 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:26 verbose #18438 > > inl div props children : _ div =
00:17:26 verbose #18439 > >     tag_element "div" props children
00:17:26 verbose #18440 > 00:17:25   debug #1096 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b9415bae4818764cf20ee3bf1efdac4ff9475548a25787eae1366d4bfec6c4fb/main.spi
00:17:26 verbose #18441 > >
00:17:26 verbose #18442 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:26 verbose #18443 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:26 verbose #18444 > > │ ### footer                                                                   │
00:17:26 verbose #18445 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:26 verbose #18446 > >
00:17:26 verbose #18447 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:26 verbose #18448 > > inl footer props children : _ footer =
00:17:26 verbose #18449 > >     tag_element "footer" props children
00:17:26 verbose #18450 > 00:17:26   debug #1097 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5126c2f5a6f9149c24469642e96298d4d03a65b8e626c5b03e9a859e95088bc7/main.spi
00:17:27 verbose #18451 > >
00:17:27 verbose #18452 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:27 verbose #18453 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:27 verbose #18454 > > │ ### header                                                                   │
00:17:27 verbose #18455 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:27 verbose #18456 > >
00:17:27 verbose #18457 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:27 verbose #18458 > > inl header props children : _ header =
00:17:27 verbose #18459 > >     tag_element "header" props children
00:17:27 verbose #18460 > 00:17:26   debug #1098 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/26dccb5a298b4bdbe6f03d886ef71b335b6624b84d9a29d551c86c596f01399f/main.spi
00:17:27 verbose #18461 > >
00:17:27 verbose #18462 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:27 verbose #18463 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:27 verbose #18464 > > │ ### label                                                                    │
00:17:27 verbose #18465 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:27 verbose #18466 > >
00:17:27 verbose #18467 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:27 verbose #18468 > > inl label props children : _ label =
00:17:27 verbose #18469 > >     tag_element "label" props children
00:17:27 verbose #18470 > 00:17:26   debug #1099 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/22481c5e37d5654c8b929501f553ddd7050e3672f69be1acc71cd8ab2461f624/main.spi
00:17:27 verbose #18471 > >
00:17:27 verbose #18472 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:27 verbose #18473 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:27 verbose #18474 > > │ ### main                                                                     │
00:17:27 verbose #18475 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:27 verbose #18476 > >
00:17:27 verbose #18477 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:27 verbose #18478 > > inl main props children : _ main =
00:17:27 verbose #18479 > >     tag_element "main" props children
00:17:27 verbose #18480 > >
00:17:27 verbose #18481 > > inl main' () = ()
00:17:28 verbose #18482 > 00:17:27   debug #1100 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1bbe41fdce40ced491e6e957ada970883703577534f8f9d8dc4be793546f4d42/main.spi
00:17:28 verbose #18483 > >
00:17:28 verbose #18484 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:28 verbose #18485 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:28 verbose #18486 > > │ ### nav                                                                      │
00:17:28 verbose #18487 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:28 verbose #18488 > >
00:17:28 verbose #18489 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:28 verbose #18490 > > inl nav props children : _ nav =
00:17:28 verbose #18491 > >     tag_element "nav" props children
00:17:28 verbose #18492 > 00:17:27   debug #1101 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/31e00a3fadc3da10462ec84cf83efbe6b4bf0571cf9ccd0d88f0ddd87ad7d75c/main.spi
00:17:28 verbose #18493 > >
00:17:28 verbose #18494 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:28 verbose #18495 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:28 verbose #18496 > > │ ### option'                                                                  │
00:17:28 verbose #18497 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:28 verbose #18498 > >
00:17:28 verbose #18499 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:28 verbose #18500 > > inl option' props children : _ option' =
00:17:28 verbose #18501 > >     tag_element "option" props children
00:17:28 verbose #18502 > 00:17:28   debug #1102 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/aa413c6952fe34879e142be379864eadb4ef7f92a6635feb94a98da4a14fa3e6/main.spi
00:17:29 verbose #18503 > >
00:17:29 verbose #18504 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:29 verbose #18505 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:29 verbose #18506 > > │ ### option'                                                                  │
00:17:29 verbose #18507 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:29 verbose #18508 > >
00:17:29 verbose #18509 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:29 verbose #18510 > > inl option' select children : _ option' =
00:17:29 verbose #18511 > >     inl select : () -> bool = join select
00:17:29 verbose #18512 > >     option' [[
00:17:29 verbose #18513 > >         $'"select=!select()"'
00:17:29 verbose #18514 > >
00:17:29 verbose #18515 > >     ]] fun () =>
00:17:29 verbose #18516 > >         children |> new_text |> text_to_fragment
00:17:29 verbose #18517 > 00:17:28   debug #1103 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7840d5da01fee329e6a23880bbe5ed6ab441b13f334d71c10bc5c6ac0b6838c4/main.spi
00:17:29 verbose #18518 > >
00:17:29 verbose #18519 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:29 verbose #18520 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:29 verbose #18521 > > │ ### pre                                                                      │
00:17:29 verbose #18522 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:29 verbose #18523 > >
00:17:29 verbose #18524 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:29 verbose #18525 > > inl pre props children : _ pre =
00:17:29 verbose #18526 > >     tag_element "pre" props children
00:17:29 verbose #18527 > 00:17:28   debug #1104 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1b459e8f1b0355d627bb2f6cdd48c9995851886c8e3d3d91dc6560013477e288/main.spi
00:17:29 verbose #18528 > >
00:17:29 verbose #18529 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:29 verbose #18530 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:29 verbose #18531 > > │ ### select                                                                   │
00:17:29 verbose #18532 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:29 verbose #18533 > >
00:17:29 verbose #18534 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:29 verbose #18535 > > inl select props children : _ select =
00:17:29 verbose #18536 > >     tag_element "select" props children
00:17:30 verbose #18537 > 00:17:29   debug #1105 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6dd0aa6c4b9b566b8cafb8173e119b51191cad87d0b68b2b6869dfc3a32be9e3/main.spi
00:17:30 verbose #18538 > >
00:17:30 verbose #18539 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:30 verbose #18540 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:30 verbose #18541 > > │ ### span                                                                     │
00:17:30 verbose #18542 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:30 verbose #18543 > >
00:17:30 verbose #18544 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:30 verbose #18545 > > inl span props children : _ span =
00:17:30 verbose #18546 > >     tag_element "span" props children
00:17:30 verbose #18547 > 00:17:29   debug #1106 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/eb0b879eae7260d56f644e03ed48d9061ed2f295e8a755a8e29ff526b070c709/main.spi
00:17:30 verbose #18548 > >
00:17:30 verbose #18549 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:30 verbose #18550 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:30 verbose #18551 > > │ ### summary                                                                  │
00:17:30 verbose #18552 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:30 verbose #18553 > >
00:17:30 verbose #18554 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:30 verbose #18555 > > inl summary props children : _ summary =
00:17:30 verbose #18556 > >     tag_element "summary" props children
00:17:31 verbose #18557 > 00:17:30   debug #1107 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/40b14aa218935d96af9f74b3a73a65359a4669004199b701e807e91e15499b99/main.spi
00:17:31 verbose #18558 > >
00:17:31 verbose #18559 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:31 verbose #18560 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:31 verbose #18561 > > │ ### table                                                                    │
00:17:31 verbose #18562 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:31 verbose #18563 > >
00:17:31 verbose #18564 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:31 verbose #18565 > > inl table props children : _ table =
00:17:31 verbose #18566 > >     tag_element "table" props children
00:17:31 verbose #18567 > 00:17:30   debug #1108 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/53dc37a3ecbb9e7f5fd55d9a5048ea31e2481763e01402b64b6c27aa14e798a3/main.spi
00:17:31 verbose #18568 > >
00:17:31 verbose #18569 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:31 verbose #18570 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:31 verbose #18571 > > │ ### thead                                                                    │
00:17:31 verbose #18572 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:31 verbose #18573 > >
00:17:31 verbose #18574 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:31 verbose #18575 > > inl thead props children : _ thead =
00:17:31 verbose #18576 > >     tag_element "thead" props children
00:17:31 verbose #18577 > 00:17:31   debug #1109 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/58cca6e72ec8ad31e82bac9c4c76e4a2d6620d477edf869f10ce69bedee7dd0e/main.spi
00:17:32 verbose #18578 > >
00:17:32 verbose #18579 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:32 verbose #18580 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:32 verbose #18581 > > │ ### tbody                                                                    │
00:17:32 verbose #18582 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:32 verbose #18583 > >
00:17:32 verbose #18584 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:32 verbose #18585 > > inl tbody props children : _ tbody =
00:17:32 verbose #18586 > >     tag_element "tbody" props children
00:17:32 verbose #18587 > 00:17:31   debug #1110 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4a695c7198d99299047f2269b993f3d2f31a16019ee71bb379f5edfc7818f19e/main.spi
00:17:32 verbose #18588 > >
00:17:32 verbose #18589 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:32 verbose #18590 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:32 verbose #18591 > > │ ### tr                                                                       │
00:17:32 verbose #18592 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:32 verbose #18593 > >
00:17:32 verbose #18594 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:32 verbose #18595 > > inl tr props children : _ tr =
00:17:32 verbose #18596 > >     tag_element "tr" props children
00:17:32 verbose #18597 > 00:17:31   debug #1111 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/cb3ee94afe0f37c60c874475d2bac06185b0101f5d3347807ea67f65a0ddf1ec/main.spi
00:17:32 verbose #18598 > >
00:17:32 verbose #18599 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:32 verbose #18600 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:32 verbose #18601 > > │ ### th                                                                       │
00:17:32 verbose #18602 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:32 verbose #18603 > >
00:17:32 verbose #18604 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:32 verbose #18605 > > inl th props children : _ th =
00:17:32 verbose #18606 > >     tag_element "th" props children
00:17:33 verbose #18607 > 00:17:32   debug #1112 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7f6ed93fd1cc03acdcdb8e770830c9d1a533e24f08f2d0eb44dc86a20d4c52ff/main.spi
00:17:33 verbose #18608 > >
00:17:33 verbose #18609 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:33 verbose #18610 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:33 verbose #18611 > > │ ### td                                                                       │
00:17:33 verbose #18612 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:33 verbose #18613 > >
00:17:33 verbose #18614 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:33 verbose #18615 > > inl td props children : _ td =
00:17:33 verbose #18616 > >     tag_element "td" props children
00:17:33 verbose #18617 > 00:17:32   debug #1113 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/dc5a035854ab820c8e43f70014bdeda846dc52fb4a4c41466d2cb87958599e6c/main.spi
00:17:33 verbose #18618 > >
00:17:33 verbose #18619 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:33 verbose #18620 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:33 verbose #18621 > > │ ### svg                                                                      │
00:17:33 verbose #18622 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:33 verbose #18623 > >
00:17:33 verbose #18624 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:33 verbose #18625 > > inl svg props children : _ svg =
00:17:33 verbose #18626 > >     tag_element "svg" props children
00:17:33 verbose #18627 > 00:17:33   debug #1114 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/70f9a220be48ab8dc4614301a6ffcebd219191f8f989596c2cd4760e6d77f897/main.spi
00:17:34 verbose #18628 > >
00:17:34 verbose #18629 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:34 verbose #18630 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:34 verbose #18631 > > │ ### path                                                                     │
00:17:34 verbose #18632 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:34 verbose #18633 > >
00:17:34 verbose #18634 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:34 verbose #18635 > > inl path props : _ path =
00:17:34 verbose #18636 > >     tag_element "path" props (fun () => ;[[]] |> view_array_to_fragment)
00:17:34 verbose #18637 > 00:17:33   debug #1115 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5e3c69615f0f79811f875465504f74194551355090eca50bf7544609c1103a9a/main.spi
00:17:34 verbose #18638 > >
00:17:34 verbose #18639 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:34 verbose #18640 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:34 verbose #18641 > > │ ### circle                                                                   │
00:17:34 verbose #18642 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:34 verbose #18643 > >
00:17:34 verbose #18644 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:34 verbose #18645 > > inl circle props : _ circle =
00:17:34 verbose #18646 > >     tag_element "circle" props (fun () => ;[[]] |> view_array_to_fragment)
00:17:34 verbose #18647 > 00:17:33   debug #1116 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7940dde710be973e33f5b9581131072f3cec2dab1c97f630a09f8393bba96d76/main.spi
00:17:34 verbose #18648 > >
00:17:34 verbose #18649 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:34 verbose #18650 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:34 verbose #18651 > > │ ### rect                                                                     │
00:17:34 verbose #18652 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:34 verbose #18653 > >
00:17:34 verbose #18654 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:34 verbose #18655 > > inl rect props children : _ rect =
00:17:34 verbose #18656 > >     tag_element "rect" props children
00:17:35 verbose #18657 > 00:17:34   debug #1117 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/31e84a991f513e286517848dc1924174b98538475cd15f080bb16e4bec9e1e6b/main.spi
00:17:35 verbose #18658 > >
00:17:35 verbose #18659 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:35 verbose #18660 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:35 verbose #18661 > > │ ### animate                                                                  │
00:17:35 verbose #18662 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:35 verbose #18663 > >
00:17:35 verbose #18664 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:35 verbose #18665 > > inl animate props : _ animate =
00:17:35 verbose #18666 > >     tag_element "animate" props (fun () => ;[[]] |> view_array_to_fragment)
00:17:35 verbose #18667 > 00:17:34   debug #1118 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/50c9fb91cd72b87c67649313897deea7dcaa29dc68c0974c71201d5b2d1e9b51/main.spi
00:17:35 verbose #18668 > >
00:17:35 verbose #18669 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:35 verbose #18670 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:35 verbose #18671 > > │ ### input                                                                    │
00:17:35 verbose #18672 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:35 verbose #18673 > >
00:17:35 verbose #18674 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:35 verbose #18675 > > inl input props : _ input =
00:17:35 verbose #18676 > >     tag_closed "input" props
00:17:36 verbose #18677 > 00:17:35   debug #1119 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5f4d76dbee77a6714871d1d159a80b113c5830208c90e876b8158f4851cdc512/main.spi
00:17:36 verbose #18678 > >
00:17:36 verbose #18679 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:36 verbose #18680 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:36 verbose #18681 > > │ ### dd                                                                       │
00:17:36 verbose #18682 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:36 verbose #18683 > >
00:17:36 verbose #18684 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:36 verbose #18685 > > inl dd props children : _ dd =
00:17:36 verbose #18686 > >     tag_element "dd" props children
00:17:36 verbose #18687 > 00:17:35   debug #1120 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ebb783d257834e27d869ffc7f045ef0d453ef7fc6efbc1e708bd698a51f0b1a8/main.spi
00:17:36 verbose #18688 > >
00:17:36 verbose #18689 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:36 verbose #18690 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:36 verbose #18691 > > │ ### dl                                                                       │
00:17:36 verbose #18692 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:36 verbose #18693 > >
00:17:36 verbose #18694 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:36 verbose #18695 > > inl dl props children : _ dl =
00:17:36 verbose #18696 > >     tag_element "dl" props children
00:17:36 verbose #18697 > 00:17:35   debug #1121 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/718db1eaa14250d36dda4bfa29e8127a9e627d1a36f1bb18002514827622b8c4/main.spi
00:17:36 verbose #18698 > >
00:17:36 verbose #18699 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:36 verbose #18700 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:36 verbose #18701 > > │ ### dt                                                                       │
00:17:36 verbose #18702 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:36 verbose #18703 > >
00:17:36 verbose #18704 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:36 verbose #18705 > > inl dt props children : _ dt =
00:17:36 verbose #18706 > >     tag_element "dt" props children
00:17:37 verbose #18707 > 00:17:36   debug #1122 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/71774e51815af72d260bd5832027a767489ddc1b022ccf931d1a28ebb91d72ee/main.spi
00:17:37 verbose #18708 > 00:01:21 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 106663 }
00:17:37 verbose #18709 > 00:01:21   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/spiral/leptos/leptos.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/leptos/leptos.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:17:39 verbose #18710 > 00:01:23 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/leptos/leptos.dib.ipynb to html
00:17:39 verbose #18711 > 00:01:23 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:17:39 verbose #18712 > 00:01:23 verbose #7 !   validate(nb)
00:17:42 verbose #18713 > 00:01:26 verbose #8 ! [NbConvertApp] Writing 592745 bytes to c:\home\git\polyglot\lib\spiral\leptos\leptos.dib.html
00:17:42 verbose #18714 > 00:01:26 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 657 }
00:17:42 verbose #18715 > 00:01:26   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 657 }
00:17:42 verbose #18716 > 00:01:26   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/leptos/leptos.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/leptos/leptos.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:17:43 verbose #18717 > 00:01:27 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:17:43 verbose #18718 > 00:01:27   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:17:44 verbose #18719 > 00:01:28   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 107379 }
00:17:44   debug #18720 runtime.execute_with_options_async / { exit_code = 0; output_length = 114373 }
00:17:44   debug #24 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path leptos/leptos.dib --retries 3
00:17:44   debug #18721 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path util.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:17:44 verbose #18722 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "util.dib", "--retries", "3"])) }
00:17:44 verbose #18723 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/spiral/util.dib", "--output-path", "c:/home/git/polyglot/lib/spiral/util.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/util.dib" --output-path "c:/home/git/polyglot/lib/spiral/util.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:17:47 verbose #18724 > >
00:17:47 verbose #18725 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:47 verbose #18726 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:47 verbose #18727 > > │ # util                                                                       │
00:17:47 verbose #18728 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:52 verbose #18729 > >
00:17:52 verbose #18730 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:52 verbose #18731 > > //// test
00:17:52 verbose #18732 > >
00:17:52 verbose #18733 > > open testing
00:17:53 verbose #18734 > 00:17:52   debug #1123 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fa7845de436c12d0ca65282fe0cd65832468ca943e72feba50e6b1bb441e251a/main.spi
00:17:54 verbose #18735 > >
00:17:54 verbose #18736 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:54 verbose #18737 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:54 verbose #18738 > > │ ### ski                                                                      │
00:17:54 verbose #18739 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:54 verbose #18740 > >
00:17:54 verbose #18741 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:54 verbose #18742 > > union rec ski =
00:17:54 verbose #18743 > >     | I
00:17:54 verbose #18744 > >     | K
00:17:54 verbose #18745 > >     | S
00:17:54 verbose #18746 > >     | App : ski * ski
00:17:54 verbose #18747 > >
00:17:54 verbose #18748 > > inl rec eval ski =
00:17:54 verbose #18749 > >     match ski with
00:17:54 verbose #18750 > >     | App (App (K, x), y) => x |> eval
00:17:54 verbose #18751 > >     | App (App (App (S, x), y), z) => App (App (x, z), App (y, z)) |> eval
00:17:54 verbose #18752 > >     | App (I, x) => x |> eval
00:17:54 verbose #18753 > >     | App (K, x) => App (K, eval x)
00:17:54 verbose #18754 > >     | App (f, x) => App (eval f, x) |> eval
00:17:54 verbose #18755 > >     | _ => ski
00:17:54 verbose #18756 > 00:17:53   debug #1124 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/55f68dd739e62774e446e048bfbc0da20505423faa7837ca275a45e00b7aa12a/main.spi
00:17:54 verbose #18757 > >
00:17:54 verbose #18758 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:54 verbose #18759 > > //// test
00:17:54 verbose #18760 > >
00:17:54 verbose #18761 > > eval I
00:17:54 verbose #18762 > > |> _assert_eq I
00:17:54 verbose #18763 > >
00:17:54 verbose #18764 > > App (I, I)
00:17:54 verbose #18765 > > |> eval
00:17:54 verbose #18766 > > |> _assert_eq I
00:17:54 verbose #18767 > >
00:17:54 verbose #18768 > > App (I, App (I, I))
00:17:54 verbose #18769 > > |> eval
00:17:54 verbose #18770 > > |> _assert_eq I
00:17:54 verbose #18771 > >
00:17:54 verbose #18772 > > App (App (I, I), I)
00:17:54 verbose #18773 > > |> eval
00:17:54 verbose #18774 > > |> _assert_eq I
00:17:54 verbose #18775 > >
00:17:54 verbose #18776 > > App (App (App (I, I), I), I)
00:17:54 verbose #18777 > > |> eval
00:17:54 verbose #18778 > > |> _assert_eq I
00:17:54 verbose #18779 > >
00:17:54 verbose #18780 > > eval K
00:17:54 verbose #18781 > > |> _assert_eq K
00:17:54 verbose #18782 > >
00:17:54 verbose #18783 > > App (K, I)
00:17:54 verbose #18784 > > |> eval
00:17:54 verbose #18785 > > |> _assert_eq (App (K, I))
00:17:54 verbose #18786 > >
00:17:54 verbose #18787 > > App (K, K)
00:17:54 verbose #18788 > > |> eval
00:17:54 verbose #18789 > > |> _assert_eq (App (K, K))
00:17:54 verbose #18790 > >
00:17:54 verbose #18791 > > App (App (K, I), K)
00:17:54 verbose #18792 > > |> eval
00:17:54 verbose #18793 > > |> _assert_eq I
00:17:54 verbose #18794 > >
00:17:54 verbose #18795 > > App (App (K, K), I)
00:17:54 verbose #18796 > > |> eval
00:17:54 verbose #18797 > > |> _assert_eq K
00:17:54 verbose #18798 > >
00:17:54 verbose #18799 > > App (App (App (App (K, K), I), S), K)
00:17:54 verbose #18800 > > |> eval
00:17:54 verbose #18801 > > |> _assert_eq S
00:17:54 verbose #18802 > >
00:17:54 verbose #18803 > > eval S
00:17:54 verbose #18804 > > |> _assert_eq S
00:17:54 verbose #18805 > >
00:17:54 verbose #18806 > > App (App (App (S, I), I), I)
00:17:54 verbose #18807 > > |> eval
00:17:54 verbose #18808 > > |> _assert_eq I
00:17:54 verbose #18809 > >
00:17:54 verbose #18810 > > App (App (App (S, K), K), I)
00:17:54 verbose #18811 > > |> eval
00:17:54 verbose #18812 > > |> _assert_eq I
00:17:54 verbose #18813 > >
00:17:54 verbose #18814 > > App (App (App (S, K), I), (App (App (K, I), S)))
00:17:54 verbose #18815 > > |> eval
00:17:54 verbose #18816 > > |> _assert_eq I
00:17:54 verbose #18817 > >
00:17:54 verbose #18818 > > App (App (K, S), App (I, App (App (App (S, K), S), I)))
00:17:54 verbose #18819 > > |> eval
00:17:54 verbose #18820 > > |> _assert_eq S
00:17:54 verbose #18821 > >
00:17:54 verbose #18822 > > App (App (App (S, K), I), K)
00:17:54 verbose #18823 > > |> eval
00:17:54 verbose #18824 > > |> _assert_eq K
00:17:54 verbose #18825 > 00:17:53   debug #1125 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e6eefee28c7d2dded6638cfb752cc7777423c10b0b777a8ffdcf84642865b015/main.spi
00:17:55 verbose #18826 > >
00:17:55 verbose #18827 > > ╭─[ 1.46s - stdout ]───────────────────────────────────────────────────────────╮
00:17:55 verbose #18828 > > │ assert_eq / actual: UH0_0 / expected: UH0_0                                  │
00:17:55 verbose #18829 > > │ assert_eq / actual: UH0_0 / expected: UH0_0                                  │
00:17:55 verbose #18830 > > │ assert_eq / actual: UH0_0 / expected: UH0_0                                  │
00:17:55 verbose #18831 > > │ assert_eq / actual: UH0_0 / expected: UH0_0                                  │
00:17:55 verbose #18832 > > │ assert_eq / actual: UH0_0 / expected: UH0_0                                  │
00:17:55 verbose #18833 > > │ assert_eq / actual: UH0_1 / expected: UH0_1                                  │
00:17:55 verbose #18834 > > │ assert_eq / actual: UH0_3 (UH0_1, UH0_0) / expected: UH0_3 (UH0_1, UH0_0)    │
00:17:55 verbose #18835 > > │ assert_eq / actual: UH0_3 (UH0_1, UH0_1) / expected: UH0_3 (UH0_1, UH0_1)    │
00:17:55 verbose #18836 > > │ assert_eq / actual: UH0_0 / expected: UH0_0                                  │
00:17:55 verbose #18837 > > │ assert_eq / actual: UH0_1 / expected: UH0_1                                  │
00:17:55 verbose #18838 > > │ assert_eq / actual: UH0_2 / expected: UH0_2                                  │
00:17:55 verbose #18839 > > │ assert_eq / actual: UH0_2 / expected: UH0_2                                  │
00:17:55 verbose #18840 > > │ assert_eq / actual: UH0_0 / expected: UH0_0                                  │
00:17:55 verbose #18841 > > │ assert_eq / actual: UH0_0 / expected: UH0_0                                  │
00:17:55 verbose #18842 > > │ assert_eq / actual: UH0_0 / expected: UH0_0                                  │
00:17:55 verbose #18843 > > │ assert_eq / actual: UH0_2 / expected: UH0_2                                  │
00:17:55 verbose #18844 > > │ assert_eq / actual: UH0_1 / expected: UH0_1                                  │
00:17:55 verbose #18845 > > │                                                                              │
00:17:55 verbose #18846 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:56 verbose #18847 > 00:00:11 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 3706 }
00:17:56 verbose #18848 > 00:00:11   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/spiral/util.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/util.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:17:58 verbose #18849 > 00:00:13 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/util.dib.ipynb to html
00:17:58 verbose #18850 > 00:00:13 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:17:58 verbose #18851 > 00:00:13 verbose #7 !   validate(nb)
00:17:59 verbose #18852 > 00:00:14 verbose #8 ! [NbConvertApp] Writing 284313 bytes to c:\home\git\polyglot\lib\spiral\util.dib.html
00:17:59 verbose #18853 > 00:00:14 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 639 }
00:17:59 verbose #18854 > 00:00:14   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 639 }
00:17:59 verbose #18855 > 00:00:14   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/util.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/util.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:18:00 verbose #18856 > 00:00:15 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:18:00 verbose #18857 > 00:00:15   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:18:01 verbose #18858 > 00:00:16   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 4404 }
00:18:01   debug #18859 runtime.execute_with_options_async / { exit_code = 0; output_length = 7241 }
00:18:01   debug #25 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path util.dib --retries 3
00:18:01   debug #18860 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path platform.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:18:01 verbose #18861 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "platform.dib", "--retries", "3"])) }
00:18:01 verbose #18862 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/spiral/platform.dib", "--output-path", "c:/home/git/polyglot/lib/spiral/platform.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/platform.dib" --output-path "c:/home/git/polyglot/lib/spiral/platform.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:18:03 verbose #18863 > >
00:18:03 verbose #18864 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:03 verbose #18865 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:03 verbose #18866 > > │ # platform                                                                   │
00:18:03 verbose #18867 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:07 verbose #18868 > >
00:18:07 verbose #18869 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:07 verbose #18870 > > open rust_operators
00:18:08 verbose #18871 > 00:18:07   debug #1126 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0d9bd8e5bb71a8e1d983506a46e54fb8c8e6cf2d0bd973135d4cdd580c5f6d39/main.spi
00:18:09 verbose #18872 > >
00:18:09 verbose #18873 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:09 verbose #18874 > > //// test
00:18:09 verbose #18875 > >
00:18:09 verbose #18876 > > open testing
00:18:09 verbose #18877 > 00:18:08   debug #1127 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d06211d48c36e09624381aad71e69f817df1a545af31c21067514d4d391bdd05/main.spi
00:18:09 verbose #18878 > >
00:18:09 verbose #18879 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:09 verbose #18880 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:09 verbose #18881 > > │ ## fsharp                                                                    │
00:18:09 verbose #18882 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:09 verbose #18883 > >
00:18:09 verbose #18884 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:09 verbose #18885 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:09 verbose #18886 > > │ ### os_platform                                                              │
00:18:09 verbose #18887 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:09 verbose #18888 > >
00:18:09 verbose #18889 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:09 verbose #18890 > > nominal os_platform' = $'System.Runtime.InteropServices.OSPlatform'
00:18:09 verbose #18891 > >
00:18:09 verbose #18892 > > union os_platform =
00:18:09 verbose #18893 > >     | FreeBSD
00:18:09 verbose #18894 > >     | Linux
00:18:09 verbose #18895 > >     | OSX
00:18:09 verbose #18896 > >     | Windows
00:18:09 verbose #18897 > >
00:18:09 verbose #18898 > > inl os_platform = function
00:18:09 verbose #18899 > >     | FreeBSD => $'`os_platform'.FreeBSD' : os_platform'
00:18:09 verbose #18900 > >     | Linux => $'`os_platform'.Linux' : os_platform'
00:18:09 verbose #18901 > >     | OSX => $'`os_platform'.OSX' : os_platform'
00:18:09 verbose #18902 > >     | Windows => $'`os_platform'.Windows' : os_platform'
00:18:09 verbose #18903 > 00:18:08   debug #1128 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7ac0d161bbd0b5f91df3aa17dfd45bdc5d89807fd0790eb70f09493aef79a64a/main.spi
00:18:09 verbose #18904 > >
00:18:09 verbose #18905 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:09 verbose #18906 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:09 verbose #18907 > > │ ### run_platform                                                             │
00:18:09 verbose #18908 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:09 verbose #18909 > >
00:18:09 verbose #18910 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:09 verbose #18911 > > inl run_platform forall t. (fn : os_platform -> (() -> t)) : t =
00:18:09 verbose #18912 > >     inl result = dyn true
00:18:09 verbose #18913 > >     $'let mutable _!result : `t option = None '
00:18:09 verbose #18914 > >     $'\n#if _FREEBSD'
00:18:09 verbose #18915 > >     fn FreeBSD () |> emit_unit
00:18:09 verbose #18916 > >     $'#endif\n#if _LINUX'
00:18:09 verbose #18917 > >     fn Linux () |> emit_unit
00:18:09 verbose #18918 > >     $'#endif\n#if _OSX'
00:18:09 verbose #18919 > >     fn OSX () |> emit_unit
00:18:09 verbose #18920 > >     $'#endif\n#if _WINDOWS'
00:18:09 verbose #18921 > >     fn Windows () |> emit_unit
00:18:09 verbose #18922 > >     $'#endif'
00:18:09 verbose #18923 > >     $'|> fun x -> _!result <- Some x'
00:18:09 verbose #18924 > >     $'match _!result with Some x -> x | None -> failwith "runtime.run_platform
00:18:09 verbose #18925 > > _!result=None"'
00:18:10 verbose #18926 > 00:18:09   debug #1129 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/803295b0c6e91c8ed0cd32e0aa0f51b02d781aa166682581f4ac3f5180a4a430/main.spi
00:18:10 verbose #18927 > >
00:18:10 verbose #18928 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:10 verbose #18929 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:10 verbose #18930 > > │ ### is_os_platform                                                           │
00:18:10 verbose #18931 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:10 verbose #18932 > >
00:18:10 verbose #18933 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:10 verbose #18934 > > inl is_os_platform (x : os_platform') : bool =
00:18:10 verbose #18935 > >     x |> $'System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform'
00:18:10 verbose #18936 > 00:18:09   debug #1130 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c0941463e738185291c97b7e4aa789ee4f6979ca60bd98d3769006f823451fa5/main.spi
00:18:10 verbose #18937 > >
00:18:10 verbose #18938 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:10 verbose #18939 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:10 verbose #18940 > > │ ### is_windows'                                                              │
00:18:10 verbose #18941 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:10 verbose #18942 > >
00:18:10 verbose #18943 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:10 verbose #18944 > > inl is_windows' () : bool =
00:18:10 verbose #18945 > >     run_platform function
00:18:10 verbose #18946 > >         | Windows => fun () => true
00:18:10 verbose #18947 > >         | _ => fun () => false
00:18:10 verbose #18948 > 00:18:09   debug #1131 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c3bc122f944c427f6205374327f98ea9972f2243a2fe614c130bae0b67351b03/main.spi
00:18:10 verbose #18949 > >
00:18:10 verbose #18950 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:10 verbose #18951 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:10 verbose #18952 > > │ ## platform                                                                  │
00:18:10 verbose #18953 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:10 verbose #18954 > >
00:18:10 verbose #18955 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:10 verbose #18956 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:10 verbose #18957 > > │ ### is_windows                                                               │
00:18:10 verbose #18958 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:10 verbose #18959 > >
00:18:10 verbose #18960 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:10 verbose #18961 > > inl is_windows () : bool =
00:18:10 verbose #18962 > >     run_target function
00:18:10 verbose #18963 > >         | Rust _ => fun () =>
00:18:10 verbose #18964 > >             !\($'"cfg\!(windows)"')
00:18:10 verbose #18965 > >         | Fsharp _ => fun () =>
00:18:10 verbose #18966 > >             Windows |> os_platform |> is_os_platform
00:18:10 verbose #18967 > >         | target => fun () => failwith $'$"platform.is_windows / target:
00:18:10 verbose #18968 > > {!target}"'
00:18:11 verbose #18969 > 00:18:10   debug #1132 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d8e3ae905b9d1a99d0a5d79a25f09762894aefcafb629d67d0930627f1b77a1b/main.spi
00:18:11 verbose #18970 > >
00:18:11 verbose #18971 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:11 verbose #18972 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:11 verbose #18973 > > │ ### get_executable_suffix                                                    │
00:18:11 verbose #18974 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:11 verbose #18975 > >
00:18:11 verbose #18976 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:11 verbose #18977 > > inl get_executable_suffix () =
00:18:11 verbose #18978 > >     if is_windows ()
00:18:11 verbose #18979 > >     then ".exe"
00:18:11 verbose #18980 > >     else ""
00:18:11 verbose #18981 > 00:18:10   debug #1133 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/354389b052e4fce160f44d5846a2fdef583772c5b711be1011683f102c636238/main.spi
00:18:11 verbose #18982 > >
00:18:11 verbose #18983 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:11 verbose #18984 > > //// test
00:18:11 verbose #18985 > >
00:18:11 verbose #18986 > > get_executable_suffix ()
00:18:11 verbose #18987 > 00:18:11   debug #1134 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7548f56307d90b951273358f972de99a8c78a9b6ca9267498afdadea47049d0a/main.spi
00:18:13 verbose #18988 > >
00:18:13 verbose #18989 > > ╭─[ 1.78s - return value ]─────────────────────────────────────────────────────╮
00:18:13 verbose #18990 > > │ .exe                                                                         │
00:18:13 verbose #18991 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:13 verbose #18992 > >
00:18:13 verbose #18993 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:13 verbose #18994 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:13 verbose #18995 > > │ ## main                                                                      │
00:18:13 verbose #18996 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:13 verbose #18997 > >
00:18:13 verbose #18998 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:13 verbose #18999 > > inl main () =
00:18:13 verbose #19000 > >     $'let is_windows () = !is_windows ()' : ()
00:18:13 verbose #19001 > >     $'let get_executable_suffix () = !get_executable_suffix ()' : ()
00:18:13 verbose #19002 > 00:18:12   debug #1135 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0530190ebe4d2c1bbbb2f65bf21f41aea56583b74bc819caffb720177187260a/main.spi
00:18:14 verbose #19003 > 00:00:13 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 6023 }
00:18:14 verbose #19004 > 00:00:13   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/spiral/platform.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/platform.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:18:17 verbose #19005 > 00:00:15 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/platform.dib.ipynb to html
00:18:17 verbose #19006 > 00:00:15 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:18:17 verbose #19007 > 00:00:15 verbose #7 !   validate(nb)
00:18:18 verbose #19008 > 00:00:17 verbose #8 ! [NbConvertApp] Writing 287951 bytes to c:\home\git\polyglot\lib\spiral\platform.dib.html
00:18:18 verbose #19009 > 00:00:17 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 647 }
00:18:18 verbose #19010 > 00:00:17   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 647 }
00:18:18 verbose #19011 > 00:00:17   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/platform.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/platform.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:18:19 verbose #19012 > 00:00:18 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:18:19 verbose #19013 > 00:00:18   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:18:20 verbose #19014 > 00:00:19   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 6729 }
00:18:20   debug #19015 runtime.execute_with_options_async / { exit_code = 0; output_length = 9622 }
00:18:20   debug #26 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path platform.dib --retries 3
00:18:20   debug #19016 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path stream.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:18:20 verbose #19017 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "stream.dib", "--retries", "3"])) }
00:18:20 verbose #19018 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/spiral/stream.dib", "--output-path", "c:/home/git/polyglot/lib/spiral/stream.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/stream.dib" --output-path "c:/home/git/polyglot/lib/spiral/stream.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:18:22 verbose #19019 > >
00:18:22 verbose #19020 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:22 verbose #19021 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:22 verbose #19022 > > │ # stream                                                                     │
00:18:22 verbose #19023 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:27 verbose #19024 > >
00:18:27 verbose #19025 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:27 verbose #19026 > > open rust_operators
00:18:28 verbose #19027 > 00:18:27   debug #1136 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0d9bd8e5bb71a8e1d983506a46e54fb8c8e6cf2d0bd973135d4cdd580c5f6d39/main.spi
00:18:28 verbose #19028 > >
00:18:28 verbose #19029 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:28 verbose #19030 > > //// test
00:18:28 verbose #19031 > >
00:18:28 verbose #19032 > > open testing
00:18:28 verbose #19033 > 00:18:27   debug #1137 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d06211d48c36e09624381aad71e69f817df1a545af31c21067514d4d391bdd05/main.spi
00:18:28 verbose #19034 > >
00:18:28 verbose #19035 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:28 verbose #19036 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:28 verbose #19037 > > │ ## stream                                                                    │
00:18:28 verbose #19038 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:28 verbose #19039 > >
00:18:28 verbose #19040 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:28 verbose #19041 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:28 verbose #19042 > > │ ### stream                                                                   │
00:18:28 verbose #19043 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:28 verbose #19044 > >
00:18:28 verbose #19045 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:28 verbose #19046 > > union rec stream t =
00:18:28 verbose #19047 > >     | StreamCons : t * (() -> stream t)
00:18:28 verbose #19048 > >     | StreamNil
00:18:29 verbose #19049 > 00:18:28   debug #1138 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/166bbed4f01c544777b11ebf4842ec38518ffee6cf5fdf3e8bbc80d8f6221ffd/main.spi
00:18:29 verbose #19050 > >
00:18:29 verbose #19051 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:29 verbose #19052 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:29 verbose #19053 > > │ ### fold                                                                     │
00:18:29 verbose #19054 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:29 verbose #19055 > >
00:18:29 verbose #19056 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:29 verbose #19057 > > inl fold fn init s =
00:18:29 verbose #19058 > >     inl rec body acc = function
00:18:29 verbose #19059 > >         | StreamCons (st, fn') => loop (fn acc st) (fn' ())
00:18:29 verbose #19060 > >         | StreamNil => acc
00:18:29 verbose #19061 > >     and inl loop acc = join_body body acc
00:18:29 verbose #19062 > >     loop init s
00:18:29 verbose #19063 > 00:18:28   debug #1139 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9d9466459a8a4e0942881db81259aeebc6352cca0b68bddb582e8eca3166b378/main.spi
00:18:29 verbose #19064 > >
00:18:29 verbose #19065 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:29 verbose #19066 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:29 verbose #19067 > > │ ### fold_back                                                                │
00:18:29 verbose #19068 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:29 verbose #19069 > >
00:18:29 verbose #19070 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:29 verbose #19071 > > inl fold_back fn s init =
00:18:29 verbose #19072 > >     inl rec body acc = function
00:18:29 verbose #19073 > >         | StreamCons (st, fn') => fn st (loop acc (fn' ()))
00:18:29 verbose #19074 > >         | StreamNil => acc
00:18:29 verbose #19075 > >     and inl loop acc = join_body body acc
00:18:29 verbose #19076 > >     loop init s
00:18:29 verbose #19077 > 00:18:29   debug #1140 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/cc5bda5529f2e1696e5a4d0c66addb13d34de8d80c7c185bc4a9456b55d81d2a/main.spi
00:18:30 verbose #19078 > >
00:18:30 verbose #19079 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:30 verbose #19080 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:30 verbose #19081 > > │ ### to_list                                                                  │
00:18:30 verbose #19082 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:30 verbose #19083 > >
00:18:30 verbose #19084 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:30 verbose #19085 > > inl to_list s =
00:18:30 verbose #19086 > >     (s, [[]])
00:18:30 verbose #19087 > >     ||> fold_back fun x acc =>
00:18:30 verbose #19088 > >         x :: acc
00:18:30 verbose #19089 > 00:18:29   debug #1141 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/53c06660df2ce660a4558c325168ddacf3871f5f9bb4c26e8996b070b7044c71/main.spi
00:18:30 verbose #19090 > >
00:18:30 verbose #19091 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:30 verbose #19092 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:30 verbose #19093 > > │ ### rev                                                                      │
00:18:30 verbose #19094 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:30 verbose #19095 > >
00:18:30 verbose #19096 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:30 verbose #19097 > > inl rev s =
00:18:30 verbose #19098 > >     (StreamNil, s)
00:18:30 verbose #19099 > >     ||> fold fun s x =>
00:18:30 verbose #19100 > >         StreamCons (x, fun () => s)
00:18:30 verbose #19101 > 00:18:29   debug #1142 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a117fc4142e7ddb14c14b289a93d2137ea601e39074de62ca2a6f7093afe304d/main.spi
00:18:30 verbose #19102 > >
00:18:30 verbose #19103 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:30 verbose #19104 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:30 verbose #19105 > > │ ### from_list                                                                │
00:18:30 verbose #19106 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:30 verbose #19107 > >
00:18:30 verbose #19108 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:30 verbose #19109 > > inl from_list list =
00:18:30 verbose #19110 > >     (list, StreamNil)
00:18:30 verbose #19111 > >     ||> listm.foldBack fun x acc =>
00:18:30 verbose #19112 > >         StreamCons (x, fun () => acc)
00:18:31 verbose #19113 > 00:18:30   debug #1143 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6a7f6198b0be42646be4017c6ee1f57095aa9e876128e4d2107c51ea18df1702/main.spi
00:18:31 verbose #19114 > >
00:18:31 verbose #19115 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:31 verbose #19116 > > //// test
00:18:31 verbose #19117 > >
00:18:31 verbose #19118 > > listm.init 3i32 id
00:18:31 verbose #19119 > > |> from_list
00:18:31 verbose #19120 > > |> rev
00:18:31 verbose #19121 > > |> to_list
00:18:31 verbose #19122 > > |> _assert_eq [[ 2; 1; 0 ]]
00:18:31 verbose #19123 > 00:18:30   debug #1144 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7b224139bd0ff1d5cec33e81123d12ef91b3f0af40df0f8bea34bf84d41f9070/main.spi
00:18:32 verbose #19124 > >
00:18:32 verbose #19125 > > ╭─[ 1.42s - stdout ]───────────────────────────────────────────────────────────╮
00:18:32 verbose #19126 > > │ assert_eq / actual: UH0_1 (2, UH0_1 (1, UH0_1 (0, UH0_0))) / expected: UH0_1 │
00:18:32 verbose #19127 > > │ (2, UH0_1 (1, UH0_1 (0, UH0_0)))                                             │
00:18:32 verbose #19128 > > │                                                                              │
00:18:32 verbose #19129 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:32 verbose #19130 > >
00:18:32 verbose #19131 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:32 verbose #19132 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:32 verbose #19133 > > │ ### try_item                                                                 │
00:18:32 verbose #19134 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:32 verbose #19135 > >
00:18:32 verbose #19136 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:32 verbose #19137 > > inl try_item i s =
00:18:32 verbose #19138 > >     inl rec body i = function
00:18:32 verbose #19139 > >         | StreamCons (x, _) when i <= 0 => Some x
00:18:32 verbose #19140 > >         | StreamCons (_, fn) => loop (i - 1) (fn ())
00:18:32 verbose #19141 > >         | StreamNil => None
00:18:32 verbose #19142 > >     and inl loop acc s' =
00:18:32 verbose #19143 > >         match var_is acc, var_is s' with
00:18:32 verbose #19144 > >         | false, false => body acc s'
00:18:32 verbose #19145 > >         | _ =>
00:18:32 verbose #19146 > >             inl acc = dyn acc
00:18:32 verbose #19147 > >             inl s' = dyn s'
00:18:32 verbose #19148 > >             join body acc s'
00:18:32 verbose #19149 > >     loop i s
00:18:32 verbose #19150 > >
00:18:32 verbose #19151 > > inl item i =
00:18:32 verbose #19152 > >     try_item i >> optionm.value
00:18:32 verbose #19153 > 00:18:32   debug #1145 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8813f61b47d15d78be1ac7c2e52fb510db5438044384926c92a5fdece60ac3cc/main.spi
00:18:32 verbose #19154 > >
00:18:32 verbose #19155 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:32 verbose #19156 > > //// test
00:18:32 verbose #19157 > >
00:18:32 verbose #19158 > > listm.init 10i32 id
00:18:32 verbose #19159 > > |> from_list
00:18:32 verbose #19160 > > |> item 9i32
00:18:32 verbose #19161 > > |> _assert_eq 9
00:18:33 verbose #19162 > 00:18:32   debug #1146 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/db203f5d838eb505161d5bc30ee49f60ee84d6647502ec17d1849e215e52aa76/main.spi
00:18:33 verbose #19163 > >
00:18:33 verbose #19164 > > ╭─[ 350.71ms - stdout ]────────────────────────────────────────────────────────╮
00:18:33 verbose #19165 > > │ assert_eq / actual: 9 / expected: 9                                          │
00:18:33 verbose #19166 > > │                                                                              │
00:18:33 verbose #19167 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:33 verbose #19168 > >
00:18:33 verbose #19169 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:33 verbose #19170 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:33 verbose #19171 > > │ ### new_infinite_stream                                                      │
00:18:33 verbose #19172 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:33 verbose #19173 > >
00:18:33 verbose #19174 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:33 verbose #19175 > > inl new_infinite_stream fn =
00:18:33 verbose #19176 > >     inl rec loop n =
00:18:33 verbose #19177 > >         StreamCons (fn n, fun () => loop (n + 1))
00:18:33 verbose #19178 > >     loop 0
00:18:33 verbose #19179 > >
00:18:33 verbose #19180 > > inl new_infinite_stream_ fn =
00:18:33 verbose #19181 > >     let rec loop n =
00:18:33 verbose #19182 > >         StreamCons (fn n, fun () => loop (n + 1))
00:18:33 verbose #19183 > >     loop 0
00:18:33 verbose #19184 > 00:18:32   debug #1147 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/26bbd828e1ad951676e5b0ecd92655591ea1d10b0aaa965bc0c36d98862b8ed1/main.spi
00:18:33 verbose #19185 > >
00:18:33 verbose #19186 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:33 verbose #19187 > > //// test
00:18:33 verbose #19188 > >
00:18:33 verbose #19189 > > new_infinite_stream print_and_return
00:18:33 verbose #19190 > > |> item 4i32
00:18:33 verbose #19191 > > |> _assert_eq 4i32
00:18:33 verbose #19192 > 00:18:33   debug #1148 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e3aab324dd507fb9d8fd0bae49ddaede5961bf7ee2a7803e3a52d9b10b0b4abb/main.spi
00:18:33 verbose #19193 > >
00:18:33 verbose #19194 > > ╭─[ 371.80ms - stdout ]────────────────────────────────────────────────────────╮
00:18:33 verbose #19195 > > │ print_and_return / x: 0                                                      │
00:18:33 verbose #19196 > > │ print_and_return / x: 1                                                      │
00:18:33 verbose #19197 > > │ print_and_return / x: 2                                                      │
00:18:33 verbose #19198 > > │ print_and_return / x: 3                                                      │
00:18:33 verbose #19199 > > │ print_and_return / x: 4                                                      │
00:18:33 verbose #19200 > > │ assert_eq / actual: 4 / expected: 4                                          │
00:18:33 verbose #19201 > > │                                                                              │
00:18:33 verbose #19202 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:33 verbose #19203 > >
00:18:33 verbose #19204 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:33 verbose #19205 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:33 verbose #19206 > > │ ### new_finite_stream                                                        │
00:18:33 verbose #19207 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:33 verbose #19208 > >
00:18:33 verbose #19209 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:33 verbose #19210 > > inl new_finite_stream fn max =
00:18:33 verbose #19211 > >     inl rec loop n =
00:18:33 verbose #19212 > >         if n >= max
00:18:33 verbose #19213 > >         then StreamNil
00:18:33 verbose #19214 > >         else StreamCons (fn n, fun () => loop (n + 1))
00:18:33 verbose #19215 > >     loop 0
00:18:34 verbose #19216 > 00:18:33   debug #1149 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d61f8367a7551ff9ba8179c48c57e0d6aa9c2baae278725ed6ca96bcb84cd07a/main.spi
00:18:34 verbose #19217 > >
00:18:34 verbose #19218 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:34 verbose #19219 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:34 verbose #19220 > > │ ### memoize                                                                  │
00:18:34 verbose #19221 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:34 verbose #19222 > >
00:18:34 verbose #19223 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:34 verbose #19224 > > union memoized_stream t =
00:18:34 verbose #19225 > >     | NotComputed : () -> stream t
00:18:34 verbose #19226 > >     | Computed : stream t
00:18:34 verbose #19227 > >
00:18:34 verbose #19228 > > inl memoize s =
00:18:34 verbose #19229 > >     inl rec body s =
00:18:34 verbose #19230 > >         inl state = mut (NotComputed s)
00:18:34 verbose #19231 > >         fun () =>
00:18:34 verbose #19232 > >             match *state with
00:18:34 verbose #19233 > >             | Computed x => x
00:18:34 verbose #19234 > >             | NotComputed fn =>
00:18:34 verbose #19235 > >                 inl new_state =
00:18:34 verbose #19236 > >                     match fn () with
00:18:34 verbose #19237 > >                     | StreamNil => StreamNil
00:18:34 verbose #19238 > >                     | StreamCons (x, fn) => StreamCons (x, loop fn)
00:18:34 verbose #19239 > >                 state <- Computed new_state
00:18:34 verbose #19240 > >                 new_state
00:18:34 verbose #19241 > >     and inl loop s' = join_body_unit body s s'
00:18:34 verbose #19242 > >     loop (fun () => s)
00:18:34 verbose #19243 > 00:18:33   debug #1150 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9c01969b2555fafc2a3d06b7424353b49468ca552f74af02ab87b3625f9708f3/main.spi
00:18:34 verbose #19244 > >
00:18:34 verbose #19245 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:34 verbose #19246 > > //// test
00:18:34 verbose #19247 > >
00:18:34 verbose #19248 > > inl memo_stream = new_finite_stream print_and_return 10 |> memoize
00:18:34 verbose #19249 > >
00:18:34 verbose #19250 > > memo_stream ()
00:18:34 verbose #19251 > > |> item 3i32
00:18:34 verbose #19252 > > |> _assert_eq 3i32
00:18:34 verbose #19253 > >
00:18:34 verbose #19254 > > memo_stream ()
00:18:34 verbose #19255 > > |> item 5i32
00:18:34 verbose #19256 > > |> _assert_eq 5i32
00:18:34 verbose #19257 > 00:18:34   debug #1151 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0cdcb5e74a424e7698ff7d8f875399ec2ae46c239773af90c58a5fe56a823c17/main.spi
00:18:35 verbose #19258 > >
00:18:35 verbose #19259 > > ╭─[ 823.00ms - stdout ]────────────────────────────────────────────────────────╮
00:18:35 verbose #19260 > > │ print_and_return / x: 0                                                      │
00:18:35 verbose #19261 > > │ print_and_return / x: 1                                                      │
00:18:35 verbose #19262 > > │ print_and_return / x: 2                                                      │
00:18:35 verbose #19263 > > │ print_and_return / x: 3                                                      │
00:18:35 verbose #19264 > > │ assert_eq / actual: 3 / expected: 3                                          │
00:18:35 verbose #19265 > > │ print_and_return / x: 4                                                      │
00:18:35 verbose #19266 > > │ print_and_return / x: 5                                                      │
00:18:35 verbose #19267 > > │ assert_eq / actual: 5 / expected: 5                                          │
00:18:35 verbose #19268 > > │                                                                              │
00:18:35 verbose #19269 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:35 verbose #19270 > >
00:18:35 verbose #19271 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:35 verbose #19272 > > //// test
00:18:35 verbose #19273 > >
00:18:35 verbose #19274 > > inl memo_stream = new_infinite_stream_ print_and_return |> memoize
00:18:35 verbose #19275 > >
00:18:35 verbose #19276 > > memo_stream ()
00:18:35 verbose #19277 > > |> item 3i32
00:18:35 verbose #19278 > > |> _assert_eq 3i32
00:18:35 verbose #19279 > >
00:18:35 verbose #19280 > > memo_stream ()
00:18:35 verbose #19281 > > |> item 5i32
00:18:35 verbose #19282 > > |> _assert_eq 5i32
00:18:35 verbose #19283 > 00:18:34   debug #1152 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/528b468b0e2936f6b01c8ddfe03e99c5c120b99c7a0046ba091fec0b8b30f3c1/main.spi
00:18:35 verbose #19284 > >
00:18:35 verbose #19285 > > ╭─[ 473.78ms - stdout ]────────────────────────────────────────────────────────╮
00:18:35 verbose #19286 > > │ print_and_return / x: 0                                                      │
00:18:35 verbose #19287 > > │ print_and_return / x: 1                                                      │
00:18:35 verbose #19288 > > │ print_and_return / x: 2                                                      │
00:18:35 verbose #19289 > > │ print_and_return / x: 3                                                      │
00:18:35 verbose #19290 > > │ assert_eq / actual: 3 / expected: 3                                          │
00:18:35 verbose #19291 > > │ print_and_return / x: 4                                                      │
00:18:35 verbose #19292 > > │ print_and_return / x: 5                                                      │
00:18:35 verbose #19293 > > │ assert_eq / actual: 5 / expected: 5                                          │
00:18:35 verbose #19294 > > │                                                                              │
00:18:35 verbose #19295 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:35 verbose #19296 > >
00:18:35 verbose #19297 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:35 verbose #19298 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:35 verbose #19299 > > │ ### unfold                                                                   │
00:18:35 verbose #19300 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:35 verbose #19301 > >
00:18:35 verbose #19302 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:35 verbose #19303 > > inl unfold f x0 =
00:18:35 verbose #19304 > >     inl rec body x =
00:18:35 verbose #19305 > >         match f x with
00:18:35 verbose #19306 > >         | Some (x', y) => StreamCons (x', fun () => loop y)
00:18:35 verbose #19307 > >         | None => StreamNil
00:18:35 verbose #19308 > >     and inl loop x = join_body_unit body x0 x
00:18:35 verbose #19309 > >     loop x0
00:18:36 verbose #19310 > 00:18:35   debug #1153 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1e61a8bffd7f0b3322e6b55553d5a37a9c0151b5e2954847f6fe7ae7618c0791/main.spi
00:18:36 verbose #19311 > >
00:18:36 verbose #19312 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:36 verbose #19313 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:36 verbose #19314 > > │ ### iterate                                                                  │
00:18:36 verbose #19315 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:36 verbose #19316 > >
00:18:36 verbose #19317 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:36 verbose #19318 > > inl iterate f =
00:18:36 verbose #19319 > >     unfold (fun x => Some (x, f x))
00:18:36 verbose #19320 > 00:18:35   debug #1154 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b7990a0b7b633be3ce6eb6a67ad2c5a707ecb3d2ca5de26368793fe41e554759/main.spi
00:18:36 verbose #19321 > >
00:18:36 verbose #19322 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:36 verbose #19323 > > //// test
00:18:36 verbose #19324 > >
00:18:36 verbose #19325 > > iterate ((*) 2) 1i32
00:18:36 verbose #19326 > > |> item 10i32
00:18:36 verbose #19327 > > |> _assert_eq 1024
00:18:36 verbose #19328 > 00:18:36   debug #1155 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9a3f95eac01a3f4b4486a6395ba81dd263c37301ec541c14ec31b265df0096d4/main.spi
00:18:37 verbose #19329 > >
00:18:37 verbose #19330 > > ╭─[ 369.69ms - stdout ]────────────────────────────────────────────────────────╮
00:18:37 verbose #19331 > > │ assert_eq / actual: 1024 / expected: 1024                                    │
00:18:37 verbose #19332 > > │                                                                              │
00:18:37 verbose #19333 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:37 verbose #19334 > >
00:18:37 verbose #19335 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:37 verbose #19336 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:37 verbose #19337 > > │ ### take_while                                                               │
00:18:37 verbose #19338 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:37 verbose #19339 > >
00:18:37 verbose #19340 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:37 verbose #19341 > > inl take_while cond s =
00:18:37 verbose #19342 > >     inl rec body i = function
00:18:37 verbose #19343 > >         | StreamCons (st, fn) when cond st i => StreamCons (st, fun () => loop
00:18:37 verbose #19344 > > (i + 1) (fn ()))
00:18:37 verbose #19345 > >         | _ => StreamNil
00:18:37 verbose #19346 > >     and inl loop i = join_body body i
00:18:37 verbose #19347 > >     loop 0 s
00:18:37 verbose #19348 > 00:18:36   debug #1156 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1b1ccfdfd447d900752212d677e48378f3f4ab8a2b6c8d85432bf478ba37e78d/main.spi
00:18:37 verbose #19349 > >
00:18:37 verbose #19350 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:37 verbose #19351 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:37 verbose #19352 > > │ ### sum                                                                      │
00:18:37 verbose #19353 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:37 verbose #19354 > >
00:18:37 verbose #19355 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:37 verbose #19356 > > inl sum seq =
00:18:37 verbose #19357 > >     seq |> fold (+) 0
00:18:37 verbose #19358 > 00:18:36   debug #1157 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9995592862b6007e7cc0b07249a7d974f31dc53c6a49ce9077ce064b24a0b1e5/main.spi
00:18:37 verbose #19359 > >
00:18:37 verbose #19360 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:37 verbose #19361 > > //// test
00:18:37 verbose #19362 > >
00:18:37 verbose #19363 > > listm.init 10i32 id
00:18:37 verbose #19364 > > |> from_list
00:18:37 verbose #19365 > > |> sum
00:18:37 verbose #19366 > > |> _assert_eq 45
00:18:38 verbose #19367 > 00:18:37   debug #1158 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/245ee9779c791c2915e3e8b87232c994dd87a1800217fb402ba9a9f978d83ce8/main.spi
00:18:38 verbose #19368 > >
00:18:38 verbose #19369 > > ╭─[ 386.06ms - stdout ]────────────────────────────────────────────────────────╮
00:18:38 verbose #19370 > > │ assert_eq / actual: 45 / expected: 45                                        │
00:18:38 verbose #19371 > > │                                                                              │
00:18:38 verbose #19372 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:38 verbose #19373 > >
00:18:38 verbose #19374 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:38 verbose #19375 > > //// test
00:18:38 verbose #19376 > >
00:18:38 verbose #19377 > > new_finite_stream print_and_return 10i32
00:18:38 verbose #19378 > > |> take_while (fun n (_ : i32) => n < 5)
00:18:38 verbose #19379 > > |> sum
00:18:38 verbose #19380 > > |> _assert_eq 10
00:18:38 verbose #19381 > 00:18:37   debug #1159 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ac98ca8ef50b70f70dd814bd57c5583fadb40f73b2bc395b5ac58b9dc99b2e8f/main.spi
00:18:38 verbose #19382 > >
00:18:38 verbose #19383 > > ╭─[ 439.57ms - stdout ]────────────────────────────────────────────────────────╮
00:18:38 verbose #19384 > > │ print_and_return / x: 0                                                      │
00:18:38 verbose #19385 > > │ print_and_return / x: 1                                                      │
00:18:38 verbose #19386 > > │ print_and_return / x: 2                                                      │
00:18:38 verbose #19387 > > │ print_and_return / x: 3                                                      │
00:18:38 verbose #19388 > > │ print_and_return / x: 4                                                      │
00:18:38 verbose #19389 > > │ print_and_return / x: 5                                                      │
00:18:38 verbose #19390 > > │ assert_eq / actual: 10 / expected: 10                                        │
00:18:38 verbose #19391 > > │                                                                              │
00:18:38 verbose #19392 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:38 verbose #19393 > >
00:18:38 verbose #19394 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:38 verbose #19395 > > //// test
00:18:38 verbose #19396 > >
00:18:38 verbose #19397 > > new_infinite_stream print_and_return
00:18:38 verbose #19398 > > |> take_while (fun n (_ : i32) => n < 5i32)
00:18:38 verbose #19399 > > |> sum
00:18:38 verbose #19400 > > |> _assert_eq 10
00:18:38 verbose #19401 > 00:18:38   debug #1160 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/dc98548a919ec2bca5cd9d0273ec7bb2ec207bb2a233c8c06cbf9646b77619f4/main.spi
00:18:38 verbose #19402 > >
00:18:38 verbose #19403 > > ╭─[ 347.15ms - stdout ]────────────────────────────────────────────────────────╮
00:18:38 verbose #19404 > > │ print_and_return / x: 0                                                      │
00:18:38 verbose #19405 > > │ print_and_return / x: 1                                                      │
00:18:38 verbose #19406 > > │ print_and_return / x: 2                                                      │
00:18:38 verbose #19407 > > │ print_and_return / x: 3                                                      │
00:18:38 verbose #19408 > > │ print_and_return / x: 4                                                      │
00:18:38 verbose #19409 > > │ print_and_return / x: 5                                                      │
00:18:38 verbose #19410 > > │ assert_eq / actual: 10 / expected: 10                                        │
00:18:38 verbose #19411 > > │                                                                              │
00:18:38 verbose #19412 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:38 verbose #19413 > >
00:18:38 verbose #19414 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:38 verbose #19415 > > //// test
00:18:38 verbose #19416 > >
00:18:38 verbose #19417 > > iterate ((*) 6) 1i32
00:18:38 verbose #19418 > > |> take_while (fun _ i => i <= 7i32)
00:18:38 verbose #19419 > > |> to_list
00:18:38 verbose #19420 > > |> _assert_eq [[ 1i32; 6; 36; 216; 1296; 7776; 46656; 279936 ]]
00:18:39 verbose #19421 > 00:18:38   debug #1161 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c322e55755941bf6fa55ee858b508fd4b37bfe38262d876cea2f9572bd5cd27c/main.spi
00:18:39 verbose #19422 > >
00:18:39 verbose #19423 > > ╭─[ 525.67ms - stdout ]────────────────────────────────────────────────────────╮
00:18:39 verbose #19424 > > │ assert_eq / actual: UH0_1                                                    │
00:18:39 verbose #19425 > > │   (1,                                                                        │
00:18:39 verbose #19426 > > │    UH0_1                                                                     │
00:18:39 verbose #19427 > > │      (6,                                                                     │
00:18:39 verbose #19428 > > │       UH0_1                                                                  │
00:18:39 verbose #19429 > > │         (36,                                                                 │
00:18:39 verbose #19430 > > │          UH0_1                                                               │
00:18:39 verbose #19431 > > │            (216,                                                             │
00:18:39 verbose #19432 > > │             UH0_1 (1296, UH0_1 (7776, UH0_1 (46656, UH0_1 (279936,           │
00:18:39 verbose #19433 > > │ UH0_0)))))))) / expected: UH0_1                                              │
00:18:39 verbose #19434 > > │   (1,                                                                        │
00:18:39 verbose #19435 > > │    UH0_1                                                                     │
00:18:39 verbose #19436 > > │      (6,                                                                     │
00:18:39 verbose #19437 > > │       UH0_1                                                                  │
00:18:39 verbose #19438 > > │         (36,                                                                 │
00:18:39 verbose #19439 > > │          UH0_1                                                               │
00:18:39 verbose #19440 > > │            (216,                                                             │
00:18:39 verbose #19441 > > │             UH0_1 (1296, UH0_1 (7776, UH0_1 (46656, UH0_1 (279936,           │
00:18:39 verbose #19442 > > │ UH0_0))))))))                                                                │
00:18:39 verbose #19443 > > │                                                                              │
00:18:39 verbose #19444 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:39 verbose #19445 > >
00:18:39 verbose #19446 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:39 verbose #19447 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:39 verbose #19448 > > │ ### indexed                                                                  │
00:18:39 verbose #19449 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:39 verbose #19450 > >
00:18:39 verbose #19451 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:39 verbose #19452 > > inl indexed s =
00:18:39 verbose #19453 > >     ((StreamNil, 0), s)
00:18:39 verbose #19454 > >     ||> fold fun (acc, i) x =>
00:18:39 verbose #19455 > >         StreamCons ((i, x), fun () => acc), i + 1
00:18:39 verbose #19456 > >     |> fst
00:18:39 verbose #19457 > >     |> rev
00:18:39 verbose #19458 > 00:18:38   debug #1162 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ec2425cc5cea353f954e7b552a96320be6cd86e8fbfc67dc2b5482983405bd58/main.spi
00:18:39 verbose #19459 > >
00:18:39 verbose #19460 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:39 verbose #19461 > > //// test
00:18:39 verbose #19462 > >
00:18:39 verbose #19463 > > listm.init 10i32 ((*) 2)
00:18:39 verbose #19464 > > |> from_list
00:18:39 verbose #19465 > > |> indexed
00:18:39 verbose #19466 > > |> item 5i32
00:18:39 verbose #19467 > > |> _assert_eq (5i32, 10i32)
00:18:40 verbose #19468 > 00:18:39   debug #1163 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9d3a61786e8e64540906b8ae04a45055ba860e57fd50ca9dab65bb8104961128/main.spi
00:18:40 verbose #19469 > >
00:18:40 verbose #19470 > > ╭─[ 367.72ms - stdout ]────────────────────────────────────────────────────────╮
00:18:40 verbose #19471 > > │ assert_eq / actual: struct (5, 10) / expected: struct (5, 10)                │
00:18:40 verbose #19472 > > │                                                                              │
00:18:40 verbose #19473 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:40 verbose #19474 > >
00:18:40 verbose #19475 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:40 verbose #19476 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:40 verbose #19477 > > │ ### map                                                                      │
00:18:40 verbose #19478 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:40 verbose #19479 > >
00:18:40 verbose #19480 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:40 verbose #19481 > > inl map fn s =
00:18:40 verbose #19482 > >     (s, StreamNil)
00:18:40 verbose #19483 > >     ||> fold_back fun x acc =>
00:18:40 verbose #19484 > >         StreamCons (fn x, fun () => acc)
00:18:40 verbose #19485 > 00:18:39   debug #1164 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/63c59b661df15ff8fea910f57a001997be51169b174304372563a0a2470a67a3/main.spi
00:18:40 verbose #19486 > >
00:18:40 verbose #19487 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:40 verbose #19488 > > //// test
00:18:40 verbose #19489 > >
00:18:40 verbose #19490 > > listm.init 10i32 id
00:18:40 verbose #19491 > > |> from_list
00:18:40 verbose #19492 > > |> map ((*) 2)
00:18:40 verbose #19493 > > |> item 5i32
00:18:40 verbose #19494 > > |> _assert_eq 10i32
00:18:40 verbose #19495 > 00:18:40   debug #1165 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f5e7abdfb98e9728afc3142c7935496a10b593f39e1f16dd078d81eab2ca3c6c/main.spi
00:18:40 verbose #19496 > >
00:18:40 verbose #19497 > > ╭─[ 372.62ms - stdout ]────────────────────────────────────────────────────────╮
00:18:40 verbose #19498 > > │ assert_eq / actual: 10 / expected: 10                                        │
00:18:40 verbose #19499 > > │                                                                              │
00:18:40 verbose #19500 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:40 verbose #19501 > >
00:18:40 verbose #19502 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:40 verbose #19503 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:40 verbose #19504 > > │ ### zip_with                                                                 │
00:18:40 verbose #19505 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:40 verbose #19506 > >
00:18:40 verbose #19507 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:40 verbose #19508 > > inl zip_with fn s1 s2 =
00:18:40 verbose #19509 > >     inl rec loop s1 s2 =
00:18:40 verbose #19510 > >         match s1, s2 with
00:18:40 verbose #19511 > >         | StreamCons (st1, fn1), StreamCons (st2, fn2) =>
00:18:40 verbose #19512 > >             StreamCons (fn st1 st2, fun () => loop (fn1 ()) (fn2 ()))
00:18:40 verbose #19513 > >         | StreamNil, _ | _, StreamNil => StreamNil
00:18:40 verbose #19514 > >     loop s1 s2
00:18:40 verbose #19515 > >
00:18:40 verbose #19516 > > inl zip_with_ fn s1 s2 =
00:18:40 verbose #19517 > >     let rec loop s1 s2 =
00:18:40 verbose #19518 > >         match s1, s2 with
00:18:40 verbose #19519 > >         | StreamCons (st1, fn1), StreamCons (st2, fn2) =>
00:18:40 verbose #19520 > >             StreamCons (fn st1 st2, fun () => loop (fn1 ()) (fn2 ()))
00:18:40 verbose #19521 > >         | StreamNil, _ | _, StreamNil => StreamNil
00:18:40 verbose #19522 > >     loop s1 s2
00:18:41 verbose #19523 > 00:18:40   debug #1166 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3bc0b86950c78aecd65354a19fbc34bf52376dc35303bb2c7062549431ae86be/main.spi
00:18:41 verbose #19524 > >
00:18:41 verbose #19525 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:41 verbose #19526 > > //// test
00:18:41 verbose #19527 > >
00:18:41 verbose #19528 > > ((listm.init 10i32 id |> from_list), (listm.init 10i32 ((*) 2) |> from_list))
00:18:41 verbose #19529 > > ||> zip_with (+)
00:18:41 verbose #19530 > > |> item 2i32
00:18:41 verbose #19531 > > |> _assert_eq 6
00:18:41 verbose #19532 > 00:18:40   debug #1167 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e7a5d18b3a553be23306cd26a20d93fa73e6557c34bdfb60a176e4f53a0ab641/main.spi
00:18:41 verbose #19533 > >
00:18:41 verbose #19534 > > ╭─[ 340.45ms - stdout ]────────────────────────────────────────────────────────╮
00:18:41 verbose #19535 > > │ assert_eq / actual: 6 / expected: 6                                          │
00:18:41 verbose #19536 > > │                                                                              │
00:18:41 verbose #19537 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:41 verbose #19538 > >
00:18:41 verbose #19539 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:41 verbose #19540 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:41 verbose #19541 > > │ ### zip                                                                      │
00:18:41 verbose #19542 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:41 verbose #19543 > >
00:18:41 verbose #19544 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:41 verbose #19545 > > inl zip s1 s2 =
00:18:41 verbose #19546 > >     zip_with pair s1 s2
00:18:41 verbose #19547 > >
00:18:41 verbose #19548 > > inl zip_ s1 s2 =
00:18:41 verbose #19549 > >     zip_with_ pair s1 s2
00:18:41 verbose #19550 > 00:18:41   debug #1168 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/625a4f99171ffa419ac8ea2f0d84d3ecb591f61796b15ec07eb24591d8f372d2/main.spi
00:18:42 verbose #19551 > >
00:18:42 verbose #19552 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:42 verbose #19553 > > //// test
00:18:42 verbose #19554 > >
00:18:42 verbose #19555 > > ((listm.init 10i32 id |> from_list), (listm.init 10i32 ((*) 2) |> from_list))
00:18:42 verbose #19556 > > ||> zip
00:18:42 verbose #19557 > > |> item 5i32
00:18:42 verbose #19558 > > |> _assert_eq (5, 10)
00:18:42 verbose #19559 > 00:18:41   debug #1169 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8cefb03886f46a21d3639ef4de2062ea35aa050b204e6fe2e85599ab65271fc9/main.spi
00:18:42 verbose #19560 > >
00:18:42 verbose #19561 > > ╭─[ 532.87ms - stdout ]────────────────────────────────────────────────────────╮
00:18:42 verbose #19562 > > │ assert_eq / actual: struct (5, 10) / expected: struct (5, 10)                │
00:18:42 verbose #19563 > > │                                                                              │
00:18:42 verbose #19564 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:42 verbose #19565 > >
00:18:42 verbose #19566 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:42 verbose #19567 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:42 verbose #19568 > > │ ### unzip                                                                    │
00:18:42 verbose #19569 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:42 verbose #19570 > >
00:18:42 verbose #19571 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:42 verbose #19572 > > inl unzip s =
00:18:42 verbose #19573 > >     inl rec body s =
00:18:42 verbose #19574 > >         match s with
00:18:42 verbose #19575 > >         | StreamCons ((x, y), fn) =>
00:18:42 verbose #19576 > >             inl xs, ys = loop (fn ())
00:18:42 verbose #19577 > >             StreamCons (x, fun () => xs), StreamCons (y, fun () => ys)
00:18:42 verbose #19578 > >         | StreamNil => pair StreamNil StreamNil
00:18:42 verbose #19579 > >     and inl loop x =
00:18:42 verbose #19580 > >         if var_is x |> not
00:18:42 verbose #19581 > >         then body x
00:18:42 verbose #19582 > >         else
00:18:42 verbose #19583 > >             inl x = dyn x
00:18:42 verbose #19584 > >             join body x
00:18:42 verbose #19585 > >     loop s
00:18:42 verbose #19586 > 00:18:42   debug #1170 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/96108c65fe08fc8146709dc0bed7046173139ba781276687afba63df95be71b4/main.spi
00:18:43 verbose #19587 > >
00:18:43 verbose #19588 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:43 verbose #19589 > > //// test
00:18:43 verbose #19590 > >
00:18:43 verbose #19591 > > listm.init 10i32 id
00:18:43 verbose #19592 > > |> listm.map (fun x => x, x)
00:18:43 verbose #19593 > > |> from_list
00:18:43 verbose #19594 > > |> unzip
00:18:43 verbose #19595 > > |> fun x, y =>
00:18:43 verbose #19596 > >     x |> sum
00:18:43 verbose #19597 > >     |> _assert_eq 45
00:18:43 verbose #19598 > >
00:18:43 verbose #19599 > >     y |> sum
00:18:43 verbose #19600 > >     |> _assert_eq 45
00:18:43 verbose #19601 > 00:18:42   debug #1171 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/415bd45bad1d51414aa0bb86d0acfb3eba43d8748dc52daa20b6677726d0a233/main.spi
00:18:43 verbose #19602 > >
00:18:43 verbose #19603 > > ╭─[ 537.26ms - stdout ]────────────────────────────────────────────────────────╮
00:18:43 verbose #19604 > > │ assert_eq / actual: 45 / expected: 45                                        │
00:18:43 verbose #19605 > > │ assert_eq / actual: 45 / expected: 45                                        │
00:18:43 verbose #19606 > > │                                                                              │
00:18:43 verbose #19607 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:43 verbose #19608 > >
00:18:43 verbose #19609 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:43 verbose #19610 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:43 verbose #19611 > > │ ## rust                                                                      │
00:18:43 verbose #19612 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:43 verbose #19613 > >
00:18:43 verbose #19614 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:43 verbose #19615 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:43 verbose #19616 > > │ ### io_error                                                                 │
00:18:43 verbose #19617 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:43 verbose #19618 > >
00:18:43 verbose #19619 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:43 verbose #19620 > > nominal io_error =
00:18:43 verbose #19621 > >     `(
00:18:43 verbose #19622 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:18:43 verbose #19623 > > Fable.Core.Emit(\"std::io::Error\")>]]\n#endif\ntype std_io_Error = class end"
00:18:43 verbose #19624 > >         $'' : $'std_io_Error'
00:18:43 verbose #19625 > >     )
00:18:43 verbose #19626 > 00:18:42   debug #1172 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0a8db1e0cbea5b9f1c90d071ae89f824487895668b4895139f6486b65a26cacc/main.spi
00:18:43 verbose #19627 > >
00:18:43 verbose #19628 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:43 verbose #19629 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:43 verbose #19630 > > │ ### buf_reader                                                               │
00:18:43 verbose #19631 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:43 verbose #19632 > >
00:18:43 verbose #19633 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:43 verbose #19634 > > nominal buf_reader t =
00:18:43 verbose #19635 > >     `(
00:18:43 verbose #19636 > >         backend_switch `(()) `({}) {
00:18:43 verbose #19637 > >             Fsharp =
00:18:43 verbose #19638 > >                 (fun () =>
00:18:43 verbose #19639 > >                     global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:18:43 verbose #19640 > > Fable.Core.Emit(\"std::io::BufReader<$0>\")>]]\n#endif\ntype
00:18:43 verbose #19641 > > std_io_BufReader<'T> = class end"
00:18:43 verbose #19642 > >                 ) : () -> ()
00:18:43 verbose #19643 > >         }
00:18:43 verbose #19644 > >         $'' : $'std_io_BufReader<`t>'
00:18:43 verbose #19645 > >     )
00:18:44 verbose #19646 > 00:18:43   debug #1173 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/51686fa192269ec07950c077cfb3a62942d837a4193c0e6ae54d8f80c3ab2bb2/main.spi
00:18:44 verbose #19647 > >
00:18:44 verbose #19648 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:44 verbose #19649 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:44 verbose #19650 > > │ ### cursor                                                                   │
00:18:44 verbose #19651 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:44 verbose #19652 > >
00:18:44 verbose #19653 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:44 verbose #19654 > > nominal cursor t =
00:18:44 verbose #19655 > >     `(
00:18:44 verbose #19656 > >         backend_switch `(()) `({}) {
00:18:44 verbose #19657 > >             Fsharp =
00:18:44 verbose #19658 > >                 (fun () =>
00:18:44 verbose #19659 > >                     global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:18:44 verbose #19660 > > Fable.Core.Emit(\"std::io::Cursor<$0>\")>]]\n#endif\ntype std_io_Cursor<'T> =
00:18:44 verbose #19661 > > class end"
00:18:44 verbose #19662 > >                 ) : () -> ()
00:18:44 verbose #19663 > >         }
00:18:44 verbose #19664 > >         $'' : $'std_io_Cursor<`t>'
00:18:44 verbose #19665 > >     )
00:18:44 verbose #19666 > 00:18:43   debug #1174 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0e82f273e308c349a64a96968e17b7b26171444e810c00ce84a0bb009fda2f5a/main.spi
00:18:44 verbose #19667 > >
00:18:44 verbose #19668 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:44 verbose #19669 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:44 verbose #19670 > > │ ### async_buf_reader                                                         │
00:18:44 verbose #19671 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:44 verbose #19672 > >
00:18:44 verbose #19673 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:44 verbose #19674 > > nominal async_buf_reader t =
00:18:44 verbose #19675 > >     `(
00:18:44 verbose #19676 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:18:44 verbose #19677 > > Fable.Core.Emit(\"tokio::io::BufReader<$0>\")>]]\n#endif\ntype
00:18:44 verbose #19678 > > tokio_io_BufReader<'T> = class end"
00:18:44 verbose #19679 > >         $'' : $'tokio_io_BufReader<`t>'
00:18:44 verbose #19680 > >     )
00:18:44 verbose #19681 > 00:18:44   debug #1175 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8b79707f7d3993b965ae976dc07b27fc7649bd62916ae32898e49be7b2dc4e0e/main.spi
00:18:45 verbose #19682 > >
00:18:45 verbose #19683 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:45 verbose #19684 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:45 verbose #19685 > > │ ### new_buf_reader                                                           │
00:18:45 verbose #19686 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:45 verbose #19687 > >
00:18:45 verbose #19688 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:45 verbose #19689 > > inl new_buf_reader forall t. (x : t) : buf_reader t =
00:18:45 verbose #19690 > >     !\($'"std::io::BufReader::new(!x)"')
00:18:45 verbose #19691 > 00:18:44   debug #1176 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/579155ddd5a1a85951710ad030b1980a9acb0b7bbc44bc6bba99909a6140610d/main.spi
00:18:45 verbose #19692 > >
00:18:45 verbose #19693 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:45 verbose #19694 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:45 verbose #19695 > > │ ### new_cursor                                                               │
00:18:45 verbose #19696 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:45 verbose #19697 > >
00:18:45 verbose #19698 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:45 verbose #19699 > > inl new_cursor forall t. (x : t) : cursor t =
00:18:45 verbose #19700 > >     !\($'"std::io::Cursor::new(!x)"')
00:18:45 verbose #19701 > 00:18:45   debug #1177 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/92e9a3bdc1e1e93a2d64fe6c5d11f88ec655ab7260e10211add6067fcafa3c17/main.spi
00:18:46 verbose #19702 > >
00:18:46 verbose #19703 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:46 verbose #19704 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:46 verbose #19705 > > │ ### lines                                                                    │
00:18:46 verbose #19706 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:46 verbose #19707 > >
00:18:46 verbose #19708 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:46 verbose #19709 > > nominal lines t =
00:18:46 verbose #19710 > >     `(
00:18:46 verbose #19711 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:18:46 verbose #19712 > > Fable.Core.Emit(\"std::io::Lines<$0>\")>]]\n#endif\ntype std_io_Lines<'T> =
00:18:46 verbose #19713 > > class end"
00:18:46 verbose #19714 > >         $'' : $'std_io_Lines<`t>'
00:18:46 verbose #19715 > >     )
00:18:46 verbose #19716 > 00:18:45   debug #1178 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/10ddb3a956d4421bfa2144e7fe97fbe6447d822e6343eb8fbd85c81acb373071/main.spi
00:18:46 verbose #19717 > >
00:18:46 verbose #19718 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:46 verbose #19719 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:46 verbose #19720 > > │ ### buf_read_lines                                                           │
00:18:46 verbose #19721 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:46 verbose #19722 > >
00:18:46 verbose #19723 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:46 verbose #19724 > > inl buf_read_lines forall t. (buf_reader : buf_reader t) : lines (buf_reader t)
00:18:46 verbose #19725 > > =
00:18:46 verbose #19726 > >     !\($'"std::io::BufRead::lines(!buf_reader)"')
00:18:46 verbose #19727 > 00:18:45   debug #1179 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/74278d5f3d17dd099baae76d11a57c5bfe6cbe075cef70af5f88b84b44a45820/main.spi
00:18:46 verbose #19728 > >
00:18:46 verbose #19729 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:46 verbose #19730 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:46 verbose #19731 > > │ ### decode_reader_bytes                                                      │
00:18:46 verbose #19732 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:46 verbose #19733 > >
00:18:46 verbose #19734 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:46 verbose #19735 > > nominal decode_reader_bytes t u =
00:18:46 verbose #19736 > >     `(
00:18:46 verbose #19737 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:18:46 verbose #19738 > > Fable.Core.Emit(\"encoding_rs_io::DecodeReaderBytes<$0, $1>\")>]]\n#endif\ntype
00:18:46 verbose #19739 > > encoding_rs_io_DecodeReaderBytes<'T, 'U> = class end"
00:18:46 verbose #19740 > >         $'' : $'encoding_rs_io_DecodeReaderBytes<`t, `u>'
00:18:46 verbose #19741 > >     )
00:18:47 verbose #19742 > 00:18:46   debug #1180 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/00c7ba78b37d39b94994bf5764e690122a467014230f525f25346ba6c5d7f857/main.spi
00:18:47 verbose #19743 > >
00:18:47 verbose #19744 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:47 verbose #19745 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:47 verbose #19746 > > │ ### decode_reader_bytes_build                                                │
00:18:47 verbose #19747 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:47 verbose #19748 > >
00:18:47 verbose #19749 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:47 verbose #19750 > > inl decode_reader_bytes_build forall t. (x : t) : decode_reader_bytes t (am'.vec
00:18:47 verbose #19751 > > u8) =
00:18:47 verbose #19752 > >
00:18:47 verbose #19753 > > !\($'"encoding_rs_io::DecodeReaderBytesBuilder::new().encoding(Some(encoding_rs:
00:18:47 verbose #19754 > > :UTF_8)).build(!x)"')
00:18:47 verbose #19755 > >
00:18:47 verbose #19756 > > !\($'"encoding_rs_io::DecodeReaderBytesBuilder::new().encoding(Some(encoding_rs:
00:18:47 verbose #19757 > > :UTF_8)).utf8_passthru(true).build(!x)"')
00:18:47 verbose #19758 > >     !\\(x,
00:18:47 verbose #19759 > > $'"encoding_rs_io::DecodeReaderBytesBuilder::new().utf8_passthru(true).build($0)
00:18:47 verbose #19760 > > "')
00:18:47 verbose #19761 > >     // !\($'"encoding_rs_io::DecodeReaderBytes::new(!x)"')
00:18:47 verbose #19762 > 00:18:46   debug #1181 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e69b190bcf4e7590b2dc31b6c2699d9e1f84cfc6b9cac92373539d2fca3ef050/main.spi
00:18:47 verbose #19763 > >
00:18:47 verbose #19764 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:47 verbose #19765 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:47 verbose #19766 > > │ ### buf_reader_read                                                          │
00:18:47 verbose #19767 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:47 verbose #19768 > >
00:18:47 verbose #19769 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:47 verbose #19770 > > inl buf_reader_read forall el dim. (slice : am'.slice' el dim) (buf_reader :
00:18:47 verbose #19771 > > buf_reader el) : resultm.result' unativeint io_error =
00:18:47 verbose #19772 > >     (!\($'"true; let mut !slice = !slice"') : bool) |> ignore
00:18:47 verbose #19773 > >     !\($'"std::io::Read::read(&mut !buf_reader, &mut !slice)"')
00:18:48 verbose #19774 > 00:18:47   debug #1182 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a9b2ed9eeb26c93da2f6fa2d55c92a25bd0479f7e180db3271bedeacbe6fd5ea/main.spi
00:18:48 verbose #19775 > >
00:18:48 verbose #19776 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:48 verbose #19777 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:48 verbose #19778 > > │ ### io_read_by_ref                                                           │
00:18:48 verbose #19779 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:48 verbose #19780 > >
00:18:48 verbose #19781 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:48 verbose #19782 > > inl io_read_by_ref forall t. (lines : lines t) : lines t =
00:18:48 verbose #19783 > >     !\\(lines, $'"std::io::Read::by_ref($0)"')
00:18:48 verbose #19784 > 00:18:47   debug #1183 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9da672776e5fe4503d73ab878b6c926cbd292f1829d4a0a74f218b214a11e457/main.spi
00:18:48 verbose #19785 > 00:00:28 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 32565 }
00:18:48 verbose #19786 > 00:00:28   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/spiral/stream.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/stream.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:18:51 verbose #19787 > 00:00:30 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/stream.dib.ipynb to html
00:18:51 verbose #19788 > 00:00:30 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:18:51 verbose #19789 > 00:00:30 verbose #7 !   validate(nb)
00:18:53 verbose #19790 > 00:00:33 verbose #8 ! [NbConvertApp] Writing 366374 bytes to c:\home\git\polyglot\lib\spiral\stream.dib.html
00:18:53 verbose #19791 > 00:00:33 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 643 }
00:18:53 verbose #19792 > 00:00:33   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 643 }
00:18:53 verbose #19793 > 00:00:33   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/stream.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/stream.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:18:54 verbose #19794 > 00:00:34 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:18:54 verbose #19795 > 00:00:34   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:18:55 verbose #19796 > 00:00:34   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 33267 }
00:18:55   debug #19797 runtime.execute_with_options_async / { exit_code = 0; output_length = 37320 }
00:18:55   debug #27 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path stream.dib --retries 3
00:18:55   debug #19798 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path parsing.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:18:55 verbose #19799 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "parsing.dib", "--retries", "3"])) }
00:18:55 verbose #19800 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/spiral/parsing.dib", "--output-path", "c:/home/git/polyglot/lib/spiral/parsing.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/parsing.dib" --output-path "c:/home/git/polyglot/lib/spiral/parsing.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:18:57 verbose #19801 > >
00:18:57 verbose #19802 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:57 verbose #19803 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:57 verbose #19804 > > │ # parsing                                                                    │
00:18:57 verbose #19805 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:02 verbose #19806 > >
00:19:02 verbose #19807 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:02 verbose #19808 > > open rust_operators
00:19:02 verbose #19809 > > open sm'_operators
00:19:03 verbose #19810 > 00:19:02   debug #1184 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/bf61618f8655d8e50dd31f6ed591bb82f1f3131ec57d5c0ea9955695867e89ad/main.spi
00:19:03 verbose #19811 > >
00:19:03 verbose #19812 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:03 verbose #19813 > > //// test
00:19:03 verbose #19814 > >
00:19:03 verbose #19815 > > open testing
00:19:03 verbose #19816 > 00:19:03   debug #1185 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2730b74780c23dd1c489c875b384f3d8721906375fcf264307b568f98aed681f/main.spi
00:19:03 verbose #19817 > >
00:19:03 verbose #19818 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:03 verbose #19819 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:03 verbose #19820 > > │ ## fparsec                                                                   │
00:19:03 verbose #19821 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:03 verbose #19822 > >
00:19:03 verbose #19823 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:03 verbose #19824 > > //// test
00:19:03 verbose #19825 > >
00:19:03 verbose #19826 > > #r "nuget:FParsec"
00:19:10 verbose #19827 > >
00:19:10 verbose #19828 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:10 verbose #19829 > > //// test
00:19:10 verbose #19830 > >
00:19:10 verbose #19831 > > nominal position_ = $'FParsec.Position'
00:19:10 verbose #19832 > > nominal parser_error_ = $'FParsec.Error.ParserError'
00:19:10 verbose #19833 > >
00:19:10 verbose #19834 > > nominal reply_ t = $'FParsec.Reply<`t>'
00:19:10 verbose #19835 > >
00:19:10 verbose #19836 > > nominal char_stream_ t = $'FParsec.CharStream<`t>'
00:19:10 verbose #19837 > >
00:19:10 verbose #19838 > > // nominal parser t u = char_stream u -> reply t
00:19:10 verbose #19839 > > nominal parser_ t u = $'FParsec.Primitives.Parser<`t, `u>'
00:19:10 verbose #19840 > >
00:19:10 verbose #19841 > > inl p_char_ forall t. (x : char) : parser_ char t =
00:19:10 verbose #19842 > >     x |> $'FParsec.CharParsers.pchar'
00:19:10 verbose #19843 > >
00:19:10 verbose #19844 > > inl p_string_ forall t. (x : string) : parser_ string t =
00:19:10 verbose #19845 > >     x |> $'FParsec.CharParsers.pstring'
00:19:10 verbose #19846 > >
00:19:10 verbose #19847 > > inl (>>.$) forall t u v. (a : parser_ t v) (b : parser_ u v) : parser_ u v =
00:19:10 verbose #19848 > >     b |> $'FParsec.Primitives.(>>.)' a
00:19:10 verbose #19849 > >
00:19:10 verbose #19850 > > inl (.>>$) forall t u v. (a : parser_ t v) (b : parser_ u v) : parser_ t v =
00:19:10 verbose #19851 > >     b |> $'FParsec.Primitives.(.>>)' a
00:19:10 verbose #19852 > >
00:19:10 verbose #19853 > > inl (.>>.$) forall t u v. (a : parser_ t v) (b : parser_ u v) : parser_ (pair t
00:19:10 verbose #19854 > > u) v =
00:19:10 verbose #19855 > >     b |> $'FParsec.Primitives.(.>>.)' a
00:19:10 verbose #19856 > >
00:19:10 verbose #19857 > > inl (>>%$) forall t u v. (a : parser_ t v) (b : u) : parser_ u v =
00:19:10 verbose #19858 > >     b |> $'FParsec.Primitives.(>>%)' a
00:19:10 verbose #19859 > >
00:19:10 verbose #19860 > > inl (>>=$) forall t u v. (a : parser_ t v) (b : t -> parser_ u v) : parser_ u v
00:19:10 verbose #19861 > > =
00:19:10 verbose #19862 > >     b |> $'FParsec.Primitives.(>>=)' a
00:19:10 verbose #19863 > >
00:19:10 verbose #19864 > > inl (|>>$) forall t u v. (a : parser_ t v) (b : t -> u) : parser_ u v =
00:19:10 verbose #19865 > >     inl b = fun x => x |> b
00:19:10 verbose #19866 > >     b |> $'FParsec.Primitives.(|>>)' a
00:19:10 verbose #19867 > >
00:19:10 verbose #19868 > > inl any_char_ () : parser_ char _ =
00:19:10 verbose #19869 > >     $'FParsec.CharParsers.anyChar'
00:19:10 verbose #19870 > >
00:19:10 verbose #19871 > > inl any_string_ () : parser_ string _ =
00:19:10 verbose #19872 > >     $'FParsec.CharParsers.anyString'
00:19:10 verbose #19873 > >
00:19:10 verbose #19874 > > inl any_string__ (n : i32) : parser_ string _ =
00:19:10 verbose #19875 > >     n |> $'FParsec.CharParsers.anyString'
00:19:10 verbose #19876 > >
00:19:10 verbose #19877 > > inl eof_ () : parser_ () _ =
00:19:10 verbose #19878 > >     $'FParsec.CharParsers.eof'
00:19:10 verbose #19879 > >
00:19:10 verbose #19880 > > inl spaces_ () : parser_ () () =
00:19:10 verbose #19881 > >     $'FParsec.CharParsers.spaces'
00:19:10 verbose #19882 > >
00:19:10 verbose #19883 > > inl spaces1_ () : parser_ () () =
00:19:10 verbose #19884 > >     $'FParsec.CharParsers.spaces1'
00:19:10 verbose #19885 > >
00:19:10 verbose #19886 > > inl (<|>$) forall t u. (a : parser_ t u) (b : parser_ t u) : parser_ t u =
00:19:10 verbose #19887 > >     b |> $'FParsec.Primitives.(<|>)' a
00:19:10 verbose #19888 > >
00:19:10 verbose #19889 > > inl many_satisfy_ forall t. (x : char -> bool) : parser_ string t =
00:19:10 verbose #19890 > >     x |> $'FParsec.CharParsers.manySatisfy'
00:19:10 verbose #19891 > >
00:19:10 verbose #19892 > > inl satisfy_ forall t. (x : char -> bool) : parser_ char t =
00:19:10 verbose #19893 > >     x |> $'FParsec.CharParsers.satisfy'
00:19:10 verbose #19894 > >
00:19:10 verbose #19895 > > inl none_of_ (x : list char) : parser_ char () =
00:19:10 verbose #19896 > >     x
00:19:10 verbose #19897 > >     |> listm'.box
00:19:10 verbose #19898 > >     |> listm'.to_array'
00:19:10 verbose #19899 > >     |> $'FParsec.CharParsers.noneOf'
00:19:10 verbose #19900 > >
00:19:10 verbose #19901 > > inl any_of_ (x : list char) : parser_ char () =
00:19:10 verbose #19902 > >     x
00:19:10 verbose #19903 > >     |> listm'.box
00:19:10 verbose #19904 > >     |> listm'.to_array'
00:19:10 verbose #19905 > >     |> $'FParsec.CharParsers.anyOf'
00:19:10 verbose #19906 > >
00:19:10 verbose #19907 > > inl skip_any_of_ (x : list char) : parser_ () () =
00:19:10 verbose #19908 > >     x
00:19:10 verbose #19909 > >     |> listm'.box
00:19:10 verbose #19910 > >     |> listm'.to_array'
00:19:10 verbose #19911 > >     |> $'FParsec.CharParsers.skipAnyOf'
00:19:10 verbose #19912 > >
00:19:10 verbose #19913 > > inl between_ forall t u v x. (a : parser_ t x) (b : parser_ u x) (c : parser_ v
00:19:10 verbose #19914 > > x) : parser_ v x =
00:19:10 verbose #19915 > >     c |> $'FParsec.Primitives.between' a b
00:19:10 verbose #19916 > >
00:19:10 verbose #19917 > > inl many_chars_ forall t. (x : parser_ char t) : parser_ string t =
00:19:10 verbose #19918 > >     x |> $'FParsec.CharParsers.manyChars'
00:19:10 verbose #19919 > >
00:19:10 verbose #19920 > > inl many1_chars_ forall t. (x : parser_ char t) : parser_ string t =
00:19:10 verbose #19921 > >     x |> $'FParsec.CharParsers.many1Chars'
00:19:10 verbose #19922 > >
00:19:10 verbose #19923 > > inl many_strings_ forall t. (x : parser_ string t) : parser_ string t =
00:19:10 verbose #19924 > >     x |> $'FParsec.CharParsers.manyStrings'
00:19:10 verbose #19925 > >
00:19:10 verbose #19926 > > inl skip_any_string_ forall t. (n : i32) : parser_ () t =
00:19:10 verbose #19927 > >     n |> $'FParsec.CharParsers.skipAnyString'
00:19:10 verbose #19928 > >
00:19:10 verbose #19929 > > inl many1_strings_ forall t. (x : parser_ string t) : parser_ string t =
00:19:10 verbose #19930 > >     x |> $'FParsec.CharParsers.many1Strings'
00:19:10 verbose #19931 > >
00:19:10 verbose #19932 > > inl opt_ forall t u. (a : parser_ t u) : parser_ (optionm'.option' t) u =
00:19:10 verbose #19933 > >     a |> $'FParsec.Primitives.opt'
00:19:10 verbose #19934 > >
00:19:10 verbose #19935 > > inl choice_ forall t u. (a : list (parser_ t u)) : parser_ t u =
00:19:10 verbose #19936 > >     a
00:19:10 verbose #19937 > >     |> listm'.box
00:19:10 verbose #19938 > >     |> seq.of_list'
00:19:10 verbose #19939 > >     |> $'FParsec.Primitives.choice'
00:19:10 verbose #19940 > >
00:19:10 verbose #19941 > > inl delay_ forall t u. (fn : () -> parser_ t u) : parser_ t u =
00:19:10 verbose #19942 > >     fn |> $'FParsec.Primitives.parse.Delay'
00:19:10 verbose #19943 > >
00:19:10 verbose #19944 > > inl peek_ forall t u. (a : parser_ t u) : parser_ char u =
00:19:10 verbose #19945 > >     $'!a.Peek ()'
00:19:10 verbose #19946 > >
00:19:10 verbose #19947 > > inl not_followed_by_ forall t u. (a : parser_ t u) : parser_ () u =
00:19:10 verbose #19948 > >     a |> $'FParsec.Primitives.notFollowedBy'
00:19:10 verbose #19949 > >
00:19:10 verbose #19950 > > inl sep_by_ forall t u v. (a : parser_ t v) (b : parser_ u v) : parser_
00:19:10 verbose #19951 > > (listm'.list' t) v =
00:19:10 verbose #19952 > >     b |> $'FParsec.Primitives.sepBy' a
00:19:10 verbose #19953 > >
00:19:10 verbose #19954 > > inl sep_by1_ forall t u v. (a : parser_ t v) (b : parser_ u v) : parser_
00:19:10 verbose #19955 > > (listm'.list' t) v =
00:19:10 verbose #19956 > >     b |> $'FParsec.Primitives.sepBy1' a
00:19:10 verbose #19957 > >
00:19:10 verbose #19958 > > inl sep_end_by_ forall t u v. (a : parser_ t v) (b : parser_ u v) : parser_
00:19:10 verbose #19959 > > (listm'.list' t) v =
00:19:10 verbose #19960 > >     b |> $'FParsec.Primitives.sepEndBy' a
00:19:10 verbose #19961 > >
00:19:10 verbose #19962 > > inl many_ forall t u. (a : parser_ t u) : parser_ (listm'.list' t) u =
00:19:10 verbose #19963 > >     a |> $'FParsec.Primitives.many'
00:19:10 verbose #19964 > >
00:19:10 verbose #19965 > > inl many1_ forall t u. (a : parser_ t u) : parser_ (listm'.list' t) u =
00:19:10 verbose #19966 > >     a |> $'FParsec.Primitives.many1'
00:19:10 verbose #19967 > >
00:19:10 verbose #19968 > > inl many1_satisfy_ forall t. (x : char -> bool) : parser_ string t =
00:19:10 verbose #19969 > >     x |> $'FParsec.CharParsers.many1Satisfy'
00:19:10 verbose #19970 > >
00:19:10 verbose #19971 > > nominal parser_result'_ t u = $'FParsec.CharParsers.ParserResult<`t, `u>'
00:19:10 verbose #19972 > >
00:19:10 verbose #19973 > > inl run_ forall t. (parser : parser_ t ()) (x : string) : parser_result'_ t () =
00:19:10 verbose #19974 > >     x |> $'FParsec.CharParsers.run' parser
00:19:10 verbose #19975 > >
00:19:10 verbose #19976 > > union parser_result_ t u =
00:19:10 verbose #19977 > >     | Success : t * u * position_
00:19:10 verbose #19978 > >     | Failure : string * parser_error_ * u
00:19:10 verbose #19979 > >
00:19:10 verbose #19980 > > inl parser_result_ forall t u. = function
00:19:10 verbose #19981 > >     | Success (a, b, c) => $'`(parser_result'_ t u).Success (!a, !b, !c)' :
00:19:10 verbose #19982 > > parser_result'_ t u
00:19:10 verbose #19983 > >     | Failure (a, b, c) => $'`(parser_result'_ t u).Failure (!a, !b, !c)' :
00:19:10 verbose #19984 > > parser_result'_ t u
00:19:10 verbose #19985 > >
00:19:10 verbose #19986 > > inl parser_result'_ forall t u. (x : parser_result'_ t u) : parser_result_ t u =
00:19:10 verbose #19987 > >     $'let mutable _!x = None '
00:19:10 verbose #19988 > >     $'match !x with'
00:19:10 verbose #19989 > >     $'| FParsec.CharParsers.Success (a, b, c) -> (' : ()
00:19:10 verbose #19990 > >     $'(fun () ->'
00:19:10 verbose #19991 > >     $'(fun () ->'
00:19:10 verbose #19992 > >     (Success ((dyn $'a'), dyn $'b', dyn $'c') : _ t u) |> emit_unit
00:19:10 verbose #19993 > >     $')'
00:19:10 verbose #19994 > >     $'|> fun x -> x ()'
00:19:10 verbose #19995 > >     $') () ) | FParsec.CharParsers.Failure (a, b, c) -> (' : ()
00:19:10 verbose #19996 > >     $'(fun () ->'
00:19:10 verbose #19997 > >     $'(fun () ->'
00:19:10 verbose #19998 > >     (Failure ((dyn $'a'), dyn $'b', dyn $'c') : _ t u) |> emit_unit
00:19:10 verbose #19999 > >     $')'
00:19:10 verbose #20000 > >     $'|> fun x -> x ()'
00:19:10 verbose #20001 > >     $') () )' : ()
00:19:10 verbose #20002 > >     $'|> fun x -> _!x <- Some x'
00:19:10 verbose #20003 > >     $'match _!x with Some x -> x | None -> failwith "??? / _!x=None"'
00:19:10 verbose #20004 > >
00:19:10 verbose #20005 > > inl parse_ parser input : result _ _ =
00:19:10 verbose #20006 > >     match input |> run_ parser |> parser_result'_ with
00:19:10 verbose #20007 > >     | Success (result, b, c) => Ok (result, c)
00:19:10 verbose #20008 > >     | Failure (error_msg, b, c) => Error (error_msg, b)
00:19:10 verbose #20009 > 00:19:09   debug #1186 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b13f5f4b32967d390c1c384ef66493fa0c1284aa170db5d7468fbfce51b7f240/main.spi
00:19:10 verbose #20010 > >
00:19:10 verbose #20011 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:10 verbose #20012 > > //// test
00:19:10 verbose #20013 > >
00:19:10 verbose #20014 > > inl split_args (args : string) : result (array_base (string * position_))
00:19:10 verbose #20015 > > (string * parser_error_) =
00:19:10 verbose #20016 > >     inl esc = [[ '\\'; '`' ]]
00:19:10 verbose #20017 > >     inl quotes = [[ '"' ]]
00:19:10 verbose #20018 > >     inl special = esc ++ quotes
00:19:10 verbose #20019 > >     inl p_esc_char c =
00:19:10 verbose #20020 > >         p_char_ c >>.$ any_char_ () |>>$ fun c' => $'$"{!c}{!c'}"'
00:19:10 verbose #20021 > >     inl p_word = special |> none_of_ |>>$ sm'.obj_to_string
00:19:10 verbose #20022 > >     inl p_plain = special ++ [[ ' ' ]] |> none_of_ |> many1_chars_
00:19:10 verbose #20023 > >     inl p_text = p_word |> many1_strings_
00:19:10 verbose #20024 > >     inl p_esc = esc |> listm.map p_esc_char |> choice_
00:19:10 verbose #20025 > >     inl p_quoted = (p_word <|>$ p_esc) |> many_ |>>$ (seq.of_list' >> sm'.concat
00:19:10 verbose #20026 > > "")
00:19:10 verbose #20027 > >     inl p_quoted_all = p_quoted |> between_ (p_char_ '"') (p_char_ '"')
00:19:10 verbose #20028 > >     inl p_esc_root = p_esc |>>$ (fun _ => "") >>.$ (p_word |> many_) |>>$
00:19:10 verbose #20029 > > (seq.of_list' >> sm'.concat "")
00:19:10 verbose #20030 > >     inl p_content = p_plain <|>$ p_quoted_all <|>$ p_esc_root
00:19:10 verbose #20031 > >     inl p_args = spaces1_ () |> sep_by_ p_content
00:19:10 verbose #20032 > >     args
00:19:10 verbose #20033 > >     |> parse_ p_args
00:19:10 verbose #20034 > >     |> resultm.map fun (a', b') =>
00:19:10 verbose #20035 > >         (
00:19:10 verbose #20036 > >             (
00:19:10 verbose #20037 > >                 a'
00:19:10 verbose #20038 > >                 |> listm'.to_array'
00:19:10 verbose #20039 > >                 |> a
00:19:10 verbose #20040 > >                 |> am.map fun x => x, b'
00:19:10 verbose #20041 > >                 |> fun (a x : _ i32 _) => x
00:19:10 verbose #20042 > >             )
00:19:10 verbose #20043 > >         )
00:19:10 verbose #20044 > >
00:19:10 verbose #20045 > > [[
00:19:10 verbose #20046 > >     "a b c",
00:19:10 verbose #20047 > >     ;[[ "a"; "b"; "c" ]]
00:19:10 verbose #20048 > >
00:19:10 verbose #20049 > >     "e f \"g h\" i",
00:19:10 verbose #20050 > >     ;[[ "e"; "f"; "g h"; "i" ]]
00:19:10 verbose #20051 > >
00:19:10 verbose #20052 > >     "\"j k\" \"l\" \"m\"",
00:19:10 verbose #20053 > >     ;[[ "j k"; "l"; "m" ]]
00:19:10 verbose #20054 > >
00:19:10 verbose #20055 > >     "s -t \"u \`\"v\`\" w\"",
00:19:10 verbose #20056 > >     ;[[ "s"; "-t"; "u \`\"v\`\" w" ]]
00:19:10 verbose #20057 > >
00:19:10 verbose #20058 > >     "n -o \"p \\\"q\\\" r\"",
00:19:10 verbose #20059 > >     ;[[ "n"; "-o"; "p \\\"q\\\" r" ]]
00:19:10 verbose #20060 > >
00:19:10 verbose #20061 > >     "r -s \"t \\\"u\\\"\"",
00:19:10 verbose #20062 > >     ;[[ "r"; "-s"; "t \\\"u\\\"" ]]
00:19:10 verbose #20063 > >
00:19:10 verbose #20064 > >     $'$"x -y \\\"$z -a \'(b=\\\\\\"c-id=)[[a-fA-F0-9]]{{8}}\', {{ \`$_[[1]] +
00:19:10 verbose #20065 > > \`$d++ }}\\\""',
00:19:10 verbose #20066 > >     ;[[ "x"; "-y"; "$z -a '(b=\\\"c-id=)[[a-fA-F0-9]]{8}', { `$_[[1]] + `$d++ }"
00:19:10 verbose #20067 > > ]]
00:19:10 verbose #20068 > >
00:19:10 verbose #20069 > >     "e -f \"$g -h '(i=`\"j-id=)[[a-fA-F0-9]]{8}', { `$_[[1]] + `$k++ }\"",
00:19:10 verbose #20070 > >     ;[[ "e"; "-f"; "$g -h '(i=`\"j-id=)[[a-fA-F0-9]]{8}', { `$_[[1]] + `$k++ }"
00:19:10 verbose #20071 > > ]]
00:19:10 verbose #20072 > >
00:19:10 verbose #20073 > >     $'$"--l \\\\\\"\'\'\' m \'\'\'\\\\\\" "',
00:19:10 verbose #20074 > >     ;[[ "--l"; "''' m '''" ]]
00:19:10 verbose #20075 > >
00:19:10 verbose #20076 > >     $'$"n --o --p q --r \\\"s:/t u/v.w\\\" --x \\\"y:/z.a\\\" --b c.d
00:19:10 verbose #20077 > > \\\"\\\\e{{f-g}}\\\" h.i \\\"j (k)\\\""',
00:19:10 verbose #20078 > >     ;[[ "n"; "--o"; "--p"; "q"; "--r"; "s:/t u/v.w"; "--x"; "y:/z.a"; "--b";
00:19:10 verbose #20079 > > "c.d"; "\\e{f-g}"; "h.i"; "j (k)" ]]
00:19:10 verbose #20080 > >
00:19:10 verbose #20081 > >     $'\@$"l ""m n:\\o.p"""',
00:19:10 verbose #20082 > >     ;[[ "l"; "m n:\\o.p" ]]
00:19:10 verbose #20083 > > ]]
00:19:10 verbose #20084 > > |> listm.rev
00:19:10 verbose #20085 > > |> listm.map fun input, expected =>
00:19:10 verbose #20086 > >     input
00:19:10 verbose #20087 > >     |> split_args
00:19:10 verbose #20088 > >     |> fun x =>
00:19:10 verbose #20089 > >         try
00:19:10 verbose #20090 > >             fun () =>
00:19:10 verbose #20091 > >                 ($'$"\ninput: {!input}"' : string)
00:19:10 verbose #20092 > >                 |> console.write_line
00:19:10 verbose #20093 > >                 x
00:19:10 verbose #20094 > >                 |> resultm.get
00:19:10 verbose #20095 > >                 |> am'.map_base fst
00:19:10 verbose #20096 > >                 |> _assert_eq' expected
00:19:10 verbose #20097 > >                 false
00:19:10 verbose #20098 > >             fun ex =>
00:19:10 verbose #20099 > >                 ($'$"error / expected: %A{!expected} / ex: %A{!ex}"' : string)
00:19:10 verbose #20100 > >                 |> console.write_line
00:19:10 verbose #20101 > >                 Some true
00:19:10 verbose #20102 > >         |> optionm.value
00:19:10 verbose #20103 > > |> listm'.filter id
00:19:10 verbose #20104 > > |> function
00:19:10 verbose #20105 > >     | [[]] => ()
00:19:10 verbose #20106 > >     | x => failwith $'$"{!x}"'
00:19:10 verbose #20107 > 00:19:09   debug #1187 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/58398af543fdba6a84e449c5d003c195ae0887e795bb47bc0e8f000fa0aed0c2/main.spi
00:19:15 verbose #20108 > >
00:19:15 verbose #20109 > > ╭─[ 4.76s - stdout ]───────────────────────────────────────────────────────────╮
00:19:15 verbose #20110 > > │                                                                              │
00:19:15 verbose #20111 > > │ input: a b c                                                                 │
00:19:15 verbose #20112 > > │ assert_eq' / actual: [|"a"; "b"; "c"|] / expected: [|"a"; "b"; "c"|]         │
00:19:15 verbose #20113 > > │                                                                              │
00:19:15 verbose #20114 > > │ input: e f "g h" i                                                           │
00:19:15 verbose #20115 > > │ assert_eq' / actual: [|"e"; "f"; "g h"; "i"|] / expected: [|"e"; "f"; "g h"; │
00:19:15 verbose #20116 > > │ "i"|]                                                                        │
00:19:15 verbose #20117 > > │                                                                              │
00:19:15 verbose #20118 > > │ input: "j k" "l" "m"                                                         │
00:19:15 verbose #20119 > > │ assert_eq' / actual: [|"j k"; "l"; "m"|] / expected: [|"j k"; "l"; "m"|]     │
00:19:15 verbose #20120 > > │                                                                              │
00:19:15 verbose #20121 > > │ input: s -t "u `"v`" w"                                                      │
00:19:15 verbose #20122 > > │ assert_eq' / actual: [|"s"; "-t"; "u `"v`" w"|] / expected: [|"s"; "-t"; "u  │
00:19:15 verbose #20123 > > │ `"v`" w"|]                                                                   │
00:19:15 verbose #20124 > > │                                                                              │
00:19:15 verbose #20125 > > │ input: n -o "p \"q\" r"                                                      │
00:19:15 verbose #20126 > > │ assert_eq' / actual: [|"n"; "-o"; "p \"q\" r"|] / expected: [|"n"; "-o"; "p  │
00:19:15 verbose #20127 > > │ \"q\" r"|]                                                                   │
00:19:15 verbose #20128 > > │                                                                              │
00:19:15 verbose #20129 > > │ input: r -s "t \"u\""                                                        │
00:19:15 verbose #20130 > > │ assert_eq' / actual: [|"r"; "-s"; "t \"u\""|] / expected: [|"r"; "-s"; "t    │
00:19:15 verbose #20131 > > │ \"u\""|]                                                                     │
00:19:15 verbose #20132 > > │                                                                              │
00:19:15 verbose #20133 > > │ input: x -y "$z -a '(b=\"c-id=)[a-fA-F0-9]{8}', { `$_[1] + `$d++ }"          │
00:19:15 verbose #20134 > > │ assert_eq' / actual: [|"x"; "-y"; "$z -a '(b=\"c-id=)[a-fA-F0-9]{8}', { `$_[ │
00:19:15 verbose #20135 > > │ 1] + `$d++ }"|] / expected: [|"x"; "-y"; "$z -a '(b=\"c-id=)[a-fA-F0-9]{8}', │
00:19:15 verbose #20136 > > │ { `$_[1] + `$d++ }"|]                                                        │
00:19:15 verbose #20137 > > │                                                                              │
00:19:15 verbose #20138 > > │ input: e -f "$g -h '(i=`"j-id=)[a-fA-F0-9]{8}', { `$_[1] + `$k++ }"          │
00:19:15 verbose #20139 > > │ assert_eq' / actual: [|"e"; "-f"; "$g -h '(i=`"j-id=)[a-fA-F0-9]{8}', { `$_[ │
00:19:15 verbose #20140 > > │ 1] + `$k++ }"|] / expected: [|"e"; "-f"; "$g -h '(i=`"j-id=)[a-fA-F0-9]{8}', │
00:19:15 verbose #20141 > > │ { `$_[1] + `$k++ }"|]                                                        │
00:19:15 verbose #20142 > > │                                                                              │
00:19:15 verbose #20143 > > │ input: --l \"''' m '''\"                                                     │
00:19:15 verbose #20144 > > │ assert_eq' / actual: [|"--l"; "''' m '''"|] / expected: [|"--l"; "''' m      │
00:19:15 verbose #20145 > > │ '''"|]                                                                       │
00:19:15 verbose #20146 > > │                                                                              │
00:19:15 verbose #20147 > > │ input: n --o --p q --r "s:/t u/v.w" --x "y:/z.a" --b c.d "\e{f-g}" h.i "j    │
00:19:15 verbose #20148 > > │ (k)"                                                                         │
00:19:15 verbose #20149 > > │ assert_eq' / actual: [|"n"; "--o"; "--p"; "q"; "--r"; "s:/t u/v.w"; "--x";   │
00:19:15 verbose #20150 > > │ "y:/z.a"; "--b"; "c.d";                                                      │
00:19:15 verbose #20151 > > │   "\e{f-g}"; "h.i"; "j (k)"|] / expected: [|"n"; "--o"; "--p"; "q"; "--r";   │
00:19:15 verbose #20152 > > │ "s:/t u/v.w"; "--x"; "y:/z.a"; "--b"; "c.d";                                 │
00:19:15 verbose #20153 > > │   "\e{f-g}"; "h.i"; "j (k)"|]                                                │
00:19:15 verbose #20154 > > │                                                                              │
00:19:15 verbose #20155 > > │ input: l "m n:\o.p"                                                          │
00:19:15 verbose #20156 > > │ assert_eq' / actual: [|"l"; "m n:\o.p"|] / expected: [|"l"; "m n:\o.p"|]     │
00:19:15 verbose #20157 > > │                                                                              │
00:19:15 verbose #20158 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:15 verbose #20159 > >
00:19:15 verbose #20160 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:15 verbose #20161 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:15 verbose #20162 > > │ ## parsing                                                                   │
00:19:15 verbose #20163 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:15 verbose #20164 > >
00:19:15 verbose #20165 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:15 verbose #20166 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:15 verbose #20167 > > │ ### range                                                                    │
00:19:15 verbose #20168 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:15 verbose #20169 > >
00:19:15 verbose #20170 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:15 verbose #20171 > > type range =
00:19:15 verbose #20172 > >     {
00:19:15 verbose #20173 > >         from : int
00:19:15 verbose #20174 > >         to : int
00:19:15 verbose #20175 > >     }
00:19:15 verbose #20176 > 00:19:14   debug #1188 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/32562c8d8e1d3bcaaf1038302a3535e6d829f4587f9772b0d1ef1721d9b7a2e3/main.spi
00:19:15 verbose #20177 > >
00:19:15 verbose #20178 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:15 verbose #20179 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:15 verbose #20180 > > │ ### position                                                                 │
00:19:15 verbose #20181 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:15 verbose #20182 > >
00:19:15 verbose #20183 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:15 verbose #20184 > > type position =
00:19:15 verbose #20185 > >     {
00:19:15 verbose #20186 > >         line : int
00:19:15 verbose #20187 > >         col : int
00:19:15 verbose #20188 > >     }
00:19:15 verbose #20189 > 00:19:14   debug #1189 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f91b62555c636e11aa6d12266ae09e6c5289820c93b222936e02b5fddd54e2f9/main.spi
00:19:16 verbose #20190 > >
00:19:16 verbose #20191 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:16 verbose #20192 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:16 verbose #20193 > > │ ### parser_state                                                             │
00:19:16 verbose #20194 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:16 verbose #20195 > >
00:19:16 verbose #20196 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:16 verbose #20197 > > nominal parser_state =
00:19:16 verbose #20198 > >     {
00:19:16 verbose #20199 > >         line_text : sm'.string_builder
00:19:16 verbose #20200 > >         position : position
00:19:16 verbose #20201 > >     }
00:19:16 verbose #20202 > 00:19:15   debug #1190 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4d0f13bc9cc3504988197b418a6981cbe22d62161761bce0e903faddf5c574a8/main.spi
00:19:16 verbose #20203 > >
00:19:16 verbose #20204 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:16 verbose #20205 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:16 verbose #20206 > > │ ### parser                                                                   │
00:19:16 verbose #20207 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:16 verbose #20208 > >
00:19:16 verbose #20209 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:16 verbose #20210 > > type parser t = string * parser_state -> result (t * string * parser_state)
00:19:16 verbose #20211 > > string
00:19:16 verbose #20212 > 00:19:15   debug #1191 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c833dba43916ed61f2687c61b0b2ae4f668917e74c0e8e3593276ff22e1428e2/main.spi
00:19:16 verbose #20213 > >
00:19:16 verbose #20214 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:16 verbose #20215 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:16 verbose #20216 > > │ ### parse                                                                    │
00:19:16 verbose #20217 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:16 verbose #20218 > >
00:19:16 verbose #20219 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:16 verbose #20220 > > inl parse forall t. (p : parser t) (input : string) : result (t * string *
00:19:16 verbose #20221 > > parser_state) string =
00:19:16 verbose #20222 > >     inl input =
00:19:16 verbose #20223 > >         input
00:19:16 verbose #20224 > >         |> optionm'.of_obj
00:19:16 verbose #20225 > >         |> optionm'.default_value' ""
00:19:16 verbose #20226 > >     p (input, { line_text = "" |> sm'.string_builder; position = { line = 1; col
00:19:16 verbose #20227 > > = 1 } } |> parser_state)
00:19:17 verbose #20228 > 00:19:16   debug #1192 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ad8735aa67b54ad7776c58841131c412a4d90bbd1e750b6878b9c2d0b478d793/main.spi
00:19:17 verbose #20229 > >
00:19:17 verbose #20230 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:17 verbose #20231 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:17 verbose #20232 > > │ ### inc                                                                      │
00:19:17 verbose #20233 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:17 verbose #20234 > >
00:19:17 verbose #20235 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:17 verbose #20236 > > inl inc c (parser_state s) =
00:19:17 verbose #20237 > >     match c with
00:19:17 verbose #20238 > >     | '\n' => { line = s.position.line + 1; col = 1 }
00:19:17 verbose #20239 > >     | _ => { s.position with col = s.position.col + 1 }.position
00:19:17 verbose #20240 > 00:19:16   debug #1193 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2fe3644330b08c1997dee2ebc7cfe19954e1c1c52482fbde24014971c4e44e3d/main.spi
00:19:17 verbose #20241 > >
00:19:17 verbose #20242 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:17 verbose #20243 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:17 verbose #20244 > > │ ### update                                                                   │
00:19:17 verbose #20245 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:17 verbose #20246 > >
00:19:17 verbose #20247 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:17 verbose #20248 > > inl update result s =
00:19:17 verbose #20249 > >     (s, result |> sm'.to_char_array |> a |> (fun x => x : _ int _) |>
00:19:17 verbose #20250 > > am'.to_list' |> listm'.unbox)
00:19:17 verbose #20251 > >     ||> listm.fold fun (parser_state s) c =>
00:19:17 verbose #20252 > >         { s with
00:19:17 verbose #20253 > >             position = s |> parser_state |> inc c
00:19:17 verbose #20254 > >             line_text =
00:19:17 verbose #20255 > >                 match c with
00:19:17 verbose #20256 > >                 | '\n' => s.line_text |> sm'.builder_clear
00:19:17 verbose #20257 > >                 | c => s.line_text |> sm'.builder_append (sm'.obj_to_string c)
00:19:17 verbose #20258 > >         } |> parser_state
00:19:17 verbose #20259 > 00:19:17   debug #1194 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/dd804949a0c056530121fce20b80a3d12ff4caf155967fed030ef9fe7149213b/main.spi
00:19:18 verbose #20260 > >
00:19:18 verbose #20261 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:18 verbose #20262 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:18 verbose #20263 > > │ ### any_char                                                                 │
00:19:18 verbose #20264 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:18 verbose #20265 > >
00:19:18 verbose #20266 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:18 verbose #20267 > > inl any_char () : parser char = function
00:19:18 verbose #20268 > >     | "", s => Error $'$"parsing.any_char / unexpected end of input / s:
00:19:18 verbose #20269 > > %A{!s}"'
00:19:18 verbose #20270 > >     | x, s =>
00:19:18 verbose #20271 > >         inl first_char = x |> sm'.index 0i32
00:19:18 verbose #20272 > >         inl rest = x |> sm'.range (am'.Start 1i32) (am'.End id)
00:19:18 verbose #20273 > >         in Ok (first_char, rest, s |> update (sm'.obj_to_string first_char))
00:19:18 verbose #20274 > 00:19:17   debug #1195 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d3c6bdaa07a5a3962e964a53ea27102e98a2055726872871ce706cef538e1821/main.spi
00:19:18 verbose #20275 > >
00:19:18 verbose #20276 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:18 verbose #20277 > > //// test
00:19:18 verbose #20278 > >
00:19:18 verbose #20279 > > "abc"
00:19:18 verbose #20280 > > |> parse (any_char ())
00:19:18 verbose #20281 > > |> resultm.get
00:19:18 verbose #20282 > > |> sm'.format_debug
00:19:18 verbose #20283 > > |> _assert_eq (
00:19:18 verbose #20284 > >     ('a', "bc", { line_text = "a" |> sm'.string_builder; position = { line =
00:19:18 verbose #20285 > > 1i32; col = 2i32 } })
00:19:18 verbose #20286 > >     |> sm'.format_debug
00:19:18 verbose #20287 > > )
00:19:18 verbose #20288 > 00:19:17   debug #1196 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5467dcecef4546d0cb635032e69af58ce9d8f403a881a6e892ddacfe08bc249f/main.spi
00:19:19 verbose #20289 > >
00:19:19 verbose #20290 > > ╭─[ 558.17ms - stdout ]────────────────────────────────────────────────────────╮
00:19:19 verbose #20291 > > │ assert_eq / actual: "struct ('a', "bc", a, 1, 2)" / expected: "struct ('a',  │
00:19:19 verbose #20292 > > │ "bc", a, 1, 2)"                                                              │
00:19:19 verbose #20293 > > │                                                                              │
00:19:19 verbose #20294 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:19 verbose #20295 > >
00:19:19 verbose #20296 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:19 verbose #20297 > > //// test
00:19:19 verbose #20298 > >
00:19:19 verbose #20299 > > "abc"
00:19:19 verbose #20300 > > |> parse_ (any_char_ ())
00:19:19 verbose #20301 > > |> resultm.get
00:19:19 verbose #20302 > > |> sm'.format_debug
00:19:19 verbose #20303 > > |> _assert_eq' (('a', ($'FParsec.Position (null, 0, 1, 2)' : position_)) |>
00:19:19 verbose #20304 > > sm'.format_debug)
00:19:19 verbose #20305 > 00:19:18   debug #1197 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/26078b83fb96bd64f37c5e317d5c04f3144c9217e7e9a790a8bf3c65fbc7bd83/main.spi
00:19:19 verbose #20306 > >
00:19:19 verbose #20307 > > ╭─[ 496.95ms - stdout ]────────────────────────────────────────────────────────╮
00:19:19 verbose #20308 > > │ assert_eq' / actual: "struct ('a', (Ln: 1, Col: 2))" / expected: "struct     │
00:19:19 verbose #20309 > > │ ('a', (Ln: 1, Col: 2))"                                                      │
00:19:19 verbose #20310 > > │                                                                              │
00:19:19 verbose #20311 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:19 verbose #20312 > >
00:19:19 verbose #20313 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:19 verbose #20314 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:19 verbose #20315 > > │ ### p_char                                                                   │
00:19:19 verbose #20316 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:19 verbose #20317 > >
00:19:19 verbose #20318 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:19 verbose #20319 > > inl p_char (c : char) : parser char = function
00:19:19 verbose #20320 > >     | "", s => Error $'$"parsing.p_char / unexpected end of input / s: %A{!s}"'
00:19:19 verbose #20321 > >     | input, parser_state ({ line_text position = { line col } } as s) =>
00:19:19 verbose #20322 > >         inl first_char = input |> sm'.index 0i32
00:19:19 verbose #20323 > >         if first_char = c
00:19:19 verbose #20324 > >         then Ok (
00:19:19 verbose #20325 > >             first_char,
00:19:19 verbose #20326 > >             input |> sm'.range (am'.Start 1i32) (am'.End id),
00:19:19 verbose #20327 > >             s |> parser_state |> update (sm'.obj_to_string first_char)
00:19:19 verbose #20328 > >         )
00:19:19 verbose #20329 > >         else
00:19:19 verbose #20330 > >             inl message : string =
00:19:19 verbose #20331 > >                 inl rest =
00:19:19 verbose #20332 > >                     input
00:19:19 verbose #20333 > >                     |> sm'.range
00:19:19 verbose #20334 > >                         (am'.Start 0i32)
00:19:19 verbose #20335 > >                         (am'.End fun l =>
00:19:19 verbose #20336 > >                             match (input |> sm'.index_of "\n") - 1 with
00:19:19 verbose #20337 > >                             | -2 => l
00:19:19 verbose #20338 > >                             | l => l
00:19:19 verbose #20339 > >                         )
00:19:19 verbose #20340 > >                 $'$"parsing.p_char / expected: \'{!c}\' / line: {!line} / col:
00:19:19 verbose #20341 > > {!col}\n{!line_text}{!rest}"'
00:19:19 verbose #20342 > >             inl pointer_line = (sm'.replicate (col - 1) " ") +. "^"
00:19:19 verbose #20343 > >             $'$"{!message}\n{!pointer_line}\n"' |> Error
00:19:19 verbose #20344 > 00:19:19   debug #1198 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/76d9d12e70041c5f038ad9657f326f4d937f62909643df4f2f30bb97988048da/main.spi
00:19:20 verbose #20345 > >
00:19:20 verbose #20346 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:20 verbose #20347 > > //// test
00:19:20 verbose #20348 > >
00:19:20 verbose #20349 > > "abc"
00:19:20 verbose #20350 > > |> parse (p_char 'a')
00:19:20 verbose #20351 > > |> resultm.get
00:19:20 verbose #20352 > > |> sm'.format_debug
00:19:20 verbose #20353 > > |> _assert_eq (
00:19:20 verbose #20354 > >     ('a', "bc", { line_text = "a" |> sm'.string_builder; position = { line =
00:19:20 verbose #20355 > > 1i32; col = 2i32 } })
00:19:20 verbose #20356 > >     |> sm'.format_debug
00:19:20 verbose #20357 > > )
00:19:20 verbose #20358 > 00:19:19   debug #1199 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/dd8106f8a5a492978742d35fdb12a973b16ec654430758a771a2ffd3ce76cdee/main.spi
00:19:20 verbose #20359 > >
00:19:20 verbose #20360 > > ╭─[ 519.26ms - stdout ]────────────────────────────────────────────────────────╮
00:19:20 verbose #20361 > > │ assert_eq / actual: "struct ('a', "bc", a, 1, 2)" / expected: "struct ('a',  │
00:19:20 verbose #20362 > > │ "bc", a, 1, 2)"                                                              │
00:19:20 verbose #20363 > > │                                                                              │
00:19:20 verbose #20364 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:20 verbose #20365 > >
00:19:20 verbose #20366 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:20 verbose #20367 > > //// test
00:19:20 verbose #20368 > >
00:19:20 verbose #20369 > > "abc"
00:19:20 verbose #20370 > > |> parse_ (p_char_ 'a')
00:19:20 verbose #20371 > > |> resultm.get
00:19:20 verbose #20372 > > |> sm'.format_debug
00:19:20 verbose #20373 > > |> _assert_eq' (('a', ($'FParsec.Position (null, 0, 1, 2)' : position_)) |>
00:19:20 verbose #20374 > > sm'.format_debug)
00:19:20 verbose #20375 > 00:19:19   debug #1200 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ce5e656715226c6db209db41fab80a57a0941531b5462deafd370d4544e971f7/main.spi
00:19:21 verbose #20376 > >
00:19:21 verbose #20377 > > ╭─[ 477.41ms - stdout ]────────────────────────────────────────────────────────╮
00:19:21 verbose #20378 > > │ assert_eq' / actual: "struct ('a', (Ln: 1, Col: 2))" / expected: "struct     │
00:19:21 verbose #20379 > > │ ('a', (Ln: 1, Col: 2))"                                                      │
00:19:21 verbose #20380 > > │                                                                              │
00:19:21 verbose #20381 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:21 verbose #20382 > >
00:19:21 verbose #20383 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:21 verbose #20384 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:21 verbose #20385 > > │ ### any_string                                                               │
00:19:21 verbose #20386 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:21 verbose #20387 > >
00:19:21 verbose #20388 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:21 verbose #20389 > > inl any_string length : parser string = fun input, s =>
00:19:21 verbose #20390 > >     if sm'.length input < length
00:19:21 verbose #20391 > >     then Error $'$"parsing.any_string / unexpected end of input / s: %A{!s}"'
00:19:21 verbose #20392 > >     else
00:19:21 verbose #20393 > >         inl result = input |> sm'.range (am'.Start 0i32) (am'.End fun _ =>
00:19:21 verbose #20394 > > length - 1)
00:19:21 verbose #20395 > >         inl rest = input |> sm'.range (am'.Start length) (am'.End id)
00:19:21 verbose #20396 > >         Ok (result, rest, s |> update result)
00:19:21 verbose #20397 > 00:19:20   debug #1201 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/16bc4743fff4bd4e07c900774b803f40c1191b94a743d4f319100a85f49b3b4a/main.spi
00:19:21 verbose #20398 > >
00:19:21 verbose #20399 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:21 verbose #20400 > > //// test
00:19:21 verbose #20401 > >
00:19:21 verbose #20402 > > "abcdef"
00:19:21 verbose #20403 > > |> parse (any_string 3i32)
00:19:21 verbose #20404 > > |> resultm.get
00:19:21 verbose #20405 > > |> sm'.format_debug
00:19:21 verbose #20406 > > |> _assert_eq (
00:19:21 verbose #20407 > >     ("abc", "def", { line_text = "abc" |> sm'.string_builder; position = { line
00:19:21 verbose #20408 > > = 1i32; col = 4i32 } })
00:19:21 verbose #20409 > >     |> sm'.format_debug
00:19:21 verbose #20410 > > )
00:19:21 verbose #20411 > 00:19:20   debug #1202 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f65f00089e683e6beed6a030cfa1ad5b65c17939683cf5b1d2602545c76d78e3/main.spi
00:19:21 verbose #20412 > >
00:19:21 verbose #20413 > > ╭─[ 529.46ms - stdout ]────────────────────────────────────────────────────────╮
00:19:21 verbose #20414 > > │ assert_eq / actual: "struct ("abc", "def", abc, 1, 4)" / expected: "struct   │
00:19:21 verbose #20415 > > │ ("abc", "def", abc, 1, 4)"                                                   │
00:19:21 verbose #20416 > > │                                                                              │
00:19:21 verbose #20417 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:21 verbose #20418 > >
00:19:21 verbose #20419 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:21 verbose #20420 > > //// test
00:19:21 verbose #20421 > >
00:19:21 verbose #20422 > > "abcdef"
00:19:21 verbose #20423 > > |> parse_ (any_string__ 3)
00:19:21 verbose #20424 > > |> resultm.get
00:19:21 verbose #20425 > > |> sm'.obj_to_string
00:19:21 verbose #20426 > > |> _assert_eq' (("abc", ($'FParsec.Position (null, 0, 1, 4)' : position_)) |>
00:19:21 verbose #20427 > > sm'.obj_to_string)
00:19:22 verbose #20428 > 00:19:21   debug #1203 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b86c1b1b73d14ab85059f82fe1f3495bf775bd9bbb86c27a060e0d35d67e2a6d/main.spi
00:19:22 verbose #20429 > >
00:19:22 verbose #20430 > > ╭─[ 492.56ms - stdout ]────────────────────────────────────────────────────────╮
00:19:22 verbose #20431 > > │ assert_eq' / actual: "(abc, (Ln: 1, Col: 4))" / expected: "(abc, (Ln: 1,     │
00:19:22 verbose #20432 > > │ Col: 4))"                                                                    │
00:19:22 verbose #20433 > > │                                                                              │
00:19:22 verbose #20434 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:22 verbose #20435 > >
00:19:22 verbose #20436 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:22 verbose #20437 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:22 verbose #20438 > > │ ### skip_any_string                                                          │
00:19:22 verbose #20439 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:22 verbose #20440 > >
00:19:22 verbose #20441 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:22 verbose #20442 > > inl skip_any_string length : parser () = fun input, s =>
00:19:22 verbose #20443 > >     if sm'.length input < length
00:19:22 verbose #20444 > >     then Error $'$"parsing.skip_any_string / unexpected end of input / s:
00:19:22 verbose #20445 > > %A{!s}"'
00:19:22 verbose #20446 > >     else Ok (
00:19:22 verbose #20447 > >         (),
00:19:22 verbose #20448 > >         input |> sm'.range (am'.Start length) (am'.End id),
00:19:22 verbose #20449 > >         s |> update (input |> sm'.range (am'.Start 0i32) (am'.End fun _ =>
00:19:22 verbose #20450 > > length - 1))
00:19:22 verbose #20451 > >     )
00:19:22 verbose #20452 > 00:19:21   debug #1204 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d2c36b63eec9f567ed9680d81a8bd7f562d9d10c739cf7f871ea37d777fe3f36/main.spi
00:19:22 verbose #20453 > >
00:19:22 verbose #20454 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:22 verbose #20455 > > //// test
00:19:22 verbose #20456 > >
00:19:22 verbose #20457 > > "abcdef"
00:19:22 verbose #20458 > > |> parse (skip_any_string 3i32)
00:19:22 verbose #20459 > > |> resultm.get
00:19:22 verbose #20460 > > |> sm'.format_debug
00:19:22 verbose #20461 > > |> _assert_eq (
00:19:22 verbose #20462 > >     ((), "def", { line_text = "abc" |> sm'.string_builder; position = { line =
00:19:22 verbose #20463 > > 1i32; col = 4i32 } })
00:19:22 verbose #20464 > >     |> sm'.format_debug
00:19:22 verbose #20465 > > )
00:19:23 verbose #20466 > 00:19:22   debug #1205 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/09494a2d4c178ed2f541c5a84fbd441d183e7790821a12fbfd844b82ef4ba07b/main.spi
00:19:23 verbose #20467 > >
00:19:23 verbose #20468 > > ╭─[ 762.85ms - stdout ]────────────────────────────────────────────────────────╮
00:19:23 verbose #20469 > > │ assert_eq / actual: "struct ("def", abc, 1, 4)" / expected: "struct ("def",  │
00:19:23 verbose #20470 > > │ abc, 1, 4)"                                                                  │
00:19:23 verbose #20471 > > │                                                                              │
00:19:23 verbose #20472 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:23 verbose #20473 > >
00:19:23 verbose #20474 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:23 verbose #20475 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:23 verbose #20476 > > │ ### (>>.)                                                                    │
00:19:23 verbose #20477 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:23 verbose #20478 > >
00:19:23 verbose #20479 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:23 verbose #20480 > > inl (>>.) forall t u. (a : parser t) (b : parser u) : parser u = fun input, s =>
00:19:23 verbose #20481 > >     match a (input, s) with
00:19:23 verbose #20482 > >     | Ok (_, rest, s) => b (rest, s)
00:19:23 verbose #20483 > >     | Error e => Error e
00:19:23 verbose #20484 > 00:19:22   debug #1206 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9f546f43ff08aa2dd2d171d2a6d29ec10fec7376c7e87e42b6216d16506ba0b2/main.spi
00:19:23 verbose #20485 > >
00:19:23 verbose #20486 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:23 verbose #20487 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:23 verbose #20488 > > │ ### (>>.)                                                                    │
00:19:23 verbose #20489 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:23 verbose #20490 > >
00:19:23 verbose #20491 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:23 verbose #20492 > > inl (.>>) forall t u. (a : parser t) (b : parser u) : parser t = fun input, s =>
00:19:23 verbose #20493 > >     match a (input, s) with
00:19:23 verbose #20494 > >     | Ok (result, rest, s) =>
00:19:23 verbose #20495 > >         match b (rest, s) with
00:19:23 verbose #20496 > >         | Ok (_, rest, s) => Ok (result, rest, s)
00:19:23 verbose #20497 > >         | Error e => Error e
00:19:23 verbose #20498 > >     | Error e => Error e
00:19:24 verbose #20499 > 00:19:23   debug #1207 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/474014c92d5b11ff782a15a92f081e324fdfa8a1c544e2960676617b2d4029ea/main.spi
00:19:24 verbose #20500 > >
00:19:24 verbose #20501 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:24 verbose #20502 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:24 verbose #20503 > > │ ### (.>>.)                                                                   │
00:19:24 verbose #20504 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:24 verbose #20505 > >
00:19:24 verbose #20506 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:24 verbose #20507 > > inl (.>>.) forall t u. (a : parser t) (b : parser u) : parser (t * u) = fun
00:19:24 verbose #20508 > > input, s =>
00:19:24 verbose #20509 > >     match a (input, s) with
00:19:24 verbose #20510 > >     | Ok (result_a, rest, s) =>
00:19:24 verbose #20511 > >         match b (rest, s) with
00:19:24 verbose #20512 > >         | Ok (result_b, rest, s) => Ok ((result_a, result_b), rest, s)
00:19:24 verbose #20513 > >         | Error e => Error e
00:19:24 verbose #20514 > >     | Error e => Error e
00:19:24 verbose #20515 > 00:19:23   debug #1208 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a67e921d8ddf113f8a6305946c94db8e6dc5edbc4daaf2598a199f7f6f56a83b/main.spi
00:19:24 verbose #20516 > >
00:19:24 verbose #20517 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:24 verbose #20518 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:24 verbose #20519 > > │ ### (>>%)                                                                    │
00:19:24 verbose #20520 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:24 verbose #20521 > >
00:19:24 verbose #20522 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:24 verbose #20523 > > inl (>>%) forall t u. (a : parser t) (b : u) : parser u = fun input, s =>
00:19:24 verbose #20524 > >     match a (input, s) with
00:19:24 verbose #20525 > >     | Ok (_, rest, s) => Ok (b, rest, s)
00:19:24 verbose #20526 > >     | Error e => Error e
00:19:25 verbose #20527 > 00:19:24   debug #1209 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d65ac14fd4aa410ec80f6234e90fef226e1f5a4827f0f87f84c9fbe6faa598a4/main.spi
00:19:25 verbose #20528 > >
00:19:25 verbose #20529 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:25 verbose #20530 > > //// test
00:19:25 verbose #20531 > >
00:19:25 verbose #20532 > > "abc"
00:19:25 verbose #20533 > > |> parse (p_char 'a' >>. p_char 'b')
00:19:25 verbose #20534 > > |> resultm.get
00:19:25 verbose #20535 > > |> sm'.format_debug
00:19:25 verbose #20536 > > |> _assert_eq (
00:19:25 verbose #20537 > >     ('b', "c", { line_text = "ab" |> sm'.string_builder; position = { line =
00:19:25 verbose #20538 > > 1i32; col = 3i32 } })
00:19:25 verbose #20539 > >     |> sm'.format_debug
00:19:25 verbose #20540 > > )
00:19:25 verbose #20541 > >
00:19:25 verbose #20542 > > "abc\ndef\nghi"
00:19:25 verbose #20543 > > |> parse (skip_any_string 5i32 >>. p_char 'a')
00:19:25 verbose #20544 > > |> _assert_eq (Error "parsing.p_char / expected: 'a' / line: 2 / col: 2\ndef\n
00:19:25 verbose #20545 > > ^\n")
00:19:25 verbose #20546 > 00:19:24   debug #1210 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/886241e610ffcc4f971b813605576a695e4d4e705c15756e59a21594f939dfc2/main.spi
00:19:25 verbose #20547 > >
00:19:25 verbose #20548 > > ╭─[ 718.47ms - stdout ]────────────────────────────────────────────────────────╮
00:19:25 verbose #20549 > > │ assert_eq / actual: "struct ('b', "c", ab, 1, 3)" / expected: "struct ('b',  │
00:19:25 verbose #20550 > > │ "c", ab, 1, 3)"                                                              │
00:19:25 verbose #20551 > > │ assert_eq / actual: US0_1 "parsing.p_char / expected: 'a' / line: 2 / col: 2 │
00:19:25 verbose #20552 > > │ def                                                                          │
00:19:25 verbose #20553 > > │  ^                                                                           │
00:19:25 verbose #20554 > > │ " / expected: US0_1 "parsing.p_char / expected: 'a' / line: 2 / col: 2       │
00:19:25 verbose #20555 > > │ def                                                                          │
00:19:25 verbose #20556 > > │  ^                                                                           │
00:19:25 verbose #20557 > > │ "                                                                            │
00:19:25 verbose #20558 > > │                                                                              │
00:19:25 verbose #20559 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:25 verbose #20560 > >
00:19:25 verbose #20561 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:25 verbose #20562 > > //// test
00:19:25 verbose #20563 > >
00:19:25 verbose #20564 > > "abc"
00:19:25 verbose #20565 > > |> parse_ (p_char_ 'a' >>.$ p_char_ 'b')
00:19:25 verbose #20566 > > |> resultm.get
00:19:25 verbose #20567 > > |> sm'.obj_to_string
00:19:25 verbose #20568 > > |> _assert_eq' (('b', ($'FParsec.Position (null, 0, 1, 3)' : position_)) |>
00:19:25 verbose #20569 > > sm'.obj_to_string)
00:19:26 verbose #20570 > 00:19:25   debug #1211 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9443aaddb13324c5a16f8e38f07518a819457eb8c880bac08bef510e91518146/main.spi
00:19:26 verbose #20571 > >
00:19:26 verbose #20572 > > ╭─[ 618.87ms - stdout ]────────────────────────────────────────────────────────╮
00:19:26 verbose #20573 > > │ assert_eq' / actual: "(b, (Ln: 1, Col: 3))" / expected: "(b, (Ln: 1, Col:    │
00:19:26 verbose #20574 > > │ 3))"                                                                         │
00:19:26 verbose #20575 > > │                                                                              │
00:19:26 verbose #20576 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:26 verbose #20577 > >
00:19:26 verbose #20578 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:26 verbose #20579 > > //// test
00:19:26 verbose #20580 > >
00:19:26 verbose #20581 > > "abc\ndef\nghi"
00:19:26 verbose #20582 > > |> parse_ (skip_any_string_ 5 >>.$ p_char_ 'a')
00:19:26 verbose #20583 > > |> resultm.unwrap_err
00:19:26 verbose #20584 > > |> sm'.obj_to_string
00:19:26 verbose #20585 > > |> sm'.replace "\r\n" "\n"
00:19:26 verbose #20586 > > |> _assert_eq "(Error in Ln: 2 Col: 2\ndef\n ^\nExpecting: 'a'\n, Error in Ln: 2
00:19:26 verbose #20587 > > Col: 2\nExpecting: 'a'\n)"
00:19:26 verbose #20588 > 00:19:25   debug #1212 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/17745930fdd37489d01a24b9b2d4c343554d924b9326766ea035a3b67c2d6eb9/main.spi
00:19:26 verbose #20589 > >
00:19:26 verbose #20590 > > ╭─[ 487.85ms - stdout ]────────────────────────────────────────────────────────╮
00:19:26 verbose #20591 > > │ assert_eq / actual: "(Error in Ln: 2 Col: 2                                  │
00:19:26 verbose #20592 > > │ def                                                                          │
00:19:26 verbose #20593 > > │  ^                                                                           │
00:19:26 verbose #20594 > > │ Expecting: 'a'                                                               │
00:19:26 verbose #20595 > > │ , Error in Ln: 2 Col: 2                                                      │
00:19:26 verbose #20596 > > │ Expecting: 'a'                                                               │
00:19:26 verbose #20597 > > │ )" / expected: "(Error in Ln: 2 Col: 2                                       │
00:19:26 verbose #20598 > > │ def                                                                          │
00:19:26 verbose #20599 > > │  ^                                                                           │
00:19:26 verbose #20600 > > │ Expecting: 'a'                                                               │
00:19:26 verbose #20601 > > │ , Error in Ln: 2 Col: 2                                                      │
00:19:26 verbose #20602 > > │ Expecting: 'a'                                                               │
00:19:26 verbose #20603 > > │ )"                                                                           │
00:19:26 verbose #20604 > > │                                                                              │
00:19:26 verbose #20605 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:26 verbose #20606 > >
00:19:26 verbose #20607 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:26 verbose #20608 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:26 verbose #20609 > > │ ### none_of                                                                  │
00:19:26 verbose #20610 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:26 verbose #20611 > >
00:19:26 verbose #20612 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:26 verbose #20613 > > inl none_of (chars : list char) : parser char = function
00:19:26 verbose #20614 > >     | "", s =>
00:19:26 verbose #20615 > >         inl chars = chars |> listm'.box |> listm'.to_array'
00:19:26 verbose #20616 > >         Error $'$"parsing.none_of / unexpected end of input / chars: %A{!chars}
00:19:26 verbose #20617 > > / s: %A{!s}"'
00:19:26 verbose #20618 > >     | x, s =>
00:19:26 verbose #20619 > >         inl first_char = x |> sm'.index 0i32
00:19:26 verbose #20620 > >         inl rest = x |> sm'.range (am'.Start 1i32) (am'.End id)
00:19:26 verbose #20621 > >         if chars |> listm'.exists' ((=) first_char) |> not
00:19:26 verbose #20622 > >         then Ok (first_char, rest, s |> update (sm'.obj_to_string first_char))
00:19:26 verbose #20623 > >         else
00:19:26 verbose #20624 > >             inl chars = chars |> listm'.box |> listm'.to_array'
00:19:26 verbose #20625 > >             Error $'$"parsing.none_of / unexpected char: \'{!first_char}\'
00:19:26 verbose #20626 > > chars: %A{!chars} / s: %A{!s}"'
00:19:27 verbose #20627 > 00:19:26   debug #1213 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/abb2d295f42d5db0e5a3e429c88a2f217f0d59d5b086457f17878568ed339484/main.spi
00:19:27 verbose #20628 > >
00:19:27 verbose #20629 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:27 verbose #20630 > > //// test
00:19:27 verbose #20631 > >
00:19:27 verbose #20632 > > "abc"
00:19:27 verbose #20633 > > |> parse (none_of [['a'; 'b'; 'c']])
00:19:27 verbose #20634 > > |> _assert_eq (Error "parsing.none_of / unexpected char: \'a\' / chars: [[|'a';
00:19:27 verbose #20635 > > 'b'; 'c'|]] / s: struct (, 1, 1)")
00:19:27 verbose #20636 > >
00:19:27 verbose #20637 > > "def"
00:19:27 verbose #20638 > > |> parse (none_of [['a'; 'b'; 'c']])
00:19:27 verbose #20639 > > |> resultm.get
00:19:27 verbose #20640 > > |> sm'.format_debug
00:19:27 verbose #20641 > > |> _assert_eq (
00:19:27 verbose #20642 > >     ('d', "ef", { line_text = "d" |> sm'.string_builder; position = { line =
00:19:27 verbose #20643 > > 1i32; col = 2i32 } })
00:19:27 verbose #20644 > >     |> sm'.format_debug
00:19:27 verbose #20645 > > )
00:19:27 verbose #20646 > 00:19:26   debug #1214 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7b2bfaaeede4dc84835ba9270a4106914f94c4b5282f4b060f07493ce43d3439/main.spi
00:19:27 verbose #20647 > >
00:19:27 verbose #20648 > > ╭─[ 571.18ms - stdout ]────────────────────────────────────────────────────────╮
00:19:27 verbose #20649 > > │ assert_eq / actual: US0_1                                                    │
00:19:27 verbose #20650 > > │   "parsing.none_of / unexpected char: 'a' / chars: [|'a'; 'b'; 'c'|] / s:    │
00:19:27 verbose #20651 > > │ struct (, 1, 1)" / expected: US0_1                                           │
00:19:27 verbose #20652 > > │   "parsing.none_of / unexpected char: 'a' / chars: [|'a'; 'b'; 'c'|] / s:    │
00:19:27 verbose #20653 > > │ struct (, 1, 1)"                                                             │
00:19:27 verbose #20654 > > │ assert_eq / actual: "struct ('d', "ef", d, 1, 2)" / expected: "struct ('d',  │
00:19:27 verbose #20655 > > │ "ef", d, 1, 2)"                                                              │
00:19:27 verbose #20656 > > │                                                                              │
00:19:27 verbose #20657 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:27 verbose #20658 > >
00:19:27 verbose #20659 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:27 verbose #20660 > > //// test
00:19:27 verbose #20661 > >
00:19:27 verbose #20662 > > "abc"
00:19:27 verbose #20663 > > |> parse_ (none_of_ [['a'; 'b'; 'c']])
00:19:27 verbose #20664 > > |> resultm.unwrap_err
00:19:27 verbose #20665 > > |> sm'.obj_to_string
00:19:27 verbose #20666 > > |> sm'.replace "\r\n" "\n"
00:19:27 verbose #20667 > > |> _assert_eq ($'"(Error in Ln: 1 Col: 1\nabc\n^\nExpecting: any char not in
00:19:27 verbose #20668 > > ‘abc’\n, Error in Ln: 1 Col: 1\nExpecting: any char not in ‘abc’\n)"')
00:19:27 verbose #20669 > >
00:19:27 verbose #20670 > > "def"
00:19:27 verbose #20671 > > |> parse_ (none_of_ [['a'; 'b'; 'c']])
00:19:27 verbose #20672 > > |> resultm.get
00:19:27 verbose #20673 > > |> sm'.obj_to_string
00:19:27 verbose #20674 > > |> _assert_eq' (('d', ($'FParsec.Position (null, 0, 1, 2)' : position_)) |>
00:19:27 verbose #20675 > > sm'.obj_to_string)
00:19:28 verbose #20676 > 00:19:27   debug #1215 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/06aac8c4e5bdfed568da604087ea9f2663b6aad98b9efd486db0f1fac848fd69/main.spi
00:19:28 verbose #20677 > >
00:19:28 verbose #20678 > > ╭─[ 514.09ms - stdout ]────────────────────────────────────────────────────────╮
00:19:28 verbose #20679 > > │ assert_eq / actual: "(Error in Ln: 1 Col: 1                                  │
00:19:28 verbose #20680 > > │ abc                                                                          │
00:19:28 verbose #20681 > > │ ^                                                                            │
00:19:28 verbose #20682 > > │ Expecting: any char not in ‘abc’                                             │
00:19:28 verbose #20683 > > │ , Error in Ln: 1 Col: 1                                                      │
00:19:28 verbose #20684 > > │ Expecting: any char not in ‘abc’                                             │
00:19:28 verbose #20685 > > │ )" / expected: "(Error in Ln: 1 Col: 1                                       │
00:19:28 verbose #20686 > > │ abc                                                                          │
00:19:28 verbose #20687 > > │ ^                                                                            │
00:19:28 verbose #20688 > > │ Expecting: any char not in ‘abc’                                             │
00:19:28 verbose #20689 > > │ , Error in Ln: 1 Col: 1                                                      │
00:19:28 verbose #20690 > > │ Expecting: any char not in ‘abc’                                             │
00:19:28 verbose #20691 > > │ )"                                                                           │
00:19:28 verbose #20692 > > │ assert_eq' / actual: "(d, (Ln: 1, Col: 2))" / expected: "(d, (Ln: 1, Col:    │
00:19:28 verbose #20693 > > │ 2))"                                                                         │
00:19:28 verbose #20694 > > │                                                                              │
00:19:28 verbose #20695 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:28 verbose #20696 > >
00:19:28 verbose #20697 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:28 verbose #20698 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:28 verbose #20699 > > │ ### (<|>)                                                                    │
00:19:28 verbose #20700 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:28 verbose #20701 > >
00:19:28 verbose #20702 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:28 verbose #20703 > > inl (<|>) forall t. (a : parser t) (b : parser t) : parser t = fun input, s =>
00:19:28 verbose #20704 > >     match a (input, s) with
00:19:28 verbose #20705 > >     | Ok _ as result => result
00:19:28 verbose #20706 > >     | Error _ => b (input, s)
00:19:28 verbose #20707 > 00:19:27   debug #1216 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d97c8614d60db1d6526d15d4a51fce66e6c89e52b0dcd4551b8ac2d558e18a4c/main.spi
00:19:28 verbose #20708 > >
00:19:28 verbose #20709 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:28 verbose #20710 > > //// test
00:19:28 verbose #20711 > >
00:19:28 verbose #20712 > > "abc"
00:19:28 verbose #20713 > > |> parse (p_char 'a' <|> p_char 'b')
00:19:28 verbose #20714 > > |> resultm.get
00:19:28 verbose #20715 > > |> sm'.format_debug
00:19:28 verbose #20716 > > |> _assert_eq (
00:19:28 verbose #20717 > >     ('a', "bc", { line_text = "a" |> sm'.string_builder; position = { line =
00:19:28 verbose #20718 > > 1i32; col = 2i32 } })
00:19:28 verbose #20719 > >     |> sm'.format_debug
00:19:28 verbose #20720 > > )
00:19:28 verbose #20721 > >
00:19:28 verbose #20722 > > "cba"
00:19:28 verbose #20723 > > |> parse (p_char 'a' <|> p_char 'b')
00:19:28 verbose #20724 > > |> _assert_eq (Error "parsing.p_char / expected: 'b' / line: 1 / col:
00:19:28 verbose #20725 > > 1\ncba\n^\n")
00:19:29 verbose #20726 > 00:19:28   debug #1217 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/11a564dbe0261e4024322766c0bf6b0990843d59ef348548e3f712dc270eb370/main.spi
00:19:29 verbose #20727 > >
00:19:29 verbose #20728 > > ╭─[ 696.43ms - stdout ]────────────────────────────────────────────────────────╮
00:19:29 verbose #20729 > > │ assert_eq / actual: "struct ('a', "bc", a, 1, 2)" / expected: "struct ('a',  │
00:19:29 verbose #20730 > > │ "bc", a, 1, 2)"                                                              │
00:19:29 verbose #20731 > > │ assert_eq / actual: US0_1 "parsing.p_char / expected: 'b' / line: 1 / col: 1 │
00:19:29 verbose #20732 > > │ cba                                                                          │
00:19:29 verbose #20733 > > │ ^                                                                            │
00:19:29 verbose #20734 > > │ " / expected: US0_1 "parsing.p_char / expected: 'b' / line: 1 / col: 1       │
00:19:29 verbose #20735 > > │ cba                                                                          │
00:19:29 verbose #20736 > > │ ^                                                                            │
00:19:29 verbose #20737 > > │ "                                                                            │
00:19:29 verbose #20738 > > │                                                                              │
00:19:29 verbose #20739 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:29 verbose #20740 > >
00:19:29 verbose #20741 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:29 verbose #20742 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:29 verbose #20743 > > │ ### (|>>)                                                                    │
00:19:29 verbose #20744 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:29 verbose #20745 > >
00:19:29 verbose #20746 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:29 verbose #20747 > > inl (|>>) p f : parser _ = fun input =>
00:19:29 verbose #20748 > >     match p input with
00:19:29 verbose #20749 > >     | Ok (result, rest) => Ok (f result, rest)
00:19:29 verbose #20750 > >     | Error e => Error e
00:19:29 verbose #20751 > 00:19:28   debug #1218 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1a26677c7e15db38ccbbd7f8d25cba29e05e2a9982caa2dbac3190ba7103c7de/main.spi
00:19:29 verbose #20752 > >
00:19:29 verbose #20753 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:29 verbose #20754 > > //// test
00:19:29 verbose #20755 > >
00:19:29 verbose #20756 > > "abc"
00:19:29 verbose #20757 > > |> parse (p_char 'a' |>> sm'.char_to_upper)
00:19:29 verbose #20758 > > |> resultm.get
00:19:29 verbose #20759 > > |> sm'.format_debug
00:19:29 verbose #20760 > > |> _assert_eq (
00:19:29 verbose #20761 > >     ('A', "bc", { line_text = "a" |> sm'.string_builder; position = { line =
00:19:29 verbose #20762 > > 1i32; col = 2i32 } })
00:19:29 verbose #20763 > >     |> sm'.format_debug
00:19:29 verbose #20764 > > )
00:19:30 verbose #20765 > 00:19:29   debug #1219 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b69fe738d5f60bbf05bc50e216a0c213135f41a715670d157b9be315cca06ec3/main.spi
00:19:30 verbose #20766 > >
00:19:30 verbose #20767 > > ╭─[ 566.02ms - stdout ]────────────────────────────────────────────────────────╮
00:19:30 verbose #20768 > > │ assert_eq / actual: "struct ('A', "bc", a, 1, 2)" / expected: "struct ('A',  │
00:19:30 verbose #20769 > > │ "bc", a, 1, 2)"                                                              │
00:19:30 verbose #20770 > > │                                                                              │
00:19:30 verbose #20771 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:30 verbose #20772 > >
00:19:30 verbose #20773 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:30 verbose #20774 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:30 verbose #20775 > > │ ### many                                                                     │
00:19:30 verbose #20776 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:30 verbose #20777 > >
00:19:30 verbose #20778 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:30 verbose #20779 > > inl many p : parser (list _) = fun input =>
00:19:30 verbose #20780 > >     let rec loop acc input =
00:19:30 verbose #20781 > >         match p input with
00:19:30 verbose #20782 > >         | Ok (result, rest) => loop (result :: acc) rest
00:19:30 verbose #20783 > >         | Error _ => Ok (listm.rev acc, input)
00:19:30 verbose #20784 > >     loop [[]] input
00:19:30 verbose #20785 > 00:19:29   debug #1220 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6a3eb8cad638e36a8313c1b2111aff1d6d55b390c675e67fde6c4dec9839a6a6/main.spi
00:19:30 verbose #20786 > >
00:19:30 verbose #20787 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:30 verbose #20788 > > //// test
00:19:30 verbose #20789 > >
00:19:30 verbose #20790 > > "aaabbc"
00:19:30 verbose #20791 > > |> parse (many (p_char 'a' <|> p_char 'b'))
00:19:30 verbose #20792 > > |> resultm.get
00:19:30 verbose #20793 > > |> sm'.format_debug
00:19:30 verbose #20794 > > |> _assert_eq (
00:19:30 verbose #20795 > >     ([['a'; 'a'; 'a'; 'b'; 'b']], "c", { line_text = "aaabb" |>
00:19:30 verbose #20796 > > sm'.string_builder; position = { line = 1i32; col = 6i32 } })
00:19:30 verbose #20797 > >     |> sm'.format_debug
00:19:30 verbose #20798 > > )
00:19:31 verbose #20799 > 00:19:30   debug #1221 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d9a418461c161845c40638ee01a086983d5feb6062d1264f3f65344ff81867c4/main.spi
00:19:31 verbose #20800 > >
00:19:31 verbose #20801 > > ╭─[ 623.56ms - stdout ]────────────────────────────────────────────────────────╮
00:19:31 verbose #20802 > > │ assert_eq / actual: "struct (UH0_1 ('a', UH0_1 ('a', UH0_1 ('a', UH0_1 ('b', │
00:19:31 verbose #20803 > > │ UH0_1 ('b', UH0_0))))),                                                      │
00:19:31 verbose #20804 > > │         "c", aaabb, 1, 6)" / expected: "struct (UH0_1 ('a', UH0_1 ('a',      │
00:19:31 verbose #20805 > > │ UH0_1 ('a', UH0_1 ('b', UH0_1 ('b', UH0_0))))),                              │
00:19:31 verbose #20806 > > │         "c", aaabb, 1, 6)"                                                   │
00:19:31 verbose #20807 > > │                                                                              │
00:19:31 verbose #20808 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:31 verbose #20809 > >
00:19:31 verbose #20810 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:31 verbose #20811 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:31 verbose #20812 > > │ ### many1_chars                                                              │
00:19:31 verbose #20813 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:31 verbose #20814 > >
00:19:31 verbose #20815 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:31 verbose #20816 > > inl many1_chars p : parser string = fun input =>
00:19:31 verbose #20817 > >     match p input with
00:19:31 verbose #20818 > >     | Error e => Error e
00:19:31 verbose #20819 > >     | Ok (first_result, rest) =>
00:19:31 verbose #20820 > >         let rec loop acc input =
00:19:31 verbose #20821 > >             match p input with
00:19:31 verbose #20822 > >             | Ok (result, rest) => loop (acc +. sm'.obj_to_string result) rest
00:19:31 verbose #20823 > >             | Error _ => Ok (acc, input)
00:19:31 verbose #20824 > >         loop (sm'.obj_to_string first_result) rest
00:19:31 verbose #20825 > 00:19:30   debug #1222 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/20ba3b43c1fac2dacaa5eda88d20ce95bd26605d88f222ee141783dd555438c4/main.spi
00:19:31 verbose #20826 > >
00:19:31 verbose #20827 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:31 verbose #20828 > > //// test
00:19:31 verbose #20829 > >
00:19:31 verbose #20830 > > "aaabbc"
00:19:31 verbose #20831 > > |> parse (many1_chars (p_char 'a' <|> p_char 'b'))
00:19:31 verbose #20832 > > |> resultm.get
00:19:31 verbose #20833 > > |> sm'.format_debug
00:19:31 verbose #20834 > > |> _assert_eq (
00:19:31 verbose #20835 > >     ("aaabb", "c", { line_text = "aaabb" |> sm'.string_builder; position = {
00:19:31 verbose #20836 > > line = 1i32; col = 6i32 } })
00:19:31 verbose #20837 > >     |> sm'.format_debug
00:19:31 verbose #20838 > > )
00:19:32 verbose #20839 > 00:19:31   debug #1223 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a5bc5d68412716cb3591c312940e201b9e56af8390368a5892c32be71f0bd3da/main.spi
00:19:32 verbose #20840 > >
00:19:32 verbose #20841 > > ╭─[ 672.90ms - stdout ]────────────────────────────────────────────────────────╮
00:19:32 verbose #20842 > > │ assert_eq / actual: "struct ("aaabb", "c", aaabb, 1, 6)" / expected: "struct │
00:19:32 verbose #20843 > > │ ("aaabb", "c", aaabb, 1, 6)"                                                 │
00:19:32 verbose #20844 > > │                                                                              │
00:19:32 verbose #20845 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:32 verbose #20846 > >
00:19:32 verbose #20847 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:32 verbose #20848 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:32 verbose #20849 > > │ ### many_chars                                                               │
00:19:32 verbose #20850 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:32 verbose #20851 > >
00:19:32 verbose #20852 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:32 verbose #20853 > > inl many_chars p : parser string = fun input =>
00:19:32 verbose #20854 > >     match many1_chars p input with
00:19:32 verbose #20855 > >     | Ok (result, rest) => Ok (result, rest)
00:19:32 verbose #20856 > >     | Error e => Ok ("", input)
00:19:32 verbose #20857 > 00:19:32   debug #1224 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b512c7659e46bd804179db3dae79268021630485ae7bddb2586f2199f60cd3b6/main.spi
00:19:33 verbose #20858 > >
00:19:33 verbose #20859 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:33 verbose #20860 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:33 verbose #20861 > > │ ### many_chars_till                                                          │
00:19:33 verbose #20862 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:33 verbose #20863 > >
00:19:33 verbose #20864 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:33 verbose #20865 > > inl many_chars_till p end_p : parser string = fun input =>
00:19:33 verbose #20866 > >     match end_p input with
00:19:33 verbose #20867 > >     | Ok _ => Ok ("", input)
00:19:33 verbose #20868 > >     | Error _ =>
00:19:33 verbose #20869 > >         match many_chars p input with
00:19:33 verbose #20870 > >         | Ok (result, rest) => Ok (result, rest)
00:19:33 verbose #20871 > >         | Error e => Error e
00:19:33 verbose #20872 > 00:19:32   debug #1225 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9ead685a83264de4493f2dcb5ac3915a52d344bd15fff82a7c255dd710f21675/main.spi
00:19:33 verbose #20873 > >
00:19:33 verbose #20874 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:33 verbose #20875 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:33 verbose #20876 > > │ ### many1                                                                    │
00:19:33 verbose #20877 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:33 verbose #20878 > >
00:19:33 verbose #20879 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:33 verbose #20880 > > inl many1 p : parser (list _) = fun input =>
00:19:33 verbose #20881 > >     match p input with
00:19:33 verbose #20882 > >     | Error e => Error e
00:19:33 verbose #20883 > >     | Ok (first_result, rest) =>
00:19:33 verbose #20884 > >         let rec loop acc input =
00:19:33 verbose #20885 > >             match p input with
00:19:33 verbose #20886 > >             | Ok (result, rest) => loop (result :: acc) rest
00:19:33 verbose #20887 > >             | Error _ => Ok (listm.rev acc, input)
00:19:33 verbose #20888 > >         loop [[ first_result ]] rest
00:19:33 verbose #20889 > 00:19:32   debug #1226 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4fe941b58ccb9706e28cad0fbc88155c969d36e25ae254522782a6ac46221178/main.spi
00:19:33 verbose #20890 > >
00:19:33 verbose #20891 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:33 verbose #20892 > > //// test
00:19:33 verbose #20893 > >
00:19:33 verbose #20894 > > "aaabbc"
00:19:33 verbose #20895 > > |> parse (many1 (p_char 'a' <|> p_char 'b'))
00:19:33 verbose #20896 > > |> resultm.get
00:19:33 verbose #20897 > > |> sm'.format_debug
00:19:33 verbose #20898 > > |> _assert_eq (
00:19:33 verbose #20899 > >     ([['a'; 'a'; 'a'; 'b'; 'b']], "c", { line_text = "aaabb" |>
00:19:33 verbose #20900 > > sm'.string_builder; position = { line = 1i32; col = 6i32 } })
00:19:33 verbose #20901 > >     |> sm'.format_debug
00:19:33 verbose #20902 > > )
00:19:33 verbose #20903 > >
00:19:33 verbose #20904 > > "bcc"
00:19:33 verbose #20905 > > |> parse (many1 (p_char 'a' <|> p_char 'b'))
00:19:33 verbose #20906 > > |> resultm.get
00:19:33 verbose #20907 > > |> sm'.format_debug
00:19:33 verbose #20908 > > |> _assert_eq (
00:19:33 verbose #20909 > >     ([['b']], "cc", { line_text = "b" |> sm'.string_builder; position = { line =
00:19:33 verbose #20910 > > 1i32; col = 2i32 } })
00:19:33 verbose #20911 > >     |> sm'.format_debug
00:19:33 verbose #20912 > > )
00:19:33 verbose #20913 > >
00:19:33 verbose #20914 > > "cba"
00:19:33 verbose #20915 > > |> parse (many1 (p_char 'a' <|> p_char 'b'))
00:19:33 verbose #20916 > > |> _assert_eq (Error "parsing.p_char / expected: 'b' / line: 1 / col:
00:19:33 verbose #20917 > > 1\ncba\n^\n")
00:19:34 verbose #20918 > 00:19:33   debug #1227 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/529873cb2f5c9d9c1fc95578f8160a39420ded813c33cf17260e1ab8cd0bb59e/main.spi
00:19:34 verbose #20919 > >
00:19:34 verbose #20920 > > ╭─[ 898.61ms - stdout ]────────────────────────────────────────────────────────╮
00:19:34 verbose #20921 > > │ assert_eq / actual: "struct (UH0_1 ('a', UH0_1 ('a', UH0_1 ('a', UH0_1 ('b', │
00:19:34 verbose #20922 > > │ UH0_1 ('b', UH0_0))))),                                                      │
00:19:34 verbose #20923 > > │         "c", aaabb, 1, 6)" / expected: "struct (UH0_1 ('a', UH0_1 ('a',      │
00:19:34 verbose #20924 > > │ UH0_1 ('a', UH0_1 ('b', UH0_1 ('b', UH0_0))))),                              │
00:19:34 verbose #20925 > > │         "c", aaabb, 1, 6)"                                                   │
00:19:34 verbose #20926 > > │ assert_eq / actual: "struct (UH0_1 ('b', UH0_0), "cc", b, 1, 2)" / expected: │
00:19:34 verbose #20927 > > │ "struct (UH0_1 ('b', UH0_0), "cc", b, 1, 2)"                                 │
00:19:34 verbose #20928 > > │ assert_eq / actual: US1_1 "parsing.p_char / expected: 'b' / line: 1 / col: 1 │
00:19:34 verbose #20929 > > │ cba                                                                          │
00:19:34 verbose #20930 > > │ ^                                                                            │
00:19:34 verbose #20931 > > │ " / expected: US1_1 "parsing.p_char / expected: 'b' / line: 1 / col: 1       │
00:19:34 verbose #20932 > > │ cba                                                                          │
00:19:34 verbose #20933 > > │ ^                                                                            │
00:19:34 verbose #20934 > > │ "                                                                            │
00:19:34 verbose #20935 > > │                                                                              │
00:19:34 verbose #20936 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:34 verbose #20937 > >
00:19:34 verbose #20938 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:34 verbose #20939 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:34 verbose #20940 > > │ ### many1_strings                                                            │
00:19:34 verbose #20941 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:34 verbose #20942 > >
00:19:34 verbose #20943 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:34 verbose #20944 > > inl many1_strings p : parser string = fun input =>
00:19:34 verbose #20945 > >     match many1 p input with
00:19:34 verbose #20946 > >     | Ok (results, rest) =>
00:19:34 verbose #20947 > >         Ok (results |> listm.map sm'.obj_to_string |> listm'.box |> seq.of_list'
00:19:34 verbose #20948 > > |> sm'.concat "", rest)
00:19:34 verbose #20949 > >     | Error e => Error e
00:19:35 verbose #20950 > 00:19:34   debug #1228 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/03fd9d587fda27ae173c9f1442a68021803125834c05e0027f95cc8d50a84f8c/main.spi
00:19:35 verbose #20951 > >
00:19:35 verbose #20952 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:35 verbose #20953 > > //// test
00:19:35 verbose #20954 > >
00:19:35 verbose #20955 > > "aaabbc"
00:19:35 verbose #20956 > > |> parse (many1_strings (p_char 'a' <|> p_char 'b'))
00:19:35 verbose #20957 > > |> resultm.get
00:19:35 verbose #20958 > > |> sm'.format_debug
00:19:35 verbose #20959 > > |> _assert_eq (
00:19:35 verbose #20960 > >     ("aaabb", "c", { line_text = "aaabb" |> sm'.string_builder; position = {
00:19:35 verbose #20961 > > line = 1i32; col = 6i32 } })
00:19:35 verbose #20962 > >     |> sm'.format_debug
00:19:35 verbose #20963 > > )
00:19:35 verbose #20964 > 00:19:34   debug #1229 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8d1e455a24c8487326e4c8746fe8f4bb3fdea3590d6ffbad5d22f09f565b5db7/main.spi
00:19:35 verbose #20965 > >
00:19:35 verbose #20966 > > ╭─[ 734.79ms - stdout ]────────────────────────────────────────────────────────╮
00:19:35 verbose #20967 > > │ assert_eq / actual: "struct ("aaabb", "c", aaabb, 1, 6)" / expected: "struct │
00:19:35 verbose #20968 > > │ ("aaabb", "c", aaabb, 1, 6)"                                                 │
00:19:35 verbose #20969 > > │                                                                              │
00:19:35 verbose #20970 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:35 verbose #20971 > >
00:19:35 verbose #20972 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:35 verbose #20973 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:35 verbose #20974 > > │ ### many_strings                                                             │
00:19:35 verbose #20975 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:35 verbose #20976 > >
00:19:35 verbose #20977 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:35 verbose #20978 > > inl many_strings p : parser string = fun input =>
00:19:35 verbose #20979 > >     match many p input with
00:19:35 verbose #20980 > >     | Ok (results, rest) =>
00:19:35 verbose #20981 > >         Ok (results |> listm.map sm'.obj_to_string |> listm'.box |> seq.of_list'
00:19:35 verbose #20982 > > |> sm'.concat "", rest)
00:19:35 verbose #20983 > >     | Error e => Ok ("", input)
00:19:36 verbose #20984 > 00:19:35   debug #1230 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a24ca97e176a6785a88fe9e9944047f319396a77bacabb601c7397be0a4fb532/main.spi
00:19:36 verbose #20985 > >
00:19:36 verbose #20986 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:36 verbose #20987 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:36 verbose #20988 > > │ ### choice                                                                   │
00:19:36 verbose #20989 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:36 verbose #20990 > >
00:19:36 verbose #20991 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:36 verbose #20992 > > inl choice parsers : parser _ = fun input =>
00:19:36 verbose #20993 > >     let rec loop = function
00:19:36 verbose #20994 > >         | [[]] => Error "choice / no parsers succeeded"
00:19:36 verbose #20995 > >         | p :: ps =>
00:19:36 verbose #20996 > >             match p input with
00:19:36 verbose #20997 > >             | Ok _ as result => result
00:19:36 verbose #20998 > >             | Error _ => loop ps
00:19:36 verbose #20999 > >     loop parsers
00:19:36 verbose #21000 > 00:19:35   debug #1231 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c1e2c0c1151e02489f214d0ed159465fea8537328d977955713f96851ef5cfbe/main.spi
00:19:36 verbose #21001 > >
00:19:36 verbose #21002 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:36 verbose #21003 > > //// test
00:19:36 verbose #21004 > >
00:19:36 verbose #21005 > > "bca"
00:19:36 verbose #21006 > > |> parse (choice [[p_char 'a'; p_char 'b'; p_char 'c']])
00:19:36 verbose #21007 > > |> resultm.get
00:19:36 verbose #21008 > > |> sm'.format_debug
00:19:36 verbose #21009 > > |> _assert_eq (
00:19:36 verbose #21010 > >     ('b', "ca", { line_text = "b" |> sm'.string_builder; position = { line =
00:19:36 verbose #21011 > > 1i32; col = 2i32 } })
00:19:36 verbose #21012 > >     |> sm'.format_debug
00:19:36 verbose #21013 > > )
00:19:36 verbose #21014 > >
00:19:36 verbose #21015 > > "cba"
00:19:36 verbose #21016 > > |> parse (choice [[p_char 'a'; p_char 'b'; p_char 'c']])
00:19:36 verbose #21017 > > |> resultm.get
00:19:36 verbose #21018 > > |> sm'.format_debug
00:19:36 verbose #21019 > > |> _assert_eq (
00:19:36 verbose #21020 > >     ('c', "ba", { line_text = "c" |> sm'.string_builder; position = { line =
00:19:36 verbose #21021 > > 1i32; col = 2i32 } })
00:19:36 verbose #21022 > >     |> sm'.format_debug
00:19:36 verbose #21023 > > )
00:19:37 verbose #21024 > 00:19:36   debug #1232 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5f37a0b61d6c1fb5f31c31d7c9926dde0cde4b368cb2cec7ea7c4b1c0dc0f42a/main.spi
00:19:37 verbose #21025 > >
00:19:37 verbose #21026 > > ╭─[ 790.04ms - stdout ]────────────────────────────────────────────────────────╮
00:19:37 verbose #21027 > > │ assert_eq / actual: "struct ('b', "ca", b, 1, 2)" / expected: "struct ('b',  │
00:19:37 verbose #21028 > > │ "ca", b, 1, 2)"                                                              │
00:19:37 verbose #21029 > > │ assert_eq / actual: "struct ('c', "ba", c, 1, 2)" / expected: "struct ('c',  │
00:19:37 verbose #21030 > > │ "ba", c, 1, 2)"                                                              │
00:19:37 verbose #21031 > > │                                                                              │
00:19:37 verbose #21032 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:37 verbose #21033 > >
00:19:37 verbose #21034 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:37 verbose #21035 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:37 verbose #21036 > > │ ### between                                                                  │
00:19:37 verbose #21037 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:37 verbose #21038 > >
00:19:37 verbose #21039 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:37 verbose #21040 > > inl between p_open p_close p_content : parser _ = fun input =>
00:19:37 verbose #21041 > >     match p_open input with
00:19:37 verbose #21042 > >     | Ok (_, rest1) =>
00:19:37 verbose #21043 > >         match p_content rest1 with
00:19:37 verbose #21044 > >         | Ok (result, rest2) =>
00:19:37 verbose #21045 > >             match p_close rest2 with
00:19:37 verbose #21046 > >             | Ok (_, rest3) => Ok (result, rest3)
00:19:37 verbose #21047 > >             | Error e => Error $'$"between / expected closing delimiter / e:
00:19:37 verbose #21048 > > %A{!e} / input: %A{!input} / rest1: %A{!rest1} / rest2: %A{!rest2}"'
00:19:37 verbose #21049 > >         | Error _ => Error "between / expected content"
00:19:37 verbose #21050 > >     | Error e => Error e
00:19:37 verbose #21051 > 00:19:36   debug #1233 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d916e07d41414ce228717d77050ced4b0d0230ef51ae51bb0010a8724eddf4ef/main.spi
00:19:37 verbose #21052 > >
00:19:37 verbose #21053 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:37 verbose #21054 > > //// test
00:19:37 verbose #21055 > >
00:19:37 verbose #21056 > > "[[aaabb]]"
00:19:37 verbose #21057 > > |> parse (between (p_char '[[') (p_char ']]') (many1_chars (p_char 'a' <|>
00:19:37 verbose #21058 > > p_char 'b')))
00:19:37 verbose #21059 > > |> resultm.get
00:19:37 verbose #21060 > > |> sm'.format_debug
00:19:37 verbose #21061 > > |> _assert_eq (
00:19:37 verbose #21062 > >     ("aaabb", "", { line_text = "[[aaabb]]" |> sm'.string_builder; position = {
00:19:37 verbose #21063 > > line = 1i32; col = 8i32 } })
00:19:37 verbose #21064 > >     |> sm'.format_debug
00:19:37 verbose #21065 > > )
00:19:37 verbose #21066 > >
00:19:37 verbose #21067 > > "[[aaabb"
00:19:37 verbose #21068 > > |> parse (between (p_char '[[') (p_char ']]') (many1_chars (p_char 'a' <|>
00:19:37 verbose #21069 > > p_char 'b')))
00:19:37 verbose #21070 > > |> resultm.unwrap_err
00:19:37 verbose #21071 > > |> sm'.format_debug
00:19:37 verbose #21072 > > |> _assert_eq "\"between / expected closing delimiter / e: \"parsing.p_char
00:19:37 verbose #21073 > > unexpected end of input / s: struct ([[aaabb, 1, 7)\" / input: struct
00:19:37 verbose #21074 > > (\"[[aaabb\", [[aaabb, 1, 1) / rest1: struct (\"aaabb\", [[aaabb, 1, 2) / rest2:
00:19:37 verbose #21075 > > struct (\"\", [[aaabb, 1, 7)\""
00:19:38 verbose #21076 > 00:19:37   debug #1234 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c7dcba01b843f607a0579503beb7f2b7214322aa5b0fd6c5ee0d97305284b62d/main.spi
00:19:38 verbose #21077 > >
00:19:38 verbose #21078 > > ╭─[ 885.53ms - stdout ]────────────────────────────────────────────────────────╮
00:19:38 verbose #21079 > > │ assert_eq / actual: "struct ("aaabb", "", [aaabb], 1, 8)" / expected:        │
00:19:38 verbose #21080 > > │ "struct ("aaabb", "", [aaabb], 1, 8)"                                        │
00:19:38 verbose #21081 > > │ assert_eq / actual: ""between / expected closing delimiter / e:              │
00:19:38 verbose #21082 > > │ "parsing.p_char / unexpected end of input / s: struct ([aaabb, 1, 7)" /      │
00:19:38 verbose #21083 > > │ input: struct ("[aaabb", [aaabb, 1, 1) / rest1: struct ("aaabb", [aaabb, 1,  │
00:19:38 verbose #21084 > > │ 2) / rest2: struct ("", [aaabb, 1, 7)"" / expected: ""between / expected     │
00:19:38 verbose #21085 > > │ closing delimiter / e: "parsing.p_char / unexpected end of input / s: struct │
00:19:38 verbose #21086 > > │ ([aaabb, 1, 7)" / input: struct ("[aaabb", [aaabb, 1, 1) / rest1: struct     │
00:19:38 verbose #21087 > > │ ("aaabb", [aaabb, 1, 2) / rest2: struct ("", [aaabb, 1, 7)""                 │
00:19:38 verbose #21088 > > │                                                                              │
00:19:38 verbose #21089 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:38 verbose #21090 > >
00:19:38 verbose #21091 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:38 verbose #21092 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:38 verbose #21093 > > │ ### sep_by                                                                   │
00:19:38 verbose #21094 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:38 verbose #21095 > >
00:19:38 verbose #21096 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:38 verbose #21097 > > inl sep_by p sep : parser (list _) = fun input, s =>
00:19:38 verbose #21098 > >     let rec loop acc input s =
00:19:38 verbose #21099 > >         match p (input, s) with
00:19:38 verbose #21100 > >         | Error _ => Ok (acc |> listm.rev, input, s)
00:19:38 verbose #21101 > >         | Ok (result, rest, s) =>
00:19:38 verbose #21102 > >             match sep (rest, s) with
00:19:38 verbose #21103 > >             | Error _ => Ok ((result :: acc) |> listm.rev, rest, s)
00:19:38 verbose #21104 > >             | Ok (_, rest, s) => loop (result :: acc) rest s
00:19:38 verbose #21105 > >     loop [[]] input s
00:19:39 verbose #21106 > 00:19:38   debug #1235 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4ab338cd53d11af80d36ee5fcec2ef2c7d9ae700e73d5911aa90551b88e0a7fa/main.spi
00:19:39 verbose #21107 > >
00:19:39 verbose #21108 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:39 verbose #21109 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:39 verbose #21110 > > │ ### span                                                                     │
00:19:39 verbose #21111 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:39 verbose #21112 > >
00:19:39 verbose #21113 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:39 verbose #21114 > > inl span pred str =
00:19:39 verbose #21115 > >     let rec loop i =
00:19:39 verbose #21116 > >         if i >= sm'.length str
00:19:39 verbose #21117 > >         then i
00:19:39 verbose #21118 > >         elif pred (str |> sm'.index i)
00:19:39 verbose #21119 > >         then loop (i + 1)
00:19:39 verbose #21120 > >         else i
00:19:39 verbose #21121 > >     loop 0
00:19:39 verbose #21122 > 00:19:38   debug #1236 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d490aaaa06b07523ab000f208271a4a2b6ff9d58423590bcaad6663d507776ce/main.spi
00:19:39 verbose #21123 > >
00:19:39 verbose #21124 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:39 verbose #21125 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:39 verbose #21126 > > │ ### spaces1                                                                  │
00:19:39 verbose #21127 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:39 verbose #21128 > >
00:19:39 verbose #21129 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:39 verbose #21130 > > inl spaces1 () : parser () = fun input, s =>
00:19:39 verbose #21131 > >     match input |> span fun c => c = ' ' with
00:19:39 verbose #21132 > >     | 0i32 => Error "spaces1 / expected at least one space"
00:19:39 verbose #21133 > >     | n => Ok ((), input |> sm'.range (am'.Start n) (am'.End id), s)
00:19:39 verbose #21134 > 00:19:39   debug #1237 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/48c094554dc79d667b64896ad6d19888d020f0b4cad950f430507d7284260a75/main.spi
00:19:40 verbose #21135 > >
00:19:40 verbose #21136 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:40 verbose #21137 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:40 verbose #21138 > > │ ### spaces                                                                   │
00:19:40 verbose #21139 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:40 verbose #21140 > >
00:19:40 verbose #21141 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:40 verbose #21142 > > inl spaces () : parser () = fun input, s =>
00:19:40 verbose #21143 > >     input
00:19:40 verbose #21144 > >     |> span fun c => c = ' '
00:19:40 verbose #21145 > >     |> fun (n : i32) => Ok ((), input |> sm'.range (am'.Start n) (am'.End id),
00:19:40 verbose #21146 > > s)
00:19:40 verbose #21147 > 00:19:39   debug #1238 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/009ef2247425294ba9a1458a0ed58a2cb3f0a92ff90937fbb309bc5f79262f85/main.spi
00:19:40 verbose #21148 > >
00:19:40 verbose #21149 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:40 verbose #21150 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:40 verbose #21151 > > │ ### p_digit                                                                  │
00:19:40 verbose #21152 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:40 verbose #21153 > >
00:19:40 verbose #21154 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:40 verbose #21155 > > inl p_digit () : parser char = fun input, s =>
00:19:40 verbose #21156 > >     match input |> sm'.index 0i32 with
00:19:40 verbose #21157 > >     | ('0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9') as c =>
00:19:40 verbose #21158 > >         Ok (c, input |> sm'.range (am'.Start 1i32) (am'.End id), s)
00:19:40 verbose #21159 > >     | c => Error $'$"p_digit / unexpected char: {!c}"'
00:19:40 verbose #21160 > 00:19:39   debug #1239 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/375a2bb4f6d423493d43a9acef22848b177942e987a69c47a1a55ad1666007cd/main.spi
00:19:40 verbose #21161 > >
00:19:40 verbose #21162 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:40 verbose #21163 > > //// test
00:19:40 verbose #21164 > >
00:19:40 verbose #21165 > > "1 2 3"
00:19:40 verbose #21166 > > |> parse (sep_by (p_digit ()) (spaces1 ()))
00:19:40 verbose #21167 > > |> resultm.get
00:19:40 verbose #21168 > > |> sm'.format_debug
00:19:40 verbose #21169 > > |> _assert_eq (
00:19:40 verbose #21170 > >     ([['1'; '2'; '3']], "", { line_text = "" |> sm'.string_builder; position = {
00:19:40 verbose #21171 > > col = 1i32; line = 1i32 } })
00:19:40 verbose #21172 > >     |> sm'.format_debug
00:19:40 verbose #21173 > > )
00:19:41 verbose #21174 > 00:19:40   debug #1240 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4cdba242c808fb5835c02a1868002bc878096a4f6363e622acdb81dfa8badec6/main.spi
00:19:41 verbose #21175 > >
00:19:41 verbose #21176 > > ╭─[ 583.45ms - stdout ]────────────────────────────────────────────────────────╮
00:19:41 verbose #21177 > > │ assert_eq / actual: "struct (UH0_1 ('1', UH0_1 ('2', UH0_1 ('3', UH0_0))),   │
00:19:41 verbose #21178 > > │ "", , 1, 1)" / expected: "struct (UH0_1 ('1', UH0_1 ('2', UH0_1 ('3',        │
00:19:41 verbose #21179 > > │ UH0_0))), "", , 1, 1)"                                                       │
00:19:41 verbose #21180 > > │                                                                              │
00:19:41 verbose #21181 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:41 verbose #21182 > >
00:19:41 verbose #21183 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:41 verbose #21184 > > //// test
00:19:41 verbose #21185 > >
00:19:41 verbose #21186 > > "1 a 2"
00:19:41 verbose #21187 > > |> parse (sep_by (p_digit ()) (spaces1 ()))
00:19:41 verbose #21188 > > |> resultm.get
00:19:41 verbose #21189 > > |> sm'.format_debug
00:19:41 verbose #21190 > > |> _assert_eq (
00:19:41 verbose #21191 > >     ([['1']], "a 2", { line_text = "" |> sm'.string_builder; position = { col =
00:19:41 verbose #21192 > > 1i32; line = 1i32 } })
00:19:41 verbose #21193 > >     |> sm'.format_debug
00:19:41 verbose #21194 > > )
00:19:41 verbose #21195 > 00:19:41   debug #1241 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/53d49395185eeea2753aaddbf5a5b1fd588bf38d1762c5d73464b12af124d4d2/main.spi
00:19:42 verbose #21196 > >
00:19:42 verbose #21197 > > ╭─[ 582.52ms - stdout ]────────────────────────────────────────────────────────╮
00:19:42 verbose #21198 > > │ assert_eq / actual: "struct (UH0_1 ('1', UH0_0), "a 2", , 1, 1)" / expected: │
00:19:42 verbose #21199 > > │ "struct (UH0_1 ('1', UH0_0), "a 2", , 1, 1)"                                 │
00:19:42 verbose #21200 > > │                                                                              │
00:19:42 verbose #21201 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:42 verbose #21202 > >
00:19:42 verbose #21203 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:42 verbose #21204 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:42 verbose #21205 > > │ ### opt                                                                      │
00:19:42 verbose #21206 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:42 verbose #21207 > >
00:19:42 verbose #21208 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:42 verbose #21209 > > inl opt p : parser (option _) = fun input, s =>
00:19:42 verbose #21210 > >     match p (input, s) with
00:19:42 verbose #21211 > >     | Ok (result, rest, s) => Ok (Some result, rest, s)
00:19:42 verbose #21212 > >     | Error _ => Ok (None, input, s)
00:19:42 verbose #21213 > 00:19:41   debug #1242 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/13571a45502920812e9621d46e2d62bac530531be7b8823449ada3a7e52ddf8b/main.spi
00:19:42 verbose #21214 > >
00:19:42 verbose #21215 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:42 verbose #21216 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:42 verbose #21217 > > │ ### rest_of_line                                                             │
00:19:42 verbose #21218 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:42 verbose #21219 > >
00:19:42 verbose #21220 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:42 verbose #21221 > > inl rest_of_line () : parser string = fun input, s =>
00:19:42 verbose #21222 > >     inl i : i32 = input |> span ((<>) '\n')
00:19:42 verbose #21223 > >     Ok (input |> sm'.range (am'.Start i) (am'.End id), input |> sm'.range
00:19:42 verbose #21224 > > (am'.Start i) (am'.End id), s)
00:19:42 verbose #21225 > 00:19:41   debug #1243 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/25cd597ee9f3ae0adf6d5ab7e2ccc41f608fe243435fad6ea92bae09f2470506/main.spi
00:19:42 verbose #21226 > >
00:19:42 verbose #21227 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:42 verbose #21228 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:42 verbose #21229 > > │ ### eof                                                                      │
00:19:42 verbose #21230 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:42 verbose #21231 > >
00:19:42 verbose #21232 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:42 verbose #21233 > > inl eof () : parser () = fun input, s =>
00:19:42 verbose #21234 > >     if sm'.length input = 0i32
00:19:42 verbose #21235 > >     then Ok ((), input, s)
00:19:42 verbose #21236 > >     else Error $'$"parsing.eof / expected end of input / input: %A{!input}"'
00:19:43 verbose #21237 > 00:19:42   debug #1244 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/32092eb273934072db5ed1caab2057e8283f7470b8ac5cfadbeab53e814a7590/main.spi
00:19:43 verbose #21238 > 00:00:48 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 61119 }
00:19:43 verbose #21239 > 00:00:48   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/spiral/parsing.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/parsing.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:19:45 verbose #21240 > 00:00:50 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/parsing.dib.ipynb to html
00:19:45 verbose #21241 > 00:00:50 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:19:45 verbose #21242 > 00:00:50 verbose #7 !   validate(nb)
00:19:48 verbose #21243 > 00:00:52 verbose #8 ! [NbConvertApp] Writing 476994 bytes to c:\home\git\polyglot\lib\spiral\parsing.dib.html
00:19:48 verbose #21244 > 00:00:53 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 645 }
00:19:48 verbose #21245 > 00:00:53   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 645 }
00:19:48 verbose #21246 > 00:00:53   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/parsing.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/parsing.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:19:49 verbose #21247 > 00:00:54 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:19:49 verbose #21248 > 00:00:54   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:19:50 verbose #21249 > 00:00:55   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 61823 }
00:19:50   debug #21250 runtime.execute_with_options_async / { exit_code = 0; output_length = 67201 }
00:19:50   debug #28 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path parsing.dib --retries 3
00:19:50   debug #21251 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path threading.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:19:50 verbose #21252 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "threading.dib", "--retries", "3"])) }
00:19:50 verbose #21253 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/spiral/threading.dib", "--output-path", "c:/home/git/polyglot/lib/spiral/threading.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/threading.dib" --output-path "c:/home/git/polyglot/lib/spiral/threading.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:19:53 verbose #21254 > >
00:19:53 verbose #21255 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:53 verbose #21256 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:53 verbose #21257 > > │ # threading                                                                  │
00:19:53 verbose #21258 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:58 verbose #21259 > >
00:19:58 verbose #21260 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:58 verbose #21261 > > open rust_operators
00:19:58 verbose #21262 > 00:19:58   debug #1245 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0d9bd8e5bb71a8e1d983506a46e54fb8c8e6cf2d0bd973135d4cdd580c5f6d39/main.spi
00:19:59 verbose #21263 > >
00:19:59 verbose #21264 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:59 verbose #21265 > > //// test
00:19:59 verbose #21266 > >
00:19:59 verbose #21267 > > open testing
00:19:59 verbose #21268 > 00:19:58   debug #1246 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d06211d48c36e09624381aad71e69f817df1a545af31c21067514d4d391bdd05/main.spi
00:19:59 verbose #21269 > >
00:19:59 verbose #21270 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:59 verbose #21271 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:59 verbose #21272 > > │ ## rust                                                                      │
00:19:59 verbose #21273 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:59 verbose #21274 > >
00:19:59 verbose #21275 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:59 verbose #21276 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:59 verbose #21277 > > │ ### sleep                                                                    │
00:19:59 verbose #21278 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:59 verbose #21279 > >
00:19:59 verbose #21280 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:59 verbose #21281 > > inl sleep (duration : date_time.duration) : () =
00:19:59 verbose #21282 > >     inl duration = join duration
00:19:59 verbose #21283 > >     !\($'"std::thread::sleep(!duration)"')
00:20:00 verbose #21284 > 00:19:59   debug #1247 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/94a65e550a56f553180c611542ebb0f2f63a7b143a5c2c21334a7fcf9bceca33/main.spi
00:20:00 verbose #21285 > >
00:20:00 verbose #21286 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:00 verbose #21287 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:00 verbose #21288 > > │ ### join_handle                                                              │
00:20:00 verbose #21289 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:00 verbose #21290 > >
00:20:00 verbose #21291 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:00 verbose #21292 > > nominal join_handle t =
00:20:00 verbose #21293 > >     `(
00:20:00 verbose #21294 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:20:00 verbose #21295 > > Fable.Core.Emit(\"std::thread::JoinHandle<$0>\")>]]\n#endif\ntype
00:20:00 verbose #21296 > > std_thread_JoinHandle<'T> = class end"
00:20:00 verbose #21297 > >         $'' : $'std_thread_JoinHandle<`t>'
00:20:00 verbose #21298 > >     )
00:20:00 verbose #21299 > 00:19:59   debug #1248 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/822e7f9724808dd9530235bb32056161570e08293be85bc770a1017a466caf2b/main.spi
00:20:00 verbose #21300 > >
00:20:00 verbose #21301 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:00 verbose #21302 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:00 verbose #21303 > > │ ### spawn                                                                    │
00:20:00 verbose #21304 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:00 verbose #21305 > >
00:20:00 verbose #21306 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:00 verbose #21307 > > inl spawn forall t. depth flag (x : () -> t) : join_handle t =
00:20:00 verbose #21308 > >     if flag = 1u8
00:20:00 verbose #21309 > >     then (!\($'"true; let __result = std::thread::spawn(move || { //"') : bool)
00:20:00 verbose #21310 > > |> ignore
00:20:00 verbose #21311 > >     else (!\($'"true; let __result = std::thread::spawn(|| { //"') : bool) |>
00:20:00 verbose #21312 > > ignore
00:20:00 verbose #21313 > >
00:20:00 verbose #21314 > >     let x' = x ()
00:20:00 verbose #21315 > >     inl x' = join x'
00:20:00 verbose #21316 > >
00:20:00 verbose #21317 > >     x' |> rust.fix_closure depth
00:20:00 verbose #21318 > >
00:20:00 verbose #21319 > >     !\($'"__result"')
00:20:00 verbose #21320 > 00:19:59   debug #1249 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0f87e592c217f54e8619aa99953956398f58520e60d5ee6fd147f4ae8106d137/main.spi
00:20:00 verbose #21321 > >
00:20:00 verbose #21322 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:00 verbose #21323 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:00 verbose #21324 > > │ ### join'                                                                    │
00:20:00 verbose #21325 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:00 verbose #21326 > >
00:20:00 verbose #21327 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:00 verbose #21328 > > inl join' forall t.
00:20:00 verbose #21329 > >     (x : join_handle t)
00:20:00 verbose #21330 > >     : resultm.result'
00:20:00 verbose #21331 > >         t
00:20:00 verbose #21332 > >         (
00:20:00 verbose #21333 > >             rust.box (
00:20:00 verbose #21334 > >                 rust.lifetime_ref
00:20:00 verbose #21335 > >                     rust.dyn'
00:20:00 verbose #21336 > >                     (
00:20:00 verbose #21337 > >                         rust.lifetime_join
00:20:00 verbose #21338 > >                             rust.any
00:20:00 verbose #21339 > >                             (
00:20:00 verbose #21340 > >                                 rust.lifetime_ref
00:20:00 verbose #21341 > >                                     rust.send
00:20:00 verbose #21342 > >                                     rust.static_lifetime
00:20:00 verbose #21343 > >                             )
00:20:00 verbose #21344 > >                     )
00:20:00 verbose #21345 > >             )
00:20:00 verbose #21346 > >         ) =
00:20:00 verbose #21347 > >     !\\(x, $'"std::thread::JoinHandle::join($0)"')
00:20:01 verbose #21348 > 00:20:00   debug #1250 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ae906672c7d7666bd0ae4abbd7b33376fb2e6d991bbffedcc126b9fb5db13c72/main.spi
00:20:01 verbose #21349 > >
00:20:01 verbose #21350 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:01 verbose #21351 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:01 verbose #21352 > > │ ### arc                                                                      │
00:20:01 verbose #21353 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:01 verbose #21354 > >
00:20:01 verbose #21355 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:01 verbose #21356 > > nominal arc t =
00:20:01 verbose #21357 > >     `(
00:20:01 verbose #21358 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:20:01 verbose #21359 > > Fable.Core.Emit(\"std::sync::Arc<$0>\")>]]\n#endif\ntype std_sync_Arc<'T> =
00:20:01 verbose #21360 > > class end"
00:20:01 verbose #21361 > >         $'' : $'std_sync_Arc<`t>'
00:20:01 verbose #21362 > >     )
00:20:01 verbose #21363 > 00:20:00   debug #1251 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/604b7b80dc38add8a168722d0cbed01532784a1a31e98c7b4850afe746133d3e/main.spi
00:20:01 verbose #21364 > >
00:20:01 verbose #21365 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:01 verbose #21366 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:01 verbose #21367 > > │ ### new_arc                                                                  │
00:20:01 verbose #21368 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:01 verbose #21369 > >
00:20:01 verbose #21370 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:01 verbose #21371 > > inl new_arc forall t. (x : t) : arc t =
00:20:01 verbose #21372 > >     !\\(x, $'"std::sync::Arc::new($0)"')
00:20:01 verbose #21373 > 00:20:01   debug #1252 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/023a971e0889e1ffb03b0c20cab6a2208e2e7d95fd44bd074d3a9dc22183b8e6/main.spi
00:20:02 verbose #21374 > >
00:20:02 verbose #21375 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:02 verbose #21376 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:02 verbose #21377 > > │ ### mutex                                                                    │
00:20:02 verbose #21378 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:02 verbose #21379 > >
00:20:02 verbose #21380 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:02 verbose #21381 > > nominal mutex t =
00:20:02 verbose #21382 > >     `(
00:20:02 verbose #21383 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:20:02 verbose #21384 > > Fable.Core.Emit(\"std::sync::Mutex<$0>\")>]]\n#endif\ntype std_sync_Mutex<'T> =
00:20:02 verbose #21385 > > class end"
00:20:02 verbose #21386 > >         $'' : $'std_sync_Mutex<`t>'
00:20:02 verbose #21387 > >     )
00:20:02 verbose #21388 > 00:20:01   debug #1253 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a48974c72addf2a813a4edb0f330242bdd53b1532c060b2ac2d9a1345dddaf91/main.spi
00:20:02 verbose #21389 > >
00:20:02 verbose #21390 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:02 verbose #21391 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:02 verbose #21392 > > │ ### new_mutex                                                                │
00:20:02 verbose #21393 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:02 verbose #21394 > >
00:20:02 verbose #21395 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:02 verbose #21396 > > inl new_mutex forall t. (x : t) : mutex t =
00:20:02 verbose #21397 > >     !\\(x, $'"std::sync::Mutex::new($0)"')
00:20:02 verbose #21398 > 00:20:01   debug #1254 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2a0ae933ceac4f3e23c6d29e4dd969469cd475ead963e9a0b59d5ff7f5ee7271/main.spi
00:20:02 verbose #21399 > >
00:20:02 verbose #21400 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:02 verbose #21401 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:02 verbose #21402 > > │ ### new_arc_mutex                                                            │
00:20:02 verbose #21403 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:02 verbose #21404 > >
00:20:02 verbose #21405 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:02 verbose #21406 > > inl new_arc_mutex forall t. (x : t) : arc (mutex t) =
00:20:02 verbose #21407 > >     x |> new_mutex |> new_arc
00:20:03 verbose #21408 > 00:20:02   debug #1255 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/799c43e5818d2f5168695fb5555fd19f050fee3bdccdc972879d90552b807f3a/main.spi
00:20:03 verbose #21409 > >
00:20:03 verbose #21410 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:03 verbose #21411 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:03 verbose #21412 > > │ ### arc_clone                                                                │
00:20:03 verbose #21413 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:03 verbose #21414 > >
00:20:03 verbose #21415 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:03 verbose #21416 > > inl arc_clone forall t. (x : arc t) : arc t =
00:20:03 verbose #21417 > >     inl x = join x
00:20:03 verbose #21418 > >     !\($'"std::sync::Arc::clone(&!x)"')
00:20:03 verbose #21419 > 00:20:02   debug #1256 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7da7d20e2bb58c831760d03dd4aa9f281bd2bcbb8bbb1684307479f5dc4ed01c/main.spi
00:20:03 verbose #21420 > >
00:20:03 verbose #21421 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:03 verbose #21422 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:03 verbose #21423 > > │ ### mutex_guard                                                              │
00:20:03 verbose #21424 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:03 verbose #21425 > >
00:20:03 verbose #21426 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:03 verbose #21427 > > nominal mutex_guard t =
00:20:03 verbose #21428 > >     `(
00:20:03 verbose #21429 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:20:03 verbose #21430 > > Fable.Core.Emit(\"std::sync::MutexGuard<$0>\")>]]\n#endif\ntype
00:20:03 verbose #21431 > > std_sync_MutexGuard<'T> = class end"
00:20:03 verbose #21432 > >         $'' : $'std_sync_MutexGuard<`t>'
00:20:03 verbose #21433 > >     )
00:20:03 verbose #21434 > 00:20:02   debug #1257 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/aaa82c9da38759dd31d2f69f1e73630e23ea38c2878e0b697414fcf01dd52806/main.spi
00:20:03 verbose #21435 > >
00:20:03 verbose #21436 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:03 verbose #21437 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:03 verbose #21438 > > │ ### poison_error                                                             │
00:20:03 verbose #21439 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:03 verbose #21440 > >
00:20:03 verbose #21441 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:03 verbose #21442 > > nominal poison_error t =
00:20:03 verbose #21443 > >     `(
00:20:03 verbose #21444 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:20:03 verbose #21445 > > Fable.Core.Emit(\"std::sync::PoisonError<$0>\")>]]\n#endif\ntype
00:20:03 verbose #21446 > > std_sync_PoisonError<'T> = class end"
00:20:03 verbose #21447 > >         $'' : $'std_sync_PoisonError<`t>'
00:20:03 verbose #21448 > >     )
00:20:04 verbose #21449 > 00:20:03   debug #1258 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c3378650aecef0bb24dd475926ec54c9a79cd5ec30573636437d1a071bec05ac/main.spi
00:20:04 verbose #21450 > >
00:20:04 verbose #21451 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:04 verbose #21452 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:04 verbose #21453 > > │ ### arc_mutex_lock                                                           │
00:20:04 verbose #21454 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:04 verbose #21455 > >
00:20:04 verbose #21456 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:04 verbose #21457 > > inl arc_mutex_lock forall t. (x : arc (mutex t)) : resultm.result' (mutex_guard
00:20:04 verbose #21458 > > t) (poison_error (mutex_guard t)) =
00:20:04 verbose #21459 > >     inl x = join x
00:20:04 verbose #21460 > >     !\($'"!x.lock()"')
00:20:04 verbose #21461 > 00:20:03   debug #1259 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8b5032f657cb59aa5f51b180b72c689f5c01fe2f8b321b96b7e43de7b7441944/main.spi
00:20:04 verbose #21462 > >
00:20:04 verbose #21463 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:04 verbose #21464 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:04 verbose #21465 > > │ ### mutex_guard_ref                                                          │
00:20:04 verbose #21466 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:04 verbose #21467 > >
00:20:04 verbose #21468 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:04 verbose #21469 > > inl mutex_guard_ref forall t. (x : mutex_guard t) : rust.ref t =
00:20:04 verbose #21470 > >     !\\(x, $'"&$0"')
00:20:04 verbose #21471 > 00:20:03   debug #1260 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f767fba69c7d734fd30393f178b043546bbcc4c714ee80f2c894868c97cbfea5/main.spi
00:20:04 verbose #21472 > >
00:20:04 verbose #21473 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:04 verbose #21474 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:04 verbose #21475 > > │ ### mutex_guard_ref_mut                                                      │
00:20:04 verbose #21476 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:04 verbose #21477 > >
00:20:04 verbose #21478 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:04 verbose #21479 > > inl mutex_guard_ref_mut forall t. (x : mutex_guard t) : rust.ref (rust.mut' t) =
00:20:04 verbose #21480 > >     (!\($'"true; let mut !x = !x"') : bool) |> ignore
00:20:04 verbose #21481 > >     !\\(x, $'"&mut $0"')
00:20:05 verbose #21482 > 00:20:04   debug #1261 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7ccb9487f9ae231c60697130b6453eba68688d2c83e3c936d6a50458dff8f181/main.spi
00:20:05 verbose #21483 > >
00:20:05 verbose #21484 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:05 verbose #21485 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:05 verbose #21486 > > │ ### mutex_guard_as_mut                                                       │
00:20:05 verbose #21487 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:05 verbose #21488 > >
00:20:05 verbose #21489 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:05 verbose #21490 > > inl mutex_guard_as_mut forall (t : * -> *) u. (x : mutex_guard (t u)) : t
00:20:05 verbose #21491 > > (rust.ref (rust.mut' u)) =
00:20:05 verbose #21492 > >     (!\($'"true; let mut !x = !x"') : bool) |> ignore
00:20:05 verbose #21493 > >     !\\(x, $'"$0.as_mut()"')
00:20:05 verbose #21494 > 00:20:04   debug #1262 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/046720ee42beafc7a77d4d2e5f0b166034a4e07f5b6b9d5807d0b47cee4666d9/main.spi
00:20:05 verbose #21495 > >
00:20:05 verbose #21496 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:05 verbose #21497 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:05 verbose #21498 > > │ ### channel_receiver                                                         │
00:20:05 verbose #21499 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:05 verbose #21500 > >
00:20:05 verbose #21501 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:05 verbose #21502 > > nominal channel_receiver t =
00:20:05 verbose #21503 > >     `(
00:20:05 verbose #21504 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:20:05 verbose #21505 > > Fable.Core.Emit(\"std::sync::mpsc::Receiver<$0>\")>]]\n#endif\ntype
00:20:05 verbose #21506 > > std_sync_mpsc_Receiver<'T> = class end"
00:20:05 verbose #21507 > >         $'' : $'std_sync_mpsc_Receiver<`t>'
00:20:05 verbose #21508 > >     )
00:20:05 verbose #21509 > 00:20:05   debug #1263 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/91452b3c6f137c6cc18903d11f02b40e513952885be5240d893860515eb38239/main.spi
00:20:06 verbose #21510 > >
00:20:06 verbose #21511 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:06 verbose #21512 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:06 verbose #21513 > > │ ### channel_sender                                                           │
00:20:06 verbose #21514 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:06 verbose #21515 > >
00:20:06 verbose #21516 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:06 verbose #21517 > > nominal channel_sender t =
00:20:06 verbose #21518 > >     `(
00:20:06 verbose #21519 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:20:06 verbose #21520 > > Fable.Core.Emit(\"std::sync::mpsc::Sender<$0>\")>]]\n#endif\ntype
00:20:06 verbose #21521 > > std_sync_mpsc_Sender<'T> = class end"
00:20:06 verbose #21522 > >         $'' : $'std_sync_mpsc_Sender<`t>'
00:20:06 verbose #21523 > >     )
00:20:06 verbose #21524 > 00:20:05   debug #1264 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/63473f472f34a1684247b5b7a6b98a47ce6f3b4b050d96b97f9ed2a4edbaa718/main.spi
00:20:06 verbose #21525 > >
00:20:06 verbose #21526 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:06 verbose #21527 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:06 verbose #21528 > > │ ### new_channel                                                              │
00:20:06 verbose #21529 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:06 verbose #21530 > >
00:20:06 verbose #21531 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:06 verbose #21532 > > inl new_channel () : channel_sender sm'.std_string * arc (channel_receiver
00:20:06 verbose #21533 > > sm'.std_string) =
00:20:06 verbose #21534 > >     !\($'"{ let (sender, receiver) = std::sync::mpsc::channel(); (sender,
00:20:06 verbose #21535 > > std::sync::Arc::new(receiver)) }"')
00:20:06 verbose #21536 > 00:20:05   debug #1265 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4420589b9b58a07d2075bc6e26255d8caa8da19bc0743ed8d9b059d547e7bf64/main.spi
00:20:06 verbose #21537 > >
00:20:06 verbose #21538 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:06 verbose #21539 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:06 verbose #21540 > > │ ### send_error                                                               │
00:20:06 verbose #21541 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:06 verbose #21542 > >
00:20:06 verbose #21543 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:06 verbose #21544 > > nominal send_error t =
00:20:06 verbose #21545 > >     `(
00:20:06 verbose #21546 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:20:06 verbose #21547 > > Fable.Core.Emit(\"std::sync::mpsc::SendError<$0>\")>]]\n#endif\ntype
00:20:06 verbose #21548 > > std_sync_mpsc_SendError<'T> = class end"
00:20:06 verbose #21549 > >         $'' : $'std_sync_mpsc_SendError<`t>'
00:20:06 verbose #21550 > >     )
00:20:07 verbose #21551 > 00:20:06   debug #1266 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0b16c5c3bca3b2b24799012e2dbf93654ef648afa5f8de3efc8cdd395ae8ede2/main.spi
00:20:07 verbose #21552 > >
00:20:07 verbose #21553 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:07 verbose #21554 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:07 verbose #21555 > > │ ### channel_send                                                             │
00:20:07 verbose #21556 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:07 verbose #21557 > >
00:20:07 verbose #21558 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:07 verbose #21559 > > inl channel_send forall t. (line : t) (sender : rust.ref (channel_sender t)) :
00:20:07 verbose #21560 > > resultm.result' () (send_error sm'.std_string) =
00:20:07 verbose #21561 > >     !\\((sender, line), $'"$0.send($1)"')
00:20:07 verbose #21562 > 00:20:06   debug #1267 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5b38f0983be98793479653daee3b4c6e0f23a17d29aee49ba1b153bf8d3c878f/main.spi
00:20:07 verbose #21563 > >
00:20:07 verbose #21564 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:07 verbose #21565 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:07 verbose #21566 > > │ ## fsharp                                                                    │
00:20:07 verbose #21567 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:07 verbose #21568 > >
00:20:07 verbose #21569 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:07 verbose #21570 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:07 verbose #21571 > > │ ### sleep'                                                                   │
00:20:07 verbose #21572 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:07 verbose #21573 > >
00:20:07 verbose #21574 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:07 verbose #21575 > > inl sleep' (n : i32) : () =
00:20:07 verbose #21576 > >     run_target function
00:20:07 verbose #21577 > >         | Fsharp (Native) => fun () => $'System.Threading.Thread.Sleep' n
00:20:07 verbose #21578 > >         | _ => fun () => ()
00:20:07 verbose #21579 > 00:20:07   debug #1268 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/16bc860a351e74573e672c4df2867172d44b207de0c09827ac2c51f5688df7bb/main.spi
00:20:07 verbose #21580 > >
00:20:07 verbose #21581 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:07 verbose #21582 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:07 verbose #21583 > > │ ### thread                                                                   │
00:20:07 verbose #21584 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:07 verbose #21585 > >
00:20:07 verbose #21586 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:07 verbose #21587 > > nominal thread = $'System.Threading.Thread'
00:20:08 verbose #21588 > 00:20:07   debug #1269 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/35cc0380233a09668ded9a82dd0ba896693a139da8599b9aa1f93488cd7f9fd2/main.spi
00:20:08 verbose #21589 > >
00:20:08 verbose #21590 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:08 verbose #21591 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:08 verbose #21592 > > │ ### cancellation_token                                                       │
00:20:08 verbose #21593 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:08 verbose #21594 > >
00:20:08 verbose #21595 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:08 verbose #21596 > > nominal cancellation_token = $'System.Threading.CancellationToken'
00:20:08 verbose #21597 > 00:20:07   debug #1270 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a59073e17fbf8eacfcda79cb29108743cf8c9f2b33ec6685435d470c07457283/main.spi
00:20:08 verbose #21598 > >
00:20:08 verbose #21599 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:08 verbose #21600 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:08 verbose #21601 > > │ ### cancellation_token_source                                                │
00:20:08 verbose #21602 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:08 verbose #21603 > >
00:20:08 verbose #21604 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:08 verbose #21605 > > nominal cancellation_token_source = $'System.Threading.CancellationTokenSource'
00:20:08 verbose #21606 > 00:20:08   debug #1271 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1222bae21c1aa0d42ad199dc78d1e71072e94841b3a61ab540d598ba861b087a/main.spi
00:20:09 verbose #21607 > >
00:20:09 verbose #21608 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:09 verbose #21609 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:09 verbose #21610 > > │ ### cancellation_token_registration                                          │
00:20:09 verbose #21611 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:09 verbose #21612 > >
00:20:09 verbose #21613 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:09 verbose #21614 > > nominal cancellation_token_registration =
00:20:09 verbose #21615 > > $'System.Threading.CancellationTokenRegistration'
00:20:09 verbose #21616 > 00:20:08   debug #1272 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/98706d4b73ff8e14e5ba64a916e0043ddfe30dc352f751f65c9fd24ecd6068a7/main.spi
00:20:09 verbose #21617 > >
00:20:09 verbose #21618 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:09 verbose #21619 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:09 verbose #21620 > > │ ### cancellation_source_token                                                │
00:20:09 verbose #21621 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:09 verbose #21622 > >
00:20:09 verbose #21623 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:09 verbose #21624 > > inl cancellation_source_token (x : cancellation_token_source) :
00:20:09 verbose #21625 > > cancellation_token =
00:20:09 verbose #21626 > >     $'!x.Token'
00:20:09 verbose #21627 > 00:20:08   debug #1273 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7cabc353cea408bc6ccf7dbb84b17e8680c5febbcffc1d1b03c55f69170510e7/main.spi
00:20:09 verbose #21628 > >
00:20:09 verbose #21629 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:09 verbose #21630 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:09 verbose #21631 > > │ ### cancellation_source_cancel                                               │
00:20:09 verbose #21632 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:09 verbose #21633 > >
00:20:09 verbose #21634 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:09 verbose #21635 > > inl cancellation_source_cancel (x : cancellation_token_source) : () =
00:20:09 verbose #21636 > >     run_target function
00:20:09 verbose #21637 > >         | Fsharp (Native) => fun () =>
00:20:09 verbose #21638 > >             $'!x.Cancel' ()
00:20:09 verbose #21639 > >         | _ => fun () => null ()
00:20:09 verbose #21640 > 00:20:09   debug #1274 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/03d75bf9faa8d477bfee5c748c3714296349711dcde8691b8fc7d5961a706427/main.spi
00:20:10 verbose #21641 > >
00:20:10 verbose #21642 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:10 verbose #21643 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:10 verbose #21644 > > │ ### create_linked_token_source                                               │
00:20:10 verbose #21645 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:10 verbose #21646 > >
00:20:10 verbose #21647 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:10 verbose #21648 > > inl create_linked_token_source (x : array_base cancellation_token) :
00:20:10 verbose #21649 > > cancellation_token_source =
00:20:10 verbose #21650 > >     x |> $'System.Threading.CancellationTokenSource.CreateLinkedTokenSource'
00:20:10 verbose #21651 > 00:20:09   debug #1275 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6f8f0c7a2b77e02f59f3bc16ef02329bfbfa1687b5c7d877d7017ac3eca6527f/main.spi
00:20:10 verbose #21652 > >
00:20:10 verbose #21653 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:10 verbose #21654 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:10 verbose #21655 > > │ ### concurrent_stack                                                         │
00:20:10 verbose #21656 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:10 verbose #21657 > >
00:20:10 verbose #21658 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:10 verbose #21659 > > nominal concurrent_stack t =
00:20:10 verbose #21660 > > $'System.Collections.Concurrent.ConcurrentStack<`t>'
00:20:10 verbose #21661 > 00:20:09   debug #1276 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f98567933e1ecc9adb876cab3206c6020a1faf0920f8d15847269357bec62fe3/main.spi
00:20:10 verbose #21662 > >
00:20:10 verbose #21663 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:10 verbose #21664 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:10 verbose #21665 > > │ ### concurrent_stack_push                                                    │
00:20:10 verbose #21666 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:10 verbose #21667 > >
00:20:10 verbose #21668 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:10 verbose #21669 > > inl concurrent_stack_push forall t. (item : t) (stack : concurrent_stack t) : ()
00:20:10 verbose #21670 > > =
00:20:10 verbose #21671 > >     $'!stack.Push' item
00:20:11 verbose #21672 > 00:20:10   debug #1277 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7826ef3e86c3e86ef0ac43aaef190b1696f76266aca05de76d98bd4b2cbe2878/main.spi
00:20:11 verbose #21673 > >
00:20:11 verbose #21674 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:11 verbose #21675 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:11 verbose #21676 > > │ ### token_none                                                               │
00:20:11 verbose #21677 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:11 verbose #21678 > >
00:20:11 verbose #21679 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:11 verbose #21680 > > inl token_none () : cancellation_token =
00:20:11 verbose #21681 > >     $'`cancellation_token.None'
00:20:11 verbose #21682 > 00:20:10   debug #1278 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/26ccf7a15944b7763b1931a26263ef0b89ed7a9ce905c66ee7c9414360bc82f7/main.spi
00:20:11 verbose #21683 > >
00:20:11 verbose #21684 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:11 verbose #21685 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:11 verbose #21686 > > │ ### new_concurrent_stack                                                     │
00:20:11 verbose #21687 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:11 verbose #21688 > >
00:20:11 verbose #21689 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:11 verbose #21690 > > inl new_concurrent_stack forall t. () : concurrent_stack t =
00:20:11 verbose #21691 > >     $'System.Collections.Concurrent.ConcurrentStack<`t>' ()
00:20:11 verbose #21692 > 00:20:11   debug #1279 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c213f8624049650d2fe0a23d07306317aaf338ed721d57901572790771df3571/main.spi
00:20:11 verbose #21693 > >
00:20:11 verbose #21694 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:11 verbose #21695 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:11 verbose #21696 > > │ ### token_register                                                           │
00:20:11 verbose #21697 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:11 verbose #21698 > >
00:20:11 verbose #21699 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:11 verbose #21700 > > inl token_register (fn : () -> ()) (ct : cancellation_token) :
00:20:11 verbose #21701 > > cancellation_token_registration =
00:20:11 verbose #21702 > >     fn |> $'!ct.Register'
00:20:12 verbose #21703 > 00:20:11   debug #1280 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/62198b54e6866233463d15c70b96f420ecdd5df340cc11fcf29ecd250bce2390/main.spi
00:20:12 verbose #21704 > >
00:20:12 verbose #21705 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:12 verbose #21706 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:12 verbose #21707 > > │ ### new_cancellation_token_source                                            │
00:20:12 verbose #21708 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:12 verbose #21709 > >
00:20:12 verbose #21710 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:12 verbose #21711 > > inl new_cancellation_token_source () : cancellation_token_source =
00:20:12 verbose #21712 > >     $'new `cancellation_token_source ()'
00:20:12 verbose #21713 > 00:20:11   debug #1281 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/87a2eb5f5ea097a255a3439bdf4a9cb8d629ead113be2d8005a5228df59854c3/main.spi
00:20:12 verbose #21714 > >
00:20:12 verbose #21715 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:12 verbose #21716 > > inl token_cancellation_requested (ct : cancellation_token) : bool =
00:20:12 verbose #21717 > >     $'!ct.IsCancellationRequested'
00:20:12 verbose #21718 > 00:20:12   debug #1282 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/cf97efcfd256b46657343806b7fe022a0b9443cbb37ff0d76a5d9f931ef805e7/main.spi
00:20:13 verbose #21719 > >
00:20:13 verbose #21720 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:13 verbose #21721 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:13 verbose #21722 > > │ ### new_disposable_token                                                     │
00:20:13 verbose #21723 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:13 verbose #21724 > >
00:20:13 verbose #21725 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:13 verbose #21726 > > inl new_disposable_token (merge_token : optionm'.option' cancellation_token) =
00:20:13 verbose #21727 > >     run_target function
00:20:13 verbose #21728 > >         | Fsharp (Native) => fun () =>
00:20:13 verbose #21729 > >             inl cts = new_cancellation_token_source ()
00:20:13 verbose #21730 > >             inl cts =
00:20:13 verbose #21731 > >                 match merge_token |> optionm'.unbox with
00:20:13 verbose #21732 > >                 | None => cts
00:20:13 verbose #21733 > >                 | Some merge_token =>
00:20:13 verbose #21734 > >                     create_linked_token_source ;[[ cts |>
00:20:13 verbose #21735 > > cancellation_source_token; merge_token ]]
00:20:13 verbose #21736 > >             inl disposable : _ () = new_disposable fun () =>
00:20:13 verbose #21737 > >                 cts |> cancellation_source_cancel
00:20:13 verbose #21738 > >             cts |> cancellation_source_token, disposable
00:20:13 verbose #21739 > >         | _ => fun () => null ()
00:20:13 verbose #21740 > 00:20:12   debug #1283 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2778b55d25e4ee4f32d4796a89ea5d429176594132e73de08c95b4475adfcfb8/main.spi
00:20:13 verbose #21741 > >
00:20:13 verbose #21742 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:13 verbose #21743 > > //// test
00:20:13 verbose #21744 > >
00:20:13 verbose #21745 > > inl run fn =
00:20:13 verbose #21746 > >     inl token, disposable = new_disposable_token (None |> optionm'.box)
00:20:13 verbose #21747 > >     disposable |> use |> ignore
00:20:13 verbose #21748 > >     fn token
00:20:13 verbose #21749 > >     fun () =>
00:20:13 verbose #21750 > >         fn token
00:20:13 verbose #21751 > >     |> async.new_async
00:20:13 verbose #21752 > >     |> async.start
00:20:13 verbose #21753 > >
00:20:13 verbose #21754 > > fun () =>
00:20:13 verbose #21755 > >     inl counter = mut 0i32
00:20:13 verbose #21756 > >
00:20:13 verbose #21757 > >     inl fn (token : cancellation_token) =
00:20:13 verbose #21758 > >         counter <- *counter + (if token |> token_cancellation_requested then 10
00:20:13 verbose #21759 > > else 1)
00:20:13 verbose #21760 > >
00:20:13 verbose #21761 > >     join run fn
00:20:13 verbose #21762 > >     async.sleep 10 |> async.do
00:20:13 verbose #21763 > >     return *counter
00:20:13 verbose #21764 > > |> async.new_async_unit
00:20:13 verbose #21765 > > |> async.run_synchronously
00:20:13 verbose #21766 > > |> _assert_eq 11i32
00:20:13 verbose #21767 > 00:20:12   debug #1284 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ca0ad9af7082700cc3b1b7345bf3370c5ccdde86228e053ec4769bdf4b61e8bd/main.spi
00:20:15 verbose #21768 > >
00:20:15 verbose #21769 > > ╭─[ 1.92s - stdout ]───────────────────────────────────────────────────────────╮
00:20:15 verbose #21770 > > │ assert_eq / actual: 11 / expected: 11                                        │
00:20:15 verbose #21771 > > │                                                                              │
00:20:15 verbose #21772 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:15 verbose #21773 > >
00:20:15 verbose #21774 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:15 verbose #21775 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:15 verbose #21776 > > │ ## main                                                                      │
00:20:15 verbose #21777 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:15 verbose #21778 > >
00:20:15 verbose #21779 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:15 verbose #21780 > > inl main () =
00:20:15 verbose #21781 > >     $'let new_disposable_token x = !new_disposable_token x' : ()
00:20:15 verbose #21782 > 00:20:14   debug #1285 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/714ba3fb5111e240d31aac70060ea2a8414c319d5f571840a831c1ecf5057bfd/main.spi
00:20:15 verbose #21783 > 00:00:25 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 23894 }
00:20:15 verbose #21784 > 00:00:25   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/spiral/threading.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/threading.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:20:17 verbose #21785 > 00:00:27 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/threading.dib.ipynb to html
00:20:17 verbose #21786 > 00:00:27 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:20:17 verbose #21787 > 00:00:27 verbose #7 !   validate(nb)
00:20:20 verbose #21788 > 00:00:29 verbose #8 ! [NbConvertApp] Writing 343734 bytes to c:\home\git\polyglot\lib\spiral\threading.dib.html
00:20:20 verbose #21789 > 00:00:29 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 649 }
00:20:20 verbose #21790 > 00:00:29   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 649 }
00:20:20 verbose #21791 > 00:00:29   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/threading.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/threading.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:20:21 verbose #21792 > 00:00:30 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:20:21 verbose #21793 > 00:00:30   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:20:21 verbose #21794 > 00:00:31   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 24602 }
00:20:21   debug #21795 runtime.execute_with_options_async / { exit_code = 0; output_length = 28222 }
00:20:21   debug #29 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path threading.dib --retries 3
00:20:21   debug #21796 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path benchmark.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:20:22 verbose #21797 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "benchmark.dib", "--retries", "3"])) }
00:20:22 verbose #21798 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/spiral/benchmark.dib", "--output-path", "c:/home/git/polyglot/lib/spiral/benchmark.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/benchmark.dib" --output-path "c:/home/git/polyglot/lib/spiral/benchmark.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:20:24 verbose #21799 > >
00:20:24 verbose #21800 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:24 verbose #21801 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:24 verbose #21802 > > │ ## benchmark                                                                 │
00:20:24 verbose #21803 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:28 verbose #21804 > >
00:20:28 verbose #21805 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:28 verbose #21806 > > //// test
00:20:28 verbose #21807 > >
00:20:28 verbose #21808 > > open testing
00:20:29 verbose #21809 > 00:20:28   debug #1286 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fa7845de436c12d0ca65282fe0cd65832468ca943e72feba50e6b1bb441e251a/main.spi
00:20:30 verbose #21810 > >
00:20:30 verbose #21811 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:30 verbose #21812 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:30 verbose #21813 > > │ ## fsharp                                                                    │
00:20:30 verbose #21814 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:30 verbose #21815 > >
00:20:30 verbose #21816 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:30 verbose #21817 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:30 verbose #21818 > > │ ### test_case_result                                                         │
00:20:30 verbose #21819 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:30 verbose #21820 > >
00:20:30 verbose #21821 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:30 verbose #21822 > > type test_case_result =
00:20:30 verbose #21823 > >     {
00:20:30 verbose #21824 > >         input : string
00:20:30 verbose #21825 > >         expected : string
00:20:30 verbose #21826 > >         result : string
00:20:30 verbose #21827 > >         time_list : array_base i64
00:20:30 verbose #21828 > >     }
00:20:30 verbose #21829 > 00:20:29   debug #1287 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/15d929cf08c028299e48d797581c0a711100163c268b9ffb95fc65527ed60c03/main.spi
00:20:30 verbose #21830 > >
00:20:30 verbose #21831 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:30 verbose #21832 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:30 verbose #21833 > > │ ### invoke                                                                   │
00:20:30 verbose #21834 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:30 verbose #21835 > >
00:20:30 verbose #21836 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:30 verbose #21837 > > inl invoke forall t. count (fn : () -> t) =
00:20:30 verbose #21838 > >     runtime.gc_collect ()
00:20:30 verbose #21839 > >     inl stopwatch = date_time.stopwatch ()
00:20:30 verbose #21840 > >     stopwatch |> date_time.stopwatch_start
00:20:30 verbose #21841 > >     inl time1 = stopwatch |> date_time.stopwatch_elapsed_milliseconds
00:20:30 verbose #21842 > >     inl result : t =
00:20:30 verbose #21843 > >         am'.init_series 0 count 1i32
00:20:30 verbose #21844 > >         |> fun x => a x : _ int _
00:20:30 verbose #21845 > >         |> am'.parallel_map fun _n => fn ()
00:20:30 verbose #21846 > >         |> am'.last
00:20:30 verbose #21847 > >     inl time2 = (stopwatch |> date_time.stopwatch_elapsed_milliseconds) - time1
00:20:30 verbose #21848 > >     result, time2
00:20:30 verbose #21849 > 00:20:30   debug #1288 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/712c2d68277aab0d37869991c25bac3a3ef50db8d1a1a6771f389950716dadd5/main.spi
00:20:31 verbose #21850 > >
00:20:31 verbose #21851 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:31 verbose #21852 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:31 verbose #21853 > > │ ### run                                                                      │
00:20:31 verbose #21854 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:31 verbose #21855 > >
00:20:31 verbose #21856 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:31 verbose #21857 > > inl run forall input expected.
00:20:31 verbose #21858 > >     count
00:20:31 verbose #21859 > >     (solutions : list (string * (input -> expected)))
00:20:31 verbose #21860 > >     ((input, expected) : (input * expected))
00:20:31 verbose #21861 > >     : test_case_result
00:20:31 verbose #21862 > >     =
00:20:31 verbose #21863 > >     inl input_str = input |> sm'.format_debug
00:20:31 verbose #21864 > >
00:20:31 verbose #21865 > >     console.write_line ""
00:20:31 verbose #21866 > >     trace Verbose
00:20:31 verbose #21867 > >         fun () => $'$"benchmark.run"'
00:20:31 verbose #21868 > >         fun () => { input_str = input_str |> sm'.ellipsis_end 40 }
00:20:31 verbose #21869 > >
00:20:31 verbose #21870 > >     inl results_with_time : array_base _ =
00:20:31 verbose #21871 > >         solutions
00:20:31 verbose #21872 > >         |> listm'.indexed
00:20:31 verbose #21873 > >         |> listm'.box
00:20:31 verbose #21874 > >         |> listm'.to_array'
00:20:31 verbose #21875 > >         |> am'.map_base fun ((i : int), (test_name, solution)) =>
00:20:31 verbose #21876 > >             inl result, time =
00:20:31 verbose #21877 > >                 fun () => solution input
00:20:31 verbose #21878 > >                 |> invoke count
00:20:31 verbose #21879 > >             trace Verbose
00:20:31 verbose #21880 > >                 fun () => $'$"benchmark.run / solutions.map"'
00:20:31 verbose #21881 > >                 fun () => { i = i + 1; test_name time }
00:20:31 verbose #21882 > >             result, time
00:20:31 verbose #21883 > >
00:20:31 verbose #21884 > >     match results_with_time |> am'.map_base fst with
00:20:31 verbose #21885 > >     | array when (array |> (fun x => a x : _ int _) |> am'.length) <= 1 => ()
00:20:31 verbose #21886 > >     | array when array |> (fun x => a x : _ int _) |> am.forall' ((=) (array |>
00:20:31 verbose #21887 > > (fun x => a x : _ int _) |> am'.index 0)) => ()
00:20:31 verbose #21888 > >     | results => failwith ($'$"benchmark.run / error / results: {!results}"' :
00:20:31 verbose #21889 > > string)
00:20:31 verbose #21890 > >
00:20:31 verbose #21891 > >     {
00:20:31 verbose #21892 > >         input = input_str
00:20:31 verbose #21893 > >         expected = expected |> sm'.format_debug
00:20:31 verbose #21894 > >         result = results_with_time |> am'.map_base fst |> (fun x => a x : _ int
00:20:31 verbose #21895 > > _) |> am'.index 0 |> sm'.format_debug
00:20:31 verbose #21896 > >         time_list = results_with_time |> am'.map_base snd
00:20:31 verbose #21897 > >     }
00:20:31 verbose #21898 > 00:20:30   debug #1289 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a58d85ac241e292350c694f056d3396d8090089e951cd8567adff0553d396e3b/main.spi
00:20:31 verbose #21899 > >
00:20:31 verbose #21900 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:31 verbose #21901 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:31 verbose #21902 > > │ ### run_all                                                                  │
00:20:31 verbose #21903 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:31 verbose #21904 > >
00:20:31 verbose #21905 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:31 verbose #21906 > > inl run_all forall input expected.
00:20:31 verbose #21907 > >     test_name
00:20:31 verbose #21908 > >     count
00:20:31 verbose #21909 > >     (solutions : list (string * (input -> expected)))
00:20:31 verbose #21910 > >     test_cases
00:20:31 verbose #21911 > >     =
00:20:31 verbose #21912 > >     console.write_line ""
00:20:31 verbose #21913 > >     console.write_line "```"
00:20:31 verbose #21914 > >     trace Verbose
00:20:31 verbose #21915 > >         fun () => $'$"benchmark.run_all"'
00:20:31 verbose #21916 > >         fun () => { test_name count }
00:20:31 verbose #21917 > >     test_cases
00:20:31 verbose #21918 > >     |> listm'.box
00:20:31 verbose #21919 > >     |> listm'.to_array'
00:20:31 verbose #21920 > >     |> am'.map_base (run count solutions)
00:20:31 verbose #21921 > 00:20:30   debug #1290 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/76308705ec2a82227c9e0f4f3cf3114c2531985fad51c8cc4058f4f3f3fe823a/main.spi
00:20:31 verbose #21922 > >
00:20:31 verbose #21923 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:31 verbose #21924 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:31 verbose #21925 > > │ ### sort_result_list                                                         │
00:20:31 verbose #21926 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:31 verbose #21927 > >
00:20:31 verbose #21928 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:31 verbose #21929 > > inl sort_result_list results =
00:20:31 verbose #21930 > >     inl table =
00:20:31 verbose #21931 > >         inl rows =
00:20:31 verbose #21932 > >             results
00:20:31 verbose #21933 > >             |> am'.map_base fun (result : test_case_result) =>
00:20:31 verbose #21934 > >                 inl best =
00:20:31 verbose #21935 > >                     result.time_list
00:20:31 verbose #21936 > >                     |> am'.indexed
00:20:31 verbose #21937 > >                     |> am'.map_base fun (i, time) =>
00:20:31 verbose #21938 > >                         i + 1i32, time
00:20:31 verbose #21939 > >                     |> fun x => a x : _ int _
00:20:31 verbose #21940 > >                     |> am'.sort_by snd
00:20:31 verbose #21941 > >                     |> am'.index 0i32
00:20:31 verbose #21942 > >                     |> sm'.format
00:20:31 verbose #21943 > >                 inl row =
00:20:31 verbose #21944 > >                     [[
00:20:31 verbose #21945 > >                         result.input |> sm'.ellipsis_end 40 |> sm'.replace "|"
00:20:31 verbose #21946 > > ""
00:20:31 verbose #21947 > >                         result.expected
00:20:31 verbose #21948 > >                         result.result
00:20:31 verbose #21949 > >                         best
00:20:31 verbose #21950 > >                     ]]
00:20:31 verbose #21951 > >                 inl color : option console.console_color =
00:20:31 verbose #21952 > >                     open console
00:20:31 verbose #21953 > >                     match result.expected = result.result with
00:20:31 verbose #21954 > >                     | true => Some $'`console_color.DarkGreen'
00:20:31 verbose #21955 > >                     | false => Some $'`console_color.DarkRed'
00:20:31 verbose #21956 > >                 row, color
00:20:31 verbose #21957 > >
00:20:31 verbose #21958 > >         inl header =
00:20:31 verbose #21959 > >             [[
00:20:31 verbose #21960 > >                 [[
00:20:31 verbose #21961 > >                     "input"
00:20:31 verbose #21962 > >                     "expected"
00:20:31 verbose #21963 > >                     "result"
00:20:31 verbose #21964 > >                     "best"
00:20:31 verbose #21965 > >                 ]]
00:20:31 verbose #21966 > >                 [[
00:20:31 verbose #21967 > >                     "---"
00:20:31 verbose #21968 > >                     "---"
00:20:31 verbose #21969 > >                     "---"
00:20:31 verbose #21970 > >                     "---"
00:20:31 verbose #21971 > >                 ]]
00:20:31 verbose #21972 > >             ]]
00:20:31 verbose #21973 > >             |> listm.map fun row => row, None
00:20:31 verbose #21974 > >             |> listm'.box
00:20:31 verbose #21975 > >             |> listm'.to_array'
00:20:31 verbose #21976 > >             |> fun x => a x : _ int _
00:20:31 verbose #21977 > >         a rows
00:20:31 verbose #21978 > >         |> am.append header
00:20:31 verbose #21979 > >         |> fun (a x) => x
00:20:31 verbose #21980 > >
00:20:31 verbose #21981 > >     inl formatted_table =
00:20:31 verbose #21982 > >         inl length_map : mapm.map i32 i64 =
00:20:31 verbose #21983 > >             table
00:20:31 verbose #21984 > >             |> am'.map_base (fst >> listm'.box >> listm'.to_array')
00:20:31 verbose #21985 > >             |> am'.transpose
00:20:31 verbose #21986 > >             |> am'.map_base fun column =>
00:20:31 verbose #21987 > >                 column
00:20:31 verbose #21988 > >                 |> am'.map_base sm.length
00:20:31 verbose #21989 > >                 |> fun x => a x : _ int _
00:20:31 verbose #21990 > >                 |> am'.sort_descending
00:20:31 verbose #21991 > >                 |> am'.try_item 0i32
00:20:31 verbose #21992 > >                 |> optionm'.default_value 0i64
00:20:31 verbose #21993 > >             |> am'.indexed
00:20:31 verbose #21994 > >             |> fun x => a x : _ int _
00:20:31 verbose #21995 > >             |> mapm.of_array
00:20:31 verbose #21996 > >         table
00:20:31 verbose #21997 > >         |> am'.map_base fun (row, color) =>
00:20:31 verbose #21998 > >             inl new_row =
00:20:31 verbose #21999 > >                 row
00:20:31 verbose #22000 > >                 |> listm'.indexed
00:20:31 verbose #22001 > >                 |> listm.map fun (i, cell) =>
00:20:31 verbose #22002 > >                     cell |> sm'.pad_right (length_map |> mapm.item i |> conv) '
00:20:31 verbose #22003 > > '
00:20:31 verbose #22004 > >                 |> listm'.box
00:20:31 verbose #22005 > >                 |> listm'.to_array'
00:20:31 verbose #22006 > >             new_row, color
00:20:31 verbose #22007 > >
00:20:31 verbose #22008 > >     console.write_line "```"
00:20:31 verbose #22009 > >     formatted_table
00:20:31 verbose #22010 > >     |> fun x => a x : _ int _
00:20:31 verbose #22011 > >     |> am'.to_list'
00:20:31 verbose #22012 > >     |> listm'.unbox
00:20:31 verbose #22013 > >     |> listm.iter fun (row, color) =>
00:20:31 verbose #22014 > >         match color with
00:20:31 verbose #22015 > >         | Some color => color |> console.set_foreground_color
00:20:31 verbose #22016 > >         | None => console.reset_color ()
00:20:31 verbose #22017 > >
00:20:31 verbose #22018 > >         a row |> sm'.join' "\t| " |> console.write_line
00:20:31 verbose #22019 > >
00:20:31 verbose #22020 > >         console.reset_color ()
00:20:31 verbose #22021 > >
00:20:31 verbose #22022 > >     inl averages =
00:20:31 verbose #22023 > >         results
00:20:31 verbose #22024 > >         |> am'.map_base fun result =>
00:20:31 verbose #22025 > >             result.time_list
00:20:31 verbose #22026 > >             |> am'.map_base ($'float' : i64 -> f64)
00:20:31 verbose #22027 > >         |> am'.transpose
00:20:31 verbose #22028 > >         |> am'.map_base ((fun x => a x : _ int _) >> am'.average)
00:20:31 verbose #22029 > >         |> am'.map_base ($'int64' : f64 -> i64)
00:20:31 verbose #22030 > >         |> am'.indexed
00:20:31 verbose #22031 > >         |> fun x => a x : _ u64 _
00:20:31 verbose #22032 > >
00:20:31 verbose #22033 > >     console.write_line "```"
00:20:31 verbose #22034 > >     averages
00:20:31 verbose #22035 > >     |> am'.sort_by snd
00:20:31 verbose #22036 > >     |> am'.to_list'
00:20:31 verbose #22037 > >     |> listm'.unbox
00:20:31 verbose #22038 > >     |> listm.iter fun ((i : i32), avg) =>
00:20:31 verbose #22039 > >         trace Verbose
00:20:31 verbose #22040 > >             fun () => $'$"benchmark.sort_result_list / averages.iter"'
00:20:31 verbose #22041 > >             fun () => { i = i + 1; avg }
00:20:31 verbose #22042 > >     console.write_line "```"
00:20:31 verbose #22043 > 00:20:31   debug #1291 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/913d029af6f4d88ef331628f0142cceef774ceceaae5c0bd31a7192ed49afca3/main.spi
00:20:32 verbose #22044 > >
00:20:32 verbose #22045 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:32 verbose #22046 > > //// test
00:20:32 verbose #22047 > >
00:20:32 verbose #22048 > > inl is_fast () =
00:20:32 verbose #22049 > >     false
00:20:32 verbose #22050 > 00:20:31   debug #1292 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/cbdbb70747f799eb260ebfa6040ad17c949ee4084ba824aa65ab2d9a77d2c726/main.spi
00:20:32 verbose #22051 > >
00:20:32 verbose #22052 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:32 verbose #22053 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:32 verbose #22054 > > │ ### empty2Tests                                                              │
00:20:32 verbose #22055 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:32 verbose #22056 > >
00:20:32 verbose #22057 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:32 verbose #22058 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:32 verbose #22059 > > │ Test: Empty2                                                                 │
00:20:32 verbose #22060 > > │                                                                              │
00:20:32 verbose #22061 > > │ Solution: (a, a)                                                             │
00:20:32 verbose #22062 > > │ Test case 1. A. Time: 59L                                                    │
00:20:32 verbose #22063 > > │                                                                              │
00:20:32 verbose #22064 > > │ Solution: (a, a)                                                             │
00:20:32 verbose #22065 > > │ Test case 1. A. Time: 53L                                                    │
00:20:32 verbose #22066 > > │                                                                              │
00:20:32 verbose #22067 > > │ Input   | Expected        | Result  | Best                                   │
00:20:32 verbose #22068 > > │ ---     | ---             | ---     | ---                                    │
00:20:32 verbose #22069 > > │ (a, a)  | a               | a       | (1, 59)                                │
00:20:32 verbose #22070 > > │ (a, a)  | a               | a       | (1, 53)                                │
00:20:32 verbose #22071 > > │                                                                              │
00:20:32 verbose #22072 > > │ Averages                                                                     │
00:20:32 verbose #22073 > > │ Test case 1. Average Time: 56L                                               │
00:20:32 verbose #22074 > > │                                                                              │
00:20:32 verbose #22075 > > │ Ranking                                                                      │
00:20:32 verbose #22076 > > │ Test case 1. Average Time: 56L                                               │
00:20:32 verbose #22077 > > │                                                                              │
00:20:32 verbose #22078 > > │ ---                                                                          │
00:20:32 verbose #22079 > > │                                                                              │
00:20:32 verbose #22080 > > │                                                                              │
00:20:32 verbose #22081 > > │ ```                                                                          │
00:20:32 verbose #22082 > > │ 01:12:03 verbose #1 benchmark.run_all / {count = 2000000; test_name =   │
00:20:32 verbose #22083 > > │ empty_2_tests}                                                               │
00:20:32 verbose #22084 > > │ 01:12:03 verbose #2 benchmark.run / {count = 2000000; expected = a;     │
00:20:32 verbose #22085 > > │ input = a, a; input_str = struct ("a", "a")}                                 │
00:20:32 verbose #22086 > > │ 01:12:03 verbose #3 benchmark.run / solutions.map / {count = 2000000;   │
00:20:32 verbose #22087 > > │ expected = a; i = 0; input = a, a; input_str = struct ("a", "a"); test_name  │
00:20:32 verbose #22088 > > │ = A; time = 119}                                                             │
00:20:32 verbose #22089 > > │ 01:12:04 verbose #4 benchmark.run / solutions.map / {count = 2000000;   │
00:20:32 verbose #22090 > > │ expected = a; i = 1; input = a, a; input_str = struct ("a", "a"); test_name  │
00:20:32 verbose #22091 > > │ = B; time = 122}                                                             │
00:20:32 verbose #22092 > > │ 01:12:04 verbose #5 benchmark.run / {count = 2000000; expected = b;     │
00:20:32 verbose #22093 > > │ input = b, b; input_str = struct ("b", "b")}                                 │
00:20:32 verbose #22094 > > │ 01:12:04 verbose #6 benchmark.run / solutions.map / {count = 2000000;   │
00:20:32 verbose #22095 > > │ expected = b; i = 0; input = b, b; input_str = struct ("b", "b"); test_name  │
00:20:32 verbose #22096 > > │ = A; time = 110}                                                             │
00:20:32 verbose #22097 > > │ 01:12:04 verbose #7 benchmark.run / solutions.map / {count = 2000000;   │
00:20:32 verbose #22098 > > │ expected = b; i = 1; input = b, b; input_str = struct ("b", "b"); test_name  │
00:20:32 verbose #22099 > > │ = B; time = 120}                                                             │
00:20:32 verbose #22100 > > │ ```                                                                          │
00:20:32 verbose #22101 > > │ Input            	| Expected	| Result	| Best                                       │
00:20:32 verbose #22102 > > │ ---              	| ---     	| ---   	| ---                                        │
00:20:32 verbose #22103 > > │ struct ("a", "a")	| "a"     	| "a"   	| struct (1L, 119L)                          │
00:20:32 verbose #22104 > > │ struct ("b", "b")	| "b"     	| "b"   	| struct (1L, 110L)                          │
00:20:32 verbose #22105 > > │ ```                                                                          │
00:20:32 verbose #22106 > > │ 01:12:04 verbose #8 benchmark.sort_result_list / averages.iter / {avg = │
00:20:32 verbose #22107 > > │ 114; i = 0}                                                                  │
00:20:32 verbose #22108 > > │ 01:12:04 verbose #9 benchmark.sort_result_list / averages.iter / {avg = │
00:20:32 verbose #22109 > > │ 121; i = 1}                                                                  │
00:20:32 verbose #22110 > > │ ```                                                                          │
00:20:32 verbose #22111 > > │ `                                                                            │
00:20:32 verbose #22112 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:32 verbose #22113 > >
00:20:32 verbose #22114 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:32 verbose #22115 > > //// test
00:20:32 verbose #22116 > >
00:20:32 verbose #22117 > > inl get_solutions () =
00:20:32 verbose #22118 > >     [[
00:20:32 verbose #22119 > >         "A",
00:20:32 verbose #22120 > >         fun (a, _b) =>
00:20:32 verbose #22121 > >             a
00:20:32 verbose #22122 > >
00:20:32 verbose #22123 > >         "B",
00:20:32 verbose #22124 > >         fun (_a, b) =>
00:20:32 verbose #22125 > >             b
00:20:32 verbose #22126 > >     ]]
00:20:32 verbose #22127 > >
00:20:32 verbose #22128 > > inl rec empty_2_tests () =
00:20:32 verbose #22129 > >     inl test_cases = [[
00:20:32 verbose #22130 > >         ("a", "a"), "a"
00:20:32 verbose #22131 > >         ("b", "b"), "b"
00:20:32 verbose #22132 > >     ]]
00:20:32 verbose #22133 > >
00:20:32 verbose #22134 > >     inl solutions = get_solutions ()
00:20:32 verbose #22135 > >
00:20:32 verbose #22136 > >     // inl is_fast () = true
00:20:32 verbose #22137 > >
00:20:32 verbose #22138 > >     inl count =
00:20:32 verbose #22139 > >         if is_fast ()
00:20:32 verbose #22140 > >         then 1000i32
00:20:32 verbose #22141 > >         else 2000000i32
00:20:32 verbose #22142 > >
00:20:32 verbose #22143 > >     run_all (reflection.nameof { empty_2_tests }) count solutions test_cases
00:20:32 verbose #22144 > >     |> sort_result_list
00:20:32 verbose #22145 > >
00:20:32 verbose #22146 > > empty_2_tests ()
00:20:32 verbose #22147 > 00:20:32   debug #1293 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5ad3762f3cc66fd0f2aec076f1d78ec99849752e580ba05ed9bba352313a8d98/main.spi
00:20:38 verbose #22148 > >
00:20:38 verbose #22149 > > ╭─[ 5.84s - stdout ]───────────────────────────────────────────────────────────╮
00:20:38 verbose #22150 > > │                                                                              │
00:20:38 verbose #22151 > > │ ```                                                                          │
00:20:38 verbose #22152 > > │ 00:00:00 verbose #1 benchmark.run_all / { test_name = empty_2_tests;    │
00:20:38 verbose #22153 > > │ count = 2000000 }                                                            │
00:20:38 verbose #22154 > > │                                                                              │
00:20:38 verbose #22155 > > │ 00:00:00 verbose #2 benchmark.run / { input_str = struct ("a", "a") }   │
00:20:38 verbose #22156 > > │ 00:00:00 verbose #3 benchmark.run / solutions.map / { i = 1; test_name  │
00:20:38 verbose #22157 > > │ = A; time = 253 }                                                            │
00:20:38 verbose #22158 > > │ 00:00:00 verbose #4 benchmark.run / solutions.map / { i = 2; test_name  │
00:20:38 verbose #22159 > > │ = B; time = 137 }                                                            │
00:20:38 verbose #22160 > > │                                                                              │
00:20:38 verbose #22161 > > │ 00:00:00 verbose #5 benchmark.run / { input_str = struct ("b", "b") }   │
00:20:38 verbose #22162 > > │ 00:00:01 verbose #6 benchmark.run / solutions.map / { i = 1; test_name  │
00:20:38 verbose #22163 > > │ = A; time = 169 }                                                            │
00:20:38 verbose #22164 > > │ 00:00:01 verbose #7 benchmark.run / solutions.map / { i = 2; test_name  │
00:20:38 verbose #22165 > > │ = B; time = 177 }                                                            │
00:20:38 verbose #22166 > > │ ```                                                                          │
00:20:38 verbose #22167 > > │ input            	| expected	| result	| best                                       │
00:20:38 verbose #22168 > > │ ---              	| ---     	| ---   	| ---                                        │
00:20:38 verbose #22169 > > │ struct ("a", "a")	| "a"     	| "a"   	| 2, 137                                     │
00:20:38 verbose #22170 > > │ struct ("b", "b")	| "b"     	| "b"   	| 1, 169                                     │
00:20:38 verbose #22171 > > │ ```                                                                          │
00:20:38 verbose #22172 > > │ 00:00:01 verbose #8 benchmark.sort_result_list / averages.iter / { i =  │
00:20:38 verbose #22173 > > │ 2; avg = 157 }                                                               │
00:20:38 verbose #22174 > > │ 00:00:01 verbose #9 benchmark.sort_result_list / averages.iter / { i =  │
00:20:38 verbose #22175 > > │ 1; avg = 211 }                                                               │
00:20:38 verbose #22176 > > │ ```                                                                          │
00:20:38 verbose #22177 > > │                                                                              │
00:20:38 verbose #22178 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:38 verbose #22179 > >
00:20:38 verbose #22180 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:38 verbose #22181 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:38 verbose #22182 > > │ ### emptyTests                                                               │
00:20:38 verbose #22183 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:38 verbose #22184 > >
00:20:38 verbose #22185 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:38 verbose #22186 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:38 verbose #22187 > > │ Test: Empty                                                                  │
00:20:38 verbose #22188 > > │                                                                              │
00:20:38 verbose #22189 > > │ Solution: 0                                                                  │
00:20:38 verbose #22190 > > │ Test case 1. A. Time: 61L                                                    │
00:20:38 verbose #22191 > > │                                                                              │
00:20:38 verbose #22192 > > │ Solution: 2                                                                  │
00:20:38 verbose #22193 > > │ Test case 1. A. Time: 62L                                                    │
00:20:38 verbose #22194 > > │                                                                              │
00:20:38 verbose #22195 > > │ Solution: 5                                                                  │
00:20:38 verbose #22196 > > │ Test case 1. A. Time: 70L                                                    │
00:20:38 verbose #22197 > > │                                                                              │
00:20:38 verbose #22198 > > │ Input   | Expected        | Result  | Best                                   │
00:20:38 verbose #22199 > > │ ---     | ---             | ---     | ---                                    │
00:20:38 verbose #22200 > > │ 0       | 0               | 0       | (1, 61)                                │
00:20:38 verbose #22201 > > │ 2       | 2               | 2       | (1, 62)                                │
00:20:38 verbose #22202 > > │ 5       | 5               | 5       | (1, 70)                                │
00:20:38 verbose #22203 > > │                                                                              │
00:20:38 verbose #22204 > > │ Averages                                                                     │
00:20:38 verbose #22205 > > │ Test case 1. Average Time: 64L                                               │
00:20:38 verbose #22206 > > │                                                                              │
00:20:38 verbose #22207 > > │ Ranking                                                                      │
00:20:38 verbose #22208 > > │ Test case 1. Average Time: 64L                                               │
00:20:38 verbose #22209 > > │                                                                              │
00:20:38 verbose #22210 > > │ ---                                                                          │
00:20:38 verbose #22211 > > │                                                                              │
00:20:38 verbose #22212 > > │ ```                                                                          │
00:20:38 verbose #22213 > > │ 01:21:25 verbose #1 benchmark.run_all / {count = 2000000; test_name =   │
00:20:38 verbose #22214 > > │ empty_1_tests}                                                               │
00:20:38 verbose #22215 > > │ 01:21:25 verbose #2 benchmark.run / {count = 2000000; expected =        │
00:20:38 verbose #22216 > > │ +1.000000; input = +0.000000; input_str = 0.0}                               │
00:20:38 verbose #22217 > > │ 01:21:25 verbose #3 benchmark.run / solutions.map / {count = 2000000;   │
00:20:38 verbose #22218 > > │ expected = +1.000000; i = 0; input = +0.000000; input_str = 0.0; test_name = │
00:20:38 verbose #22219 > > │ A; time = 36}                                                                │
00:20:38 verbose #22220 > > │ 01:21:25 verbose #4 benchmark.run / {count = 2000000; expected =        │
00:20:38 verbose #22221 > > │ +3.000000; input = +2.000000; input_str = 2.0}                               │
00:20:38 verbose #22222 > > │ 01:21:25 verbose #5 benchmark.run / solutions.map / {count = 2000000;   │
00:20:38 verbose #22223 > > │ expected = +3.000000; i = 0; input = +2.000000; input_str = 2.0; test_name = │
00:20:38 verbose #22224 > > │ A; time = 20}                                                                │
00:20:38 verbose #22225 > > │ 01:21:25 verbose #6 benchmark.run / {count = 2000000; expected =        │
00:20:38 verbose #22226 > > │ +6.000000; input = +5.000000; input_str = 5.0}                               │
00:20:38 verbose #22227 > > │ 01:21:25 verbose #7 benchmark.run / solutions.map / {count = 2000000;   │
00:20:38 verbose #22228 > > │ expected = +6.000000; i = 0; input = +5.000000; input_str = 5.0; test_name = │
00:20:38 verbose #22229 > > │ A; time = 22}                                                                │
00:20:38 verbose #22230 > > │ ```                                                                          │
00:20:38 verbose #22231 > > │ Input	| Expected	| Result	| Best                                                   │
00:20:38 verbose #22232 > > │ ---  	| ---     	| ---   	| ---                                                    │
00:20:38 verbose #22233 > > │ 0.0  	| 1.0     	| 1.0   	| struct (1L, 36L)                                       │
00:20:38 verbose #22234 > > │ 2.0  	| 3.0     	| 3.0   	| struct (1L, 20L)                                       │
00:20:38 verbose #22235 > > │ 5.0  	| 6.0     	| 6.0   	| struct (1L, 22L)                                       │
00:20:38 verbose #22236 > > │ ```                                                                          │
00:20:38 verbose #22237 > > │ 01:21:25 verbose #8 benchmark.sort_result_list / averages.iter / {avg = │
00:20:38 verbose #22238 > > │ 26; i = 0}                                                                   │
00:20:38 verbose #22239 > > │ ```                                                                          │
00:20:38 verbose #22240 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:38 verbose #22241 > >
00:20:38 verbose #22242 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:38 verbose #22243 > > //// test
00:20:38 verbose #22244 > >
00:20:38 verbose #22245 > > inl get_solutions () =
00:20:38 verbose #22246 > >     [[
00:20:38 verbose #22247 > >         "A",
00:20:38 verbose #22248 > >         fun n =>
00:20:38 verbose #22249 > >             n + 1f64
00:20:38 verbose #22250 > >     ]]
00:20:38 verbose #22251 > >
00:20:38 verbose #22252 > > inl rec empty_1_tests () =
00:20:38 verbose #22253 > >     inl test_cases = [[
00:20:38 verbose #22254 > >         0, 1
00:20:38 verbose #22255 > >         2, 3
00:20:38 verbose #22256 > >         5, 6
00:20:38 verbose #22257 > >     ]]
00:20:38 verbose #22258 > >
00:20:38 verbose #22259 > >     inl solutions = get_solutions ()
00:20:38 verbose #22260 > >
00:20:38 verbose #22261 > >     // inl is_fast () = true
00:20:38 verbose #22262 > >
00:20:38 verbose #22263 > >     inl count =
00:20:38 verbose #22264 > >         if is_fast ()
00:20:38 verbose #22265 > >         then 1000i32
00:20:38 verbose #22266 > >         else 2000000i32
00:20:38 verbose #22267 > >
00:20:38 verbose #22268 > >     run_all (reflection.nameof { empty_1_tests }) count solutions test_cases
00:20:38 verbose #22269 > >     |> sort_result_list
00:20:38 verbose #22270 > >
00:20:38 verbose #22271 > > empty_1_tests ()
00:20:38 verbose #22272 > 00:20:37   debug #1294 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/42aba3e2b1b601b222b60b057e8550a2bfe1c46c8fa80af09eeee634db28aaab/main.spi
00:20:41 verbose #22273 > >
00:20:41 verbose #22274 > > ╭─[ 2.98s - stdout ]───────────────────────────────────────────────────────────╮
00:20:41 verbose #22275 > > │                                                                              │
00:20:41 verbose #22276 > > │ ```                                                                          │
00:20:41 verbose #22277 > > │ 00:00:00 verbose #1 benchmark.run_all / { test_name = empty_1_tests;    │
00:20:41 verbose #22278 > > │ count = 2000000 }                                                            │
00:20:41 verbose #22279 > > │                                                                              │
00:20:41 verbose #22280 > > │ 00:00:00 verbose #2 benchmark.run / { input_str = 0.0 }                 │
00:20:41 verbose #22281 > > │ 00:00:00 verbose #3 benchmark.run / solutions.map / { i = 1; test_name  │
00:20:41 verbose #22282 > > │ = A; time = 22 }                                                             │
00:20:41 verbose #22283 > > │                                                                              │
00:20:41 verbose #22284 > > │ 00:00:00 verbose #4 benchmark.run / { input_str = 2.0 }                 │
00:20:41 verbose #22285 > > │ 00:00:00 verbose #5 benchmark.run / solutions.map / { i = 1; test_name  │
00:20:41 verbose #22286 > > │ = A; time = 12 }                                                             │
00:20:41 verbose #22287 > > │                                                                              │
00:20:41 verbose #22288 > > │ 00:00:00 verbose #6 benchmark.run / { input_str = 5.0 }                 │
00:20:41 verbose #22289 > > │ 00:00:00 verbose #7 benchmark.run / solutions.map / { i = 1; test_name  │
00:20:41 verbose #22290 > > │ = A; time = 25 }                                                             │
00:20:41 verbose #22291 > > │ ```                                                                          │
00:20:41 verbose #22292 > > │ input	| expected	| result	| best                                                   │
00:20:41 verbose #22293 > > │ ---  	| ---     	| ---   	| ---                                                    │
00:20:41 verbose #22294 > > │ 0.0  	| 1.0     	| 1.0   	| 1, 22                                                  │
00:20:41 verbose #22295 > > │ 2.0  	| 3.0     	| 3.0   	| 1, 12                                                  │
00:20:41 verbose #22296 > > │ 5.0  	| 6.0     	| 6.0   	| 1, 25                                                  │
00:20:41 verbose #22297 > > │ ```                                                                          │
00:20:41 verbose #22298 > > │ 00:00:00 verbose #8 benchmark.sort_result_list / averages.iter / { i =  │
00:20:41 verbose #22299 > > │ 1; avg = 19 }                                                                │
00:20:41 verbose #22300 > > │ ```                                                                          │
00:20:41 verbose #22301 > > │                                                                              │
00:20:41 verbose #22302 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:41 verbose #22303 > 00:00:19 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 24858 }
00:20:41 verbose #22304 > 00:00:19   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/spiral/benchmark.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/benchmark.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:20:44 verbose #22305 > 00:00:22 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/benchmark.dib.ipynb to html
00:20:44 verbose #22306 > 00:00:22 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:20:44 verbose #22307 > 00:00:22 verbose #7 !   validate(nb)
00:20:46 verbose #22308 > 00:00:24 verbose #8 ! [NbConvertApp] Writing 317015 bytes to c:\home\git\polyglot\lib\spiral\benchmark.dib.html
00:20:46 verbose #22309 > 00:00:24 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 649 }
00:20:46 verbose #22310 > 00:00:24   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 649 }
00:20:46 verbose #22311 > 00:00:24   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/benchmark.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/benchmark.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:20:47 verbose #22312 > 00:00:25 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:20:47 verbose #22313 > 00:00:25   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:20:48 verbose #22314 > 00:00:26   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 25566 }
00:20:48   debug #22315 runtime.execute_with_options_async / { exit_code = 0; output_length = 29200 }
00:20:48   debug #30 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path benchmark.dib --retries 3
00:20:48   debug #22316 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path physics.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:20:48 verbose #22317 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "physics.dib", "--retries", "3"])) }
00:20:48 verbose #22318 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/spiral/physics.dib", "--output-path", "c:/home/git/polyglot/lib/spiral/physics.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/physics.dib" --output-path "c:/home/git/polyglot/lib/spiral/physics.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:20:51 verbose #22319 > >
00:20:51 verbose #22320 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:51 verbose #22321 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:51 verbose #22322 > > │ # physics                                                                    │
00:20:51 verbose #22323 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:14 verbose #22324 > >
00:21:14 verbose #22325 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:14 verbose #22326 > > //// test
00:21:14 verbose #22327 > >
00:21:14 verbose #22328 > > open testing
00:21:15 verbose #22329 > 00:21:14   debug #1295 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fa7845de436c12d0ca65282fe0cd65832468ca943e72feba50e6b1bb441e251a/main.spi
00:21:15 verbose #22330 > >
00:21:15 verbose #22331 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:15 verbose #22332 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:15 verbose #22333 > > │ ### init_series                                                              │
00:21:15 verbose #22334 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:15 verbose #22335 > >
00:21:15 verbose #22336 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:15 verbose #22337 > > //// test
00:21:15 verbose #22338 > >
00:21:15 verbose #22339 > > inl x = am'.init_series -3f64 3 0.01
00:21:15 verbose #22340 > > inl y = x |> am'.map_base math.square
00:21:15 verbose #22341 > > "square", "x", "y", ;[[ "square", x, y ]]
00:21:15 verbose #22342 > 00:21:14   debug #1296 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1a7ad985805fb6991339e38a1741fe40fa03196f8017dcafcb6a3a6ccd6d666f/main.spi
00:21:15 verbose #22343 > >
00:21:15 verbose #22344 > > ╭─[ 408.93ms - return value ]──────────────────────────────────────────────────╮
00:21:15 verbose #22345 > > │ <svg width="640" height="480" viewBox="0 0 640 480"                          │
00:21:15 verbose #22346 > > │ xmlns="http://www.w3.org/2000/svg">                                          │
00:21:15 verbose #22347 > > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414"        │
00:21:15 verbose #22348 > > │ stroke="none"/>                                                              │
00:21:15 verbose #22349 > > │ <text x="320" y="10" dy="0.76em" text-anchor="middle"                        │
00:21:15 verbose #22350 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:21:15 verbose #22351 > > │ fill="#FFFFFF">                                                              │
00:21:15 verbose #22352 > > │ square                                                                       │
00:21:15 verbose #22353 > > │ </text>                                                                      │
00:21:15 verbose #22354 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="61" y1="424" x2="61" │
00:21:15 verbose #22355 > > │ y2="75"/>                                                                    │
00:21:15 verbose #22356 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:21:15 verbose #22357 > > │ y2="75"/>                                                                    │
00:21:15 verbose #22358 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="78" y1="424" x2="78" │
00:21:15 verbose #22359 > > │ y2="75"/>                                                                    │
00:21:15 verbose #22360 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="86" y1="424" x2="86" │
00:21:15 verbose #22361 > > │ y2="75"/>                                                                    │
00:21:15 verbose #22362 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="94" y1="424" x2="94" │
00:21:15 verbose #22363 > > │ y2="75"/>                                                                    │
00:21:15 verbose #22364 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="103" y1="424"        │
00:21:15 verbose #22365 > > │ x2="103" y2="75"/>                                                           │
00:21:15 verbose #22366 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="111" y1="424"        │
00:21:15 verbose #22367 > > │ x2="111" y2="75"/>                                                           │
00:21:15 verbose #22368 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="119" y1="424"        │
00:21:15 verbose #22369 > > │ x2="119" y2="75"/>                                                           │
00:21:15 verbose #22370 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="128" y1="424"        │
00:21:15 verbose #22371 > > │ x2="128" y2="75"/>                                                           │
00:21:15 verbose #22372 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="136" y1="424"        │
00:21:15 verbose #22373 > > │ x2="136" y2="75"/>                                                           │
00:21:15 verbose #22374 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="144" y1="424"        │
00:21:15 verbose #22375 > > │ x2="144" y2="75"/>                                                           │
00:21:15 verbose #22376 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="153" y1="424"        │
00:21:15 verbose #22377 > > │ x2="153" y2="75"/>                                                           │
00:21:15 verbose #22378 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="161" y1="424"        │
00:21:15 verbose #22379 > > │ x2="161" y2="75"/>                                                           │
00:21:15 verbose #22380 > > │ <line opacity="1" stroke="#... 449,326 450,324 450,323 451,322 452,321       │
00:21:15 verbose #22381 > > │ 453,320 454,319 455,317 455,316 456,315 457,314 458,313 459,311 460,310      │
00:21:15 verbose #22382 > > │ 460,309 461,308 462,306 463,305 464,304 465,303 465,301 466,300 467,299      │
00:21:15 verbose #22383 > > │ 468,297 469,296 470,295 470,293 471,292 472,291 473,289 474,288 475,287      │
00:21:15 verbose #22384 > > │ 475,285 476,284 477,283 478,281 479,280 480,278 480,277 481,276 482,274      │
00:21:15 verbose #22385 > > │ 483,273 484,271 485,270 485,268 486,267 487,265 488,264 489,262 490,261      │
00:21:15 verbose #22386 > > │ 490,259 491,258 492,256 493,255 494,253 495,252 495,250 496,249 497,247      │
00:21:15 verbose #22387 > > │ 498,246 499,244 499,242 500,241 501,239 502,238 503,236 504,234 504,233      │
00:21:15 verbose #22388 > > │ 505,231 506,229 507,228 508,226 509,224 509,223 510,221 511,219 512,218      │
00:21:15 verbose #22389 > > │ 513,216 514,214 514,213 515,211 516,209 517,207 518,206 519,204 519,202      │
00:21:15 verbose #22390 > > │ 520,200 521,199 522,197 523,195 524,193 524,191 525,190 526,188 527,186      │
00:21:15 verbose #22391 > > │ 528,184 529,182 529,180 530,179 531,177 532,175 533,173 534,171 534,169      │
00:21:15 verbose #22392 > > │ 535,167 536,165 537,164 538,162 539,160 539,158 540,156 541,154 542,152      │
00:21:15 verbose #22393 > > │ 543,150 544,148 544,146 545,144 546,142 547,140 548,138 549,136 549,134      │
00:21:15 verbose #22394 > > │ 550,132 551,130 552,128 553,126 554,124 554,122 555,120 556,117 557,115      │
00:21:15 verbose #22395 > > │ 558,113 559,111 559,109 560,107 561,105 562,103 563,101 564,98 564,96 565,94 │
00:21:15 verbose #22396 > > │ 566,92 567,90 568,88 569,85 "/>                                              │
00:21:15 verbose #22397 > > │ <rect x="497" y="235" width="83" height="30" opacity="1" fill="none"         │
00:21:15 verbose #22398 > > │ stroke="#FFFFFF"/>                                                           │
00:21:15 verbose #22399 > > │ <text x="537" y="245" dy="0.76em" text-anchor="start"                        │
00:21:15 verbose #22400 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:21:15 verbose #22401 > > │ fill="#FFFFFF">                                                              │
00:21:15 verbose #22402 > > │ square                                                                       │
00:21:15 verbose #22403 > > │ </text>                                                                      │
00:21:15 verbose #22404 > > │ <polyline fill="none" opacity="1" stroke="#FF0000" stroke-width="1"          │
00:21:15 verbose #22405 > > │ points="507,250 527,250 "/>                                                  │
00:21:15 verbose #22406 > > │ </svg>                                                                       │
00:21:15 verbose #22407 > > │                                                                              │
00:21:15 verbose #22408 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:15 verbose #22409 > >
00:21:15 verbose #22410 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:15 verbose #22411 > > //// test
00:21:15 verbose #22412 > >
00:21:15 verbose #22413 > > inl x = am'.init_series -10f64 10 0.1
00:21:15 verbose #22414 > > inl y_sin = x |> am'.map_base sin
00:21:15 verbose #22415 > > inl y_cos = x |> am'.map_base cos
00:21:15 verbose #22416 > > "sin cos", "x", "y", ;[[ "sin", x, y_sin; "cos", x, y_cos ]]
00:21:15 verbose #22417 > 00:21:15   debug #1297 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/810b585c3b9f35674862bc78476fbff1b676964e99081f1b6297792e7fb0c079/main.spi
00:21:16 verbose #22418 > >
00:21:16 verbose #22419 > > ╭─[ 408.21ms - return value ]──────────────────────────────────────────────────╮
00:21:16 verbose #22420 > > │ <svg width="640" height="480" viewBox="0 0 640 480"                          │
00:21:16 verbose #22421 > > │ xmlns="http://www.w3.org/2000/svg">                                          │
00:21:16 verbose #22422 > > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414"        │
00:21:16 verbose #22423 > > │ stroke="none"/>                                                              │
00:21:16 verbose #22424 > > │ <text x="320" y="10" dy="0.76em" text-anchor="middle"                        │
00:21:16 verbose #22425 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:21:16 verbose #22426 > > │ fill="#FFFFFF">                                                              │
00:21:16 verbose #22427 > > │ sin cos                                                                      │
00:21:16 verbose #22428 > > │ </text>                                                                      │
00:21:16 verbose #22429 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="57" y1="424" x2="57" │
00:21:16 verbose #22430 > > │ y2="75"/>                                                                    │
00:21:16 verbose #22431 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:21:16 verbose #22432 > > │ y2="75"/>                                                                    │
00:21:16 verbose #22433 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="82" y1="424" x2="82" │
00:21:16 verbose #22434 > > │ y2="75"/>                                                                    │
00:21:16 verbose #22435 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="94" y1="424" x2="94" │
00:21:16 verbose #22436 > > │ y2="75"/>                                                                    │
00:21:16 verbose #22437 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="107" y1="424"        │
00:21:16 verbose #22438 > > │ x2="107" y2="75"/>                                                           │
00:21:16 verbose #22439 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="119" y1="424"        │
00:21:16 verbose #22440 > > │ x2="119" y2="75"/>                                                           │
00:21:16 verbose #22441 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="132" y1="424"        │
00:21:16 verbose #22442 > > │ x2="132" y2="75"/>                                                           │
00:21:16 verbose #22443 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="144" y1="424"        │
00:21:16 verbose #22444 > > │ x2="144" y2="75"/>                                                           │
00:21:16 verbose #22445 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="157" y1="424"        │
00:21:16 verbose #22446 > > │ x2="157" y2="75"/>                                                           │
00:21:16 verbose #22447 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="169" y1="424"        │
00:21:16 verbose #22448 > > │ x2="169" y2="75"/>                                                           │
00:21:16 verbose #22449 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="182" y1="424"        │
00:21:16 verbose #22450 > > │ x2="182" y2="75"/>                                                           │
00:21:16 verbose #22451 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="194" y1="424"        │
00:21:16 verbose #22452 > > │ x2="194" y2="75"/>                                                           │
00:21:16 verbose #22453 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="207" y1="424"        │
00:21:16 verbose #22454 > > │ x2="207" y2="75"/>                                                           │
00:21:16 verbose #22455 > > │ <line opacity="1" stroke...55 282,238 284,222 287,206 289,190 292,175        │
00:21:16 verbose #22456 > > │ 294,161 297,148 299,135 302,124 304,114 307,106 309,98 312,93 314,89 317,86  │
00:21:16 verbose #22457 > > │ 319,85 321,86 324,89 326,93 329,98 331,106 334,114 336,124 339,135 341,148   │
00:21:16 verbose #22458 > > │ 344,161 346,175 349,190 351,206 354,222 356,238 359,255 361,271 364,287      │
00:21:16 verbose #22459 > > │ 366,303 369,319 371,333 374,347 376,360 379,371 381,382 384,391 386,399      │
00:21:16 verbose #22460 > > │ 389,405 391,410 394,413 396,414 399,414 401,413 404,409 406,404 409,398      │
00:21:16 verbose #22461 > > │ 411,390 414,380 416,370 419,358 421,345 424,331 426,316 429,301 431,285      │
00:21:16 verbose #22462 > > │ 434,268 436,252 439,236 441,219 444,203 446,188 449,173 451,159 454,146      │
00:21:16 verbose #22463 > > │ 456,133 459,122 461,113 464,104 466,97 469,92 471,88 474,86 476,85 479,86    │
00:21:16 verbose #22464 > > │ 481,89 484,94 486,99 489,107 491,116 494,126 496,137 499,150 501,163 504,178 │
00:21:16 verbose #22465 > > │ 506,193 509,209 511,225 514,241 516,258 519,274 521,290 524,306 526,321      │
00:21:16 verbose #22466 > > │ 529,335 531,349 534,362 536,373 539,384 541,392 544,400 546,406 549,410      │
00:21:16 verbose #22467 > > │ 551,413 554,415 556,414 559,412 561,408 564,403 566,396 569,388 "/>          │
00:21:16 verbose #22468 > > │ <rect x="514" y="227" width="66" height="45" opacity="1" fill="none"         │
00:21:16 verbose #22469 > > │ stroke="#FFFFFF"/>                                                           │
00:21:16 verbose #22470 > > │ <text x="554" y="237" dy="0.76em" text-anchor="start"                        │
00:21:16 verbose #22471 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:21:16 verbose #22472 > > │ fill="#FFFFFF">                                                              │
00:21:16 verbose #22473 > > │ sin                                                                          │
00:21:16 verbose #22474 > > │ </text>                                                                      │
00:21:16 verbose #22475 > > │ <text x="554" y="252" dy="0.76em" text-anchor="start"                        │
00:21:16 verbose #22476 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:21:16 verbose #22477 > > │ fill="#FFFFFF">                                                              │
00:21:16 verbose #22478 > > │ cos                                                                          │
00:21:16 verbose #22479 > > │ </text>                                                                      │
00:21:16 verbose #22480 > > │ <polyline fill="none" opacity="1" stroke="#FF0000" stroke-width="1"          │
00:21:16 verbose #22481 > > │ points="524,242 544,242 "/>                                                  │
00:21:16 verbose #22482 > > │ <polyline fill="none" opacity="1" stroke="#0000FF" stroke-width="1"          │
00:21:16 verbose #22483 > > │ points="524,257 544,257 "/>                                                  │
00:21:16 verbose #22484 > > │ </svg>                                                                       │
00:21:16 verbose #22485 > > │                                                                              │
00:21:16 verbose #22486 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:16 verbose #22487 > >
00:21:16 verbose #22488 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:16 verbose #22489 > > //// test
00:21:16 verbose #22490 > >
00:21:16 verbose #22491 > > inl y_pos y0 vy0 ay t =
00:21:16 verbose #22492 > >     y0 + vy0 * t + ay * (t |> math.square) / 2
00:21:16 verbose #22493 > >
00:21:16 verbose #22494 > > inl x = am'.init_series 0f64 5 0.01
00:21:16 verbose #22495 > > inl y = x |> am'.map_base (y_pos 0 20 -9.8)
00:21:16 verbose #22496 > > "projectile motion", "time (s)", "", ;[[ "height of projectile (m)", x, y ]]
00:21:16 verbose #22497 > 00:21:15   debug #1298 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/288a212fee50dfad7344c70905581751e7325cba0d50c8c991d8ae508fd94a2f/main.spi
00:21:16 verbose #22498 > >
00:21:16 verbose #22499 > > ╭─[ 517.37ms - return value ]──────────────────────────────────────────────────╮
00:21:16 verbose #22500 > > │ <svg width="640" height="480" viewBox="0 0 640 480"                          │
00:21:16 verbose #22501 > > │ xmlns="http://www.w3.org/2000/svg">                                          │
00:21:16 verbose #22502 > > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414"        │
00:21:16 verbose #22503 > > │ stroke="none"/>                                                              │
00:21:16 verbose #22504 > > │ <text x="320" y="10" dy="0.76em" text-anchor="middle"                        │
00:21:16 verbose #22505 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:21:16 verbose #22506 > > │ fill="#FFFFFF">                                                              │
00:21:16 verbose #22507 > > │ projectile motion                                                            │
00:21:16 verbose #22508 > > │ </text>                                                                      │
00:21:16 verbose #22509 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="59" y1="424" x2="59" │
00:21:16 verbose #22510 > > │ y2="75"/>                                                                    │
00:21:16 verbose #22511 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:21:16 verbose #22512 > > │ y2="75"/>                                                                    │
00:21:16 verbose #22513 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="79" y1="424" x2="79" │
00:21:16 verbose #22514 > > │ y2="75"/>                                                                    │
00:21:16 verbose #22515 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="89" y1="424" x2="89" │
00:21:16 verbose #22516 > > │ y2="75"/>                                                                    │
00:21:16 verbose #22517 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="99" y1="424" x2="99" │
00:21:16 verbose #22518 > > │ y2="75"/>                                                                    │
00:21:16 verbose #22519 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="109" y1="424"        │
00:21:16 verbose #22520 > > │ x2="109" y2="75"/>                                                           │
00:21:16 verbose #22521 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="119" y1="424"        │
00:21:16 verbose #22522 > > │ x2="119" y2="75"/>                                                           │
00:21:16 verbose #22523 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="129" y1="424"        │
00:21:16 verbose #22524 > > │ x2="129" y2="75"/>                                                           │
00:21:16 verbose #22525 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="139" y1="424"        │
00:21:16 verbose #22526 > > │ x2="139" y2="75"/>                                                           │
00:21:16 verbose #22527 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="149" y1="424"        │
00:21:16 verbose #22528 > > │ x2="149" y2="75"/>                                                           │
00:21:16 verbose #22529 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="159" y1="424"        │
00:21:16 verbose #22530 > > │ x2="159" y2="75"/>                                                           │
00:21:16 verbose #22531 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="169" y1="424"        │
00:21:16 verbose #22532 > > │ x2="169" y2="75"/>                                                           │
00:21:16 verbose #22533 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="179" y1="424"        │
00:21:16 verbose #22534 > > │ x2="179" y2="75"/>                                                           │
00:21:16 verbose #22535 > > │ <line opacity="1...28,176 429,177 430,178 431,179 432,180 433,182 434,183    │
00:21:16 verbose #22536 > > │ 435,184 436,185 437,186 438,188 439,189 440,190 441,191 442,193 443,194      │
00:21:16 verbose #22537 > > │ 444,195 445,197 446,198 447,199 448,200 449,202 450,203 451,204 452,206      │
00:21:16 verbose #22538 > > │ 453,207 454,208 455,210 456,211 457,213 458,214 459,215 460,217 461,218      │
00:21:16 verbose #22539 > > │ 462,220 463,221 464,222 465,224 466,225 467,227 468,228 469,230 470,231      │
00:21:16 verbose #22540 > > │ 471,233 472,234 473,236 474,237 475,239 476,240 477,242 478,243 479,245      │
00:21:16 verbose #22541 > > │ 480,246 481,248 482,249 483,251 484,253 485,254 486,256 487,257 488,259      │
00:21:16 verbose #22542 > > │ 489,261 490,262 491,264 492,266 493,267 494,269 495,271 496,272 497,274      │
00:21:16 verbose #22543 > > │ 498,276 499,277 500,279 501,281 502,282 503,284 504,286 505,288 506,289      │
00:21:16 verbose #22544 > > │ 507,291 508,293 509,295 510,296 511,298 512,300 513,302 514,304 515,305      │
00:21:16 verbose #22545 > > │ 516,307 517,309 518,311 519,313 520,315 521,316 522,318 523,320 524,322      │
00:21:16 verbose #22546 > > │ 525,324 526,326 527,328 528,330 529,332 530,334 531,335 532,337 533,339      │
00:21:16 verbose #22547 > > │ 534,341 535,343 536,345 537,347 538,349 539,351 540,353 541,355 542,357      │
00:21:16 verbose #22548 > > │ 543,359 544,361 545,363 546,365 547,367 548,370 549,372 550,374 551,376      │
00:21:16 verbose #22549 > > │ 552,378 553,380 554,382 555,384 556,386 557,388 558,391 559,393 560,395      │
00:21:16 verbose #22550 > > │ 561,397 562,399 563,401 564,404 565,406 566,408 567,410 568,412 569,415 "/>  │
00:21:16 verbose #22551 > > │ <rect x="399" y="235" width="181" height="30" opacity="1" fill="none"        │
00:21:16 verbose #22552 > > │ stroke="#FFFFFF"/>                                                           │
00:21:16 verbose #22553 > > │ <text x="439" y="245" dy="0.76em" text-anchor="start"                        │
00:21:16 verbose #22554 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:21:16 verbose #22555 > > │ fill="#FFFFFF">                                                              │
00:21:16 verbose #22556 > > │ height of projectile (m)                                                     │
00:21:16 verbose #22557 > > │ </text>                                                                      │
00:21:16 verbose #22558 > > │ <polyline fill="none" opacity="1" stroke="#FF0000" stroke-width="1"          │
00:21:16 verbose #22559 > > │ points="409,250 429,250 "/>                                                  │
00:21:16 verbose #22560 > > │ </svg>                                                                       │
00:21:16 verbose #22561 > > │                                                                              │
00:21:16 verbose #22562 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:16 verbose #22563 > >
00:21:16 verbose #22564 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:16 verbose #22565 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:16 verbose #22566 > > │ ### velocity_cf                                                              │
00:21:16 verbose #22567 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:16 verbose #22568 > >
00:21:16 verbose #22569 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:16 verbose #22570 > > type mass = f64
00:21:16 verbose #22571 > > type time = f64
00:21:16 verbose #22572 > > type position = f64
00:21:16 verbose #22573 > > type velocity = f64
00:21:16 verbose #22574 > > type force = f64
00:21:16 verbose #22575 > >
00:21:16 verbose #22576 > > type velocity_cf = mass -> velocity -> list force -> (time -> velocity)
00:21:16 verbose #22577 > >
00:21:16 verbose #22578 > > inl velocity_cf m v0 fs =
00:21:16 verbose #22579 > >     inl f_net = fs |> listm'.sum
00:21:16 verbose #22580 > >     inl a0 = f_net / m
00:21:16 verbose #22581 > >     inl v t = v0 + a0 * t
00:21:16 verbose #22582 > >     v
00:21:16 verbose #22583 > 00:21:16   debug #1299 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/313e4aa9581625299dff75773fb55c6630e9d836ce37307c6698d46513e882c3/main.spi
00:21:16 verbose #22584 > >
00:21:16 verbose #22585 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:16 verbose #22586 > > //// test
00:21:16 verbose #22587 > >
00:21:16 verbose #22588 > > velocity_cf 0.1f64 0.6 [[ 0.04; -0.08 ]] 0
00:21:16 verbose #22589 > > |> _assert_eq 0.6
00:21:16 verbose #22590 > >
00:21:16 verbose #22591 > > velocity_cf 0.1f64 0.6 [[ 0.04; -0.08 ]] 1
00:21:16 verbose #22592 > > |> _assert_eq 0.2
00:21:17 verbose #22593 > 00:21:16   debug #1300 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b69f07cd5cbe3602d135eb4804e16819046c15a1d304bc80652c08373bebc2f4/main.spi
00:21:17 verbose #22594 > >
00:21:17 verbose #22595 > > ╭─[ 387.70ms - stdout ]────────────────────────────────────────────────────────╮
00:21:17 verbose #22596 > > │ assert_eq / actual: 0.6 / expected: 0.6                                      │
00:21:17 verbose #22597 > > │ assert_eq / actual: 0.2 / expected: 0.2                                      │
00:21:17 verbose #22598 > > │                                                                              │
00:21:17 verbose #22599 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:17 verbose #22600 > >
00:21:17 verbose #22601 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:17 verbose #22602 > > //// test
00:21:17 verbose #22603 > >
00:21:17 verbose #22604 > > inl x = am'.init_series 0f64 4 0.1
00:21:17 verbose #22605 > > inl y = x |> am'.map_base (velocity_cf 0.1f64 0.6 [[ 0.04; -0.08 ]])
00:21:17 verbose #22606 > > "car on an air track", "time (s)", "", ;[[ "velocity of car (m/s)", x, y ]]
00:21:17 verbose #22607 > 00:21:16   debug #1301 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4ee895a8c40325362074de083c9b61d797af55f40efe265c277931e43c6ad593/main.spi
00:21:17 verbose #22608 > >
00:21:17 verbose #22609 > > ╭─[ 415.98ms - return value ]──────────────────────────────────────────────────╮
00:21:17 verbose #22610 > > │ <svg width="640" height="480" viewBox="0 0 640 480"                          │
00:21:17 verbose #22611 > > │ xmlns="http://www.w3.org/2000/svg">                                          │
00:21:17 verbose #22612 > > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414"        │
00:21:17 verbose #22613 > > │ stroke="none"/>                                                              │
00:21:17 verbose #22614 > > │ <text x="320" y="10" dy="0.76em" text-anchor="middle"                        │
00:21:17 verbose #22615 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:21:17 verbose #22616 > > │ fill="#FFFFFF">                                                              │
00:21:17 verbose #22617 > > │ car on an air track                                                          │
00:21:17 verbose #22618 > > │ </text>                                                                      │
00:21:17 verbose #22619 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="57" y1="424" x2="57" │
00:21:17 verbose #22620 > > │ y2="75"/>                                                                    │
00:21:17 verbose #22621 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:21:17 verbose #22622 > > │ y2="75"/>                                                                    │
00:21:17 verbose #22623 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="82" y1="424" x2="82" │
00:21:17 verbose #22624 > > │ y2="75"/>                                                                    │
00:21:17 verbose #22625 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="94" y1="424" x2="94" │
00:21:17 verbose #22626 > > │ y2="75"/>                                                                    │
00:21:17 verbose #22627 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="107" y1="424"        │
00:21:17 verbose #22628 > > │ x2="107" y2="75"/>                                                           │
00:21:17 verbose #22629 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="119" y1="424"        │
00:21:17 verbose #22630 > > │ x2="119" y2="75"/>                                                           │
00:21:17 verbose #22631 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="132" y1="424"        │
00:21:17 verbose #22632 > > │ x2="132" y2="75"/>                                                           │
00:21:17 verbose #22633 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="144" y1="424"        │
00:21:17 verbose #22634 > > │ x2="144" y2="75"/>                                                           │
00:21:17 verbose #22635 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="157" y1="424"        │
00:21:17 verbose #22636 > > │ x2="157" y2="75"/>                                                           │
00:21:17 verbose #22637 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="169" y1="424"        │
00:21:17 verbose #22638 > > │ x2="169" y2="75"/>                                                           │
00:21:17 verbose #22639 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="182" y1="424"        │
00:21:17 verbose #22640 > > │ x2="182" y2="75"/>                                                           │
00:21:17 verbose #22641 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="194" y1="424"        │
00:21:17 verbose #22642 > > │ x2="194" y2="75"/>                                                           │
00:21:17 verbose #22643 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="207" y1="424"        │
00:21:17 verbose #22644 > > │ x2="207" y2="75"/>                                                           │
00:21:17 verbose #22645 > > │ <line opacit...85,209 590,209 "/>                                            │
00:21:17 verbose #22646 > > │ <text x="617" y="168" dy="0.5ex" text-anchor="end" font-family="sans-serif"  │
00:21:17 verbose #22647 > > │ font-size="9.67741935483871" opacity="1" fill="#FFFFFF">                     │
00:21:17 verbose #22648 > > │ 0.2                                                                          │
00:21:17 verbose #22649 > > │ </text>                                                                      │
00:21:17 verbose #22650 > > │ <polyline fill="none" opacity="1" stroke="#FFFFFF" stroke-width="1"          │
00:21:17 verbose #22651 > > │ points="585,168 590,168 "/>                                                  │
00:21:17 verbose #22652 > > │ <text x="617" y="127" dy="0.5ex" text-anchor="end" font-family="sans-serif"  │
00:21:17 verbose #22653 > > │ font-size="9.67741935483871" opacity="1" fill="#FFFFFF">                     │
00:21:17 verbose #22654 > > │ 0.4                                                                          │
00:21:17 verbose #22655 > > │ </text>                                                                      │
00:21:17 verbose #22656 > > │ <polyline fill="none" opacity="1" stroke="#FFFFFF" stroke-width="1"          │
00:21:17 verbose #22657 > > │ points="585,127 590,127 "/>                                                  │
00:21:17 verbose #22658 > > │ <text x="617" y="85" dy="0.5ex" text-anchor="end" font-family="sans-serif"   │
00:21:17 verbose #22659 > > │ font-size="9.67741935483871" opacity="1" fill="#FFFFFF">                     │
00:21:17 verbose #22660 > > │ 0.6                                                                          │
00:21:17 verbose #22661 > > │ </text>                                                                      │
00:21:17 verbose #22662 > > │ <polyline fill="none" opacity="1" stroke="#FFFFFF" stroke-width="1"          │
00:21:17 verbose #22663 > > │ points="585,85 590,85 "/>                                                    │
00:21:17 verbose #22664 > > │ <polyline fill="none" opacity="1" stroke="#FF0000" stroke-width="1"          │
00:21:17 verbose #22665 > > │ points="69,85 82,94 94,102 107,110 119,118 132,127 144,135 157,143 169,151   │
00:21:17 verbose #22666 > > │ 182,159 194,168 207,176 219,184 232,192 244,201 257,209 269,217 282,225      │
00:21:17 verbose #22667 > > │ 294,234 307,242 319,250 331,258 344,266 356,275 369,283 381,291 394,299      │
00:21:17 verbose #22668 > > │ 406,308 419,316 431,324 444,332 456,341 469,349 481,357 494,365 506,373      │
00:21:17 verbose #22669 > > │ 519,382 531,390 544,398 556,406 569,415 "/>                                  │
00:21:17 verbose #22670 > > │ <rect x="415" y="235" width="165" height="30" opacity="1" fill="none"        │
00:21:17 verbose #22671 > > │ stroke="#FFFFFF"/>                                                           │
00:21:17 verbose #22672 > > │ <text x="455" y="245" dy="0.76em" text-anchor="start"                        │
00:21:17 verbose #22673 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:21:17 verbose #22674 > > │ fill="#FFFFFF">                                                              │
00:21:17 verbose #22675 > > │ velocity of car (m/s)                                                        │
00:21:17 verbose #22676 > > │ </text>                                                                      │
00:21:17 verbose #22677 > > │ <polyline fill="none" opacity="1" stroke="#FF0000" stroke-width="1"          │
00:21:17 verbose #22678 > > │ points="425,250 445,250 "/>                                                  │
00:21:17 verbose #22679 > > │ </svg>                                                                       │
00:21:17 verbose #22680 > > │                                                                              │
00:21:17 verbose #22681 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:17 verbose #22682 > >
00:21:17 verbose #22683 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:17 verbose #22684 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:17 verbose #22685 > > │ ### derivative                                                               │
00:21:17 verbose #22686 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:17 verbose #22687 > >
00:21:17 verbose #22688 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:17 verbose #22689 > > type derivative = (f64 -> f64) -> f64 -> f64
00:21:17 verbose #22690 > >
00:21:17 verbose #22691 > > inl derivative dt : derivative =
00:21:17 verbose #22692 > >     fun x t =>
00:21:17 verbose #22693 > >         (x (t + dt / 2) - x (t - dt / 2)) / dt
00:21:18 verbose #22694 > 00:21:17   debug #1302 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8f860e1f3d0990020e70e2c28807ba63a8da055d56e1afb66cbc6abc219fbbef/main.spi
00:21:18 verbose #22695 > >
00:21:18 verbose #22696 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:18 verbose #22697 > > //// test
00:21:18 verbose #22698 > >
00:21:18 verbose #22699 > > derivative 1 (fun x => x ** 4 / 4) 1 - 1
00:21:18 verbose #22700 > > |> _assert_approx_eq None 0.25
00:21:18 verbose #22701 > >
00:21:18 verbose #22702 > > derivative 0.001 (fun x => x ** 4 / 4) 1 - 1
00:21:18 verbose #22703 > > |> _assert_approx_eq None 0.0000002499998827953931
00:21:18 verbose #22704 > >
00:21:18 verbose #22705 > > derivative 0.000001 (fun x => x ** 4 / 4) 1 - 1
00:21:18 verbose #22706 > > |> _assert_approx_eq None 0.000000000001000088900582341
00:21:18 verbose #22707 > >
00:21:18 verbose #22708 > > derivative 0.000000001 (fun x => x ** 4 / 4) 1 - 1
00:21:18 verbose #22709 > > |> _assert_approx_eq None 0.00000008274037099909037
00:21:18 verbose #22710 > >
00:21:18 verbose #22711 > > derivative 0.000000000001 (fun x => x ** 4 / 4) 1 - 1
00:21:18 verbose #22712 > > |> _assert_approx_eq None 0.00008890058234101161
00:21:18 verbose #22713 > >
00:21:18 verbose #22714 > > derivative 0.000000000000001 (fun x => x ** 4 / 4) 1 - 1
00:21:18 verbose #22715 > > |> _assert_approx_eq None -0.0007992778373592246
00:21:18 verbose #22716 > >
00:21:18 verbose #22717 > > derivative 0.000000000000000001 (fun x => x ** 4 / 4) 1 - 1
00:21:18 verbose #22718 > > |> _assert_approx_eq None -1
00:21:18 verbose #22719 > 00:21:17   debug #1303 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7628cf77d47c9e60c40b69653cec51d8eacf6028f0530fb6a8d9f7b39523ca38/main.spi
00:21:18 verbose #22720 > >
00:21:18 verbose #22721 > > ╭─[ 390.94ms - stdout ]────────────────────────────────────────────────────────╮
00:21:18 verbose #22722 > > │ assert_approx_eq / actual: 0.25 / expected: 0.25                             │
00:21:18 verbose #22723 > > │ assert_approx_eq / actual: 2.499998828e-07 / expected: 2.499998828e-07       │
00:21:18 verbose #22724 > > │ assert_approx_eq / actual: 1.000088901e-12 / expected: 1.000088901e-12       │
00:21:18 verbose #22725 > > │ assert_approx_eq / actual: 8.2740371e-08 / expected: 8.2740371e-08           │
00:21:18 verbose #22726 > > │ assert_approx_eq / actual: 8.890058234e-05 / expected: 8.890058234e-05       │
00:21:18 verbose #22727 > > │ assert_approx_eq / actual: -0.0007992778374 / expected: -0.0007992778374     │
00:21:18 verbose #22728 > > │ assert_approx_eq / actual: -1.0 / expected: -1.0                             │
00:21:18 verbose #22729 > > │                                                                              │
00:21:18 verbose #22730 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:18 verbose #22731 > >
00:21:18 verbose #22732 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:18 verbose #22733 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:18 verbose #22734 > > │ ### integration                                                              │
00:21:18 verbose #22735 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:18 verbose #22736 > >
00:21:18 verbose #22737 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:18 verbose #22738 > > type integration = (f64 -> f64) -> f64 -> f64 -> f64
00:21:18 verbose #22739 > >
00:21:18 verbose #22740 > > inl integral dt : integration =
00:21:18 verbose #22741 > >     fun f a b =>
00:21:18 verbose #22742 > >         inl rec loop t y =
00:21:18 verbose #22743 > >             if t < b
00:21:18 verbose #22744 > >             then loop (t + dt) (y + f t * dt)
00:21:18 verbose #22745 > >             else t, y
00:21:18 verbose #22746 > >         loop (a + dt / 2) 0
00:21:18 verbose #22747 > >         |> snd
00:21:18 verbose #22748 > 00:21:17   debug #1304 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/be1f0345fa4d30548c696dcca0a6aabc7e45579a50b72db44e14189fd4675b17/main.spi
00:21:18 verbose #22749 > >
00:21:18 verbose #22750 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:18 verbose #22751 > > //// test
00:21:18 verbose #22752 > >
00:21:18 verbose #22753 > > integral 0.01 math.square 0 1
00:21:18 verbose #22754 > > |> _assert_approx_eq None 0.33332500000000004
00:21:19 verbose #22755 > 00:21:18   debug #1305 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8e1c1d73fce6d392577082ccf529fe2b9ec437d7f8dd9c9a19376dba9a5f99d5/main.spi
00:21:19 verbose #22756 > >
00:21:19 verbose #22757 > > ╭─[ 367.45ms - stdout ]────────────────────────────────────────────────────────╮
00:21:19 verbose #22758 > > │ assert_approx_eq / actual: 0.333325 / expected: 0.333325                     │
00:21:19 verbose #22759 > > │                                                                              │
00:21:19 verbose #22760 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:19 verbose #22761 > >
00:21:19 verbose #22762 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:19 verbose #22763 > > inl integral' dt : integration =
00:21:19 verbose #22764 > >     fun f a b =>
00:21:19 verbose #22765 > >         listm'.init_series (a + dt / 2) (b - dt / 2) dt
00:21:19 verbose #22766 > >         |> listm.map (f >> (*) dt)
00:21:19 verbose #22767 > >         |> listm'.sum
00:21:19 verbose #22768 > 00:21:18   debug #1306 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/657ea893f7fdca273a4f1ff12463b00c632ee5f27d912cf612ad9ff0de31bce2/main.spi
00:21:19 verbose #22769 > >
00:21:19 verbose #22770 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:19 verbose #22771 > > //// test
00:21:19 verbose #22772 > >
00:21:19 verbose #22773 > > integral' 0.1 math.square 0 1
00:21:19 verbose #22774 > > |> _assert_approx_eq None (integral 0.1 math.square 0 1)
00:21:19 verbose #22775 > 00:21:19   debug #1307 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9a570ba76aa5b78b3f3a5732dc305814c5323232d6b25e3893b12cf02aca818d/main.spi
00:21:19 verbose #22776 > >
00:21:19 verbose #22777 > > ╭─[ 332.01ms - stdout ]────────────────────────────────────────────────────────╮
00:21:19 verbose #22778 > > │ assert_approx_eq / actual: 0.3325 / expected: 0.3325                         │
00:21:19 verbose #22779 > > │                                                                              │
00:21:19 verbose #22780 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:19 verbose #22781 > >
00:21:19 verbose #22782 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:19 verbose #22783 > > inl integral'' dt : integration =
00:21:19 verbose #22784 > >     fun f x y =>
00:21:19 verbose #22785 > >         am'.init_series (x + dt / 2) (y - dt / 2) dt
00:21:19 verbose #22786 > >         |> fun x => a x : _ int _
00:21:19 verbose #22787 > >         |> am.map (f >> (*) dt)
00:21:19 verbose #22788 > >         |> am'.sum
00:21:20 verbose #22789 > 00:21:19   debug #1308 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8352259675c39c397c7fd22720b22c952458e0f72b826d18a1166a83c3b483d9/main.spi
00:21:20 verbose #22790 > >
00:21:20 verbose #22791 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:20 verbose #22792 > > //// test
00:21:20 verbose #22793 > >
00:21:20 verbose #22794 > > integral'' 0.01 math.square 0 1
00:21:20 verbose #22795 > > |> _assert_approx_eq None (integral 0.01 math.square 0 1)
00:21:20 verbose #22796 > 00:21:19   debug #1309 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/227e67a37874d1ca72b39a4e78078d07e66375e70c7c67975b35a4fa43c2090c/main.spi
00:21:20 verbose #22797 > >
00:21:20 verbose #22798 > > ╭─[ 392.32ms - stdout ]────────────────────────────────────────────────────────╮
00:21:20 verbose #22799 > > │ assert_approx_eq / actual: 0.333325 / expected: 0.333325                     │
00:21:20 verbose #22800 > > │                                                                              │
00:21:20 verbose #22801 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:20 verbose #22802 > >
00:21:20 verbose #22803 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:20 verbose #22804 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:20 verbose #22805 > > │ ### anti_derivative                                                          │
00:21:20 verbose #22806 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:20 verbose #22807 > >
00:21:20 verbose #22808 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:20 verbose #22809 > > inl anti_derivative dt v0 a t =
00:21:20 verbose #22810 > >     v0 + integral' dt a 0 t
00:21:20 verbose #22811 > 00:21:20   debug #1310 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c6b26a8138c573a03699cf5c5c41045846ca4dbe4cda15eec2d546f1a8855693/main.spi
00:21:21 verbose #22812 > >
00:21:21 verbose #22813 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:21 verbose #22814 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:21 verbose #22815 > > │ ### velocity_ft                                                              │
00:21:21 verbose #22816 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:21 verbose #22817 > >
00:21:21 verbose #22818 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:21 verbose #22819 > > type velocity_ft = mass -> velocity -> list (time -> force) -> (time ->
00:21:21 verbose #22820 > > velocity)
00:21:21 verbose #22821 > >
00:21:21 verbose #22822 > > inl velocity_ft dt : velocity_ft =
00:21:21 verbose #22823 > >     fun m v0 fs =>
00:21:21 verbose #22824 > >         inl f_net t = fs |> listm.map (fun f => f t) |> listm'.sum
00:21:21 verbose #22825 > >         inl a t = f_net t / m
00:21:21 verbose #22826 > >         anti_derivative dt v0 a
00:21:21 verbose #22827 > 00:21:20   debug #1311 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/94e3edccb37643f1977335f24f98ccc7f0d2b0855b6eae6670fbba3fdff2e1a9/main.spi
00:21:21 verbose #22828 > >
00:21:21 verbose #22829 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:21 verbose #22830 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:21 verbose #22831 > > │ ### position_ft                                                              │
00:21:21 verbose #22832 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:21 verbose #22833 > >
00:21:21 verbose #22834 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:21 verbose #22835 > > type position_ft = mass -> position -> velocity -> list (time -> force) -> (time
00:21:21 verbose #22836 > > -> position)
00:21:21 verbose #22837 > >
00:21:21 verbose #22838 > > inl position_ft dt : position_ft =
00:21:21 verbose #22839 > >     fun m x0 v0 fs =>
00:21:21 verbose #22840 > >         velocity_ft dt m v0 fs
00:21:21 verbose #22841 > >         |> anti_derivative dt x0
00:21:21 verbose #22842 > 00:21:20   debug #1312 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1fae363dd912673194dfd1412730c57d95a128b7c8c28c38ea626ea93fd81eb9/main.spi
00:21:21 verbose #22843 > >
00:21:21 verbose #22844 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:21 verbose #22845 > > //// test
00:21:21 verbose #22846 > >
00:21:21 verbose #22847 > > inl pedal_coast (t : time) : force =
00:21:21 verbose #22848 > >     inl t_cycle = 20
00:21:21 verbose #22849 > >     inl n_complete : i32 = t / t_cycle |> conv
00:21:21 verbose #22850 > >     inl remainder = t - conv n_complete * t_cycle
00:21:21 verbose #22851 > >     if remainder > 0 && remainder < 10
00:21:21 verbose #22852 > >     then 10
00:21:21 verbose #22853 > >     else 0
00:21:21 verbose #22854 > >
00:21:21 verbose #22855 > > inl x = am'.init_series -5f64 45 0.1
00:21:21 verbose #22856 > > inl y = x |> am'.map_base pedal_coast
00:21:21 verbose #22857 > > "child pedaling then coasting", "time (s)", "", ;[[ "force on bike (N)", x, y ]]
00:21:22 verbose #22858 > 00:21:21   debug #1313 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/009d321e96d917ef744ce3f13a6420cc3879eac327ca3a9a8292f391e893a6d4/main.spi
00:21:22 verbose #22859 > >
00:21:22 verbose #22860 > > ╭─[ 433.58ms - return value ]──────────────────────────────────────────────────╮
00:21:22 verbose #22861 > > │ <svg width="640" height="480" viewBox="0 0 640 480"                          │
00:21:22 verbose #22862 > > │ xmlns="http://www.w3.org/2000/svg">                                          │
00:21:22 verbose #22863 > > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414"        │
00:21:22 verbose #22864 > > │ stroke="none"/>                                                              │
00:21:22 verbose #22865 > > │ <text x="320" y="10" dy="0.76em" text-anchor="middle"                        │
00:21:22 verbose #22866 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:21:22 verbose #22867 > > │ fill="#FFFFFF">                                                              │
00:21:22 verbose #22868 > > │ child pedaling then coasting                                                 │
00:21:22 verbose #22869 > > │ </text>                                                                      │
00:21:22 verbose #22870 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="59" y1="424" x2="59" │
00:21:22 verbose #22871 > > │ y2="75"/>                                                                    │
00:21:22 verbose #22872 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:21:22 verbose #22873 > > │ y2="75"/>                                                                    │
00:21:22 verbose #22874 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="79" y1="424" x2="79" │
00:21:22 verbose #22875 > > │ y2="75"/>                                                                    │
00:21:22 verbose #22876 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="89" y1="424" x2="89" │
00:21:22 verbose #22877 > > │ y2="75"/>                                                                    │
00:21:22 verbose #22878 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="99" y1="424" x2="99" │
00:21:22 verbose #22879 > > │ y2="75"/>                                                                    │
00:21:22 verbose #22880 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="109" y1="424"        │
00:21:22 verbose #22881 > > │ x2="109" y2="75"/>                                                           │
00:21:22 verbose #22882 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="119" y1="424"        │
00:21:22 verbose #22883 > > │ x2="119" y2="75"/>                                                           │
00:21:22 verbose #22884 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="129" y1="424"        │
00:21:22 verbose #22885 > > │ x2="129" y2="75"/>                                                           │
00:21:22 verbose #22886 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="139" y1="424"        │
00:21:22 verbose #22887 > > │ x2="139" y2="75"/>                                                           │
00:21:22 verbose #22888 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="149" y1="424"        │
00:21:22 verbose #22889 > > │ x2="149" y2="75"/>                                                           │
00:21:22 verbose #22890 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="159" y1="424"        │
00:21:22 verbose #22891 > > │ x2="159" y2="75"/>                                                           │
00:21:22 verbose #22892 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="169" y1="424"        │
00:21:22 verbose #22893 > > │ x2="169" y2="75"/>                                                           │
00:21:22 verbose #22894 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="179" y1="424"        │
00:21:22 verbose #22895 > > │ x2="179" y2="75"/>                                                           │
00:21:22 verbose #22896 > > │ <line...421,415 422,415 423,415 424,415 425,415 426,415 427,415 428,415      │
00:21:22 verbose #22897 > > │ 429,415 430,415 431,415 432,415 433,415 434,415 435,415 436,415 437,415      │
00:21:22 verbose #22898 > > │ 438,415 439,415 440,415 441,415 442,415 443,415 444,415 445,415 446,415      │
00:21:22 verbose #22899 > > │ 447,415 448,415 449,415 450,415 451,415 452,415 453,415 454,415 455,415      │
00:21:22 verbose #22900 > > │ 456,415 457,415 458,415 459,415 460,415 461,415 462,415 463,415 464,415      │
00:21:22 verbose #22901 > > │ 465,415 466,415 467,415 468,415 469,415 470,415 471,415 472,415 473,415      │
00:21:22 verbose #22902 > > │ 474,415 475,415 476,415 477,415 478,415 479,415 480,415 481,415 482,415      │
00:21:22 verbose #22903 > > │ 483,415 484,415 485,415 486,415 487,415 488,415 489,415 490,415 491,415      │
00:21:22 verbose #22904 > > │ 492,415 493,415 494,415 495,415 496,415 497,415 498,415 499,415 500,415      │
00:21:22 verbose #22905 > > │ 501,415 502,415 503,415 504,415 505,415 506,415 507,415 508,415 509,415      │
00:21:22 verbose #22906 > > │ 510,415 511,415 512,415 513,415 514,415 515,415 516,415 517,415 518,415      │
00:21:22 verbose #22907 > > │ 519,415 520,85 521,85 522,85 523,85 524,85 525,85 526,85 527,85 528,85       │
00:21:22 verbose #22908 > > │ 529,85 530,85 531,85 532,85 533,85 534,85 535,85 536,85 537,85 538,85 539,85 │
00:21:22 verbose #22909 > > │ 540,85 541,85 542,85 543,85 544,85 545,85 546,85 547,85 548,85 549,85 550,85 │
00:21:22 verbose #22910 > > │ 551,85 552,85 553,85 554,85 555,85 556,85 557,85 558,85 559,85 560,85 561,85 │
00:21:22 verbose #22911 > > │ 562,85 563,85 564,85 565,85 566,85 567,85 568,85 569,85 "/>                  │
00:21:22 verbose #22912 > > │ <rect x="437" y="235" width="143" height="30" opacity="1" fill="none"        │
00:21:22 verbose #22913 > > │ stroke="#FFFFFF"/>                                                           │
00:21:22 verbose #22914 > > │ <text x="477" y="245" dy="0.76em" text-anchor="start"                        │
00:21:22 verbose #22915 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:21:22 verbose #22916 > > │ fill="#FFFFFF">                                                              │
00:21:22 verbose #22917 > > │ force on bike (N)                                                            │
00:21:22 verbose #22918 > > │ </text>                                                                      │
00:21:22 verbose #22919 > > │ <polyline fill="none" opacity="1" stroke="#FF0000" stroke-width="1"          │
00:21:22 verbose #22920 > > │ points="447,250 467,250 "/>                                                  │
00:21:22 verbose #22921 > > │ </svg>                                                                       │
00:21:22 verbose #22922 > > │                                                                              │
00:21:22 verbose #22923 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:22 verbose #22924 > >
00:21:22 verbose #22925 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:22 verbose #22926 > > //// test
00:21:22 verbose #22927 > >
00:21:22 verbose #22928 > > inl x = am'.init_series -5 45 1
00:21:22 verbose #22929 > > inl y = x |> am'.map_base (position_ft 0.1f64 20 0 0 [[ pedal_coast ]])
00:21:22 verbose #22930 > > "child pedaling then coasting", "time (s)", "", ;[[ "position of bike (m)", x, y
00:21:22 verbose #22931 > > ]]
00:21:22 verbose #22932 > 00:21:21   debug #1314 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2c7d1270324106a1cacc8aecd846cfdb5078621408d7dc37845c85febb0af287/main.spi
00:21:23 verbose #22933 > >
00:21:23 verbose #22934 > > ╭─[ 769.70ms - return value ]──────────────────────────────────────────────────╮
00:21:23 verbose #22935 > > │ <svg width="640" height="480" viewBox="0 0 640 480"                          │
00:21:23 verbose #22936 > > │ xmlns="http://www.w3.org/2000/svg">                                          │
00:21:23 verbose #22937 > > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414"        │
00:21:23 verbose #22938 > > │ stroke="none"/>                                                              │
00:21:23 verbose #22939 > > │ <text x="320" y="10" dy="0.76em" text-anchor="middle"                        │
00:21:23 verbose #22940 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:21:23 verbose #22941 > > │ fill="#FFFFFF">                                                              │
00:21:23 verbose #22942 > > │ child pedaling then coasting                                                 │
00:21:23 verbose #22943 > > │ </text>                                                                      │
00:21:23 verbose #22944 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="59" y1="424" x2="59" │
00:21:23 verbose #22945 > > │ y2="75"/>                                                                    │
00:21:23 verbose #22946 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:21:23 verbose #22947 > > │ y2="75"/>                                                                    │
00:21:23 verbose #22948 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="79" y1="424" x2="79" │
00:21:23 verbose #22949 > > │ y2="75"/>                                                                    │
00:21:23 verbose #22950 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="89" y1="424" x2="89" │
00:21:23 verbose #22951 > > │ y2="75"/>                                                                    │
00:21:23 verbose #22952 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="99" y1="424" x2="99" │
00:21:23 verbose #22953 > > │ y2="75"/>                                                                    │
00:21:23 verbose #22954 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="109" y1="424"        │
00:21:23 verbose #22955 > > │ x2="109" y2="75"/>                                                           │
00:21:23 verbose #22956 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="119" y1="424"        │
00:21:23 verbose #22957 > > │ x2="119" y2="75"/>                                                           │
00:21:23 verbose #22958 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="129" y1="424"        │
00:21:23 verbose #22959 > > │ x2="129" y2="75"/>                                                           │
00:21:23 verbose #22960 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="139" y1="424"        │
00:21:23 verbose #22961 > > │ x2="139" y2="75"/>                                                           │
00:21:23 verbose #22962 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="149" y1="424"        │
00:21:23 verbose #22963 > > │ x2="149" y2="75"/>                                                           │
00:21:23 verbose #22964 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="159" y1="424"        │
00:21:23 verbose #22965 > > │ x2="159" y2="75"/>                                                           │
00:21:23 verbose #22966 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="169" y1="424"        │
00:21:23 verbose #22967 > > │ x2="169" y2="75"/>                                                           │
00:21:23 verbose #22968 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="179" y1="424"        │
00:21:23 verbose #22969 > > │ x2="179" y2="75"/>                                                           │
00:21:23 verbose #22970 > > │ <line...serif" font-size="9.67741935483871" opacity="1" fill="#FFFFFF">      │
00:21:23 verbose #22971 > > │ 200.0                                                                        │
00:21:23 verbose #22972 > > │ </text>                                                                      │
00:21:23 verbose #22973 > > │ <polyline fill="none" opacity="1" stroke="#FFFFFF" stroke-width="1"          │
00:21:23 verbose #22974 > > │ points="585,201 590,201 "/>                                                  │
00:21:23 verbose #22975 > > │ <text x="595" y="147" dy="0.5ex" text-anchor="start"                         │
00:21:23 verbose #22976 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:21:23 verbose #22977 > > │ fill="#FFFFFF">                                                              │
00:21:23 verbose #22978 > > │ 250.0                                                                        │
00:21:23 verbose #22979 > > │ </text>                                                                      │
00:21:23 verbose #22980 > > │ <polyline fill="none" opacity="1" stroke="#FFFFFF" stroke-width="1"          │
00:21:23 verbose #22981 > > │ points="585,147 590,147 "/>                                                  │
00:21:23 verbose #22982 > > │ <text x="595" y="94" dy="0.5ex" text-anchor="start" font-family="sans-serif" │
00:21:23 verbose #22983 > > │ font-size="9.67741935483871" opacity="1" fill="#FFFFFF">                     │
00:21:23 verbose #22984 > > │ 300.0                                                                        │
00:21:23 verbose #22985 > > │ </text>                                                                      │
00:21:23 verbose #22986 > > │ <polyline fill="none" opacity="1" stroke="#FFFFFF" stroke-width="1"          │
00:21:23 verbose #22987 > > │ points="585,94 590,94 "/>                                                    │
00:21:23 verbose #22988 > > │ <polyline fill="none" opacity="1" stroke="#FF0000" stroke-width="1"          │
00:21:23 verbose #22989 > > │ points="69,415 79,415 89,415 99,415 109,415 119,415 129,414 139,413 149,412  │
00:21:23 verbose #22990 > > │ 159,410 169,408 179,405 189,401 199,397 209,393 219,388 229,382 239,377      │
00:21:23 verbose #22991 > > │ 249,372 259,366 269,361 279,356 289,350 299,345 309,340 319,334 329,329      │
00:21:23 verbose #22992 > > │ 339,322 349,316 359,308 369,301 379,292 389,284 399,274 409,264 419,254      │
00:21:23 verbose #22993 > > │ 429,243 439,232 449,221 459,210 469,199 479,189 489,178 499,167 509,157      │
00:21:23 verbose #22994 > > │ 519,146 529,135 539,123 549,111 559,99 569,85 "/>                            │
00:21:23 verbose #22995 > > │ <rect x="421" y="235" width="159" height="30" opacity="1" fill="none"        │
00:21:23 verbose #22996 > > │ stroke="#FFFFFF"/>                                                           │
00:21:23 verbose #22997 > > │ <text x="461" y="245" dy="0.76em" text-anchor="start"                        │
00:21:23 verbose #22998 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:21:23 verbose #22999 > > │ fill="#FFFFFF">                                                              │
00:21:23 verbose #23000 > > │ position of bike (m)                                                         │
00:21:23 verbose #23001 > > │ </text>                                                                      │
00:21:23 verbose #23002 > > │ <polyline fill="none" opacity="1" stroke="#FF0000" stroke-width="1"          │
00:21:23 verbose #23003 > > │ points="431,250 451,250 "/>                                                  │
00:21:23 verbose #23004 > > │ </svg>                                                                       │
00:21:23 verbose #23005 > > │                                                                              │
00:21:23 verbose #23006 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:23 verbose #23007 > >
00:21:23 verbose #23008 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:23 verbose #23009 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:23 verbose #23010 > > │ ### velocity_fv                                                              │
00:21:23 verbose #23011 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:23 verbose #23012 > >
00:21:23 verbose #23013 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:23 verbose #23014 > > inl newton_second_v m fs v0 =
00:21:23 verbose #23015 > >     fs |> listm.map (fun f => f v0) |> listm'.sum |> fun x => x / m
00:21:23 verbose #23016 > >
00:21:23 verbose #23017 > > inl update_velocity dt m fs v0 =
00:21:23 verbose #23018 > >     v0 + newton_second_v m fs v0 * dt
00:21:23 verbose #23019 > >
00:21:23 verbose #23020 > > inl velocity_fv dt m v0 fs t =
00:21:23 verbose #23021 > >     stream.iterate (update_velocity dt m fs) v0
00:21:23 verbose #23022 > >     |> stream.try_item (t / dt |> math.round |> abs)
00:21:23 verbose #23023 > >     |> optionm'.default_value 0
00:21:23 verbose #23024 > 00:21:22   debug #1315 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/23eb02e4436a1723863c20ba010497cf8423e4fcc6fb822b55cfca750f19f379/main.spi
00:21:23 verbose #23025 > >
00:21:23 verbose #23026 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:23 verbose #23027 > > inl f_air drag rho area v =
00:21:23 verbose #23028 > >     -drag * rho * area * abs v * v / 2
00:21:23 verbose #23029 > 00:21:22   debug #1316 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ecc4d6aff5f0952778ba37f1401d76e69cf791fd8fddd202bac43aa5df6c417a/main.spi
00:21:23 verbose #23030 > >
00:21:23 verbose #23031 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:23 verbose #23032 > > //// test
00:21:23 verbose #23033 > >
00:21:23 verbose #23034 > > inl x = am'.init_series 0 60 0.5
00:21:23 verbose #23035 > > inl y = x |> am'.map_base (velocity_fv 1 70 0f64 [[ fun _ => 100; f_air 2 1.225
00:21:23 verbose #23036 > > 0.6 ]])
00:21:23 verbose #23037 > > "bike velocity", "time (s)", "", ;[[ "velocity of bike (m/s)", x, y ]]
00:21:24 verbose #23038 > 00:21:23   debug #1317 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7f9fc005af62c9b4842af3fdc7fce4ad946e621a3e1d9229bf4a01150d8f6a1a/main.spi
00:21:24 verbose #23039 > >
00:21:24 verbose #23040 > > ╭─[ 821.17ms - return value ]──────────────────────────────────────────────────╮
00:21:24 verbose #23041 > > │ <svg width="640" height="480" viewBox="0 0 640 480"                          │
00:21:24 verbose #23042 > > │ xmlns="http://www.w3.org/2000/svg">                                          │
00:21:24 verbose #23043 > > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414"        │
00:21:24 verbose #23044 > > │ stroke="none"/>                                                              │
00:21:24 verbose #23045 > > │ <text x="320" y="10" dy="0.76em" text-anchor="middle"                        │
00:21:24 verbose #23046 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:21:24 verbose #23047 > > │ fill="#FFFFFF">                                                              │
00:21:24 verbose #23048 > > │ bike velocity                                                                │
00:21:24 verbose #23049 > > │ </text>                                                                      │
00:21:24 verbose #23050 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="61" y1="424" x2="61" │
00:21:24 verbose #23051 > > │ y2="75"/>                                                                    │
00:21:24 verbose #23052 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:21:24 verbose #23053 > > │ y2="75"/>                                                                    │
00:21:24 verbose #23054 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="78" y1="424" x2="78" │
00:21:24 verbose #23055 > > │ y2="75"/>                                                                    │
00:21:24 verbose #23056 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="86" y1="424" x2="86" │
00:21:24 verbose #23057 > > │ y2="75"/>                                                                    │
00:21:24 verbose #23058 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="94" y1="424" x2="94" │
00:21:24 verbose #23059 > > │ y2="75"/>                                                                    │
00:21:24 verbose #23060 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="103" y1="424"        │
00:21:24 verbose #23061 > > │ x2="103" y2="75"/>                                                           │
00:21:24 verbose #23062 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="111" y1="424"        │
00:21:24 verbose #23063 > > │ x2="111" y2="75"/>                                                           │
00:21:24 verbose #23064 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="119" y1="424"        │
00:21:24 verbose #23065 > > │ x2="119" y2="75"/>                                                           │
00:21:24 verbose #23066 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="128" y1="424"        │
00:21:24 verbose #23067 > > │ x2="128" y2="75"/>                                                           │
00:21:24 verbose #23068 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="136" y1="424"        │
00:21:24 verbose #23069 > > │ x2="136" y2="75"/>                                                           │
00:21:24 verbose #23070 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="144" y1="424"        │
00:21:24 verbose #23071 > > │ x2="144" y2="75"/>                                                           │
00:21:24 verbose #23072 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="153" y1="424"        │
00:21:24 verbose #23073 > > │ x2="153" y2="75"/>                                                           │
00:21:24 verbose #23074 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="161" y1="424"        │
00:21:24 verbose #23075 > > │ x2="161" y2="75"/>                                                           │
00:21:24 verbose #23076 > > │ <line opacity="1" st...t" font-family="sans-serif"                           │
00:21:24 verbose #23077 > > │ font-size="9.67741935483871" opacity="1" fill="#FFFFFF">                     │
00:21:24 verbose #23078 > > │ 12.0                                                                         │
00:21:24 verbose #23079 > > │ </text>                                                                      │
00:21:24 verbose #23080 > > │ <polyline fill="none" opacity="1" stroke="#FFFFFF" stroke-width="1"          │
00:21:24 verbose #23081 > > │ points="585,76 590,76 "/>                                                    │
00:21:24 verbose #23082 > > │ <polyline fill="none" opacity="1" stroke="#FF0000" stroke-width="1"          │
00:21:24 verbose #23083 > > │ points="69,415 74,415 78,374 82,335 86,335 90,335 94,297 99,261 103,261      │
00:21:24 verbose #23084 > > │ 107,261 111,230 115,202 119,202 124,202 128,179 132,159 136,159 140,159      │
00:21:24 verbose #23085 > > │ 144,143 148,130 153,130 157,130 161,120 165,112 169,112 173,112 178,106      │
00:21:24 verbose #23086 > > │ 182,101 186,101 190,101 194,97 198,94 203,94 207,94 211,92 215,91 219,91     │
00:21:24 verbose #23087 > > │ 223,91 228,89 232,88 236,88 240,88 244,88 248,87 252,87 257,87 261,87 265,86 │
00:21:24 verbose #23088 > > │ 269,86 273,86 277,86 282,86 286,86 290,86 294,86 298,86 302,86 307,86 311,86 │
00:21:24 verbose #23089 > > │ 315,86 319,86 323,86 327,86 331,85 336,85 340,85 344,85 348,85 352,85 356,85 │
00:21:24 verbose #23090 > > │ 361,85 365,85 369,85 373,85 377,85 381,85 386,85 390,85 394,85 398,85 402,85 │
00:21:24 verbose #23091 > > │ 406,85 410,85 415,85 419,85 423,85 427,85 431,85 435,85 440,85 444,85 448,85 │
00:21:24 verbose #23092 > > │ 452,85 456,85 460,85 465,85 469,85 473,85 477,85 481,85 485,85 490,85 494,85 │
00:21:24 verbose #23093 > > │ 498,85 502,85 506,85 510,85 514,85 519,85 523,85 527,85 531,85 535,85 539,85 │
00:21:24 verbose #23094 > > │ 544,85 548,85 552,85 556,85 560,85 564,85 569,85 "/>                         │
00:21:24 verbose #23095 > > │ <rect x="410" y="235" width="170" height="30" opacity="1" fill="none"        │
00:21:24 verbose #23096 > > │ stroke="#FFFFFF"/>                                                           │
00:21:24 verbose #23097 > > │ <text x="450" y="245" dy="0.76em" text-anchor="start"                        │
00:21:24 verbose #23098 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:21:24 verbose #23099 > > │ fill="#FFFFFF">                                                              │
00:21:24 verbose #23100 > > │ velocity of bike (m/s)                                                       │
00:21:24 verbose #23101 > > │ </text>                                                                      │
00:21:24 verbose #23102 > > │ <polyline fill="none" opacity="1" stroke="#FF0000" stroke-width="1"          │
00:21:24 verbose #23103 > > │ points="420,250 440,250 "/>                                                  │
00:21:24 verbose #23104 > > │ </svg>                                                                       │
00:21:24 verbose #23105 > > │                                                                              │
00:21:24 verbose #23106 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:24 verbose #23107 > >
00:21:24 verbose #23108 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:24 verbose #23109 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:24 verbose #23110 > > │ ### velocity_ftv                                                             │
00:21:24 verbose #23111 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:24 verbose #23112 > >
00:21:24 verbose #23113 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:24 verbose #23114 > > inl newton_second_tv m fs (t, v0) =
00:21:24 verbose #23115 > >     inl f_net = fs |> listm.map (fun f => f (t, v0)) |> listm'.sum
00:21:24 verbose #23116 > >     inl acc = f_net / m
00:21:24 verbose #23117 > >     1, acc
00:21:24 verbose #23118 > >
00:21:24 verbose #23119 > > inl update_tv dt m fs (t, v0) =
00:21:24 verbose #23120 > >     inl dtdt, dvdt = newton_second_tv m fs (t, v0)
00:21:24 verbose #23121 > >     t + dtdt * dt, v0 + dvdt * dt
00:21:24 verbose #23122 > >
00:21:24 verbose #23123 > > inl velocity_ftv dt m tv0 fs t =
00:21:24 verbose #23124 > >     stream.iterate (join update_tv dt m fs) tv0
00:21:24 verbose #23125 > >     |> stream.try_item (t / dt |> math.round |> abs)
00:21:24 verbose #23126 > >     |> optionm.map snd
00:21:24 verbose #23127 > >     |> optionm'.default_value 0
00:21:24 verbose #23128 > 00:21:24   debug #1318 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fb330b1c26ba7cccf749e5ac9ab861b60028abae2bc4a2f60c3103158127d4b2/main.spi
00:21:25 verbose #23129 > >
00:21:25 verbose #23130 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:25 verbose #23131 > > //// test
00:21:25 verbose #23132 > >
00:21:25 verbose #23133 > > inl x = am'.init_series 0 100 0.1
00:21:25 verbose #23134 > > inl y =
00:21:25 verbose #23135 > >     x
00:21:25 verbose #23136 > >     |> am'.map_base (
00:21:25 verbose #23137 > >         velocity_ftv 0.1 20 (dyn (0, 0)) [[ fun (t, _) => pedal_coast t; fun (_,
00:21:25 verbose #23138 > > v) => f_air 2 1.225 0.5 v ]]
00:21:25 verbose #23139 > >     )
00:21:25 verbose #23140 > > "pedaling and coasting with air", "time (s)", "", ;[[ "velocity of bike (m/s)",
00:21:25 verbose #23141 > > x, y ]]
00:21:25 verbose #23142 > 00:21:24   debug #1319 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5237935cef7c8c2cd9b66da7603fef6d8d0433a19547d3ec203aa90db317ce01/main.spi
00:21:25 verbose #23143 > >
00:21:25 verbose #23144 > > ╭─[ 739.90ms - return value ]──────────────────────────────────────────────────╮
00:21:25 verbose #23145 > > │ <svg width="640" height="480" viewBox="0 0 640 480"                          │
00:21:25 verbose #23146 > > │ xmlns="http://www.w3.org/2000/svg">                                          │
00:21:25 verbose #23147 > > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414"        │
00:21:25 verbose #23148 > > │ stroke="none"/>                                                              │
00:21:25 verbose #23149 > > │ <text x="320" y="10" dy="0.76em" text-anchor="middle"                        │
00:21:25 verbose #23150 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:21:25 verbose #23151 > > │ fill="#FFFFFF">                                                              │
00:21:25 verbose #23152 > > │ pedaling and coasting with air                                               │
00:21:25 verbose #23153 > > │ </text>                                                                      │
00:21:25 verbose #23154 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="59" y1="424" x2="59" │
00:21:25 verbose #23155 > > │ y2="75"/>                                                                    │
00:21:25 verbose #23156 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:21:25 verbose #23157 > > │ y2="75"/>                                                                    │
00:21:25 verbose #23158 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="79" y1="424" x2="79" │
00:21:25 verbose #23159 > > │ y2="75"/>                                                                    │
00:21:25 verbose #23160 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="89" y1="424" x2="89" │
00:21:25 verbose #23161 > > │ y2="75"/>                                                                    │
00:21:25 verbose #23162 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="99" y1="424" x2="99" │
00:21:25 verbose #23163 > > │ y2="75"/>                                                                    │
00:21:25 verbose #23164 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="109" y1="424"        │
00:21:25 verbose #23165 > > │ x2="109" y2="75"/>                                                           │
00:21:25 verbose #23166 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="119" y1="424"        │
00:21:25 verbose #23167 > > │ x2="119" y2="75"/>                                                           │
00:21:25 verbose #23168 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="129" y1="424"        │
00:21:25 verbose #23169 > > │ x2="129" y2="75"/>                                                           │
00:21:25 verbose #23170 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="139" y1="424"        │
00:21:25 verbose #23171 > > │ x2="139" y2="75"/>                                                           │
00:21:25 verbose #23172 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="149" y1="424"        │
00:21:25 verbose #23173 > > │ x2="149" y2="75"/>                                                           │
00:21:25 verbose #23174 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="159" y1="424"        │
00:21:25 verbose #23175 > > │ x2="159" y2="75"/>                                                           │
00:21:25 verbose #23176 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="169" y1="424"        │
00:21:25 verbose #23177 > > │ x2="169" y2="75"/>                                                           │
00:21:25 verbose #23178 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="179" y1="424"        │
00:21:25 verbose #23179 > > │ x2="179" y2="75"/>                                                           │
00:21:25 verbose #23180 > > │ <li... 497,128 497,126 498,125 498,123 499,122 499,121 500,119 500,118       │
00:21:25 verbose #23181 > > │ 501,117 501,116 502,114 502,113 503,112 503,111 504,110 504,109 505,108      │
00:21:25 verbose #23182 > > │ 505,107 506,106 506,105 507,104 507,103 508,102 508,101 509,100 509,99       │
00:21:25 verbose #23183 > > │ 510,98 510,98 511,97 511,96 512,95 512,94 513,94 513,93 514,92 514,92 515,91 │
00:21:25 verbose #23184 > > │ 515,90 516,90 516,89 517,88 517,88 518,87 518,87 519,86 519,85 520,89 520,93 │
00:21:25 verbose #23185 > > │ 521,97 521,100 522,104 522,107 523,110 523,114 524,117 524,120 525,123       │
00:21:25 verbose #23186 > > │ 525,126 526,129 526,132 527,135 527,137 528,140 528,143 529,145 529,148      │
00:21:25 verbose #23187 > > │ 530,150 530,153 531,155 531,158 532,160 532,162 533,165 533,167 534,169      │
00:21:25 verbose #23188 > > │ 534,171 535,173 535,175 536,177 536,179 537,181 537,183 538,185 538,187      │
00:21:25 verbose #23189 > > │ 539,189 539,190 540,192 540,194 541,196 541,197 542,199 542,201 543,202      │
00:21:25 verbose #23190 > > │ 543,204 544,205 544,207 545,208 545,210 546,211 546,213 547,214 547,216      │
00:21:25 verbose #23191 > > │ 548,217 548,219 549,220 549,221 550,223 550,224 551,225 551,226 552,228      │
00:21:25 verbose #23192 > > │ 552,229 553,230 553,231 554,232 554,234 555,235 555,236 556,237 556,238      │
00:21:25 verbose #23193 > > │ 557,239 557,240 558,241 558,242 559,243 559,245 560,246 560,247 561,248      │
00:21:25 verbose #23194 > > │ 561,249 562,249 562,250 563,251 563,252 564,253 564,254 565,255 565,256      │
00:21:25 verbose #23195 > > │ 566,257 566,258 567,259 567,259 568,260 568,261 569,262 "/>                  │
00:21:25 verbose #23196 > > │ <rect x="410" y="235" width="170" height="30" opacity="1" fill="none"        │
00:21:25 verbose #23197 > > │ stroke="#FFFFFF"/>                                                           │
00:21:25 verbose #23198 > > │ <text x="450" y="245" dy="0.76em" text-anchor="start"                        │
00:21:25 verbose #23199 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:21:25 verbose #23200 > > │ fill="#FFFFFF">                                                              │
00:21:25 verbose #23201 > > │ velocity of bike (m/s)                                                       │
00:21:25 verbose #23202 > > │ </text>                                                                      │
00:21:25 verbose #23203 > > │ <polyline fill="none" opacity="1" stroke="#FF0000" stroke-width="1"          │
00:21:25 verbose #23204 > > │ points="420,250 440,250 "/>                                                  │
00:21:25 verbose #23205 > > │ </svg>                                                                       │
00:21:25 verbose #23206 > > │                                                                              │
00:21:25 verbose #23207 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:25 verbose #23208 > >
00:21:25 verbose #23209 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:25 verbose #23210 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:25 verbose #23211 > > │ ### velocity_ftxv                                                            │
00:21:25 verbose #23212 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:25 verbose #23213 > >
00:21:25 verbose #23214 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:25 verbose #23215 > > nominal state_1d = time * position * velocity
00:21:25 verbose #23216 > > nominal rrr = f64 * f64 * f64
00:21:25 verbose #23217 > >
00:21:25 verbose #23218 > > inl newton_second_1d m fs (state_1d (t, x0, v0)) =
00:21:25 verbose #23219 > >     inl f_net = fs |> listm.map (fun f => f (state_1d (t, x0, v0))) |>
00:21:25 verbose #23220 > > listm'.sum
00:21:25 verbose #23221 > >     inl acc = f_net / m
00:21:25 verbose #23222 > >     rrr (1f64, v0, acc)
00:21:25 verbose #23223 > >
00:21:25 verbose #23224 > > inl euler_1d dt deriv (state_1d (t0, x0, v0) as t) =
00:21:25 verbose #23225 > >     inl (rrr (_, _, dvdt)) = deriv t
00:21:25 verbose #23226 > >     inl t1 = t0 + dt
00:21:25 verbose #23227 > >     inl x1 = x0 + v0 * dt
00:21:25 verbose #23228 > >     inl v1 = v0 + dvdt * dt
00:21:25 verbose #23229 > >     state_1d (t1, x1, v1)
00:21:25 verbose #23230 > >
00:21:25 verbose #23231 > > inl update_txv dt m fs =
00:21:25 verbose #23232 > >     newton_second_1d m fs |> euler_1d dt
00:21:25 verbose #23233 > >
00:21:25 verbose #23234 > > inl states_txv dt m txv0 fs =
00:21:25 verbose #23235 > >     seq.iterate_ (update_txv dt m fs) txv0
00:21:25 verbose #23236 > >
00:21:25 verbose #23237 > > inl velocity_1d sts t =
00:21:25 verbose #23238 > >     inl (state_1d (t0, _, _)) = sts 0
00:21:25 verbose #23239 > >     inl (state_1d (t1, _, _)) = sts 1
00:21:25 verbose #23240 > >     inl dt = t1 - t0
00:21:25 verbose #23241 > >     inl num_steps = t / dt |> math.round |> abs
00:21:25 verbose #23242 > >     inl (state_1d (_, _, v0)) = sts num_steps
00:21:25 verbose #23243 > >     v0
00:21:25 verbose #23244 > >
00:21:25 verbose #23245 > > inl velocity_ftxv dt m txv0 fs =
00:21:25 verbose #23246 > >     states_txv dt m txv0 fs |> velocity_1d
00:21:25 verbose #23247 > >
00:21:25 verbose #23248 > > inl position_1d sts t =
00:21:25 verbose #23249 > >     inl (state_1d (t0, _, _)) = sts 0
00:21:25 verbose #23250 > >     inl (state_1d (t1, _, _)) = sts 1
00:21:25 verbose #23251 > >     inl dt = t1 - t0
00:21:25 verbose #23252 > >     inl num_steps = t / dt |> math.round |> abs
00:21:25 verbose #23253 > >     inl (state_1d (_, x0, _)) = sts num_steps
00:21:25 verbose #23254 > >     x0
00:21:25 verbose #23255 > >
00:21:25 verbose #23256 > > inl position_ftxv dt m txv0 fs =
00:21:25 verbose #23257 > >     states_txv dt m txv0 fs |> position_1d
00:21:25 verbose #23258 > >
00:21:25 verbose #23259 > > inl spring_force k (state_1d (_, x0, _)) =
00:21:25 verbose #23260 > >     -k * x0
00:21:26 verbose #23261 > 00:21:25   debug #1320 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5b26059111ed60409ab4be3e3d578c9f88f0ed4e2ab0827652530723a1471c39/main.spi
00:21:26 verbose #23262 > >
00:21:26 verbose #23263 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:26 verbose #23264 > > //// test
00:21:26 verbose #23265 > >
00:21:26 verbose #23266 > > inl damped_ho_forces () =
00:21:26 verbose #23267 > >     [[
00:21:26 verbose #23268 > >         spring_force 0.8
00:21:26 verbose #23269 > >         fun (state_1d (_, _, v0)) => f_air 2 1.225 (pi * math.square 0.02) v0
00:21:26 verbose #23270 > >         fun _ => -0.0027 * 9.80665
00:21:26 verbose #23271 > >     ]]
00:21:26 verbose #23272 > >
00:21:26 verbose #23273 > > inl damped_ho_states () =
00:21:26 verbose #23274 > >     states_txv 0.001 0.0027 (state_1d (0, 0.1, 0)) (damped_ho_forces ())
00:21:26 verbose #23275 > >
00:21:26 verbose #23276 > > inl pingpong_position t =
00:21:26 verbose #23277 > >     position_ftxv 0.001 0.0027 (state_1d (0, 0.1, 0)) (damped_ho_forces ()) t
00:21:26 verbose #23278 > >
00:21:26 verbose #23279 > > inl x = am'.init_series 0 3 0.01
00:21:26 verbose #23280 > > inl y = x |> am'.map_base pingpong_position
00:21:26 verbose #23281 > > "ping pong ball on a slinky", "time (s)", "", ;[[ "position (m)", x, y ]]
00:21:26 verbose #23282 > 00:21:25   debug #1321 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e39341c86ea083ff2e6a49a337d7d1932da50be56a679b9194d19c3fb2effd11/main.spi
00:21:26 verbose #23283 > >
00:21:26 verbose #23284 > > ╭─[ 557.74ms - return value ]──────────────────────────────────────────────────╮
00:21:26 verbose #23285 > > │ <svg width="640" height="480" viewBox="0 0 640 480"                          │
00:21:26 verbose #23286 > > │ xmlns="http://www.w3.org/2000/svg">                                          │
00:21:26 verbose #23287 > > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414"        │
00:21:26 verbose #23288 > > │ stroke="none"/>                                                              │
00:21:26 verbose #23289 > > │ <text x="320" y="10" dy="0.76em" text-anchor="middle"                        │
00:21:26 verbose #23290 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:21:26 verbose #23291 > > │ fill="#FFFFFF">                                                              │
00:21:26 verbose #23292 > > │ ping pong ball on a slinky                                                   │
00:21:26 verbose #23293 > > │ </text>                                                                      │
00:21:26 verbose #23294 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="61" y1="424" x2="61" │
00:21:26 verbose #23295 > > │ y2="75"/>                                                                    │
00:21:26 verbose #23296 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:21:26 verbose #23297 > > │ y2="75"/>                                                                    │
00:21:26 verbose #23298 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="78" y1="424" x2="78" │
00:21:26 verbose #23299 > > │ y2="75"/>                                                                    │
00:21:26 verbose #23300 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="86" y1="424" x2="86" │
00:21:26 verbose #23301 > > │ y2="75"/>                                                                    │
00:21:26 verbose #23302 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="94" y1="424" x2="94" │
00:21:26 verbose #23303 > > │ y2="75"/>                                                                    │
00:21:26 verbose #23304 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="103" y1="424"        │
00:21:26 verbose #23305 > > │ x2="103" y2="75"/>                                                           │
00:21:26 verbose #23306 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="111" y1="424"        │
00:21:26 verbose #23307 > > │ x2="111" y2="75"/>                                                           │
00:21:26 verbose #23308 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="119" y1="424"        │
00:21:26 verbose #23309 > > │ x2="119" y2="75"/>                                                           │
00:21:26 verbose #23310 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="128" y1="424"        │
00:21:26 verbose #23311 > > │ x2="128" y2="75"/>                                                           │
00:21:26 verbose #23312 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="136" y1="424"        │
00:21:26 verbose #23313 > > │ x2="136" y2="75"/>                                                           │
00:21:26 verbose #23314 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="144" y1="424"        │
00:21:26 verbose #23315 > > │ x2="144" y2="75"/>                                                           │
00:21:26 verbose #23316 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="153" y1="424"        │
00:21:26 verbose #23317 > > │ x2="153" y2="75"/>                                                           │
00:21:26 verbose #23318 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="161" y1="424"        │
00:21:26 verbose #23319 > > │ x2="161" y2="75"/>                                                           │
00:21:26 verbose #23320 > > │ <line o...88 332,305 334,321 336,334 337,346 339,354 341,360 342,363 344,362 │
00:21:26 verbose #23321 > > │ 346,359 347,352 349,342 351,330 352,316 354,300 356,283 357,265 359,247      │
00:21:26 verbose #23322 > > │ 361,229 362,212 364,197 366,183 367,172 369,163 371,156 372,153 374,153      │
00:21:26 verbose #23323 > > │ 376,156 377,161 379,170 381,181 382,194 384,209 386,226 387,243 389,260      │
00:21:26 verbose #23324 > > │ 391,277 392,294 394,309 396,323 397,335 399,344 401,351 402,355 404,356      │
00:21:26 verbose #23325 > > │ 406,354 407,349 409,341 410,331 412,319 414,305 415,289 417,273 419,256      │
00:21:26 verbose #23326 > > │ 420,239 422,223 424,208 425,194 427,182 429,172 430,165 432,161 434,159      │
00:21:26 verbose #23327 > > │ 435,160 437,164 439,171 440,180 442,192 444,205 445,220 447,235 449,252      │
00:21:26 verbose #23328 > > │ 450,268 452,284 454,299 455,313 457,325 459,335 460,342 462,347 464,350      │
00:21:26 verbose #23329 > > │ 465,349 467,346 469,340 470,332 472,321 474,309 475,295 477,280 479,264      │
00:21:26 verbose #23330 > > │ 480,248 482,232 484,217 485,204 487,192 489,181 490,173 492,168 494,165      │
00:21:26 verbose #23331 > > │ 495,165 497,167 499,172 500,180 502,189 504,201 505,215 507,229 509,244      │
00:21:26 verbose #23332 > > │ 510,260 512,275 514,290 515,303 517,316 519,326 520,335 522,341 524,344      │
00:21:26 verbose #23333 > > │ 525,345 527,343 529,339 530,332 532,323 534,312 535,300 537,286 539,271      │
00:21:26 verbose #23334 > > │ 540,256 542,241 544,226 545,213 547,200 549,190 550,181 552,175 554,171      │
00:21:26 verbose #23335 > > │ 555,169 557,170 559,174 560,180 562,188 564,198 565,210 567,223 569,238 "/>  │
00:21:26 verbose #23336 > > │ <rect x="464" y="235" width="116" height="30" opacity="1" fill="none"        │
00:21:26 verbose #23337 > > │ stroke="#FFFFFF"/>                                                           │
00:21:26 verbose #23338 > > │ <text x="504" y="245" dy="0.76em" text-anchor="start"                        │
00:21:26 verbose #23339 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:21:26 verbose #23340 > > │ fill="#FFFFFF">                                                              │
00:21:26 verbose #23341 > > │ position (m)                                                                 │
00:21:26 verbose #23342 > > │ </text>                                                                      │
00:21:26 verbose #23343 > > │ <polyline fill="none" opacity="1" stroke="#FF0000" stroke-width="1"          │
00:21:26 verbose #23344 > > │ points="474,250 494,250 "/>                                                  │
00:21:26 verbose #23345 > > │ </svg>                                                                       │
00:21:26 verbose #23346 > > │                                                                              │
00:21:26 verbose #23347 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:26 verbose #23348 > >
00:21:26 verbose #23349 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:26 verbose #23350 > > //// test
00:21:26 verbose #23351 > >
00:21:26 verbose #23352 > > inl pingpong_velocity t =
00:21:26 verbose #23353 > >     velocity_ftxv 0.001 0.0027 (state_1d (0, 0.1, 0)) (damped_ho_forces ()) t
00:21:26 verbose #23354 > >
00:21:26 verbose #23355 > > inl x = am'.init_series 0 3 0.01
00:21:26 verbose #23356 > > inl y = x |> am'.map_base pingpong_velocity
00:21:26 verbose #23357 > > "ping pong ball on a slinky", "time (s)", "", ;[[ "velocity (m/s)", x, y ]]
00:21:27 verbose #23358 > 00:21:26   debug #1322 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a8625e45963294b0e9f3aadbbb4a23b64014e8b401ced3383b278024e8b6e221/main.spi
00:21:27 verbose #23359 > >
00:21:27 verbose #23360 > > ╭─[ 430.27ms - return value ]──────────────────────────────────────────────────╮
00:21:27 verbose #23361 > > │ <svg width="640" height="480" viewBox="0 0 640 480"                          │
00:21:27 verbose #23362 > > │ xmlns="http://www.w3.org/2000/svg">                                          │
00:21:27 verbose #23363 > > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414"        │
00:21:27 verbose #23364 > > │ stroke="none"/>                                                              │
00:21:27 verbose #23365 > > │ <text x="320" y="10" dy="0.76em" text-anchor="middle"                        │
00:21:27 verbose #23366 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:21:27 verbose #23367 > > │ fill="#FFFFFF">                                                              │
00:21:27 verbose #23368 > > │ ping pong ball on a slinky                                                   │
00:21:27 verbose #23369 > > │ </text>                                                                      │
00:21:27 verbose #23370 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="61" y1="424" x2="61" │
00:21:27 verbose #23371 > > │ y2="75"/>                                                                    │
00:21:27 verbose #23372 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:21:27 verbose #23373 > > │ y2="75"/>                                                                    │
00:21:27 verbose #23374 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="78" y1="424" x2="78" │
00:21:27 verbose #23375 > > │ y2="75"/>                                                                    │
00:21:27 verbose #23376 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="86" y1="424" x2="86" │
00:21:27 verbose #23377 > > │ y2="75"/>                                                                    │
00:21:27 verbose #23378 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="94" y1="424" x2="94" │
00:21:27 verbose #23379 > > │ y2="75"/>                                                                    │
00:21:27 verbose #23380 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="103" y1="424"        │
00:21:27 verbose #23381 > > │ x2="103" y2="75"/>                                                           │
00:21:27 verbose #23382 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="111" y1="424"        │
00:21:27 verbose #23383 > > │ x2="111" y2="75"/>                                                           │
00:21:27 verbose #23384 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="119" y1="424"        │
00:21:27 verbose #23385 > > │ x2="119" y2="75"/>                                                           │
00:21:27 verbose #23386 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="128" y1="424"        │
00:21:27 verbose #23387 > > │ x2="128" y2="75"/>                                                           │
00:21:27 verbose #23388 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="136" y1="424"        │
00:21:27 verbose #23389 > > │ x2="136" y2="75"/>                                                           │
00:21:27 verbose #23390 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="144" y1="424"        │
00:21:27 verbose #23391 > > │ x2="144" y2="75"/>                                                           │
00:21:27 verbose #23392 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="153" y1="424"        │
00:21:27 verbose #23393 > > │ x2="153" y2="75"/>                                                           │
00:21:27 verbose #23394 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="161" y1="424"        │
00:21:27 verbose #23395 > > │ x2="161" y2="75"/>                                                           │
00:21:27 verbose #23396 > > │ <line o... 332,343 334,332 336,319 337,304 339,287 341,269 342,250 344,231   │
00:21:27 verbose #23397 > > │ 346,212 347,195 349,178 351,164 352,153 354,144 356,138 357,136 359,136      │
00:21:27 verbose #23398 > > │ 361,140 362,147 364,157 366,169 367,183 369,199 371,216 372,234 374,253      │
00:21:27 verbose #23399 > > │ 376,271 377,288 379,304 381,318 382,330 384,339 386,346 387,349 389,349      │
00:21:27 verbose #23400 > > │ 391,346 392,340 394,332 396,321 397,307 399,292 401,276 402,258 404,241      │
00:21:27 verbose #23401 > > │ 406,223 407,206 409,190 410,176 412,164 414,154 415,148 417,144 419,143      │
00:21:27 verbose #23402 > > │ 420,145 422,150 424,158 425,168 427,180 429,194 430,210 432,227 434,244      │
00:21:27 verbose #23403 > > │ 435,261 437,278 439,293 440,307 442,320 444,330 445,337 447,341 449,343      │
00:21:27 verbose #23404 > > │ 450,342 452,338 454,331 455,322 457,310 459,297 460,282 462,266 464,249      │
00:21:27 verbose #23405 > > │ 465,233 467,216 469,201 470,187 472,174 474,164 475,156 477,151 479,149      │
00:21:27 verbose #23406 > > │ 480,149 482,153 484,159 485,167 487,178 489,190 490,204 492,220 494,236      │
00:21:27 verbose #23407 > > │ 495,252 497,268 499,283 500,297 502,310 504,320 505,329 507,334 509,337      │
00:21:27 verbose #23408 > > │ 510,337 512,335 514,330 515,322 517,312 519,300 520,287 522,272 524,257      │
00:21:27 verbose #23409 > > │ 525,241 527,226 529,210 530,196 532,184 534,173 535,164 537,158 539,154      │
00:21:27 verbose #23410 > > │ 540,154 542,155 544,160 545,167 547,176 549,187 550,199 552,213 554,228      │
00:21:27 verbose #23411 > > │ 555,244 557,259 559,274 560,288 562,301 564,312 565,321 567,327 569,332 "/>  │
00:21:27 verbose #23412 > > │ <rect x="454" y="235" width="126" height="30" opacity="1" fill="none"        │
00:21:27 verbose #23413 > > │ stroke="#FFFFFF"/>                                                           │
00:21:27 verbose #23414 > > │ <text x="494" y="245" dy="0.76em" text-anchor="start"                        │
00:21:27 verbose #23415 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:21:27 verbose #23416 > > │ fill="#FFFFFF">                                                              │
00:21:27 verbose #23417 > > │ velocity (m/s)                                                               │
00:21:27 verbose #23418 > > │ </text>                                                                      │
00:21:27 verbose #23419 > > │ <polyline fill="none" opacity="1" stroke="#FF0000" stroke-width="1"          │
00:21:27 verbose #23420 > > │ points="464,250 484,250 "/>                                                  │
00:21:27 verbose #23421 > > │ </svg>                                                                       │
00:21:27 verbose #23422 > > │                                                                              │
00:21:27 verbose #23423 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:27 verbose #23424 > >
00:21:27 verbose #23425 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:27 verbose #23426 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:27 verbose #23427 > > │ ### shift                                                                    │
00:21:27 verbose #23428 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:27 verbose #23429 > >
00:21:27 verbose #23430 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:27 verbose #23431 > > type update_function s = s -> s
00:21:27 verbose #23432 > >
00:21:27 verbose #23433 > > type differential_equation s ds = s -> ds
00:21:27 verbose #23434 > >
00:21:27 verbose #23435 > > type numerical_method s ds = differential_equation s ds -> update_function s
00:21:27 verbose #23436 > >
00:21:27 verbose #23437 > >
00:21:27 verbose #23438 > > inl solver method =
00:21:27 verbose #23439 > >     method >> seq.iterate
00:21:27 verbose #23440 > > inl solver' method =
00:21:27 verbose #23441 > >     method >> seq.iterate'
00:21:27 verbose #23442 > > inl solver_ method =
00:21:27 verbose #23443 > >     method >> seq.iterate_
00:21:27 verbose #23444 > >
00:21:27 verbose #23445 > >
00:21:27 verbose #23446 > > inl euler_cromer_1d dt deriv (state_1d (t0, x0, v0) as t) =
00:21:27 verbose #23447 > >     inl (rrr (_, _, dvdt)) = deriv t
00:21:27 verbose #23448 > >     inl t1 = t0 + dt
00:21:27 verbose #23449 > >     inl v1 = v0 + dvdt * dt
00:21:27 verbose #23450 > >     inl x1 = x0 + v1 * dt
00:21:27 verbose #23451 > >     state_1d (t1, x1, v1)
00:21:27 verbose #23452 > >
00:21:27 verbose #23453 > > inl update_txv_ec dt m fs =
00:21:27 verbose #23454 > >     euler_cromer_1d dt (newton_second_1d m fs)
00:21:27 verbose #23455 > >
00:21:27 verbose #23456 > > prototype (+++) ds : ds -> ds -> ds
00:21:27 verbose #23457 > > prototype scale ds : f64 -> ds -> ds
00:21:27 verbose #23458 > >
00:21:27 verbose #23459 > > instance (+++) rrr = fun (rrr (dtdt0, dxdt0, dvdt0)) (rrr (dtdt1, dxdt1, dvdt1))
00:21:27 verbose #23460 > > =>
00:21:27 verbose #23461 > >     rrr (dtdt0 + dtdt1, dxdt0 + dxdt1, dvdt0 + dvdt1)
00:21:27 verbose #23462 > >
00:21:27 verbose #23463 > > instance scale rrr = fun w (rrr (dtdt0, dxdt0, dvdt0)) =>
00:21:27 verbose #23464 > >     rrr (w * dtdt0, w * dxdt0, w * dvdt0)
00:21:27 verbose #23465 > >
00:21:27 verbose #23466 > > prototype shift s : forall ds. f64 -> ds -> s -> s
00:21:27 verbose #23467 > >
00:21:27 verbose #23468 > > instance shift state_1d = fun dt ds (state_1d (t, x, v)) =>
00:21:27 verbose #23469 > >     inl dtdt, dxdt, dvdt =
00:21:27 verbose #23470 > >         real
00:21:27 verbose #23471 > >             match ds with
00:21:27 verbose #23472 > >             | rrr x => x
00:21:27 verbose #23473 > >             | state_1d x => x
00:21:27 verbose #23474 > >     state_1d (t + dtdt * dt, x + dxdt * dt, v + dvdt * dt)
00:21:27 verbose #23475 > >
00:21:27 verbose #23476 > > inl euler dt deriv st0 =
00:21:27 verbose #23477 > >     shift dt (deriv st0) st0
00:21:27 verbose #23478 > >
00:21:27 verbose #23479 > > inl runge_kutta_4 dt deriv st0 =
00:21:27 verbose #23480 > >     inl m0 = deriv st0
00:21:27 verbose #23481 > >     inl m1 = deriv (shift (dt / 2) m0 st0)
00:21:27 verbose #23482 > >     inl m2 = deriv (shift (dt / 2) m1 st0)
00:21:27 verbose #23483 > >     inl m3 = deriv (shift dt m2 st0)
00:21:27 verbose #23484 > >     shift (dt / 6) (m0 +++ m1 +++ m1 +++ m2 +++ m2 +++ m3) st0
00:21:27 verbose #23485 > >
00:21:27 verbose #23486 > > inl exponential (_, x0, v0) =
00:21:27 verbose #23487 > >     1f64, v0, x0
00:21:27 verbose #23488 > >
00:21:27 verbose #23489 > > inl of_state_1d (state_1d (t, x, v)) =
00:21:27 verbose #23490 > >     t, x, v
00:21:27 verbose #23491 > 00:21:26   debug #1323 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2b177fa6e846fd6fe8c835d2b919f65eb7605ccdda9636c47e35dfa042b3ac26/main.spi
00:21:27 verbose #23492 > >
00:21:27 verbose #23493 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:27 verbose #23494 > > //// test
00:21:27 verbose #23495 > >
00:21:27 verbose #23496 > > solver (euler 0.01) (of_state_1d >> exponential >> state_1d) (state_1d (0, 1,
00:21:27 verbose #23497 > > 1)) 800i32
00:21:27 verbose #23498 > > |> _assert_eq (state_1d (7.999999999999874, 2864.8311229272326,
00:21:27 verbose #23499 > > 2864.8311229272326))
00:21:27 verbose #23500 > >
00:21:27 verbose #23501 > > solver (euler_cromer_1d 0.1) (of_state_1d >> exponential >> rrr) (state_1d (0,
00:21:27 verbose #23502 > > 1, 1)) 80i32
00:21:27 verbose #23503 > > |> _assert_eq (state_1d (7.999999999999988, 3043.379244966009,
00:21:27 verbose #23504 > > 2895.0121485099035))
00:21:27 verbose #23505 > >
00:21:27 verbose #23506 > > solver (runge_kutta_4 1) (of_state_1d >> exponential >> rrr) (state_1d (0, 1,
00:21:27 verbose #23507 > > 1)) 8i32
00:21:27 verbose #23508 > > |> _assert_eq (state_1d (8.0, 2894.789038540849, 2894.789038540849))
00:21:27 verbose #23509 > 00:21:27   debug #1324 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a84ed6aa97453ce0473d60123c8a13cc855b4896005faedfe86e4be5f38079c9/main.spi
00:21:28 verbose #23510 > >
00:21:28 verbose #23511 > > ╭─[ 644.65ms - stdout ]────────────────────────────────────────────────────────╮
00:21:28 verbose #23512 > > │ assert_eq / actual: struct (8.0, 2864.831123, 2864.831123) / expected:       │
00:21:28 verbose #23513 > > │ struct (8.0, 2864.831123, 2864.831123)                                       │
00:21:28 verbose #23514 > > │ assert_eq / actual: struct (8.0, 3043.379245, 2895.012149) / expected:       │
00:21:28 verbose #23515 > > │ struct (8.0, 3043.379245, 2895.012149)                                       │
00:21:28 verbose #23516 > > │ assert_eq / actual: struct (8.0, 2894.789039, 2894.789039) / expected:       │
00:21:28 verbose #23517 > > │ struct (8.0, 2894.789039, 2894.789039)                                       │
00:21:28 verbose #23518 > > │                                                                              │
00:21:28 verbose #23519 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:28 verbose #23520 > >
00:21:28 verbose #23521 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:28 verbose #23522 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:28 verbose #23523 > > │ ### vec                                                                      │
00:21:28 verbose #23524 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:28 verbose #23525 > >
00:21:28 verbose #23526 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:28 verbose #23527 > > type vec =
00:21:28 verbose #23528 > >     {
00:21:28 verbose #23529 > >         x : f64
00:21:28 verbose #23530 > >         y : f64
00:21:28 verbose #23531 > >         z : f64
00:21:28 verbose #23532 > >     }
00:21:28 verbose #23533 > >
00:21:28 verbose #23534 > > inl vec x y z : vec =
00:21:28 verbose #23535 > >     { x y z }
00:21:28 verbose #23536 > 00:21:27   debug #1325 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c28cee7ab3252539f022429fa878866144d2047ab4135421fc603bcd098c50f1/main.spi
00:21:28 verbose #23537 > >
00:21:28 verbose #23538 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:28 verbose #23539 > > //// test
00:21:28 verbose #23540 > >
00:21:28 verbose #23541 > > vec 1 2 3 .z
00:21:28 verbose #23542 > > |> _assert_eq 3
00:21:28 verbose #23543 > 00:21:28   debug #1326 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/32fa5d5587282464522590037b07108ac5de4837904f39dfe01d3348422df2f2/main.spi
00:21:29 verbose #23544 > >
00:21:29 verbose #23545 > > ╭─[ 420.65ms - stdout ]────────────────────────────────────────────────────────╮
00:21:29 verbose #23546 > > │ assert_eq / actual: 3.0 / expected: 3.0                                      │
00:21:29 verbose #23547 > > │                                                                              │
00:21:29 verbose #23548 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:29 verbose #23549 > >
00:21:29 verbose #23550 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:29 verbose #23551 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:29 verbose #23552 > > │ #### consts                                                                  │
00:21:29 verbose #23553 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:29 verbose #23554 > >
00:21:29 verbose #23555 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:29 verbose #23556 > > inl i_hat () = vec 1 0 0
00:21:29 verbose #23557 > > inl j_hat () = vec 0 1 0
00:21:29 verbose #23558 > > inl k_hat () = vec 0 0 1
00:21:29 verbose #23559 > > inl zero_vec () = vec 0 0 0
00:21:29 verbose #23560 > 00:21:28   debug #1327 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f788cd1834a9711c3513641fb8cdd0a4c456c1559dd1074498fbaa5feff8304b/main.spi
00:21:29 verbose #23561 > >
00:21:29 verbose #23562 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:29 verbose #23563 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:29 verbose #23564 > > │ #### ^+^                                                                     │
00:21:29 verbose #23565 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:29 verbose #23566 > >
00:21:29 verbose #23567 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:29 verbose #23568 > > inl (^+^) (a : vec) (b : vec) =
00:21:29 verbose #23569 > >     vec (a.x + b.x) (a.y + b.y) (a.z + b.z)
00:21:29 verbose #23570 > 00:21:28   debug #1328 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9f74772cbec4124144d174a5ab9e4accccd6db003a3d1c6c93859f1b2777fce6/main.spi
00:21:30 verbose #23571 > >
00:21:30 verbose #23572 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:30 verbose #23573 > > //// test
00:21:30 verbose #23574 > >
00:21:30 verbose #23575 > > vec 1 2 3 ^+^ vec 4 5 6
00:21:30 verbose #23576 > > |> _assert_eq (vec 5 7 9)
00:21:30 verbose #23577 > 00:21:29   debug #1329 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5245ecfda5104d7d1d4df505c026d5b0b182d9e741a27e682da71bf5afd01137/main.spi
00:21:30 verbose #23578 > >
00:21:30 verbose #23579 > > ╭─[ 394.06ms - stdout ]────────────────────────────────────────────────────────╮
00:21:30 verbose #23580 > > │ assert_eq / actual: struct (5.0, 7.0, 9.0) / expected: struct (5.0, 7.0,     │
00:21:30 verbose #23581 > > │ 9.0)                                                                         │
00:21:30 verbose #23582 > > │                                                                              │
00:21:30 verbose #23583 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:30 verbose #23584 > >
00:21:30 verbose #23585 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:30 verbose #23586 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:30 verbose #23587 > > │ #### sum_vec                                                                 │
00:21:30 verbose #23588 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:30 verbose #23589 > >
00:21:30 verbose #23590 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:30 verbose #23591 > > inl sum_vec vs =
00:21:30 verbose #23592 > >     vs |> listm.fold (^+^) (zero_vec ())
00:21:30 verbose #23593 > 00:21:29   debug #1330 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3a67358f48b2ada0cc471184639b494e01dc0d23a7658e81fc425d664e785cf2/main.spi
00:21:30 verbose #23594 > >
00:21:30 verbose #23595 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:30 verbose #23596 > > //// test
00:21:30 verbose #23597 > >
00:21:30 verbose #23598 > > [[ vec 1 2 3; vec 4 5 6 ]]
00:21:30 verbose #23599 > > |> sum_vec
00:21:30 verbose #23600 > > |> _assert_eq (vec 5 7 9)
00:21:31 verbose #23601 > 00:21:30   debug #1331 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5442cf2c82771c1c0d111dc1153fc4641a89ff6577fb22786c2f1a32b7d058dd/main.spi
00:21:31 verbose #23602 > >
00:21:31 verbose #23603 > > ╭─[ 362.07ms - stdout ]────────────────────────────────────────────────────────╮
00:21:31 verbose #23604 > > │ assert_eq / actual: struct (5.0, 7.0, 9.0) / expected: struct (5.0, 7.0,     │
00:21:31 verbose #23605 > > │ 9.0)                                                                         │
00:21:31 verbose #23606 > > │                                                                              │
00:21:31 verbose #23607 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:31 verbose #23608 > >
00:21:31 verbose #23609 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:31 verbose #23610 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:31 verbose #23611 > > │ #### *^                                                                      │
00:21:31 verbose #23612 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:31 verbose #23613 > >
00:21:31 verbose #23614 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:31 verbose #23615 > > inl (*^) c { x y z } =
00:21:31 verbose #23616 > >     vec (c * x) (c * y) (c * z)
00:21:31 verbose #23617 > 00:21:30   debug #1332 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/92bdd32c44dfc258a439cf535819f813e68866fae2c7c54b9e6d3a32ebbd2965/main.spi
00:21:31 verbose #23618 > >
00:21:31 verbose #23619 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:31 verbose #23620 > > //// test
00:21:31 verbose #23621 > >
00:21:31 verbose #23622 > > 5 *^ vec 1 2 3
00:21:31 verbose #23623 > > |> _assert_eq (vec 5 10 15)
00:21:31 verbose #23624 > 00:21:30   debug #1333 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ece1631e00b9c319a9b09efcd9208271eca60f83141fdcbddbb06480581a15d1/main.spi
00:21:31 verbose #23625 > >
00:21:31 verbose #23626 > > ╭─[ 446.68ms - stdout ]────────────────────────────────────────────────────────╮
00:21:31 verbose #23627 > > │ assert_eq / actual: struct (5.0, 10.0, 15.0) / expected: struct (5.0, 10.0,  │
00:21:31 verbose #23628 > > │ 15.0)                                                                        │
00:21:31 verbose #23629 > > │                                                                              │
00:21:31 verbose #23630 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:31 verbose #23631 > >
00:21:31 verbose #23632 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:31 verbose #23633 > > //// test
00:21:31 verbose #23634 > >
00:21:31 verbose #23635 > > 3 *^ i_hat () ^+^ 4 *^ k_hat ()
00:21:31 verbose #23636 > > |> _assert_eq (vec 3 0 4)
00:21:32 verbose #23637 > 00:21:31   debug #1334 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8c11de930ff1bc25d289a930c42e23ff99f5670e28dc30fca88830e099e693fc/main.spi
00:21:32 verbose #23638 > >
00:21:32 verbose #23639 > > ╭─[ 419.46ms - stdout ]────────────────────────────────────────────────────────╮
00:21:32 verbose #23640 > > │ assert_eq / actual: struct (3.0, 0.0, 4.0) / expected: struct (3.0, 0.0,     │
00:21:32 verbose #23641 > > │ 4.0)                                                                         │
00:21:32 verbose #23642 > > │                                                                              │
00:21:32 verbose #23643 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:32 verbose #23644 > >
00:21:32 verbose #23645 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:32 verbose #23646 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:32 verbose #23647 > > │ #### ^*                                                                      │
00:21:32 verbose #23648 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:32 verbose #23649 > >
00:21:32 verbose #23650 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:32 verbose #23651 > > inl (^*) v c =
00:21:32 verbose #23652 > >     (*^) c v
00:21:32 verbose #23653 > 00:21:31   debug #1335 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/59889c51298a8d14ac9095651bef3494224035f7d740352b1bda6b044acdbc04/main.spi
00:21:32 verbose #23654 > >
00:21:32 verbose #23655 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:32 verbose #23656 > > //// test
00:21:32 verbose #23657 > >
00:21:32 verbose #23658 > > vec 1 2 3 ^* 5
00:21:32 verbose #23659 > > |> _assert_eq (vec 5 10 15)
00:21:33 verbose #23660 > 00:21:32   debug #1336 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2d380c606f15910da1731162281a3e40a8a089f146c35228494540187f7f9fe2/main.spi
00:21:33 verbose #23661 > >
00:21:33 verbose #23662 > > ╭─[ 415.17ms - stdout ]────────────────────────────────────────────────────────╮
00:21:33 verbose #23663 > > │ assert_eq / actual: struct (5.0, 10.0, 15.0) / expected: struct (5.0, 10.0,  │
00:21:33 verbose #23664 > > │ 15.0)                                                                        │
00:21:33 verbose #23665 > > │                                                                              │
00:21:33 verbose #23666 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:33 verbose #23667 > >
00:21:33 verbose #23668 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:33 verbose #23669 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:33 verbose #23670 > > │ #### ^/                                                                      │
00:21:33 verbose #23671 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:33 verbose #23672 > >
00:21:33 verbose #23673 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:33 verbose #23674 > > inl (^/) { x y z } c =
00:21:33 verbose #23675 > >     vec (x / c) (y / c) (z / c)
00:21:33 verbose #23676 > 00:21:32   debug #1337 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/378cd9b6f74661d3c712706d623d491ace2c75df3f746e352e2097ec029f7075/main.spi
00:21:33 verbose #23677 > >
00:21:33 verbose #23678 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:33 verbose #23679 > > //// test
00:21:33 verbose #23680 > >
00:21:33 verbose #23681 > > vec 1 2 3 ^/ 5
00:21:33 verbose #23682 > > |> _assert_eq (vec 0.2 0.4 0.6)
00:21:33 verbose #23683 > 00:21:33   debug #1338 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/552f59ec93780eb5201f3e7a180a14f817e5c8d9b9fb8b354f5122362ce9d150/main.spi
00:21:34 verbose #23684 > >
00:21:34 verbose #23685 > > ╭─[ 498.79ms - stdout ]────────────────────────────────────────────────────────╮
00:21:34 verbose #23686 > > │ assert_eq / actual: struct (0.2, 0.4, 0.6) / expected: struct (0.2, 0.4,     │
00:21:34 verbose #23687 > > │ 0.6)                                                                         │
00:21:34 verbose #23688 > > │                                                                              │
00:21:34 verbose #23689 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:34 verbose #23690 > >
00:21:34 verbose #23691 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:34 verbose #23692 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:34 verbose #23693 > > │ #### negate_vec                                                              │
00:21:34 verbose #23694 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:34 verbose #23695 > >
00:21:34 verbose #23696 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:34 verbose #23697 > > inl negate_vec v =
00:21:34 verbose #23698 > >     v ^* -1
00:21:34 verbose #23699 > 00:21:33   debug #1339 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/94131339c78ccd2c8d0a4031da3525710f40ec6258ab6fe6a34eaf9a43d2b1bb/main.spi
00:21:34 verbose #23700 > >
00:21:34 verbose #23701 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:34 verbose #23702 > > //// test
00:21:34 verbose #23703 > >
00:21:34 verbose #23704 > > vec 1 2 3
00:21:34 verbose #23705 > > |> negate_vec
00:21:34 verbose #23706 > > |> _assert_eq (vec -1 -2 -3)
00:21:34 verbose #23707 > 00:21:33   debug #1340 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fdedac425a2786add255f65932c63d6c0017b4f318bc624777cbd33cfd89bd23/main.spi
00:21:34 verbose #23708 > >
00:21:34 verbose #23709 > > ╭─[ 425.31ms - stdout ]────────────────────────────────────────────────────────╮
00:21:34 verbose #23710 > > │ assert_eq / actual: struct (-1.0, -2.0, -3.0) / expected: struct (-1.0,      │
00:21:34 verbose #23711 > > │ -2.0, -3.0)                                                                  │
00:21:34 verbose #23712 > > │                                                                              │
00:21:34 verbose #23713 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:34 verbose #23714 > >
00:21:34 verbose #23715 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:34 verbose #23716 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:34 verbose #23717 > > │ #### ^-^                                                                     │
00:21:34 verbose #23718 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:34 verbose #23719 > >
00:21:34 verbose #23720 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:34 verbose #23721 > > inl (^-^) a b =
00:21:34 verbose #23722 > >     a ^+^ (negate_vec b)
00:21:35 verbose #23723 > 00:21:34   debug #1341 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/21fdbe192bd77f3a4e73490f37b52779b386f16099555bea04e906a05c22da17/main.spi
00:21:35 verbose #23724 > >
00:21:35 verbose #23725 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:35 verbose #23726 > > //// test
00:21:35 verbose #23727 > >
00:21:35 verbose #23728 > > vec 1 2 3 ^-^ vec 4 5 6
00:21:35 verbose #23729 > > |> _assert_eq (vec -3 -3 -3)
00:21:35 verbose #23730 > 00:21:34   debug #1342 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/917b97ceff00ea221782681c05a221c5d0f232ad35e4cd7160aa9ac74dc6eea1/main.spi
00:21:35 verbose #23731 > >
00:21:35 verbose #23732 > > ╭─[ 418.33ms - stdout ]────────────────────────────────────────────────────────╮
00:21:35 verbose #23733 > > │ assert_eq / actual: struct (-3.0, -3.0, -3.0) / expected: struct (-3.0,      │
00:21:35 verbose #23734 > > │ -3.0, -3.0)                                                                  │
00:21:35 verbose #23735 > > │                                                                              │
00:21:35 verbose #23736 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:35 verbose #23737 > >
00:21:35 verbose #23738 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:35 verbose #23739 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:35 verbose #23740 > > │ #### <.>                                                                     │
00:21:35 verbose #23741 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:35 verbose #23742 > >
00:21:35 verbose #23743 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:35 verbose #23744 > > inl (<.>) { x = ax y = ay z = az } { x = bx y = by z = bz } =
00:21:35 verbose #23745 > >     ax * bx + ay * by + az * bz
00:21:35 verbose #23746 > 00:21:35   debug #1343 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/99065ad3b1b895ff28a5df348ec2bbea4f42427970f91af6aa2fae6941fc41de/main.spi
00:21:36 verbose #23747 > >
00:21:36 verbose #23748 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:36 verbose #23749 > > //// test
00:21:36 verbose #23750 > >
00:21:36 verbose #23751 > > vec 1 2 3 <.> vec 4 5 6
00:21:36 verbose #23752 > > |> _assert_eq 32
00:21:36 verbose #23753 > 00:21:35   debug #1344 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c592c23878dc38d73876d3c8040729162c10400637a35814485722934550778b/main.spi
00:21:36 verbose #23754 > >
00:21:36 verbose #23755 > > ╭─[ 355.98ms - stdout ]────────────────────────────────────────────────────────╮
00:21:36 verbose #23756 > > │ assert_eq / actual: 32.0 / expected: 32.0                                    │
00:21:36 verbose #23757 > > │                                                                              │
00:21:36 verbose #23758 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:36 verbose #23759 > >
00:21:36 verbose #23760 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:36 verbose #23761 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:36 verbose #23762 > > │ #### \>\<                                                                    │
00:21:36 verbose #23763 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:36 verbose #23764 > >
00:21:36 verbose #23765 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:36 verbose #23766 > > inl (><) (a : vec) (b : vec) =
00:21:36 verbose #23767 > >     vec
00:21:36 verbose #23768 > >         (a.y * b.z - a.z * b.y)
00:21:36 verbose #23769 > >         (a.z * b.x - a.x * b.z)
00:21:36 verbose #23770 > >         (a.x * b.y - a.y * b.x)
00:21:36 verbose #23771 > 00:21:35   debug #1345 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/aed2496334bafb5bd0a8a3712ad9c397e37ac9eb9540c9bd6ae381349f1f0c82/main.spi
00:21:36 verbose #23772 > >
00:21:36 verbose #23773 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:36 verbose #23774 > > //// test
00:21:36 verbose #23775 > >
00:21:36 verbose #23776 > > vec 1 2 3 >< vec 4 5 6
00:21:36 verbose #23777 > > |> _assert_eq (vec -3 6 -3)
00:21:37 verbose #23778 > 00:21:36   debug #1346 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4d2e5b8e098db900b3d3cbebe62eaa5095e497ecca8fc9d7c338a5d69dbaa146/main.spi
00:21:37 verbose #23779 > >
00:21:37 verbose #23780 > > ╭─[ 424.79ms - stdout ]────────────────────────────────────────────────────────╮
00:21:37 verbose #23781 > > │ assert_eq / actual: struct (-3.0, 6.0, -3.0) / expected: struct (-3.0, 6.0,  │
00:21:37 verbose #23782 > > │ -3.0)                                                                        │
00:21:37 verbose #23783 > > │                                                                              │
00:21:37 verbose #23784 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:37 verbose #23785 > >
00:21:37 verbose #23786 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:37 verbose #23787 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:37 verbose #23788 > > │ #### magnitude                                                               │
00:21:37 verbose #23789 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:37 verbose #23790 > >
00:21:37 verbose #23791 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:37 verbose #23792 > > inl magnitude v =
00:21:37 verbose #23793 > >     v <.> v |> sqrt
00:21:37 verbose #23794 > 00:21:36   debug #1347 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5a4ef11f464163246b95d2d8a8a31049c400054f70717b4ac0c1129ef3769534/main.spi
00:21:37 verbose #23795 > >
00:21:37 verbose #23796 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:37 verbose #23797 > > //// test
00:21:37 verbose #23798 > >
00:21:37 verbose #23799 > > vec 1 2 3
00:21:37 verbose #23800 > > |> magnitude
00:21:37 verbose #23801 > > |> _assert_approx_eq None 3.7416573867739413
00:21:37 verbose #23802 > 00:21:37   debug #1348 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ab3a75d21b70fe9b9216d4205d776cef4d56277a8a920676d80415fcb0fabd53/main.spi
00:21:38 verbose #23803 > >
00:21:38 verbose #23804 > > ╭─[ 420.63ms - stdout ]────────────────────────────────────────────────────────╮
00:21:38 verbose #23805 > > │ assert_approx_eq / actual: 3.741657387 / expected: 3.741657387               │
00:21:38 verbose #23806 > > │                                                                              │
00:21:38 verbose #23807 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:38 verbose #23808 > >
00:21:38 verbose #23809 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:38 verbose #23810 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:38 verbose #23811 > > │ #### v1                                                                      │
00:21:38 verbose #23812 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:38 verbose #23813 > >
00:21:38 verbose #23814 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:38 verbose #23815 > > inl v1 t =
00:21:38 verbose #23816 > >     2 *^ (t ** 2 *^ i_hat () ^+^ 3 *^ (t ** 3 *^ j_hat () ^+^ t ** 4 *^ k_hat
00:21:38 verbose #23817 > > ()))
00:21:38 verbose #23818 > 00:21:37   debug #1349 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/bccaf202d365272670f9847a8e686d3714808ec24394c0ad41e033008e5eae3b/main.spi
00:21:38 verbose #23819 > >
00:21:38 verbose #23820 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:38 verbose #23821 > > //// test
00:21:38 verbose #23822 > >
00:21:38 verbose #23823 > > v1 1
00:21:38 verbose #23824 > > |> _assert_eq (vec 2 6 6)
00:21:38 verbose #23825 > 00:21:37   debug #1350 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/dd01ed090b29d53add2670d3f8311d2c964c1d5e37c395569e3a3accda865794/main.spi
00:21:38 verbose #23826 > >
00:21:38 verbose #23827 > > ╭─[ 391.46ms - stdout ]────────────────────────────────────────────────────────╮
00:21:38 verbose #23828 > > │ assert_eq / actual: struct (2.0, 6.0, 6.0) / expected: struct (2.0, 6.0,     │
00:21:38 verbose #23829 > > │ 6.0)                                                                         │
00:21:38 verbose #23830 > > │                                                                              │
00:21:38 verbose #23831 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:38 verbose #23832 > >
00:21:38 verbose #23833 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:38 verbose #23834 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:38 verbose #23835 > > │ #### vec_derivative                                                          │
00:21:38 verbose #23836 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:38 verbose #23837 > >
00:21:38 verbose #23838 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:38 verbose #23839 > > type vec_derivative = (f64 -> vec) -> f64 -> vec
00:21:38 verbose #23840 > >
00:21:38 verbose #23841 > > inl vec_derivative dt : vec_derivative =
00:21:38 verbose #23842 > >     fun v t =>
00:21:38 verbose #23843 > >         (v (t + dt / 2) ^-^ v (t - dt / 2)) ^/ dt
00:21:39 verbose #23844 > 00:21:38   debug #1351 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/87e27af0bacfed532e3311bf8799be231fc5baf402cb779ed47aa9bb69ad6e0d/main.spi
00:21:39 verbose #23845 > >
00:21:39 verbose #23846 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:39 verbose #23847 > > //// test
00:21:39 verbose #23848 > >
00:21:39 verbose #23849 > > vec_derivative 0.01 v1 3 .x
00:21:39 verbose #23850 > > |> _assert_approx_eq None (derivative 0.01 (v1 >> fun v => v.x) 3)
00:21:39 verbose #23851 > 00:21:38   debug #1352 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8fc8071c92b6b3cf61db97bc0979dcddf2bd80f2bc4da43fc2257ab2fb395622/main.spi
00:21:39 verbose #23852 > >
00:21:39 verbose #23853 > > ╭─[ 410.06ms - stdout ]────────────────────────────────────────────────────────╮
00:21:39 verbose #23854 > > │ assert_approx_eq / actual: 12.0 / expected: 12.0                             │
00:21:39 verbose #23855 > > │                                                                              │
00:21:39 verbose #23856 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:39 verbose #23857 > >
00:21:39 verbose #23858 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:39 verbose #23859 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:39 verbose #23860 > > │ ### states_ps                                                                │
00:21:39 verbose #23861 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:39 verbose #23862 > >
00:21:39 verbose #23863 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:39 verbose #23864 > > nominal particle_state =
00:21:39 verbose #23865 > >     {
00:21:39 verbose #23866 > >         mass : f64
00:21:39 verbose #23867 > >         charge : f64
00:21:39 verbose #23868 > >         time : f64
00:21:39 verbose #23869 > >         pos_vec : vec
00:21:39 verbose #23870 > >         velocity : vec
00:21:39 verbose #23871 > >     }
00:21:39 verbose #23872 > >
00:21:39 verbose #23873 > > inl default_particle_state () : particle_state =
00:21:39 verbose #23874 > >     particle_state {
00:21:39 verbose #23875 > >         mass = 1
00:21:39 verbose #23876 > >         charge = 0
00:21:39 verbose #23877 > >         time = 0
00:21:39 verbose #23878 > >         pos_vec = zero_vec ()
00:21:39 verbose #23879 > >         velocity = zero_vec ()
00:21:39 verbose #23880 > >     }
00:21:39 verbose #23881 > >
00:21:39 verbose #23882 > > type one_body_force = particle_state -> vec
00:21:39 verbose #23883 > >
00:21:39 verbose #23884 > > nominal d_particle_state =
00:21:39 verbose #23885 > >     {
00:21:39 verbose #23886 > >         dmdt : f64
00:21:39 verbose #23887 > >         dqdt : f64
00:21:39 verbose #23888 > >         dtdt : f64
00:21:39 verbose #23889 > >         drdt : vec
00:21:39 verbose #23890 > >         dvdt : vec
00:21:39 verbose #23891 > >     }
00:21:39 verbose #23892 > >
00:21:39 verbose #23893 > > inl newton_second_ps (fs : list one_body_force) (st : particle_state) :
00:21:39 verbose #23894 > > d_particle_state =
00:21:39 verbose #23895 > >     inl f_net = fs |> listm.map (fun f => f st) |> sum_vec
00:21:39 verbose #23896 > >     d_particle_state {
00:21:39 verbose #23897 > >         dmdt = 0
00:21:39 verbose #23898 > >         dqdt = 0
00:21:39 verbose #23899 > >         dtdt = 1
00:21:39 verbose #23900 > >         drdt = st.velocity
00:21:39 verbose #23901 > >         dvdt = f_net ^/ st.mass
00:21:39 verbose #23902 > >     }
00:21:39 verbose #23903 > >
00:21:39 verbose #23904 > > inl earth_surface_gravity (st : particle_state) =
00:21:39 verbose #23905 > >     inl g = 9.80665
00:21:39 verbose #23906 > >     -st.mass * g *^ k_hat ()
00:21:39 verbose #23907 > >
00:21:39 verbose #23908 > > inl air_resistance drag rho area (st : particle_state) =
00:21:39 verbose #23909 > >     -0.5 * drag * rho * area * magnitude st.velocity *^ st.velocity
00:21:39 verbose #23910 > >
00:21:39 verbose #23911 > > inl euler_cromer_ps dt (deriv : particle_state -> d_particle_state)
00:21:39 verbose #23912 > > (particle_state st) =
00:21:39 verbose #23913 > >     inl dst : d_particle_state = deriv (particle_state st)
00:21:39 verbose #23914 > >     inl v' = st.velocity ^+^ dst.dvdt ^* dt
00:21:39 verbose #23915 > >     particle_state { st with
00:21:39 verbose #23916 > >         time = st.time + dt
00:21:39 verbose #23917 > >         pos_vec = st.pos_vec ^+^ v' ^* dt
00:21:39 verbose #23918 > >         velocity = st.velocity ^+^ dst.dvdt ^* dt
00:21:39 verbose #23919 > >     }
00:21:39 verbose #23920 > >
00:21:39 verbose #23921 > > instance (+++) d_particle_state = fun (dps : d_particle_state) (dps' :
00:21:39 verbose #23922 > > d_particle_state) =>
00:21:39 verbose #23923 > >     d_particle_state {
00:21:39 verbose #23924 > >         dmdt = dps.dmdt + dps'.dmdt
00:21:39 verbose #23925 > >         dqdt = dps.dqdt + dps'.dqdt
00:21:39 verbose #23926 > >         dtdt = dps.dtdt + dps'.dtdt
00:21:39 verbose #23927 > >         drdt = dps.drdt ^+^ dps'.drdt
00:21:39 verbose #23928 > >         dvdt = dps.dvdt ^+^ dps'.dvdt
00:21:39 verbose #23929 > >     }
00:21:39 verbose #23930 > >
00:21:39 verbose #23931 > > instance scale d_particle_state = fun w (dps : d_particle_state) =>
00:21:39 verbose #23932 > >     d_particle_state {
00:21:39 verbose #23933 > >         dmdt = w * dps.dmdt
00:21:39 verbose #23934 > >         dqdt = w * dps.dqdt
00:21:39 verbose #23935 > >         dtdt = w * dps.dtdt
00:21:39 verbose #23936 > >         drdt = w *^ dps.drdt
00:21:39 verbose #23937 > >         dvdt = w *^ dps.dvdt
00:21:39 verbose #23938 > >     }
00:21:39 verbose #23939 > >
00:21:39 verbose #23940 > > instance shift particle_state = fun dt dps (particle_state st) =>
00:21:39 verbose #23941 > >     inl (d_particle_state dps) =
00:21:39 verbose #23942 > >         real
00:21:39 verbose #23943 > >             match dps with
00:21:39 verbose #23944 > >             | d_particle_state _ => dps
00:21:39 verbose #23945 > >     particle_state { st with
00:21:39 verbose #23946 > >         time = st.time + dps.dtdt * dt
00:21:39 verbose #23947 > >         pos_vec = st.pos_vec ^+^ dps.drdt ^* dt
00:21:39 verbose #23948 > >         velocity = st.velocity ^+^ dps.dvdt ^* dt
00:21:39 verbose #23949 > >     }
00:21:39 verbose #23950 > >
00:21:39 verbose #23951 > > inl states_ps (method : numerical_method particle_state d_particle_state) : _ ->
00:21:39 verbose #23952 > > _ -> i32 -> particle_state =
00:21:39 verbose #23953 > >     newton_second_ps >> method >> seq.iterate_
00:21:39 verbose #23954 > >
00:21:39 verbose #23955 > > inl z_ge0 sts =
00:21:39 verbose #23956 > >     sts
00:21:39 verbose #23957 > >     |> seq.take_while_ (fun (particle_state st) _ => st.pos_vec.z >= 0)
00:21:39 verbose #23958 > >
00:21:39 verbose #23959 > > inl trajectory sts =
00:21:39 verbose #23960 > >     sts |> listm.map (fun (particle_state st) => st.pos_vec.y, st.pos_vec.z)
00:21:40 verbose #23961 > 00:21:39   debug #1353 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/cd98f06c047657503dc797c251df3bbd477097d3bb62b295190aef5b973cefaf/main.spi
00:21:40 verbose #23962 > >
00:21:40 verbose #23963 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:40 verbose #23964 > > //// test
00:21:40 verbose #23965 > >
00:21:40 verbose #23966 > > inl update_ps (method : numerical_method particle_state d_particle_state) =
00:21:40 verbose #23967 > >     newton_second_ps >> method
00:21:40 verbose #23968 > >
00:21:40 verbose #23969 > > inl position_ps (method : numerical_method particle_state d_particle_state) fs
00:21:40 verbose #23970 > > st t =
00:21:40 verbose #23971 > >     inl states : i32 -> particle_state = states_ps method fs st
00:21:40 verbose #23972 > >     inl dt = (states 1).time - (states 0).time
00:21:40 verbose #23973 > >     inl num_steps = t / dt |> math.round |> abs
00:21:40 verbose #23974 > >     inl st1 = solver' method (newton_second_ps fs) st num_steps
00:21:40 verbose #23975 > >     st1.pos_vec
00:21:40 verbose #23976 > >
00:21:40 verbose #23977 > > inl sun_gravity (st : particle_state) : vec =
00:21:40 verbose #23978 > >     inl big_g = 0.0000000000667408
00:21:40 verbose #23979 > >     inl sun_mass = 1988480000000000000000000000000
00:21:40 verbose #23980 > >     -big_g * sun_mass * st.mass *^ st.pos_vec ^/ magnitude st.pos_vec ** 3
00:21:40 verbose #23981 > >
00:21:40 verbose #23982 > > inl wind_force v_wind drag rho area (st : particle_state) =
00:21:40 verbose #23983 > >     inl v_rel = st.velocity ^-^ v_wind
00:21:40 verbose #23984 > >     -0.5 * drag * rho * area * magnitude v_rel *^ v_rel
00:21:40 verbose #23985 > >
00:21:40 verbose #23986 > > inl rock_state () =
00:21:40 verbose #23987 > >     inl (particle_state default_particle_state') = default_particle_state ()
00:21:40 verbose #23988 > >     particle_state { default_particle_state' with
00:21:40 verbose #23989 > >         mass = 2
00:21:40 verbose #23990 > >         velocity = vec 3 0 4
00:21:40 verbose #23991 > >     }
00:21:40 verbose #23992 > >
00:21:40 verbose #23993 > > inl halley_update dt =
00:21:40 verbose #23994 > >     update_ps (euler_cromer_ps dt) [[ sun_gravity ]]
00:21:40 verbose #23995 > >
00:21:40 verbose #23996 > > inl halley_initial () =
00:21:40 verbose #23997 > >     inl (particle_state default_particle_state') = default_particle_state ()
00:21:40 verbose #23998 > >     particle_state { default_particle_state' with
00:21:40 verbose #23999 > >         mass = 220000000000000
00:21:40 verbose #24000 > >         pos_vec = 87660000000 *^ i_hat ()
00:21:40 verbose #24001 > >         velocity = 54569 *^ j_hat ()
00:21:40 verbose #24002 > >     }
00:21:40 verbose #24003 > 00:21:39   debug #1354 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1b5e617304f18bbdd8745dbb0f62afafedb648660c33e3b9762cc0e32be7f533/main.spi
00:21:40 verbose #24004 > >
00:21:40 verbose #24005 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:40 verbose #24006 > > //// test
00:21:40 verbose #24007 > >
00:21:40 verbose #24008 > > inl baseball_forces () =
00:21:40 verbose #24009 > >     inl area = pi * (0.074 / 2) ** 2
00:21:40 verbose #24010 > >     [[
00:21:40 verbose #24011 > >         earth_surface_gravity
00:21:40 verbose #24012 > >         air_resistance 0.3 1.225 area
00:21:40 verbose #24013 > >     ]]
00:21:40 verbose #24014 > >
00:21:40 verbose #24015 > > inl baseball_trajectory dt v0 theta_deg =
00:21:40 verbose #24016 > >     inl theta_rad = theta_deg * pi / 180
00:21:40 verbose #24017 > >     inl vy0 = v0 * cos theta_rad
00:21:40 verbose #24018 > >     inl vz0 = v0 * sin theta_rad
00:21:40 verbose #24019 > >     inl initial_state =
00:21:40 verbose #24020 > >         particle_state {
00:21:40 verbose #24021 > >             mass = 0.145
00:21:40 verbose #24022 > >             charge = 0
00:21:40 verbose #24023 > >             time = 0
00:21:40 verbose #24024 > >             pos_vec = zero_vec ()
00:21:40 verbose #24025 > >             velocity = vec 0 vy0 vz0
00:21:40 verbose #24026 > >         }
00:21:40 verbose #24027 > >     states_ps (euler_cromer_ps dt) (baseball_forces ()) initial_state
00:21:40 verbose #24028 > >     >> Some
00:21:40 verbose #24029 > >     |> z_ge0
00:21:40 verbose #24030 > >     |> trajectory
00:21:40 verbose #24031 > >
00:21:40 verbose #24032 > > inl baseball_range dt v0 theta_deg =
00:21:40 verbose #24033 > >     baseball_trajectory dt v0 theta_deg
00:21:40 verbose #24034 > >     |> listm.fold (fun _ (y, _) => y) 0
00:21:40 verbose #24035 > >
00:21:40 verbose #24036 > > inl x = am'.init_series 10 80 1
00:21:40 verbose #24037 > > inl y = x |> am'.map_base (baseball_range 0.01 45)
00:21:40 verbose #24038 > > "range for a baseball hit at 45 m/s",
00:21:40 verbose #24039 > > "angle above horizontal (degrees)",
00:21:40 verbose #24040 > > "",
00:21:40 verbose #24041 > > ;[[ "horizontal range (m)", x, y ]]
00:21:40 verbose #24042 > 00:21:40   debug #1355 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b082c8c9b4629cba8166099f9dc7d7b5dd1825c68823d95c9501fb39ba891bd4/main.spi
00:21:41 verbose #24043 > >
00:21:41 verbose #24044 > > ╭─[ 1.15s - return value ]─────────────────────────────────────────────────────╮
00:21:41 verbose #24045 > > │ <svg width="640" height="480" viewBox="0 0 640 480"                          │
00:21:41 verbose #24046 > > │ xmlns="http://www.w3.org/2000/svg">                                          │
00:21:41 verbose #24047 > > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414"        │
00:21:41 verbose #24048 > > │ stroke="none"/>                                                              │
00:21:41 verbose #24049 > > │ <text x="320" y="10" dy="0.76em" text-anchor="middle"                        │
00:21:41 verbose #24050 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:21:41 verbose #24051 > > │ fill="#FFFFFF">                                                              │
00:21:41 verbose #24052 > > │ range for a baseball hit at 45 m/s                                           │
00:21:41 verbose #24053 > > │ </text>                                                                      │
00:21:41 verbose #24054 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="55" y1="424" x2="55" │
00:21:41 verbose #24055 > > │ y2="75"/>                                                                    │
00:21:41 verbose #24056 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="62" y1="424" x2="62" │
00:21:41 verbose #24057 > > │ y2="75"/>                                                                    │
00:21:41 verbose #24058 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:21:41 verbose #24059 > > │ y2="75"/>                                                                    │
00:21:41 verbose #24060 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="77" y1="424" x2="77" │
00:21:41 verbose #24061 > > │ y2="75"/>                                                                    │
00:21:41 verbose #24062 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="84" y1="424" x2="84" │
00:21:41 verbose #24063 > > │ y2="75"/>                                                                    │
00:21:41 verbose #24064 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="91" y1="424" x2="91" │
00:21:41 verbose #24065 > > │ y2="75"/>                                                                    │
00:21:41 verbose #24066 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="98" y1="424" x2="98" │
00:21:41 verbose #24067 > > │ y2="75"/>                                                                    │
00:21:41 verbose #24068 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="105" y1="424"        │
00:21:41 verbose #24069 > > │ x2="105" y2="75"/>                                                           │
00:21:41 verbose #24070 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="112" y1="424"        │
00:21:41 verbose #24071 > > │ x2="112" y2="75"/>                                                           │
00:21:41 verbose #24072 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="119" y1="424"        │
00:21:41 verbose #24073 > > │ x2="119" y2="75"/>                                                           │
00:21:41 verbose #24074 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="127" y1="424"        │
00:21:41 verbose #24075 > > │ x2="127" y2="75"/>                                                           │
00:21:41 verbose #24076 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="134" y1="424"        │
00:21:41 verbose #24077 > > │ x2="134" y2="75"/>                                                           │
00:21:41 verbose #24078 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="141" y1="424"        │
00:21:41 verbose #24079 > > │ x2="141" y2="75"/>                                                           │
00:21:41 verbose #24080 > > │ <li...nts="585,199 590,199 "/>                                               │
00:21:41 verbose #24081 > > │ <text x="595" y="156" dy="0.5ex" text-anchor="start"                         │
00:21:41 verbose #24082 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:21:41 verbose #24083 > > │ fill="#FFFFFF">                                                              │
00:21:41 verbose #24084 > > │ 100.0                                                                        │
00:21:41 verbose #24085 > > │ </text>                                                                      │
00:21:41 verbose #24086 > > │ <polyline fill="none" opacity="1" stroke="#FFFFFF" stroke-width="1"          │
00:21:41 verbose #24087 > > │ points="585,156 590,156 "/>                                                  │
00:21:41 verbose #24088 > > │ <text x="595" y="114" dy="0.5ex" text-anchor="start"                         │
00:21:41 verbose #24089 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:21:41 verbose #24090 > > │ fill="#FFFFFF">                                                              │
00:21:41 verbose #24091 > > │ 110.0                                                                        │
00:21:41 verbose #24092 > > │ </text>                                                                      │
00:21:41 verbose #24093 > > │ <polyline fill="none" opacity="1" stroke="#FFFFFF" stroke-width="1"          │
00:21:41 verbose #24094 > > │ points="585,114 590,114 "/>                                                  │
00:21:41 verbose #24095 > > │ <polyline fill="none" opacity="1" stroke="#FF0000" stroke-width="1"          │
00:21:41 verbose #24096 > > │ points="69,343 77,325 84,307 91,290 98,275 105,259 112,245 119,231 127,219   │
00:21:41 verbose #24097 > > │ 134,207 141,196 148,184 155,174 162,164 169,155 176,147 184,139 191,132      │
00:21:41 verbose #24098 > > │ 198,126 205,119 212,114 219,109 226,104 233,100 241,96 248,93 255,91 262,89  │
00:21:41 verbose #24099 > > │ 269,88 276,86 283,86 290,85 298,86 305,87 312,88 319,90 326,92 333,95 340,98 │
00:21:41 verbose #24100 > > │ 348,102 355,106 362,110 369,115 376,120 383,126 390,132 397,139 405,146      │
00:21:41 verbose #24101 > > │ 412,153 419,161 426,169 433,178 440,187 447,197 454,207 462,217 469,228      │
00:21:41 verbose #24102 > > │ 476,239 483,250 490,262 497,274 504,287 511,300 519,313 526,326 533,340      │
00:21:41 verbose #24103 > > │ 540,355 547,369 554,384 561,399 569,415 "/>                                  │
00:21:41 verbose #24104 > > │ <rect x="421" y="235" width="159" height="30" opacity="1" fill="none"        │
00:21:41 verbose #24105 > > │ stroke="#FFFFFF"/>                                                           │
00:21:41 verbose #24106 > > │ <text x="461" y="245" dy="0.76em" text-anchor="start"                        │
00:21:41 verbose #24107 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:21:41 verbose #24108 > > │ fill="#FFFFFF">                                                              │
00:21:41 verbose #24109 > > │ horizontal range (m)                                                         │
00:21:41 verbose #24110 > > │ </text>                                                                      │
00:21:41 verbose #24111 > > │ <polyline fill="none" opacity="1" stroke="#FF0000" stroke-width="1"          │
00:21:41 verbose #24112 > > │ points="431,250 451,250 "/>                                                  │
00:21:41 verbose #24113 > > │ </svg>                                                                       │
00:21:41 verbose #24114 > > │                                                                              │
00:21:41 verbose #24115 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:41 verbose #24116 > >
00:21:41 verbose #24117 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:41 verbose #24118 > > //// test
00:21:41 verbose #24119 > >
00:21:41 verbose #24120 > > inl best_angle (min, max) =
00:21:41 verbose #24121 > >     let rec loop theta_deg (best_range, best_theta_deg) =
00:21:41 verbose #24122 > >         if theta_deg > max
00:21:41 verbose #24123 > >         then best_range, best_theta_deg
00:21:41 verbose #24124 > >         else
00:21:41 verbose #24125 > >             inl range = baseball_range 0.01 45 theta_deg
00:21:41 verbose #24126 > >             loop
00:21:41 verbose #24127 > >                 (theta_deg + 1)
00:21:41 verbose #24128 > >                 (if range > best_range
00:21:41 verbose #24129 > >                     then range, theta_deg
00:21:41 verbose #24130 > >                     else best_range, best_theta_deg)
00:21:41 verbose #24131 > >     loop min (0f64, min)
00:21:41 verbose #24132 > >
00:21:41 verbose #24133 > > best_angle (30f64, 60f64)
00:21:41 verbose #24134 > > |> _assert_eq (116.77499158246208, 41)
00:21:42 verbose #24135 > 00:21:41   debug #1356 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f7e80e7b688b48b95af684eaaf2fcf3b122ab2cfd2fc2b0fce171ac31255262b/main.spi
00:21:42 verbose #24136 > >
00:21:42 verbose #24137 > > ╭─[ 911.64ms - stdout ]────────────────────────────────────────────────────────╮
00:21:42 verbose #24138 > > │ assert_eq / actual: struct (116.7749916, 41.0) / expected: struct            │
00:21:42 verbose #24139 > > │ (116.7749916, 41.0)                                                          │
00:21:42 verbose #24140 > > │                                                                              │
00:21:42 verbose #24141 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:42 verbose #24142 > >
00:21:42 verbose #24143 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:42 verbose #24144 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:42 verbose #24145 > > │ ### relativity_ps                                                            │
00:21:42 verbose #24146 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:42 verbose #24147 > >
00:21:42 verbose #24148 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:42 verbose #24149 > > inl relativity_ps fs (st : particle_state) =
00:21:42 verbose #24150 > >     inl f_net = fs |> listm.map (fun f => f st) |> sum_vec
00:21:42 verbose #24151 > >     inl c = 299792458
00:21:42 verbose #24152 > >     inl u = st.velocity ^/ c
00:21:42 verbose #24153 > >     inl acc = sqrt (1 - (u <.> u)) *^ (f_net ^-^ (f_net <.> u) *^ u) ^/ st.mass
00:21:42 verbose #24154 > >     d_particle_state {
00:21:42 verbose #24155 > >         dmdt = 0
00:21:42 verbose #24156 > >         dqdt = 0
00:21:42 verbose #24157 > >         dtdt = 1
00:21:42 verbose #24158 > >         drdt = st.velocity
00:21:42 verbose #24159 > >         dvdt = acc
00:21:42 verbose #24160 > >     }
00:21:43 verbose #24161 > 00:21:42   debug #1357 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/dc6f44bd6e2446436c15debe35080a2ad13c8e950a697a7d1b69bac267631653/main.spi
00:21:43 verbose #24162 > >
00:21:43 verbose #24163 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:43 verbose #24164 > > //// test
00:21:43 verbose #24165 > >
00:21:43 verbose #24166 > > inl year = 365.25 * 24 * 60 * 60
00:21:43 verbose #24167 > > inl c = 299792458
00:21:43 verbose #24168 > > inl ~method = runge_kutta_4 100000
00:21:43 verbose #24169 > > inl forces = [[ fun _ => 10 *^ i_hat () ]]
00:21:43 verbose #24170 > > inl (particle_state default_particle_state') = default_particle_state ()
00:21:43 verbose #24171 > > inl initial_state =
00:21:43 verbose #24172 > >     particle_state { default_particle_state' with
00:21:43 verbose #24173 > >         mass = 1
00:21:43 verbose #24174 > >     }
00:21:43 verbose #24175 > >
00:21:43 verbose #24176 > > inl newton_states = solver_ method (newton_second_ps forces) initial_state
00:21:43 verbose #24177 > > inl relativity_states = solver_ method (relativity_ps forces) initial_state
00:21:43 verbose #24178 > >
00:21:43 verbose #24179 > > inl newton_x, newton_y =
00:21:43 verbose #24180 > >     newton_states
00:21:43 verbose #24181 > >     >> Some
00:21:43 verbose #24182 > >     |> seq.take_while_ (fun (particle_state st) (_ : i32) => st.time <= year)
00:21:43 verbose #24183 > >     |> listm.map (fun (particle_state st) => st.time / year, st.velocity.x / c)
00:21:43 verbose #24184 > >     |> listm'.unzip
00:21:43 verbose #24185 > >
00:21:43 verbose #24186 > > inl _, relativity_y =
00:21:43 verbose #24187 > >     relativity_states
00:21:43 verbose #24188 > >     >> Some
00:21:43 verbose #24189 > >     |> seq.take_while_ (fun (particle_state st) (_ : i32) => st.time <= year)
00:21:43 verbose #24190 > >     |> listm.map (fun (particle_state st) => st.time / year, st.velocity.x / c)
00:21:43 verbose #24191 > >     |> listm'.unzip
00:21:43 verbose #24192 > >
00:21:43 verbose #24193 > > inl newton_x = newton_x |> listm'.box |> listm'.to_array'
00:21:43 verbose #24194 > > inl newton_y = newton_y |> listm'.box |> listm'.to_array'
00:21:43 verbose #24195 > > inl relativity_y = relativity_y |> listm'.box |> listm'.to_array'
00:21:43 verbose #24196 > >
00:21:43 verbose #24197 > > "response to a constant force",
00:21:43 verbose #24198 > > "time (years)",
00:21:43 verbose #24199 > > "velocity (multiples of c)",
00:21:43 verbose #24200 > > ;[[
00:21:43 verbose #24201 > >     "newtonian", newton_x, newton_y
00:21:43 verbose #24202 > >     "relativistic", newton_x, relativity_y
00:21:43 verbose #24203 > > ]]
00:21:43 verbose #24204 > 00:21:42   debug #1358 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/aeab0aedb278b0007b0c4f11522037445eb4ec89bf833d2ad08ae806801e8ae6/main.spi
00:21:43 verbose #24205 > >
00:21:43 verbose #24206 > > ╭─[ 730.75ms - return value ]──────────────────────────────────────────────────╮
00:21:43 verbose #24207 > > │ <svg width="640" height="480" viewBox="0 0 640 480"                          │
00:21:43 verbose #24208 > > │ xmlns="http://www.w3.org/2000/svg">                                          │
00:21:43 verbose #24209 > > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414"        │
00:21:43 verbose #24210 > > │ stroke="none"/>                                                              │
00:21:43 verbose #24211 > > │ <text x="320" y="10" dy="0.76em" text-anchor="middle"                        │
00:21:43 verbose #24212 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:21:43 verbose #24213 > > │ fill="#FFFFFF">                                                              │
00:21:43 verbose #24214 > > │ response to a constant force                                                 │
00:21:43 verbose #24215 > > │ </text>                                                                      │
00:21:43 verbose #24216 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="59" y1="424" x2="59" │
00:21:43 verbose #24217 > > │ y2="75"/>                                                                    │
00:21:43 verbose #24218 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:21:43 verbose #24219 > > │ y2="75"/>                                                                    │
00:21:43 verbose #24220 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="79" y1="424" x2="79" │
00:21:43 verbose #24221 > > │ y2="75"/>                                                                    │
00:21:43 verbose #24222 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="89" y1="424" x2="89" │
00:21:43 verbose #24223 > > │ y2="75"/>                                                                    │
00:21:43 verbose #24224 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="99" y1="424" x2="99" │
00:21:43 verbose #24225 > > │ y2="75"/>                                                                    │
00:21:43 verbose #24226 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="109" y1="424"        │
00:21:43 verbose #24227 > > │ x2="109" y2="75"/>                                                           │
00:21:43 verbose #24228 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="119" y1="424"        │
00:21:43 verbose #24229 > > │ x2="119" y2="75"/>                                                           │
00:21:43 verbose #24230 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="129" y1="424"        │
00:21:43 verbose #24231 > > │ x2="129" y2="75"/>                                                           │
00:21:43 verbose #24232 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="139" y1="424"        │
00:21:43 verbose #24233 > > │ x2="139" y2="75"/>                                                           │
00:21:43 verbose #24234 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="149" y1="424"        │
00:21:43 verbose #24235 > > │ x2="149" y2="75"/>                                                           │
00:21:43 verbose #24236 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="159" y1="424"        │
00:21:43 verbose #24237 > > │ x2="159" y2="75"/>                                                           │
00:21:43 verbose #24238 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="169" y1="424"        │
00:21:43 verbose #24239 > > │ x2="169" y2="75"/>                                                           │
00:21:43 verbose #24240 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="179" y1="424"        │
00:21:43 verbose #24241 > > │ x2="179" y2="75"/>                                                           │
00:21:43 verbose #24242 > > │ <line... 393,238 394,238 396,237 397,237 399,236 401,235 402,235 404,234     │
00:21:43 verbose #24243 > > │ 405,234 407,233 409,233 410,232 412,231 413,231 415,230 416,230 418,229      │
00:21:43 verbose #24244 > > │ 420,229 421,228 423,228 424,227 426,227 428,226 429,225 431,225 432,224      │
00:21:43 verbose #24245 > > │ 434,224 435,223 437,223 439,222 440,222 442,221 443,221 445,220 447,220      │
00:21:43 verbose #24246 > > │ 448,219 450,219 451,218 453,218 454,217 456,217 458,216 459,216 461,215      │
00:21:43 verbose #24247 > > │ 462,215 464,214 466,214 467,213 469,213 470,213 472,212 473,212 475,211      │
00:21:43 verbose #24248 > > │ 477,211 478,210 480,210 481,209 483,209 485,208 486,208 488,208 489,207      │
00:21:43 verbose #24249 > > │ 491,207 492,206 494,206 496,205 497,205 499,204 500,204 502,204 504,203      │
00:21:43 verbose #24250 > > │ 505,203 507,202 508,202 510,202 511,201 513,201 515,200 516,200 518,200      │
00:21:43 verbose #24251 > > │ 519,199 521,199 523,198 524,198 526,198 527,197 529,197 531,196 532,196      │
00:21:43 verbose #24252 > > │ 534,196 535,195 537,195 538,194 540,194 542,194 543,193 545,193 546,193      │
00:21:43 verbose #24253 > > │ 548,192 550,192 551,192 553,191 554,191 556,190 557,190 559,190 561,189      │
00:21:43 verbose #24254 > > │ 562,189 564,189 565,188 567,188 569,188 "/>                                  │
00:21:43 verbose #24255 > > │ <rect x="464" y="227" width="116" height="45" opacity="1" fill="none"        │
00:21:43 verbose #24256 > > │ stroke="#FFFFFF"/>                                                           │
00:21:43 verbose #24257 > > │ <text x="504" y="237" dy="0.76em" text-anchor="start"                        │
00:21:43 verbose #24258 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:21:43 verbose #24259 > > │ fill="#FFFFFF">                                                              │
00:21:43 verbose #24260 > > │ newtonian                                                                    │
00:21:43 verbose #24261 > > │ </text>                                                                      │
00:21:43 verbose #24262 > > │ <text x="504" y="252" dy="0.76em" text-anchor="start"                        │
00:21:43 verbose #24263 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:21:43 verbose #24264 > > │ fill="#FFFFFF">                                                              │
00:21:43 verbose #24265 > > │ relativistic                                                                 │
00:21:43 verbose #24266 > > │ </text>                                                                      │
00:21:43 verbose #24267 > > │ <polyline fill="none" opacity="1" stroke="#FF0000" stroke-width="1"          │
00:21:43 verbose #24268 > > │ points="474,242 494,242 "/>                                                  │
00:21:43 verbose #24269 > > │ <polyline fill="none" opacity="1" stroke="#0000FF" stroke-width="1"          │
00:21:43 verbose #24270 > > │ points="474,257 494,257 "/>                                                  │
00:21:43 verbose #24271 > > │ </svg>                                                                       │
00:21:43 verbose #24272 > > │                                                                              │
00:21:43 verbose #24273 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:43 verbose #24274 > >
00:21:43 verbose #24275 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:43 verbose #24276 > > inl uniform_lorentz_force v_e v_b (st : particle_state) =
00:21:43 verbose #24277 > >     st.charge *^ (v_e ^+^ st.velocity >< v_b)
00:21:44 verbose #24278 > 00:21:43   debug #1359 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d1efff46697e56beaa0357f3355ee91d1a31053a313aee20a74d1293bc0fc604/main.spi
00:21:44 verbose #24279 > >
00:21:44 verbose #24280 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:44 verbose #24281 > > //// test
00:21:44 verbose #24282 > >
00:21:44 verbose #24283 > > inl c : f64 = 299792458
00:21:44 verbose #24284 > > inl ~method = runge_kutta_4 0.000000001
00:21:44 verbose #24285 > > inl forces = [[ uniform_lorentz_force (zero_vec ()) (k_hat ()) ]]
00:21:44 verbose #24286 > > inl (particle_state default_particle_state') = default_particle_state ()
00:21:44 verbose #24287 > > inl initial_state =
00:21:44 verbose #24288 > >     particle_state { default_particle_state' with
00:21:44 verbose #24289 > >         mass = 0.000000000000000000000000001672621898
00:21:44 verbose #24290 > >         charge = 0.0000000000000000001602176621
00:21:44 verbose #24291 > >         velocity = 0.8 *^ (c *^ j_hat ())
00:21:44 verbose #24292 > >     }
00:21:44 verbose #24293 > >
00:21:44 verbose #24294 > > inl newton_states = solver_ method (newton_second_ps forces) initial_state
00:21:44 verbose #24295 > > inl relativity_states = solver_ method (relativity_ps forces) initial_state
00:21:44 verbose #24296 > >
00:21:44 verbose #24297 > > inl newton_x, newton_y =
00:21:44 verbose #24298 > >     newton_states
00:21:44 verbose #24299 > >     >> Some
00:21:44 verbose #24300 > >     |> seq.take_while_ (fun (particle_state st) i => i < 100i32)
00:21:44 verbose #24301 > >     |> listm.map (fun (particle_state st) => st.pos_vec.x, st.pos_vec.y)
00:21:44 verbose #24302 > >     |> listm'.unzip
00:21:44 verbose #24303 > >
00:21:44 verbose #24304 > > inl relativity_x, relativity_y =
00:21:44 verbose #24305 > >     relativity_states
00:21:44 verbose #24306 > >     >> Some
00:21:44 verbose #24307 > >     |> seq.take_while_ (fun (particle_state st) i => i < 165i32)
00:21:44 verbose #24308 > >     |> listm.map (fun (particle_state st) => st.pos_vec.x, st.pos_vec.y)
00:21:44 verbose #24309 > >     |> listm'.unzip
00:21:44 verbose #24310 > >
00:21:44 verbose #24311 > > inl newton_x = newton_x |> listm'.box |> listm'.to_array'
00:21:44 verbose #24312 > > inl newton_y = newton_y |> listm'.box |> listm'.to_array'
00:21:44 verbose #24313 > >
00:21:44 verbose #24314 > > inl relativity_x = relativity_x |> listm'.box |> listm'.to_array'
00:21:44 verbose #24315 > > inl relativity_y = relativity_y |> listm'.box |> listm'.to_array'
00:21:44 verbose #24316 > >
00:21:44 verbose #24317 > > "proton in a 1-t magnetic field",
00:21:44 verbose #24318 > > "x (m)",
00:21:44 verbose #24319 > > "y (m)",
00:21:44 verbose #24320 > > ;[[
00:21:44 verbose #24321 > >     "newtonian", newton_x, newton_y
00:21:44 verbose #24322 > >     "relativistic", relativity_x, relativity_y
00:21:44 verbose #24323 > > ]]
00:21:44 verbose #24324 > 00:21:43   debug #1360 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f440865aa6942f3bbb3aed3718ddd7fdca8e880f7fc117024593652b81891107/main.spi
00:21:44 verbose #24325 > >
00:21:44 verbose #24326 > > ╭─[ 642.68ms - return value ]──────────────────────────────────────────────────╮
00:21:44 verbose #24327 > > │ <svg width="640" height="480" viewBox="0 0 640 480"                          │
00:21:44 verbose #24328 > > │ xmlns="http://www.w3.org/2000/svg">                                          │
00:21:44 verbose #24329 > > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414"        │
00:21:44 verbose #24330 > > │ stroke="none"/>                                                              │
00:21:44 verbose #24331 > > │ <text x="320" y="10" dy="0.76em" text-anchor="middle"                        │
00:21:44 verbose #24332 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:21:44 verbose #24333 > > │ fill="#FFFFFF">                                                              │
00:21:44 verbose #24334 > > │ proton in a 1-t magnetic field                                               │
00:21:44 verbose #24335 > > │ </text>                                                                      │
00:21:44 verbose #24336 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="58" y1="424" x2="58" │
00:21:44 verbose #24337 > > │ y2="75"/>                                                                    │
00:21:44 verbose #24338 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:21:44 verbose #24339 > > │ y2="75"/>                                                                    │
00:21:44 verbose #24340 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="81" y1="424" x2="81" │
00:21:44 verbose #24341 > > │ y2="75"/>                                                                    │
00:21:44 verbose #24342 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="93" y1="424" x2="93" │
00:21:44 verbose #24343 > > │ y2="75"/>                                                                    │
00:21:44 verbose #24344 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="105" y1="424"        │
00:21:44 verbose #24345 > > │ x2="105" y2="75"/>                                                           │
00:21:44 verbose #24346 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="117" y1="424"        │
00:21:44 verbose #24347 > > │ x2="117" y2="75"/>                                                           │
00:21:44 verbose #24348 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="129" y1="424"        │
00:21:44 verbose #24349 > > │ x2="129" y2="75"/>                                                           │
00:21:44 verbose #24350 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="141" y1="424"        │
00:21:44 verbose #24351 > > │ x2="141" y2="75"/>                                                           │
00:21:44 verbose #24352 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="153" y1="424"        │
00:21:44 verbose #24353 > > │ x2="153" y2="75"/>                                                           │
00:21:44 verbose #24354 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="165" y1="424"        │
00:21:44 verbose #24355 > > │ x2="165" y2="75"/>                                                           │
00:21:44 verbose #24356 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="177" y1="424"        │
00:21:44 verbose #24357 > > │ x2="177" y2="75"/>                                                           │
00:21:44 verbose #24358 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="189" y1="424"        │
00:21:44 verbose #24359 > > │ x2="189" y2="75"/>                                                           │
00:21:44 verbose #24360 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="201" y1="424"        │
00:21:44 verbose #24361 > > │ x2="201" y2="75"/>                                                           │
00:21:44 verbose #24362 > > │ <...555,197 560,206 563,216 566,225 567,234 568,244 568,253 568,263 566,272  │
00:21:44 verbose #24363 > > │ 564,281 561,291 557,300 552,309 547,317 540,326 533,334 526,342 517,350      │
00:21:44 verbose #24364 > > │ 508,357 499,364 488,371 478,377 466,383 455,388 442,393 430,398 417,402      │
00:21:44 verbose #24365 > > │ 403,405 390,408 376,410 362,412 348,414 333,414 319,415 305,414 290,414      │
00:21:44 verbose #24366 > > │ 276,412 262,410 248,408 235,405 221,401 208,397 196,393 183,388 171,383      │
00:21:44 verbose #24367 > > │ 160,377 149,371 139,364 129,357 120,350 112,342 104,334 97,326 91,317 86,309 │
00:21:44 verbose #24368 > > │ 81,300 77,290 74,281 72,272 70,263 70,253 70,244 71,234 72,225 75,215 78,206 │
00:21:44 verbose #24369 > > │ 83,197 88,188 93,180 100,171 107,163 115,155 124,148 133,140 143,133 153,127 │
00:21:44 verbose #24370 > > │ 164,121 176,115 188,110 200,105 213,101 226,97 239,94 253,91 267,89 281,87   │
00:21:44 verbose #24371 > > │ 295,86 310,85 324,85 338,86 353,87 367,88 381,90 394,93 408,96 421,100       │
00:21:44 verbose #24372 > > │ 434,104 447,109 459,114 470,119 482,125 492,131 502,138 512,145 520,153      │
00:21:44 verbose #24373 > > │ 529,161 536,169 543,177 549,186 554,194 558,203 562,213 565,222 567,231      │
00:21:44 verbose #24374 > > │ 568,241 569,250 "/>                                                          │
00:21:44 verbose #24375 > > │ <rect x="464" y="227" width="116" height="45" opacity="1" fill="none"        │
00:21:44 verbose #24376 > > │ stroke="#FFFFFF"/>                                                           │
00:21:44 verbose #24377 > > │ <text x="504" y="237" dy="0.76em" text-anchor="start"                        │
00:21:44 verbose #24378 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:21:44 verbose #24379 > > │ fill="#FFFFFF">                                                              │
00:21:44 verbose #24380 > > │ newtonian                                                                    │
00:21:44 verbose #24381 > > │ </text>                                                                      │
00:21:44 verbose #24382 > > │ <text x="504" y="252" dy="0.76em" text-anchor="start"                        │
00:21:44 verbose #24383 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:21:44 verbose #24384 > > │ fill="#FFFFFF">                                                              │
00:21:44 verbose #24385 > > │ relativistic                                                                 │
00:21:44 verbose #24386 > > │ </text>                                                                      │
00:21:44 verbose #24387 > > │ <polyline fill="none" opacity="1" stroke="#FF0000" stroke-width="1"          │
00:21:44 verbose #24388 > > │ points="474,242 494,242 "/>                                                  │
00:21:44 verbose #24389 > > │ <polyline fill="none" opacity="1" stroke="#0000FF" stroke-width="1"          │
00:21:44 verbose #24390 > > │ points="474,257 494,257 "/>                                                  │
00:21:44 verbose #24391 > > │ </svg>                                                                       │
00:21:44 verbose #24392 > > │                                                                              │
00:21:44 verbose #24393 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:44 verbose #24394 > >
00:21:44 verbose #24395 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:44 verbose #24396 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:44 verbose #24397 > > │ #### system kinetic energy versus time 1                                     │
00:21:44 verbose #24398 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:44 verbose #24399 > >
00:21:44 verbose #24400 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:44 verbose #24401 > > //// test
00:21:44 verbose #24402 > >
00:21:44 verbose #24403 > > inl central_force f (particle_state st1) (particle_state st2) =
00:21:44 verbose #24404 > >     inl r1 = st1.pos_vec
00:21:44 verbose #24405 > >     inl r2 = st2.pos_vec
00:21:44 verbose #24406 > >     inl r21 = r2 ^-^ r1
00:21:44 verbose #24407 > >     inl r21mag = magnitude r21
00:21:44 verbose #24408 > >     f r21mag *^ r21 ^/ r21mag
00:21:44 verbose #24409 > >
00:21:44 verbose #24410 > > inl billiard_force k re =
00:21:44 verbose #24411 > >     inl f r =
00:21:44 verbose #24412 > >         if r >= re
00:21:44 verbose #24413 > >         then 0
00:21:44 verbose #24414 > >         else -k * (r - re)
00:21:44 verbose #24415 > >     central_force f
00:21:44 verbose #24416 > >
00:21:44 verbose #24417 > > type force_vector = vec
00:21:44 verbose #24418 > > type two_body_force = particle_state -> particle_state -> force_vector
00:21:44 verbose #24419 > >
00:21:44 verbose #24420 > > union force =
00:21:44 verbose #24421 > >     | ExternalForce : i32 * one_body_force
00:21:44 verbose #24422 > >     | InternalForce : i32 * i32 * two_body_force
00:21:44 verbose #24423 > >
00:21:44 verbose #24424 > > nominal multi_particle_state = list particle_state
00:21:44 verbose #24425 > >
00:21:44 verbose #24426 > > nominal d_multi_particle_state = list d_particle_state
00:21:44 verbose #24427 > >
00:21:44 verbose #24428 > > inl force_on n sts force =
00:21:44 verbose #24429 > >     match force with
00:21:44 verbose #24430 > >     | ExternalForce (n0, f_one_body) =>
00:21:44 verbose #24431 > >         if n = n0
00:21:44 verbose #24432 > >         then f_one_body
00:21:44 verbose #24433 > >         else fun _ => zero_vec ()
00:21:44 verbose #24434 > >     | InternalForce (n0, n1, f_two_body) =>
00:21:44 verbose #24435 > >         if n = n0
00:21:44 verbose #24436 > >         then f_two_body (sts |> listm'.item n1)
00:21:44 verbose #24437 > >         elif n = n1
00:21:44 verbose #24438 > >         then f_two_body (sts |> listm'.item n0)
00:21:44 verbose #24439 > >         else fun _ => zero_vec ()
00:21:44 verbose #24440 > >
00:21:44 verbose #24441 > > inl forces_on n (multi_particle_state sts) fs =
00:21:44 verbose #24442 > >     fs |> listm.map (force_on n sts)
00:21:44 verbose #24443 > >
00:21:44 verbose #24444 > > inl newton_second_mps fs (multi_particle_state sts) : d_multi_particle_state =
00:21:44 verbose #24445 > >     inl deriv (n, st) =
00:21:44 verbose #24446 > >         newton_second_ps (forces_on n (multi_particle_state sts) fs) st
00:21:44 verbose #24447 > >     sts |> listm'.indexed |> listm.map deriv |> d_multi_particle_state
00:21:44 verbose #24448 > >
00:21:44 verbose #24449 > > instance (+++) d_multi_particle_state = fun (d_multi_particle_state dsts1)
00:21:44 verbose #24450 > > (d_multi_particle_state dsts2) =>
00:21:44 verbose #24451 > >     d_multi_particle_state (listm'.zip_with_ (+++) dsts1 dsts2)
00:21:44 verbose #24452 > >
00:21:44 verbose #24453 > > instance scale d_multi_particle_state = fun w (d_multi_particle_state dsts) =>
00:21:44 verbose #24454 > >     d_multi_particle_state (dsts |> listm.map (scale w))
00:21:44 verbose #24455 > >
00:21:44 verbose #24456 > > instance shift multi_particle_state = fun dt dsts (multi_particle_state sts) =>
00:21:44 verbose #24457 > >     inl (d_multi_particle_state dsts) =
00:21:44 verbose #24458 > >         real
00:21:44 verbose #24459 > >             match dsts with
00:21:44 verbose #24460 > >             | d_multi_particle_state _ => dsts
00:21:44 verbose #24461 > >     listm'.zip_with_ (shift dt) dsts sts |> multi_particle_state
00:21:44 verbose #24462 > >
00:21:44 verbose #24463 > > inl euler_cromer_mps dt : numerical_method multi_particle_state
00:21:44 verbose #24464 > > d_multi_particle_state =
00:21:44 verbose #24465 > >     fun deriv mpst0 =>
00:21:44 verbose #24466 > >         inl mpst1 = euler dt deriv mpst0
00:21:44 verbose #24467 > >         inl (multi_particle_state sts0) = mpst0
00:21:44 verbose #24468 > >         inl (multi_particle_state sts1) = mpst1
00:21:44 verbose #24469 > >         sts1
00:21:44 verbose #24470 > >         |> listm'.zip_ sts0
00:21:44 verbose #24471 > >         |> listm.map (fun ((particle_state st0), (particle_state st1)) =>
00:21:44 verbose #24472 > >             particle_state {
00:21:44 verbose #24473 > >                 st1 with
00:21:44 verbose #24474 > >                     pos_vec = st0.pos_vec ^+^ st1.velocity ^* dt
00:21:44 verbose #24475 > >             }
00:21:44 verbose #24476 > >         )
00:21:44 verbose #24477 > >         |> multi_particle_state
00:21:44 verbose #24478 > >
00:21:44 verbose #24479 > > inl update_mps (method : numerical_method multi_particle_state
00:21:44 verbose #24480 > > d_multi_particle_state) =
00:21:44 verbose #24481 > >     newton_second_mps >> method
00:21:44 verbose #24482 > >
00:21:44 verbose #24483 > > inl states_mps (method : numerical_method multi_particle_state
00:21:44 verbose #24484 > > d_multi_particle_state) =
00:21:44 verbose #24485 > >     newton_second_mps >> method >> seq.iterate_
00:21:44 verbose #24486 > >
00:21:44 verbose #24487 > >
00:21:44 verbose #24488 > > inl kinetic_energy (particle_state st) =
00:21:44 verbose #24489 > >     inl m = st.mass
00:21:44 verbose #24490 > >     inl v = magnitude st.velocity
00:21:44 verbose #24491 > >     0.5 * m * v ** 2
00:21:44 verbose #24492 > >
00:21:44 verbose #24493 > > inl system_ke (multi_particle_state sts) =
00:21:44 verbose #24494 > >     sts |> listm.map kinetic_energy |> listm'.sum
00:21:44 verbose #24495 > >
00:21:44 verbose #24496 > > inl linear_spring_pe k re (particle_state st1) (particle_state st2) =
00:21:44 verbose #24497 > >     inl r1 = st1.pos_vec
00:21:44 verbose #24498 > >     inl r2 = st2.pos_vec
00:21:44 verbose #24499 > >     inl r21 = r2 ^-^ r1
00:21:44 verbose #24500 > >     inl r21mag = magnitude r21
00:21:44 verbose #24501 > >     k * (r21mag - re) ** 2 / 2
00:21:44 verbose #24502 > >
00:21:44 verbose #24503 > > inl earth_surface_gravity_pe (particle_state st) =
00:21:44 verbose #24504 > >     inl g = 9.80665
00:21:44 verbose #24505 > >     inl m = st.mass
00:21:44 verbose #24506 > >     inl z = st.pos_vec.z
00:21:44 verbose #24507 > >     m * g * z
00:21:44 verbose #24508 > >
00:21:44 verbose #24509 > > inl two_springs_pe (multi_particle_state sts) =
00:21:44 verbose #24510 > >     inl st0 = sts |> listm'.item 0i32
00:21:44 verbose #24511 > >     inl st1 = sts |> listm'.item 1i32
00:21:44 verbose #24512 > >     linear_spring_pe 100 0.5 (default_particle_state ()) st0
00:21:44 verbose #24513 > >     + linear_spring_pe 100 0.5 st0 st1
00:21:44 verbose #24514 > >     + earth_surface_gravity_pe st0
00:21:44 verbose #24515 > >     + earth_surface_gravity_pe st1
00:21:44 verbose #24516 > >
00:21:44 verbose #24517 > > inl two_springs_me mpst =
00:21:44 verbose #24518 > >     system_ke mpst + two_springs_pe mpst
00:21:44 verbose #24519 > >
00:21:44 verbose #24520 > > inl ball_radius () = 0.03
00:21:44 verbose #24521 > >
00:21:44 verbose #24522 > > inl billiard_forces k =
00:21:44 verbose #24523 > >     [[ InternalForce (0, 1, billiard_force k (2 * ball_radius ())) ]]
00:21:44 verbose #24524 > >
00:21:44 verbose #24525 > > inl billiard_update n_method k dt =
00:21:45 verbose #24526 > >     update_mps (n_method dt) (billiard_forces k)
00:21:45 verbose #24527 > >
00:21:45 verbose #24528 > > inl billiard_initial () =
00:21:45 verbose #24529 > >     inl ball_mass = 0.160
00:21:45 verbose #24530 > >     inl (particle_state default_particle_state') = default_particle_state ()
00:21:45 verbose #24531 > >     multi_particle_state [[
00:21:45 verbose #24532 > >         particle_state {
00:21:45 verbose #24533 > >             default_particle_state' with
00:21:45 verbose #24534 > >                 mass = ball_mass
00:21:45 verbose #24535 > >                 pos_vec = zero_vec ()
00:21:45 verbose #24536 > >                 velocity = 0.2 *^ i_hat ()
00:21:45 verbose #24537 > >         }
00:21:45 verbose #24538 > >         particle_state {
00:21:45 verbose #24539 > >             default_particle_state' with
00:21:45 verbose #24540 > >                 mass = ball_mass
00:21:45 verbose #24541 > >                 pos_vec = i_hat () ^+^ 0.02 *^ j_hat ()
00:21:45 verbose #24542 > >                 velocity = zero_vec ()
00:21:45 verbose #24543 > >         }
00:21:45 verbose #24544 > >     ]]
00:21:45 verbose #24545 > >
00:21:45 verbose #24546 > > inl billiard_states ~n_method k dt =
00:21:45 verbose #24547 > >     states_mps (n_method dt) (billiard_forces k) (billiard_initial ())
00:21:45 verbose #24548 > >
00:21:45 verbose #24549 > > inl billiard_states_finite n_method k dt =
00:21:45 verbose #24550 > >     billiard_states n_method k dt
00:21:45 verbose #24551 > >     >> Some
00:21:45 verbose #24552 > >     |> seq.take_while_ (fun (multi_particle_state mpst) (_ : i32) =>
00:21:45 verbose #24553 > >         (mpst |> listm'.item 0i32).time <= 10
00:21:45 verbose #24554 > >     )
00:21:45 verbose #24555 > >
00:21:45 verbose #24556 > > inl momentum (particle_state st) =
00:21:45 verbose #24557 > >     inl m = st.mass
00:21:45 verbose #24558 > >     inl v = st.velocity
00:21:45 verbose #24559 > >     m *^ v
00:21:45 verbose #24560 > >
00:21:45 verbose #24561 > > inl system_p (multi_particle_state sts) =
00:21:45 verbose #24562 > >     sts |> listm.map momentum |> sum_vec
00:21:45 verbose #24563 > >
00:21:45 verbose #24564 > >
00:21:45 verbose #24565 > > inl time_ke_ec_x, time_ke_ec_y =
00:21:45 verbose #24566 > >     billiard_states_finite euler_cromer_mps 30 0.03
00:21:45 verbose #24567 > >     |> listm.map (fun (multi_particle_state mpst) =>
00:21:45 verbose #24568 > >         (mpst |> listm'.item 0i32).time, system_ke (multi_particle_state mpst)
00:21:45 verbose #24569 > >     )
00:21:45 verbose #24570 > >     |> listm'.unzip
00:21:45 verbose #24571 > >
00:21:45 verbose #24572 > > inl time_ke_rk4_x, time_ke_rk4_y =
00:21:45 verbose #24573 > >     billiard_states_finite runge_kutta_4 30 0.03
00:21:45 verbose #24574 > >     |> listm.map (fun (multi_particle_state mpst) =>
00:21:45 verbose #24575 > >         (mpst |> listm'.item 0i32).time, system_ke (multi_particle_state mpst)
00:21:45 verbose #24576 > >     )
00:21:45 verbose #24577 > >     |> listm'.unzip
00:21:45 verbose #24578 > >
00:21:45 verbose #24579 > > inl time_ke_ec_x = time_ke_ec_x |> listm'.box |> listm'.to_array'
00:21:45 verbose #24580 > > inl time_ke_ec_y = time_ke_ec_y |> listm'.box |> listm'.to_array'
00:21:45 verbose #24581 > >
00:21:45 verbose #24582 > > inl time_ke_rk4_x = time_ke_rk4_x |> listm'.box |> listm'.to_array'
00:21:45 verbose #24583 > > inl time_ke_rk4_y = time_ke_rk4_y |> listm'.box |> listm'.to_array'
00:21:45 verbose #24584 > >
00:21:45 verbose #24585 > > "system kinetic energy versus time",
00:21:45 verbose #24586 > > "time (s)",
00:21:45 verbose #24587 > > "system kinetic energy (j)",
00:21:45 verbose #24588 > > ;[[
00:21:45 verbose #24589 > >     "euler-cromer", time_ke_ec_x, time_ke_ec_y
00:21:45 verbose #24590 > >     "runge-kutta 4", time_ke_rk4_x, time_ke_rk4_y
00:21:45 verbose #24591 > > ]]
00:21:45 verbose #24592 > 00:21:44   debug #1361 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c8e2647289a2329c3212ac5ef16843ddaa6adb4bd294facbfc659041ecff24ec/main.spi
00:21:46 verbose #24593 > >
00:21:46 verbose #24594 > > ╭─[ 1.50s - return value ]─────────────────────────────────────────────────────╮
00:21:46 verbose #24595 > > │ <svg width="640" height="480" viewBox="0 0 640 480"                          │
00:21:46 verbose #24596 > > │ xmlns="http://www.w3.org/2000/svg">                                          │
00:21:46 verbose #24597 > > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414"        │
00:21:46 verbose #24598 > > │ stroke="none"/>                                                              │
00:21:46 verbose #24599 > > │ <text x="320" y="10" dy="0.76em" text-anchor="middle"                        │
00:21:46 verbose #24600 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:21:46 verbose #24601 > > │ fill="#FFFFFF">                                                              │
00:21:46 verbose #24602 > > │ system kinetic energy versus time                                            │
00:21:46 verbose #24603 > > │ </text>                                                                      │
00:21:46 verbose #24604 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="59" y1="424" x2="59" │
00:21:46 verbose #24605 > > │ y2="75"/>                                                                    │
00:21:46 verbose #24606 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:21:46 verbose #24607 > > │ y2="75"/>                                                                    │
00:21:46 verbose #24608 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="79" y1="424" x2="79" │
00:21:46 verbose #24609 > > │ y2="75"/>                                                                    │
00:21:46 verbose #24610 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="89" y1="424" x2="89" │
00:21:46 verbose #24611 > > │ y2="75"/>                                                                    │
00:21:46 verbose #24612 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="99" y1="424" x2="99" │
00:21:46 verbose #24613 > > │ y2="75"/>                                                                    │
00:21:46 verbose #24614 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="109" y1="424"        │
00:21:46 verbose #24615 > > │ x2="109" y2="75"/>                                                           │
00:21:46 verbose #24616 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="119" y1="424"        │
00:21:46 verbose #24617 > > │ x2="119" y2="75"/>                                                           │
00:21:46 verbose #24618 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="129" y1="424"        │
00:21:46 verbose #24619 > > │ x2="129" y2="75"/>                                                           │
00:21:46 verbose #24620 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="139" y1="424"        │
00:21:46 verbose #24621 > > │ x2="139" y2="75"/>                                                           │
00:21:46 verbose #24622 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="149" y1="424"        │
00:21:46 verbose #24623 > > │ x2="149" y2="75"/>                                                           │
00:21:46 verbose #24624 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="159" y1="424"        │
00:21:46 verbose #24625 > > │ x2="159" y2="75"/>                                                           │
00:21:46 verbose #24626 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="169" y1="424"        │
00:21:46 verbose #24627 > > │ x2="169" y2="75"/>                                                           │
00:21:46 verbose #24628 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="179" y1="424"        │
00:21:46 verbose #24629 > > │ x2="179" y2="75"/>                                                           │
00:21:46 verbose #24630 > > │ ...,104 404,104 405,104 407,104 408,104 410,104 411,104 413,104 414,104      │
00:21:46 verbose #24631 > > │ 416,104 417,104 419,104 420,104 422,104 423,104 425,104 426,104 428,104      │
00:21:46 verbose #24632 > > │ 429,104 431,104 432,104 434,104 435,104 437,104 438,104 440,104 441,104      │
00:21:46 verbose #24633 > > │ 443,104 444,104 446,104 447,104 449,104 450,104 452,104 453,104 455,104      │
00:21:46 verbose #24634 > > │ 456,104 458,104 459,104 461,104 462,104 464,104 465,104 467,104 468,104      │
00:21:46 verbose #24635 > > │ 470,104 471,104 473,104 474,104 476,104 477,104 479,104 480,104 482,104      │
00:21:46 verbose #24636 > > │ 483,104 485,104 486,104 488,104 489,104 491,104 492,104 494,104 495,104      │
00:21:46 verbose #24637 > > │ 497,104 498,104 500,104 501,104 503,104 504,104 506,104 507,104 509,104      │
00:21:46 verbose #24638 > > │ 510,104 512,104 513,104 515,104 516,104 518,104 519,104 521,104 522,104      │
00:21:46 verbose #24639 > > │ 524,104 525,104 527,104 528,104 530,104 531,104 533,104 534,104 536,104      │
00:21:46 verbose #24640 > > │ 537,104 539,104 540,104 542,104 543,104 545,104 546,104 548,104 549,104      │
00:21:46 verbose #24641 > > │ 551,104 552,104 554,104 555,104 557,104 558,104 560,104 561,104 563,104      │
00:21:46 verbose #24642 > > │ 564,104 566,104 567,104 569,104 "/>                                          │
00:21:46 verbose #24643 > > │ <rect x="459" y="227" width="121" height="45" opacity="1" fill="none"        │
00:21:46 verbose #24644 > > │ stroke="#FFFFFF"/>                                                           │
00:21:46 verbose #24645 > > │ <text x="499" y="237" dy="0.76em" text-anchor="start"                        │
00:21:46 verbose #24646 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:21:46 verbose #24647 > > │ fill="#FFFFFF">                                                              │
00:21:46 verbose #24648 > > │ euler-cromer                                                                 │
00:21:46 verbose #24649 > > │ </text>                                                                      │
00:21:46 verbose #24650 > > │ <text x="499" y="252" dy="0.76em" text-anchor="start"                        │
00:21:46 verbose #24651 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:21:46 verbose #24652 > > │ fill="#FFFFFF">                                                              │
00:21:46 verbose #24653 > > │ runge-kutta 4                                                                │
00:21:46 verbose #24654 > > │ </text>                                                                      │
00:21:46 verbose #24655 > > │ <polyline fill="none" opacity="1" stroke="#FF0000" stroke-width="1"          │
00:21:46 verbose #24656 > > │ points="469,242 489,242 "/>                                                  │
00:21:46 verbose #24657 > > │ <polyline fill="none" opacity="1" stroke="#0000FF" stroke-width="1"          │
00:21:46 verbose #24658 > > │ points="469,257 489,257 "/>                                                  │
00:21:46 verbose #24659 > > │ </svg>                                                                       │
00:21:46 verbose #24660 > > │                                                                              │
00:21:46 verbose #24661 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:46 verbose #24662 > >
00:21:46 verbose #24663 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:46 verbose #24664 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:46 verbose #24665 > > │ #### wave 1                                                                  │
00:21:46 verbose #24666 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:46 verbose #24667 > >
00:21:46 verbose #24668 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:46 verbose #24669 > > //// test
00:21:46 verbose #24670 > >
00:21:46 verbose #24671 > > inl linear_spring k re (particle_state st1) (particle_state st2) =
00:21:46 verbose #24672 > >     inl r1 = st1.pos_vec
00:21:46 verbose #24673 > >     inl r2 = st2.pos_vec
00:21:46 verbose #24674 > >     inl r21 = r2 ^-^ r1
00:21:46 verbose #24675 > >     inl r21mag = magnitude r21
00:21:46 verbose #24676 > >     -k * (r21mag - re) *^ r21 ^/ r21mag
00:21:46 verbose #24677 > >
00:21:46 verbose #24678 > > inl fixed_linear_spring k re r1 =
00:21:46 verbose #24679 > >     inl (particle_state default_particle_state') = default_particle_state ()
00:21:46 verbose #24680 > >     linear_spring k re (particle_state { default_particle_state' with pos_vec =
00:21:46 verbose #24681 > > r1 })
00:21:46 verbose #24682 > >
00:21:46 verbose #24683 > > inl forces_string () =
00:21:46 verbose #24684 > >     [[
00:21:46 verbose #24685 > >         ExternalForce (0, fixed_linear_spring 5384 0 (zero_vec ()))
00:21:46 verbose #24686 > >         ExternalForce (63, fixed_linear_spring 5384 0 (0.65 *^ i_hat ()))
00:21:46 verbose #24687 > >     ]] ++ (
00:21:46 verbose #24688 > >         listm'.init_series 0 59 1
00:21:46 verbose #24689 > >         |> listm.map (fun n => InternalForce (n, n + 1, linear_spring 5384 0))
00:21:46 verbose #24690 > >     )
00:21:46 verbose #24691 > >
00:21:46 verbose #24692 > > inl string_update dt =
00:21:46 verbose #24693 > >     update_mps (runge_kutta_4 dt) (forces_string ())
00:21:46 verbose #24694 > >
00:21:46 verbose #24695 > > inl string_initial_overtone n =
00:21:46 verbose #24696 > >     inl ball_mass = 0.0008293 * 0.65 / 64
00:21:46 verbose #24697 > >     inl (particle_state default_particle_state') = default_particle_state ()
00:21:46 verbose #24698 > >     listm'.init_series 0.01 0.64 0.01
00:21:46 verbose #24699 > >     |> listm.map (fun x =>
00:21:46 verbose #24700 > >         inl y = 0.005 * sin (conv n * pi * x / 0.65)
00:21:46 verbose #24701 > >         particle_state {
00:21:46 verbose #24702 > >             default_particle_state' with
00:21:46 verbose #24703 > >                 mass = ball_mass
00:21:46 verbose #24704 > >                 pos_vec = x *^ i_hat () ^+^ y *^ j_hat ()
00:21:46 verbose #24705 > >                 velocity = zero_vec ()
00:21:46 verbose #24706 > >         }
00:21:46 verbose #24707 > >     )
00:21:46 verbose #24708 > >     |> multi_particle_state
00:21:46 verbose #24709 > >
00:21:46 verbose #24710 > > inl string_initial_pluck () =
00:21:46 verbose #24711 > >     inl ball_mass = 0.0008293 * 0.65 / 64
00:21:46 verbose #24712 > >     inl (particle_state default_particle_state') = default_particle_state ()
00:21:46 verbose #24713 > >     listm'.init_series 0.01 0.64 0.01
00:21:46 verbose #24714 > >     |> listm.map (fun x =>
00:21:46 verbose #24715 > >         inl y =
00:21:46 verbose #24716 > >             inl n = if x <= 0.51 then 0 else 0.65
00:21:46 verbose #24717 > >             0.005 / (0.51 - n) * (x - n)
00:21:46 verbose #24718 > >         particle_state {
00:21:46 verbose #24719 > >             default_particle_state' with
00:21:46 verbose #24720 > >                 mass = ball_mass
00:21:46 verbose #24721 > >                 pos_vec = x *^ i_hat () ^+^ y *^ j_hat ()
00:21:46 verbose #24722 > >                 velocity = zero_vec ()
00:21:46 verbose #24723 > >         }
00:21:46 verbose #24724 > >     )
00:21:46 verbose #24725 > >     |> multi_particle_state
00:21:46 verbose #24726 > >
00:21:46 verbose #24727 > > let main () =
00:21:46 verbose #24728 > >     inl ~frames = listm'.init_series 0 9 1f64
00:21:46 verbose #24729 > >     inl initial_state = string_initial_overtone 3i32
00:21:46 verbose #24730 > >     inl frames =
00:21:46 verbose #24731 > >         frames
00:21:46 verbose #24732 > >         |> listm.map (fun n =>
00:21:46 verbose #24733 > >             inl (multi_particle_state sts) =
00:21:46 verbose #24734 > >                 seq.iterate' (string_update 0.000025) initial_state |> fun f =>
00:21:46 verbose #24735 > > f 0f64
00:21:46 verbose #24736 > >             inl rs =
00:21:46 verbose #24737 > >                 [[ zero_vec () ]]
00:21:46 verbose #24738 > >                 ++ (sts |> listm.map (fun (particle_state st) => st.pos_vec))
00:21:46 verbose #24739 > >                 ++ [[ 0.65 *^ i_hat () ]]
00:21:46 verbose #24740 > >             inl x, y =
00:21:46 verbose #24741 > >                 rs
00:21:46 verbose #24742 > >                 |> listm.map (fun r => r.x, r.y)
00:21:46 verbose #24743 > >                 |> listm'.unzip
00:21:46 verbose #24744 > >             inl x = x |> listm'.box |> listm'.to_array'
00:21:46 verbose #24745 > >             inl y = y |> listm'.box |> listm'.to_array'
00:21:46 verbose #24746 > >             x, y
00:21:46 verbose #24747 > >         )
00:21:46 verbose #24748 > >         |> listm'.box |> listm'.to_array'
00:21:46 verbose #24749 > >
00:21:46 verbose #24750 > >     inl n = 0i32
00:21:46 verbose #24751 > >
00:21:46 verbose #24752 > >     inl x, y = a frames |> am'.index n
00:21:46 verbose #24753 > >
00:21:46 verbose #24754 > >     "wave",
00:21:46 verbose #24755 > >     "position (m)",
00:21:46 verbose #24756 > >     "displacement (m)",
00:21:46 verbose #24757 > >     ;[[
00:21:46 verbose #24758 > >         ($'$"{!n}"' : string), x, y
00:21:46 verbose #24759 > >     ]]
00:21:46 verbose #24760 > 00:21:45   debug #1362 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f6b18424855979ef25e67e10654bdc2d22c6d1ab98f1cabe81e780b2a5242fe7/main.spi
00:21:47 verbose #24761 > >
00:21:47 verbose #24762 > > ╭─[ 673.51ms - return value ]──────────────────────────────────────────────────╮
00:21:47 verbose #24763 > > │ <svg width="640" height="480" viewBox="0 0 640 480"                          │
00:21:47 verbose #24764 > > │ xmlns="http://www.w3.org/2000/svg">                                          │
00:21:47 verbose #24765 > > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414"        │
00:21:47 verbose #24766 > > │ stroke="none"/>                                                              │
00:21:47 verbose #24767 > > │ <text x="320" y="10" dy="0.76em" text-anchor="middle"                        │
00:21:47 verbose #24768 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:21:47 verbose #24769 > > │ fill="#FFFFFF">                                                              │
00:21:47 verbose #24770 > > │ wave                                                                         │
00:21:47 verbose #24771 > > │ </text>                                                                      │
00:21:47 verbose #24772 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="62" y1="424" x2="62" │
00:21:47 verbose #24773 > > │ y2="75"/>                                                                    │
00:21:47 verbose #24774 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:21:47 verbose #24775 > > │ y2="75"/>                                                                    │
00:21:47 verbose #24776 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="77" y1="424" x2="77" │
00:21:47 verbose #24777 > > │ y2="75"/>                                                                    │
00:21:47 verbose #24778 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="85" y1="424" x2="85" │
00:21:47 verbose #24779 > > │ y2="75"/>                                                                    │
00:21:47 verbose #24780 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="93" y1="424" x2="93" │
00:21:47 verbose #24781 > > │ y2="75"/>                                                                    │
00:21:47 verbose #24782 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="100" y1="424"        │
00:21:47 verbose #24783 > > │ x2="100" y2="75"/>                                                           │
00:21:47 verbose #24784 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="108" y1="424"        │
00:21:47 verbose #24785 > > │ x2="108" y2="75"/>                                                           │
00:21:47 verbose #24786 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="116" y1="424"        │
00:21:47 verbose #24787 > > │ x2="116" y2="75"/>                                                           │
00:21:47 verbose #24788 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="123" y1="424"        │
00:21:47 verbose #24789 > > │ x2="123" y2="75"/>                                                           │
00:21:47 verbose #24790 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="131" y1="424"        │
00:21:47 verbose #24791 > > │ x2="131" y2="75"/>                                                           │
00:21:47 verbose #24792 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="139" y1="424"        │
00:21:47 verbose #24793 > > │ x2="139" y2="75"/>                                                           │
00:21:47 verbose #24794 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="146" y1="424"        │
00:21:47 verbose #24795 > > │ x2="146" y2="75"/>                                                           │
00:21:47 verbose #24796 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="154" y1="424"        │
00:21:47 verbose #24797 > > │ x2="154" y2="75"/>                                                           │
00:21:47 verbose #24798 > > │ <line opacity="1" stroke="#32...ne fill="none" opacity="1" stroke="#FFFFFF"  │
00:21:47 verbose #24799 > > │ stroke-width="1" points="585,250 590,250 "/>                                 │
00:21:47 verbose #24800 > > │ <text x="617" y="184" dy="0.5ex" text-anchor="end" font-family="sans-serif"  │
00:21:47 verbose #24801 > > │ font-size="9.67741935483871" opacity="1" fill="#FFFFFF">                     │
00:21:47 verbose #24802 > > │ 0.0                                                                          │
00:21:47 verbose #24803 > > │ </text>                                                                      │
00:21:47 verbose #24804 > > │ <polyline fill="none" opacity="1" stroke="#FFFFFF" stroke-width="1"          │
00:21:47 verbose #24805 > > │ points="585,184 590,184 "/>                                                  │
00:21:47 verbose #24806 > > │ <text x="617" y="118" dy="0.5ex" text-anchor="end" font-family="sans-serif"  │
00:21:47 verbose #24807 > > │ font-size="9.67741935483871" opacity="1" fill="#FFFFFF">                     │
00:21:47 verbose #24808 > > │ 0.0                                                                          │
00:21:47 verbose #24809 > > │ </text>                                                                      │
00:21:47 verbose #24810 > > │ <polyline fill="none" opacity="1" stroke="#FFFFFF" stroke-width="1"          │
00:21:47 verbose #24811 > > │ points="585,118 590,118 "/>                                                  │
00:21:47 verbose #24812 > > │ <polyline fill="none" opacity="1" stroke="#FF0000" stroke-width="1"          │
00:21:47 verbose #24813 > > │ points="69,250 77,226 85,203 93,181 100,160 108,141 116,124 123,110 131,99   │
00:21:47 verbose #24814 > > │ 139,91 146,87 154,85 162,88 169,93 177,102 185,115 192,129 200,147 208,167   │
00:21:47 verbose #24815 > > │ 215,188 223,211 231,234 238,258 246,282 254,305 261,327 269,347 277,365      │
00:21:47 verbose #24816 > > │ 284,381 292,394 300,404 307,411 315,415 323,415 331,411 338,404 346,394      │
00:21:47 verbose #24817 > > │ 354,381 361,365 369,347 377,327 384,305 392,282 400,258 407,234 415,211      │
00:21:47 verbose #24818 > > │ 423,188 430,167 438,147 446,129 453,115 461,102 469,93 476,88 484,85 492,87  │
00:21:47 verbose #24819 > > │ 499,91 507,99 515,110 522,124 530,141 538,160 545,181 553,203 561,226        │
00:21:47 verbose #24820 > > │ 569,250 "/>                                                                  │
00:21:47 verbose #24821 > > │ <rect x="525" y="235" width="55" height="30" opacity="1" fill="none"         │
00:21:47 verbose #24822 > > │ stroke="#FFFFFF"/>                                                           │
00:21:47 verbose #24823 > > │ <text x="565" y="245" dy="0.76em" text-anchor="start"                        │
00:21:47 verbose #24824 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:21:47 verbose #24825 > > │ fill="#FFFFFF">                                                              │
00:21:47 verbose #24826 > > │ 0                                                                            │
00:21:47 verbose #24827 > > │ </text>                                                                      │
00:21:47 verbose #24828 > > │ <polyline fill="none" opacity="1" stroke="#FF0000" stroke-width="1"          │
00:21:47 verbose #24829 > > │ points="535,250 555,250 "/>                                                  │
00:21:47 verbose #24830 > > │ </svg>                                                                       │
00:21:47 verbose #24831 > > │                                                                              │
00:21:47 verbose #24832 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:47 verbose #24833 > >
00:21:47 verbose #24834 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:47 verbose #24835 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:47 verbose #24836 > > │ #### system kinetic energy versus time 2                                     │
00:21:47 verbose #24837 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:47 verbose #24838 > >
00:21:47 verbose #24839 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:47 verbose #24840 > > //// test
00:21:47 verbose #24841 > >
00:21:47 verbose #24842 > > inl central_force f (particle_state st1) (particle_state st2) =
00:21:47 verbose #24843 > >     inl r1 = st1.pos_vec
00:21:47 verbose #24844 > >     inl r2 = st2.pos_vec
00:21:47 verbose #24845 > >     inl r21 = r2 ^-^ r1
00:21:47 verbose #24846 > >     inl r21mag = magnitude r21
00:21:47 verbose #24847 > >     f r21mag *^ r21 ^/ r21mag
00:21:47 verbose #24848 > >
00:21:47 verbose #24849 > > inl billiard_force k re =
00:21:47 verbose #24850 > >     inl f r =
00:21:47 verbose #24851 > >         if r >= re
00:21:47 verbose #24852 > >         then 0
00:21:47 verbose #24853 > >         else -k * (r - re)
00:21:47 verbose #24854 > >     central_force f
00:21:47 verbose #24855 > >
00:21:47 verbose #24856 > > type force_vector = vec
00:21:47 verbose #24857 > > type two_body_force = particle_state -> particle_state -> force_vector
00:21:47 verbose #24858 > >
00:21:47 verbose #24859 > > union force t =
00:21:47 verbose #24860 > >     | ExternalForce : t * one_body_force
00:21:47 verbose #24861 > >     | InternalForce : t * t * two_body_force
00:21:47 verbose #24862 > >
00:21:47 verbose #24863 > > nominal multi_particle_state = stream.stream particle_state
00:21:47 verbose #24864 > >
00:21:47 verbose #24865 > > nominal d_multi_particle_state = stream.stream d_particle_state
00:21:47 verbose #24866 > >
00:21:47 verbose #24867 > > inl force_on n s force =
00:21:47 verbose #24868 > >     match force with
00:21:47 verbose #24869 > >     | ExternalForce (n0, f_one_body) =>
00:21:47 verbose #24870 > >         if n = n0
00:21:47 verbose #24871 > >         then f_one_body
00:21:47 verbose #24872 > >         else fun _ => zero_vec ()
00:21:47 verbose #24873 > >     | InternalForce (n0, n1, f_two_body) =>
00:21:47 verbose #24874 > >         if n = n0
00:21:47 verbose #24875 > >         then s |> stream.try_item n1 |> optionm.map f_two_body
00:21:47 verbose #24876 > >         elif n = n1
00:21:47 verbose #24877 > >         then s |> stream.try_item n0 |> optionm.map f_two_body
00:21:47 verbose #24878 > >         else None
00:21:47 verbose #24879 > >         |> optionm'.default_value (fun _ => zero_vec ())
00:21:47 verbose #24880 > >
00:21:47 verbose #24881 > > inl forces_on n (multi_particle_state sts) fs =
00:21:47 verbose #24882 > >     fs
00:21:47 verbose #24883 > >     |> listm.map (force_on n sts)
00:21:47 verbose #24884 > >
00:21:47 verbose #24885 > > inl newton_second_mps fs ((multi_particle_state sts) as mpst) =
00:21:47 verbose #24886 > >     inl deriv (n, st) =
00:21:47 verbose #24887 > >         newton_second_ps (forces_on n mpst fs) st
00:21:47 verbose #24888 > >     sts |> stream.indexed |> stream.map deriv |> d_multi_particle_state
00:21:47 verbose #24889 > >
00:21:47 verbose #24890 > > instance (+++) d_multi_particle_state =
00:21:47 verbose #24891 > >     fun (d_multi_particle_state dsts1) (d_multi_particle_state dsts2) =>
00:21:47 verbose #24892 > >         (dsts1, dsts2)
00:21:47 verbose #24893 > >         ||> stream.zip_with (+++)
00:21:47 verbose #24894 > >         |> d_multi_particle_state
00:21:47 verbose #24895 > >
00:21:47 verbose #24896 > > instance scale d_multi_particle_state = fun w (d_multi_particle_state dsts) =>
00:21:47 verbose #24897 > >     dsts
00:21:47 verbose #24898 > >     |> stream.map (scale w)
00:21:47 verbose #24899 > >     |> d_multi_particle_state
00:21:47 verbose #24900 > >
00:21:47 verbose #24901 > > instance shift multi_particle_state = fun dt dsts (multi_particle_state sts) =>
00:21:47 verbose #24902 > >     inl (d_multi_particle_state dsts) =
00:21:47 verbose #24903 > >         real
00:21:47 verbose #24904 > >             match dsts with
00:21:47 verbose #24905 > >             | d_multi_particle_state _ => dsts
00:21:47 verbose #24906 > >     (dsts, sts)
00:21:47 verbose #24907 > >     ||> stream.zip_with (shift dt)
00:21:47 verbose #24908 > >     |> stream.memoize
00:21:47 verbose #24909 > >     |> fun x => x ()
00:21:47 verbose #24910 > >     |> multi_particle_state
00:21:47 verbose #24911 > >
00:21:47 verbose #24912 > > inl euler_cromer_mps dt : numerical_method multi_particle_state
00:21:47 verbose #24913 > > d_multi_particle_state =
00:21:47 verbose #24914 > >     fun deriv ((multi_particle_state sts0) as mpst0) =>
00:21:47 verbose #24915 > >         inl (multi_particle_state sts1) = euler dt deriv mpst0
00:21:47 verbose #24916 > >         (sts0, sts1)
00:21:47 verbose #24917 > >         ||> stream.zip
00:21:47 verbose #24918 > >         |> stream.map (fun ((particle_state st0), (particle_state st1)) =>
00:21:47 verbose #24919 > >             particle_state {
00:21:47 verbose #24920 > >                 st1 with
00:21:47 verbose #24921 > >                     pos_vec = st0.pos_vec ^+^ st1.velocity ^* dt
00:21:47 verbose #24922 > >             }
00:21:47 verbose #24923 > >         )
00:21:47 verbose #24924 > >         |> multi_particle_state
00:21:47 verbose #24925 > >
00:21:47 verbose #24926 > > inl update_mps (method : numerical_method multi_particle_state
00:21:47 verbose #24927 > > d_multi_particle_state) =
00:21:47 verbose #24928 > >     newton_second_mps >> method
00:21:47 verbose #24929 > >
00:21:47 verbose #24930 > > inl states_mps (method : numerical_method multi_particle_state
00:21:47 verbose #24931 > > d_multi_particle_state) =
00:21:47 verbose #24932 > >     newton_second_mps
00:21:47 verbose #24933 > >     >> method
00:21:47 verbose #24934 > >     >> (fun x (multi_particle_state y) =>
00:21:47 verbose #24935 > >         y
00:21:47 verbose #24936 > >         |> stream.memoize
00:21:47 verbose #24937 > >         |> (fun x => x ())
00:21:47 verbose #24938 > >         |> multi_particle_state |> x
00:21:47 verbose #24939 > >     )
00:21:47 verbose #24940 > >     // >> stream.iterate
00:21:47 verbose #24941 > >     >> seq.iterate'
00:21:47 verbose #24942 > >
00:21:47 verbose #24943 > > inl kinetic_energy (particle_state st) =
00:21:47 verbose #24944 > >     inl m = st.mass
00:21:47 verbose #24945 > >     inl v = magnitude st.velocity
00:21:47 verbose #24946 > >     0.5 * m * v ** 2
00:21:47 verbose #24947 > >
00:21:47 verbose #24948 > > inl system_ke (multi_particle_state sts) =
00:21:47 verbose #24949 > >     sts
00:21:47 verbose #24950 > >     |> stream.map kinetic_energy
00:21:47 verbose #24951 > >     |> stream.sum
00:21:47 verbose #24952 > >
00:21:47 verbose #24953 > > inl linear_spring_pe k re (particle_state st1) (particle_state st2) =
00:21:47 verbose #24954 > >     inl r1 = st1.pos_vec
00:21:47 verbose #24955 > >     inl r2 = st2.pos_vec
00:21:47 verbose #24956 > >     inl r21 = r2 ^-^ r1
00:21:47 verbose #24957 > >     inl r21mag = magnitude r21
00:21:47 verbose #24958 > >     k * (r21mag - re) ** 2 / 2
00:21:47 verbose #24959 > >
00:21:47 verbose #24960 > > inl earth_surface_gravity_pe (particle_state st) =
00:21:47 verbose #24961 > >     inl g = 9.80665
00:21:47 verbose #24962 > >     inl m = st.mass
00:21:47 verbose #24963 > >     inl z = st.pos_vec.z
00:21:47 verbose #24964 > >     m * g * z
00:21:47 verbose #24965 > >
00:21:47 verbose #24966 > > inl ball_radius () = 0.03
00:21:47 verbose #24967 > >
00:21:47 verbose #24968 > > inl billiard_forces k =
00:21:47 verbose #24969 > >     [[ InternalForce (0i32, 1, billiard_force k (2 * ball_radius ())) ]]
00:21:47 verbose #24970 > >
00:21:47 verbose #24971 > > inl billiard_initial () =
00:21:47 verbose #24972 > >     inl ball_mass = 0.160
00:21:47 verbose #24973 > >     inl (particle_state default_particle_state') = default_particle_state ()
00:21:47 verbose #24974 > >     [[
00:21:47 verbose #24975 > >         particle_state {
00:21:47 verbose #24976 > >             default_particle_state' with
00:21:47 verbose #24977 > >                 mass = ball_mass
00:21:47 verbose #24978 > >                 pos_vec = zero_vec ()
00:21:47 verbose #24979 > >                 velocity = 0.2 *^ i_hat ()
00:21:47 verbose #24980 > >         }
00:21:47 verbose #24981 > >         particle_state {
00:21:47 verbose #24982 > >             default_particle_state' with
00:21:47 verbose #24983 > >                 mass = ball_mass
00:21:47 verbose #24984 > >                 pos_vec = i_hat () ^+^ 0.02 *^ j_hat ()
00:21:47 verbose #24985 > >                 velocity = zero_vec ()
00:21:47 verbose #24986 > >         }
00:21:47 verbose #24987 > >     ]]
00:21:47 verbose #24988 > >     |> stream.from_list
00:21:47 verbose #24989 > >     |> multi_particle_state
00:21:47 verbose #24990 > >
00:21:47 verbose #24991 > > inl billiard_states ~n_method k dt =
00:21:47 verbose #24992 > >     states_mps (n_method dt) (billiard_forces k) (billiard_initial ())
00:21:47 verbose #24993 > >
00:21:47 verbose #24994 > > inl billiard_states_finite n_method k dt =
00:21:47 verbose #24995 > >     billiard_states n_method k dt
00:21:47 verbose #24996 > >     >> Some
00:21:47 verbose #24997 > >     |> seq.take_while_ (fun (multi_particle_state mpst) (_ : i32) =>
00:21:47 verbose #24998 > >         match mpst |> stream.try_item 0i32 with
00:21:47 verbose #24999 > >         | Some st =>
00:21:47 verbose #25000 > >             st.time <= 10
00:21:47 verbose #25001 > >         | None => false
00:21:47 verbose #25002 > >     )
00:21:47 verbose #25003 > >
00:21:47 verbose #25004 > > inl momentum (particle_state st) =
00:21:47 verbose #25005 > >     inl m = st.mass
00:21:47 verbose #25006 > >     inl v = st.velocity
00:21:47 verbose #25007 > >     m *^ v
00:21:47 verbose #25008 > >
00:21:47 verbose #25009 > > inl system_p (multi_particle_state sts) =
00:21:47 verbose #25010 > >     sts
00:21:47 verbose #25011 > >     |> stream.map momentum
00:21:47 verbose #25012 > >     |> stream.fold (^+^) (zero_vec ())
00:21:47 verbose #25013 > >
00:21:47 verbose #25014 > > inl time_ke_ec_x, time_ke_ec_y =
00:21:47 verbose #25015 > >     billiard_states_finite euler_cromer_mps 30 0.03
00:21:47 verbose #25016 > >     |> listm.map (fun (multi_particle_state mpst) =>
00:21:47 verbose #25017 > >         mpst |> stream.try_item 0i32
00:21:47 verbose #25018 > >         |> optionm.map (fun st =>
00:21:47 verbose #25019 > >             st.time, system_ke (multi_particle_state mpst)
00:21:47 verbose #25020 > >         )
00:21:47 verbose #25021 > >     )
00:21:47 verbose #25022 > >     // |> stream.to_list
00:21:47 verbose #25023 > >     |> listm'.choose id
00:21:47 verbose #25024 > >     |> listm'.unzip
00:21:47 verbose #25025 > >
00:21:47 verbose #25026 > > inl time_ke_rk4_x, time_ke_rk4_y =
00:21:47 verbose #25027 > >     billiard_states_finite runge_kutta_4 30 0.03
00:21:47 verbose #25028 > >     |> listm.map (fun (multi_particle_state mpst) =>
00:21:47 verbose #25029 > >         mpst |> stream.try_item 0i32
00:21:47 verbose #25030 > >         |> optionm.map (fun st =>
00:21:47 verbose #25031 > >             st.time, system_ke (multi_particle_state mpst)
00:21:47 verbose #25032 > >         )
00:21:47 verbose #25033 > >     )
00:21:47 verbose #25034 > >     // |> stream.to_list
00:21:47 verbose #25035 > >     |> listm'.choose id
00:21:47 verbose #25036 > >     |> listm'.unzip
00:21:47 verbose #25037 > >
00:21:47 verbose #25038 > > inl time_ke_ec_x = time_ke_ec_x |> listm'.box |> listm'.to_array'
00:21:47 verbose #25039 > > inl time_ke_ec_y = time_ke_ec_y |> listm'.box |> listm'.to_array'
00:21:47 verbose #25040 > >
00:21:47 verbose #25041 > > inl time_ke_rk4_x = time_ke_rk4_x |> listm'.box |> listm'.to_array'
00:21:47 verbose #25042 > > inl time_ke_rk4_y = time_ke_rk4_y |> listm'.box |> listm'.to_array'
00:21:47 verbose #25043 > >
00:21:47 verbose #25044 > > "system kinetic energy versus time",
00:21:47 verbose #25045 > > "time (s)",
00:21:47 verbose #25046 > > "system kinetic energy (j)",
00:21:47 verbose #25047 > > ;[[
00:21:47 verbose #25048 > >     "euler-cromer", time_ke_ec_x, time_ke_ec_y
00:21:47 verbose #25049 > >     "runge-kutta 4", time_ke_rk4_x, time_ke_rk4_y
00:21:47 verbose #25050 > > ]]
00:21:47 verbose #25051 > 00:21:46   debug #1363 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ceffa832d897ffa85ad4257e1162e9703894f6d15d021ab9e6d78e4f64aa7453/main.spi
00:21:49 verbose #25052 > >
00:21:49 verbose #25053 > > ╭─[ 2.10s - return value ]─────────────────────────────────────────────────────╮
00:21:49 verbose #25054 > > │ <svg width="640" height="480" viewBox="0 0 640 480"                          │
00:21:49 verbose #25055 > > │ xmlns="http://www.w3.org/2000/svg">                                          │
00:21:49 verbose #25056 > > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414"        │
00:21:49 verbose #25057 > > │ stroke="none"/>                                                              │
00:21:49 verbose #25058 > > │ <text x="320" y="10" dy="0.76em" text-anchor="middle"                        │
00:21:49 verbose #25059 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:21:49 verbose #25060 > > │ fill="#FFFFFF">                                                              │
00:21:49 verbose #25061 > > │ system kinetic energy versus time                                            │
00:21:49 verbose #25062 > > │ </text>                                                                      │
00:21:49 verbose #25063 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="59" y1="424" x2="59" │
00:21:49 verbose #25064 > > │ y2="75"/>                                                                    │
00:21:49 verbose #25065 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:21:49 verbose #25066 > > │ y2="75"/>                                                                    │
00:21:49 verbose #25067 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="79" y1="424" x2="79" │
00:21:49 verbose #25068 > > │ y2="75"/>                                                                    │
00:21:49 verbose #25069 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="89" y1="424" x2="89" │
00:21:49 verbose #25070 > > │ y2="75"/>                                                                    │
00:21:49 verbose #25071 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="99" y1="424" x2="99" │
00:21:49 verbose #25072 > > │ y2="75"/>                                                                    │
00:21:49 verbose #25073 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="109" y1="424"        │
00:21:49 verbose #25074 > > │ x2="109" y2="75"/>                                                           │
00:21:49 verbose #25075 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="119" y1="424"        │
00:21:49 verbose #25076 > > │ x2="119" y2="75"/>                                                           │
00:21:49 verbose #25077 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="129" y1="424"        │
00:21:49 verbose #25078 > > │ x2="129" y2="75"/>                                                           │
00:21:49 verbose #25079 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="139" y1="424"        │
00:21:49 verbose #25080 > > │ x2="139" y2="75"/>                                                           │
00:21:49 verbose #25081 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="149" y1="424"        │
00:21:49 verbose #25082 > > │ x2="149" y2="75"/>                                                           │
00:21:49 verbose #25083 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="159" y1="424"        │
00:21:49 verbose #25084 > > │ x2="159" y2="75"/>                                                           │
00:21:49 verbose #25085 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="169" y1="424"        │
00:21:49 verbose #25086 > > │ x2="169" y2="75"/>                                                           │
00:21:49 verbose #25087 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="179" y1="424"        │
00:21:49 verbose #25088 > > │ x2="179" y2="75"/>                                                           │
00:21:49 verbose #25089 > > │ ...,104 404,104 405,104 407,104 408,104 410,104 411,104 413,104 414,104      │
00:21:49 verbose #25090 > > │ 416,104 417,104 419,104 420,104 422,104 423,104 425,104 426,104 428,104      │
00:21:49 verbose #25091 > > │ 429,104 431,104 432,104 434,104 435,104 437,104 438,104 440,104 441,104      │
00:21:49 verbose #25092 > > │ 443,104 444,104 446,104 447,104 449,104 450,104 452,104 453,104 455,104      │
00:21:49 verbose #25093 > > │ 456,104 458,104 459,104 461,104 462,104 464,104 465,104 467,104 468,104      │
00:21:49 verbose #25094 > > │ 470,104 471,104 473,104 474,104 476,104 477,104 479,104 480,104 482,104      │
00:21:49 verbose #25095 > > │ 483,104 485,104 486,104 488,104 489,104 491,104 492,104 494,104 495,104      │
00:21:49 verbose #25096 > > │ 497,104 498,104 500,104 501,104 503,104 504,104 506,104 507,104 509,104      │
00:21:49 verbose #25097 > > │ 510,104 512,104 513,104 515,104 516,104 518,104 519,104 521,104 522,104      │
00:21:49 verbose #25098 > > │ 524,104 525,104 527,104 528,104 530,104 531,104 533,104 534,104 536,104      │
00:21:49 verbose #25099 > > │ 537,104 539,104 540,104 542,104 543,104 545,104 546,104 548,104 549,104      │
00:21:49 verbose #25100 > > │ 551,104 552,104 554,104 555,104 557,104 558,104 560,104 561,104 563,104      │
00:21:49 verbose #25101 > > │ 564,104 566,104 567,104 569,104 "/>                                          │
00:21:49 verbose #25102 > > │ <rect x="459" y="227" width="121" height="45" opacity="1" fill="none"        │
00:21:49 verbose #25103 > > │ stroke="#FFFFFF"/>                                                           │
00:21:49 verbose #25104 > > │ <text x="499" y="237" dy="0.76em" text-anchor="start"                        │
00:21:49 verbose #25105 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:21:49 verbose #25106 > > │ fill="#FFFFFF">                                                              │
00:21:49 verbose #25107 > > │ euler-cromer                                                                 │
00:21:49 verbose #25108 > > │ </text>                                                                      │
00:21:49 verbose #25109 > > │ <text x="499" y="252" dy="0.76em" text-anchor="start"                        │
00:21:49 verbose #25110 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:21:49 verbose #25111 > > │ fill="#FFFFFF">                                                              │
00:21:49 verbose #25112 > > │ runge-kutta 4                                                                │
00:21:49 verbose #25113 > > │ </text>                                                                      │
00:21:49 verbose #25114 > > │ <polyline fill="none" opacity="1" stroke="#FF0000" stroke-width="1"          │
00:21:49 verbose #25115 > > │ points="469,242 489,242 "/>                                                  │
00:21:49 verbose #25116 > > │ <polyline fill="none" opacity="1" stroke="#0000FF" stroke-width="1"          │
00:21:49 verbose #25117 > > │ points="469,257 489,257 "/>                                                  │
00:21:49 verbose #25118 > > │ </svg>                                                                       │
00:21:49 verbose #25119 > > │                                                                              │
00:21:49 verbose #25120 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:49 verbose #25121 > >
00:21:49 verbose #25122 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:49 verbose #25123 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:49 verbose #25124 > > │ #### wave 2                                                                  │
00:21:49 verbose #25125 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:49 verbose #25126 > >
00:21:49 verbose #25127 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:49 verbose #25128 > > //// test
00:21:49 verbose #25129 > >
00:21:49 verbose #25130 > > inl linear_spring k re (particle_state st1) (particle_state st2) =
00:21:49 verbose #25131 > >     inl r1 = st1.pos_vec
00:21:49 verbose #25132 > >     inl r2 = st2.pos_vec
00:21:49 verbose #25133 > >     inl r21 = r2 ^-^ r1
00:21:49 verbose #25134 > >     inl r21mag = magnitude r21
00:21:49 verbose #25135 > >     -k * (r21mag - re) *^ r21 ^/ r21mag
00:21:49 verbose #25136 > >
00:21:49 verbose #25137 > > inl fixed_linear_spring k re r1 =
00:21:49 verbose #25138 > >     inl (particle_state default_particle_state') = default_particle_state ()
00:21:49 verbose #25139 > >     linear_spring k re (particle_state { default_particle_state' with pos_vec =
00:21:49 verbose #25140 > > r1 })
00:21:49 verbose #25141 > >
00:21:49 verbose #25142 > > inl forces_string () =
00:21:49 verbose #25143 > >     [[
00:21:49 verbose #25144 > >         ExternalForce (0i32, fixed_linear_spring 5384 0 (zero_vec ()))
00:21:49 verbose #25145 > >         ExternalForce (63, fixed_linear_spring 5384 0 (0.65 *^ i_hat ()))
00:21:49 verbose #25146 > >     ]] ++ (
00:21:49 verbose #25147 > >         listm'.init_series 0 59 1
00:21:49 verbose #25148 > >         |> listm.map (fun n => InternalForce (n, n + 1, linear_spring 5384 0))
00:21:49 verbose #25149 > >     )
00:21:49 verbose #25150 > >
00:21:49 verbose #25151 > > inl string_update dt =
00:21:49 verbose #25152 > >     update_mps (join runge_kutta_4 dt) (join forces_string ())
00:21:49 verbose #25153 > >
00:21:49 verbose #25154 > > inl string_initial_overtone n =
00:21:49 verbose #25155 > >     inl ball_mass = 0.0008293 * 0.65 / 64
00:21:49 verbose #25156 > >     inl (particle_state default_particle_state') = default_particle_state ()
00:21:49 verbose #25157 > >     listm'.init_series 0.01 0.64 0.01
00:21:49 verbose #25158 > >     |> listm.map (fun x =>
00:21:49 verbose #25159 > >         inl y = 0.005 * sin (conv n * pi * x / 0.65)
00:21:49 verbose #25160 > >         particle_state {
00:21:49 verbose #25161 > >             default_particle_state' with
00:21:49 verbose #25162 > >                 mass = ball_mass
00:21:49 verbose #25163 > >                 pos_vec = x *^ i_hat () ^+^ y *^ j_hat ()
00:21:49 verbose #25164 > >                 velocity = zero_vec ()
00:21:49 verbose #25165 > >         }
00:21:49 verbose #25166 > >     )
00:21:49 verbose #25167 > >     |> stream.from_list
00:21:49 verbose #25168 > >     |> multi_particle_state
00:21:49 verbose #25169 > >
00:21:49 verbose #25170 > > let main () =
00:21:49 verbose #25171 > >     inl ~frames = listm'.init_series 0 65 1f64 |> stream.from_list
00:21:49 verbose #25172 > >     inl ~initial_state = string_initial_overtone 3i32
00:21:49 verbose #25173 > >     inl frames =
00:21:49 verbose #25174 > >         frames
00:21:49 verbose #25175 > >         |> stream.map (fun n =>
00:21:49 verbose #25176 > >             inl (multi_particle_state sts) =
00:21:49 verbose #25177 > >                 stream.iterate (string_update 0.000025) initial_state |>
00:21:49 verbose #25178 > > stream.item n
00:21:49 verbose #25179 > >             inl x, y =
00:21:49 verbose #25180 > >                 [[ zero_vec () ]]
00:21:49 verbose #25181 > >                 ++ (sts |> stream.map (fun (particle_state st) => st.pos_vec) |>
00:21:49 verbose #25182 > > stream.to_list)
00:21:49 verbose #25183 > >                 ++ [[ 0.65 *^ i_hat () ]]
00:21:49 verbose #25184 > >                 |> listm.map (fun r => r.x, r.y)
00:21:49 verbose #25185 > >                 |> stream.from_list
00:21:49 verbose #25186 > >                 |> stream.unzip
00:21:49 verbose #25187 > >             inl x = x |> stream.to_list |> listm'.box |> listm'.to_array'
00:21:49 verbose #25188 > >             inl y = y |> stream.to_list |> listm'.box |> listm'.to_array'
00:21:49 verbose #25189 > >             x, y
00:21:49 verbose #25190 > >         )
00:21:49 verbose #25191 > >
00:21:49 verbose #25192 > >     inl plots =
00:21:49 verbose #25193 > >         frames
00:21:49 verbose #25194 > >         |> stream.indexed
00:21:49 verbose #25195 > >         |> stream.map (fun ((n : i32), (x, y)) =>
00:21:49 verbose #25196 > >             "wave",
00:21:49 verbose #25197 > >             "position (m)",
00:21:49 verbose #25198 > >             "displacement (m)",
00:21:49 verbose #25199 > >             ;[[
00:21:49 verbose #25200 > >                 ($'$"{!n}"' : string), x, y
00:21:49 verbose #25201 > >             ]]
00:21:49 verbose #25202 > >         )
00:21:49 verbose #25203 > >
00:21:49 verbose #25204 > >     plots |> stream.to_list |> listm'.box |> listm'.to_array'
00:21:49 verbose #25205 > 00:21:48   debug #1364 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/df2d611af59096748751c665fdf6a3750681db0aebac8e665f953d6137d4aa08/main.spi
00:21:54 verbose #25206 > >
00:21:54 verbose #25207 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:54 verbose #25208 > > ╭─[ 5.37s - diagnostics ]──────────────────────────────────────────────────────╮
00:21:54 verbose #25209 > > │ input.fsx (22,25)-(1084,1085) typecheck warning Incomplete pattern matches   │
00:21:54 verbose #25210 > > │ on this expression. For example, the value 'UH7_1 (_, _, _, _)' may indicate │
00:21:54 verbose #25211 > > │ a case not covered by the pattern(s).                                        │
00:21:54 verbose #25212 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:55 verbose #25213 > >
00:21:55 verbose #25214 > > ╭─[ 6.07s - return value ]─────────────────────────────────────────────────────╮
00:21:55 verbose #25215 > > │ <table><thead><tr><th><i>index</i></th><th>value</th></tr></thead><tbody><tr │
00:21:55 verbose #25216 > > │ ><td>0</td><td><svg width="640" height="480" viewBox="0 0 640 480"           │
00:21:55 verbose #25217 > > │ xmlns="http://www.w3.org/2000/svg">                                          │
00:21:55 verbose #25218 > > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414"        │
00:21:55 verbose #25219 > > │ stroke="none"/>                                                              │
00:21:55 verbose #25220 > > │ <text x="320" y="10" dy="0.76em" text-anchor="middle"                        │
00:21:55 verbose #25221 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:21:55 verbose #25222 > > │ fill="#FFFFFF">                                                              │
00:21:55 verbose #25223 > > │ wave                                                                         │
00:21:55 verbose #25224 > > │ </text>                                                                      │
00:21:55 verbose #25225 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="62" y1="424" x2="62" │
00:21:55 verbose #25226 > > │ y2="75"/>                                                                    │
00:21:55 verbose #25227 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:21:55 verbose #25228 > > │ y2="75"/>                                                                    │
00:21:55 verbose #25229 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="77" y1="424" x2="77" │
00:21:55 verbose #25230 > > │ y2="75"/>                                                                    │
00:21:55 verbose #25231 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="85" y1="424" x2="85" │
00:21:55 verbose #25232 > > │ y2="75"/>                                                                    │
00:21:55 verbose #25233 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="93" y1="424" x2="93" │
00:21:55 verbose #25234 > > │ y2="75"/>                                                                    │
00:21:55 verbose #25235 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="100" y1="424"        │
00:21:55 verbose #25236 > > │ x2="100" y2="75"/>                                                           │
00:21:55 verbose #25237 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="108" y1="424"        │
00:21:55 verbose #25238 > > │ x2="108" y2="75"/>                                                           │
00:21:55 verbose #25239 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="116" y1="424"        │
00:21:55 verbose #25240 > > │ x2="116" y2="75"/>                                                           │
00:21:55 verbose #25241 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="123" y1="424"        │
00:21:55 verbose #25242 > > │ x2="123" y2="75"/>                                                           │
00:21:55 verbose #25243 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="131" y1="424"        │
00:21:55 verbose #25244 > > │ x2="131" y2="75"/>                                                           │
00:21:55 verbose #25245 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="139" y1="424"        │
00:21:55 verbose #25246 > > │ x2="139" y2="75"/>                                                           │
00:21:55 verbose #25247 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="146" y1="424"        │
00:21:55 verbose #25248 > > │ x2="146" y2="75"/>                                                           │
00:21:55 verbose #25249 > > │ <line opacity="1" stroke="#...28 590,128 "/>                                 │
00:21:55 verbose #25250 > > │ <polyline fill="none" opacity="1" stroke="#FF0000" stroke-width="1"          │
00:21:55 verbose #25251 > > │ points="69,363 77,322 85,283 92,246 100,211 107,179 115,151 122,127 130,108  │
00:21:55 verbose #25252 > > │ 138,95 145,87 153,85 160,89 168,99 175,114 183,134 190,159 198,188 205,220   │
00:21:55 verbose #25253 > > │ 212,253 218,284 223,311 226,329 227,337 226,337 224,333 223,334 223,344      │
00:21:55 verbose #25254 > > │ 224,357 225,367 224,370 223,374 224,383 224,393 224,397 224,400 224,406      │
00:21:55 verbose #25255 > > │ 224,411 224,412 224,413 224,415 224,413 224,411 224,409 224,405 224,400      │
00:21:55 verbose #25256 > > │ 224,395 224,388 224,382 224,375 224,367 224,360 224,353 224,346 224,339      │
00:21:55 verbose #25257 > > │ 224,332 224,327 224,322 224,318 224,314 224,312 224,311 539,239 546,279      │
00:21:55 verbose #25258 > > │ 569,403 561,363 "/>                                                          │
00:21:55 verbose #25259 > > │ <rect x="519" y="235" width="61" height="30" opacity="1" fill="none"         │
00:21:55 verbose #25260 > > │ stroke="#FFFFFF"/>                                                           │
00:21:55 verbose #25261 > > │ <text x="559" y="245" dy="0.76em" text-anchor="start"                        │
00:21:55 verbose #25262 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:21:55 verbose #25263 > > │ fill="#FFFFFF">                                                              │
00:21:55 verbose #25264 > > │ 65                                                                           │
00:21:55 verbose #25265 > > │ </text>                                                                      │
00:21:55 verbose #25266 > > │ <polyline fill="none" opacity="1" stroke="#FF0000" stroke-width="1"          │
00:21:55 verbose #25267 > > │ points="529,250 549,250 "/>                                                  │
00:21:55 verbose #25268 > > │ </svg>                                                                       │
00:21:55 verbose #25269 > > │ </td></tr></tbody></table><style>                                            │
00:21:55 verbose #25270 > > │ .dni-code-hint {                                                             │
00:21:55 verbose #25271 > > │     font-style: italic;                                                      │
00:21:55 verbose #25272 > > │     overflow: hidden;                                                        │
00:21:55 verbose #25273 > > │     white-space: nowrap;                                                     │
00:21:55 verbose #25274 > > │ }                                                                            │
00:21:55 verbose #25275 > > │ .dni-treeview {                                                              │
00:21:55 verbose #25276 > > │     white-space: nowrap;                                                     │
00:21:55 verbose #25277 > > │ }                                                                            │
00:21:55 verbose #25278 > > │ .dni-treeview td {                                                           │
00:21:55 verbose #25279 > > │     vertical-align: top;                                                     │
00:21:55 verbose #25280 > > │     text-align: start;                                                       │
00:21:55 verbose #25281 > > │ }                                                                            │
00:21:55 verbose #25282 > > │ details.dni-treeview {                                                       │
00:21:55 verbose #25283 > > │     padding-left: 1em;                                                       │
00:21:55 verbose #25284 > > │ }                                                                            │
00:21:55 verbose #25285 > > │ table td {                                                                   │
00:21:55 verbose #25286 > > │     text-align: start;                                                       │
00:21:55 verbose #25287 > > │ }                                                                            │
00:21:55 verbose #25288 > > │ table tr {                                                                   │
00:21:55 verbose #25289 > > │     vertical-align: top;                                                     │
00:21:55 verbose #25290 > > │     margin: 0em 0px;                                                         │
00:21:55 verbose #25291 > > │ }                                                                            │
00:21:55 verbose #25292 > > │ table tr td pre                                                              │
00:21:55 verbose #25293 > > │ {                                                                            │
00:21:55 verbose #25294 > > │     vertical-align: top !important;                                          │
00:21:55 verbose #25295 > > │     margin: 0em 0px !important;                                              │
00:21:55 verbose #25296 > > │ }                                                                            │
00:21:55 verbose #25297 > > │ table th {                                                                   │
00:21:55 verbose #25298 > > │     text-align: start;                                                       │
00:21:55 verbose #25299 > > │ }                                                                            │
00:21:55 verbose #25300 > > │ </style>                                                                     │
00:21:55 verbose #25301 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:55 verbose #25302 > >
00:21:55 verbose #25303 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:55 verbose #25304 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:55 verbose #25305 > > │ ## end                                                                       │
00:21:55 verbose #25306 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:55 verbose #25307 > 00:01:06 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 157679 }
00:21:55 verbose #25308 > 00:01:06   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/spiral/physics.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/physics.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:21:58 verbose #25309 > 00:01:09 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/physics.dib.ipynb to html
00:21:58 verbose #25310 > 00:01:09 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:21:58 verbose #25311 > 00:01:09 verbose #7 !   validate(nb)
00:22:04 verbose #25312 > 00:01:15 verbose #8 ! [NbConvertApp] Writing 2508152 bytes to c:\home\git\polyglot\lib\spiral\physics.dib.html
00:22:05 verbose #25313 > 00:01:16 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 646 }
00:22:05 verbose #25314 > 00:01:16   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 646 }
00:22:05 verbose #25315 > 00:01:16   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/physics.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/physics.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:22:06 verbose #25316 > 00:01:17 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:22:06 verbose #25317 > 00:01:17   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:22:07 verbose #25318 > 00:01:18   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 158384 }
00:22:07   debug #25319 runtime.execute_with_options_async / { exit_code = 0; output_length = 166848 }
00:22:07   debug #31 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path physics.dib --retries 3
00:22:07   debug #25320 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path seq.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:22:07 verbose #25321 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "seq.dib", "--retries", "3"])) }
00:22:07 verbose #25322 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/spiral/seq.dib", "--output-path", "c:/home/git/polyglot/lib/spiral/seq.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/seq.dib" --output-path "c:/home/git/polyglot/lib/spiral/seq.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:22:09 verbose #25323 > >
00:22:09 verbose #25324 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:09 verbose #25325 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:09 verbose #25326 > > │ # seq                                                                        │
00:22:09 verbose #25327 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:14 verbose #25328 > >
00:22:14 verbose #25329 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:14 verbose #25330 > > //// test
00:22:14 verbose #25331 > >
00:22:14 verbose #25332 > > open testing
00:22:14 verbose #25333 > 00:22:14   debug #1365 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fa7845de436c12d0ca65282fe0cd65832468ca943e72feba50e6b1bb441e251a/main.spi
00:22:15 verbose #25334 > >
00:22:15 verbose #25335 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:15 verbose #25336 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:15 verbose #25337 > > │ ## seq                                                                       │
00:22:15 verbose #25338 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:15 verbose #25339 > >
00:22:15 verbose #25340 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:15 verbose #25341 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:15 verbose #25342 > > │ ### seq                                                                      │
00:22:15 verbose #25343 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:15 verbose #25344 > >
00:22:15 verbose #25345 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:15 verbose #25346 > > type seq dim el = dim -> option el
00:22:15 verbose #25347 > 00:22:14   debug #1366 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/beeeacbbda68c0d28299be16bc318aca9becbca08240435f010caa31737f326e/main.spi
00:22:15 verbose #25348 > >
00:22:15 verbose #25349 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:15 verbose #25350 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:15 verbose #25351 > > │ ### try_item                                                                 │
00:22:15 verbose #25352 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:15 verbose #25353 > >
00:22:15 verbose #25354 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:15 verbose #25355 > > inl try_item n s =
00:22:15 verbose #25356 > >     n |> s
00:22:15 verbose #25357 > 00:22:15   debug #1367 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/73eee39918fd0a766cbf47ea2a1ef844f06d31a60003a58185729573bfd17657/main.spi
00:22:15 verbose #25358 > >
00:22:15 verbose #25359 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:15 verbose #25360 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:15 verbose #25361 > > │ ### from_list                                                                │
00:22:15 verbose #25362 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:15 verbose #25363 > >
00:22:15 verbose #25364 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:15 verbose #25365 > > inl from_list list =
00:22:15 verbose #25366 > >     fun n =>
00:22:15 verbose #25367 > >         list
00:22:15 verbose #25368 > >         |> listm'.try_item n
00:22:16 verbose #25369 > 00:22:15   debug #1368 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1eb0d11e9ccb767e5843926eee01478e751a1be3dfb4b14b8f6c38c46adf533f/main.spi
00:22:16 verbose #25370 > >
00:22:16 verbose #25371 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:16 verbose #25372 > > //// test
00:22:16 verbose #25373 > >
00:22:16 verbose #25374 > > listm.init 10i32 print_and_return
00:22:16 verbose #25375 > > |> from_list
00:22:16 verbose #25376 > > |> try_item 5i32
00:22:16 verbose #25377 > > |> _assert_eq (Some 5i32)
00:22:16 verbose #25378 > 00:22:15   debug #1369 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5b76a0f4d8c04008a0fdc87e9fb746a61db59db2bf488d90bc01ae3db604a76e/main.spi
00:22:17 verbose #25379 > >
00:22:17 verbose #25380 > > ╭─[ 1.42s - stdout ]───────────────────────────────────────────────────────────╮
00:22:17 verbose #25381 > > │ print_and_return / x: 0                                                      │
00:22:17 verbose #25382 > > │ print_and_return / x: 1                                                      │
00:22:17 verbose #25383 > > │ print_and_return / x: 2                                                      │
00:22:17 verbose #25384 > > │ print_and_return / x: 3                                                      │
00:22:17 verbose #25385 > > │ print_and_return / x: 4                                                      │
00:22:17 verbose #25386 > > │ print_and_return / x: 5                                                      │
00:22:17 verbose #25387 > > │ print_and_return / x: 6                                                      │
00:22:17 verbose #25388 > > │ print_and_return / x: 7                                                      │
00:22:17 verbose #25389 > > │ print_and_return / x: 8                                                      │
00:22:17 verbose #25390 > > │ print_and_return / x: 9                                                      │
00:22:17 verbose #25391 > > │ assert_eq / actual: US0_0 5 / expected: US0_0 5                              │
00:22:17 verbose #25392 > > │                                                                              │
00:22:17 verbose #25393 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:17 verbose #25394 > >
00:22:17 verbose #25395 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:17 verbose #25396 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:17 verbose #25397 > > │ ### map                                                                      │
00:22:17 verbose #25398 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:17 verbose #25399 > >
00:22:17 verbose #25400 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:17 verbose #25401 > > inl map fn s =
00:22:17 verbose #25402 > >     fun n =>
00:22:17 verbose #25403 > >         n
00:22:17 verbose #25404 > >         |> s
00:22:17 verbose #25405 > >         |> optionm.map fn
00:22:17 verbose #25406 > 00:22:17   debug #1370 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ab367246f905193b5d6ddf9e8f25568a44514ad41b398d958967d155d43f284f/main.spi
00:22:18 verbose #25407 > >
00:22:18 verbose #25408 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:18 verbose #25409 > > //// test
00:22:18 verbose #25410 > >
00:22:18 verbose #25411 > > listm.init 10i32 id
00:22:18 verbose #25412 > > |> from_list
00:22:18 verbose #25413 > > |> map ((*) 2)
00:22:18 verbose #25414 > > |> try_item 5i32
00:22:18 verbose #25415 > > |> _assert_eq (Some 10i32)
00:22:18 verbose #25416 > 00:22:17   debug #1371 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/89d1195aa22416b87b94581829bf99df2ee18a19094dda33ebac0710771b184b/main.spi
00:22:18 verbose #25417 > >
00:22:18 verbose #25418 > > ╭─[ 387.27ms - stdout ]────────────────────────────────────────────────────────╮
00:22:18 verbose #25419 > > │ assert_eq / actual: US0_0 10 / expected: US0_0 10                            │
00:22:18 verbose #25420 > > │                                                                              │
00:22:18 verbose #25421 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:18 verbose #25422 > >
00:22:18 verbose #25423 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:18 verbose #25424 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:18 verbose #25425 > > │ ### mapi                                                                     │
00:22:18 verbose #25426 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:18 verbose #25427 > >
00:22:18 verbose #25428 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:18 verbose #25429 > > inl mapi fn s =
00:22:18 verbose #25430 > >     fun n =>
00:22:18 verbose #25431 > >         n
00:22:18 verbose #25432 > >         |> s
00:22:18 verbose #25433 > >         |> optionm.map (fn n)
00:22:18 verbose #25434 > 00:22:17   debug #1372 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/963f4192eefe0a3b56e2c1e9860199650682599ed1e14eeeb9ebf1d1b83b269c/main.spi
00:22:18 verbose #25435 > >
00:22:18 verbose #25436 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:18 verbose #25437 > > //// test
00:22:18 verbose #25438 > >
00:22:18 verbose #25439 > > listm.init 10i32 print_and_return
00:22:18 verbose #25440 > > |> from_list
00:22:18 verbose #25441 > > |> mapi fun i x => i + x
00:22:18 verbose #25442 > > |> try_item 5i32
00:22:18 verbose #25443 > > |> _assert_eq (Some 10i32)
00:22:19 verbose #25444 > 00:22:18   debug #1373 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ca333484205f89f15e8d5e3d8ef8d49a16e9aff1bf59383ba3549dadc5c70f4d/main.spi
00:22:19 verbose #25445 > >
00:22:19 verbose #25446 > > ╭─[ 403.29ms - stdout ]────────────────────────────────────────────────────────╮
00:22:19 verbose #25447 > > │ print_and_return / x: 0                                                      │
00:22:19 verbose #25448 > > │ print_and_return / x: 1                                                      │
00:22:19 verbose #25449 > > │ print_and_return / x: 2                                                      │
00:22:19 verbose #25450 > > │ print_and_return / x: 3                                                      │
00:22:19 verbose #25451 > > │ print_and_return / x: 4                                                      │
00:22:19 verbose #25452 > > │ print_and_return / x: 5                                                      │
00:22:19 verbose #25453 > > │ print_and_return / x: 6                                                      │
00:22:19 verbose #25454 > > │ print_and_return / x: 7                                                      │
00:22:19 verbose #25455 > > │ print_and_return / x: 8                                                      │
00:22:19 verbose #25456 > > │ print_and_return / x: 9                                                      │
00:22:19 verbose #25457 > > │ assert_eq / actual: US0_0 10 / expected: US0_0 10                            │
00:22:19 verbose #25458 > > │                                                                              │
00:22:19 verbose #25459 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:19 verbose #25460 > >
00:22:19 verbose #25461 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:19 verbose #25462 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:19 verbose #25463 > > │ ### choose                                                                   │
00:22:19 verbose #25464 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:19 verbose #25465 > >
00:22:19 verbose #25466 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:19 verbose #25467 > > inl choose forall dim {number} t u. (fn : t -> option u) (s : seq dim t) : seq
00:22:19 verbose #25468 > > dim u =
00:22:19 verbose #25469 > >     fun n =>
00:22:19 verbose #25470 > >         inl rec body fn s i i' =
00:22:19 verbose #25471 > >             match i |> s with
00:22:19 verbose #25472 > >             | None => None
00:22:19 verbose #25473 > >             | Some x =>
00:22:19 verbose #25474 > >                 match x |> fn with
00:22:19 verbose #25475 > >                 | Some x when n = i' => Some x
00:22:19 verbose #25476 > >                 | Some _ => loop (i + 1) (i' + 1)
00:22:19 verbose #25477 > >                 | _ => loop (i + 1) i'
00:22:19 verbose #25478 > >         and inl loop i i' =
00:22:19 verbose #25479 > >             if n |> var_is |> not
00:22:19 verbose #25480 > >             then body fn s i i'
00:22:19 verbose #25481 > >             else
00:22:19 verbose #25482 > >                 inl fn = join fn
00:22:19 verbose #25483 > >                 inl s = join s
00:22:19 verbose #25484 > >                 join body fn s i i'
00:22:19 verbose #25485 > >         loop 0 0
00:22:19 verbose #25486 > 00:22:18   debug #1374 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8d7e7dded1e1996fd4f96cc5b660bca6551991f22db93484939b5e60b1c23826/main.spi
00:22:19 verbose #25487 > >
00:22:19 verbose #25488 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:19 verbose #25489 > > //// test
00:22:19 verbose #25490 > >
00:22:19 verbose #25491 > > listm.init 10i32 print_and_return
00:22:19 verbose #25492 > > |> from_list
00:22:19 verbose #25493 > > |> choose (fun x => if x % 2 = 0 then Some x else None)
00:22:19 verbose #25494 > > |> try_item 1i32
00:22:19 verbose #25495 > > |> _assert_eq (Some 2i32)
00:22:19 verbose #25496 > 00:22:18   debug #1375 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/574648207be8aa14c329a31664f88924afa13ab24ac7861275afd72fd27ebba5/main.spi
00:22:19 verbose #25497 > >
00:22:19 verbose #25498 > > ╭─[ 410.20ms - stdout ]────────────────────────────────────────────────────────╮
00:22:19 verbose #25499 > > │ print_and_return / x: 0                                                      │
00:22:19 verbose #25500 > > │ print_and_return / x: 1                                                      │
00:22:19 verbose #25501 > > │ print_and_return / x: 2                                                      │
00:22:19 verbose #25502 > > │ print_and_return / x: 3                                                      │
00:22:19 verbose #25503 > > │ print_and_return / x: 4                                                      │
00:22:19 verbose #25504 > > │ print_and_return / x: 5                                                      │
00:22:19 verbose #25505 > > │ print_and_return / x: 6                                                      │
00:22:19 verbose #25506 > > │ print_and_return / x: 7                                                      │
00:22:19 verbose #25507 > > │ print_and_return / x: 8                                                      │
00:22:19 verbose #25508 > > │ print_and_return / x: 9                                                      │
00:22:19 verbose #25509 > > │ assert_eq / actual: US0_0 2 / expected: US0_0 2                              │
00:22:19 verbose #25510 > > │                                                                              │
00:22:19 verbose #25511 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:19 verbose #25512 > >
00:22:19 verbose #25513 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:19 verbose #25514 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:19 verbose #25515 > > │ ### indexed                                                                  │
00:22:19 verbose #25516 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:19 verbose #25517 > >
00:22:19 verbose #25518 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:19 verbose #25519 > > inl indexed s =
00:22:19 verbose #25520 > >     s
00:22:19 verbose #25521 > >     |> mapi fun i x =>
00:22:19 verbose #25522 > >         i, x
00:22:20 verbose #25523 > 00:22:19   debug #1376 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/23addf890739dd19c99cf240f1fe7895c4d2aa3e4e56c3d797881187ebba9373/main.spi
00:22:20 verbose #25524 > >
00:22:20 verbose #25525 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:20 verbose #25526 > > //// test
00:22:20 verbose #25527 > >
00:22:20 verbose #25528 > > listm.init 10i32 ((*) 2)
00:22:20 verbose #25529 > > |> from_list
00:22:20 verbose #25530 > > |> indexed
00:22:20 verbose #25531 > > |> try_item 5i32
00:22:20 verbose #25532 > > |> _assert_eq (Some (5i32, 10i32))
00:22:20 verbose #25533 > 00:22:19   debug #1377 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b01c1f13c74d247ff6417b393f373a00b27a86be9f9d6968647c958376312673/main.spi
00:22:20 verbose #25534 > >
00:22:20 verbose #25535 > > ╭─[ 481.91ms - stdout ]────────────────────────────────────────────────────────╮
00:22:20 verbose #25536 > > │ assert_eq / actual: US0_0 (5, 10) / expected: US0_0 (5, 10)                  │
00:22:20 verbose #25537 > > │                                                                              │
00:22:20 verbose #25538 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:20 verbose #25539 > >
00:22:20 verbose #25540 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:20 verbose #25541 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:20 verbose #25542 > > │ ### zip                                                                      │
00:22:20 verbose #25543 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:20 verbose #25544 > >
00:22:20 verbose #25545 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:20 verbose #25546 > > inl zip n seq1 seq2 =
00:22:20 verbose #25547 > >     seq1 n, seq2 n
00:22:21 verbose #25548 > 00:22:20   debug #1378 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b9cd88eff027313df3abcc9e28bbd1b662caa77806df42b33915d070eddc4eec/main.spi
00:22:21 verbose #25549 > >
00:22:21 verbose #25550 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:21 verbose #25551 > > //// test
00:22:21 verbose #25552 > >
00:22:21 verbose #25553 > > ((listm.init 10i32 id |> from_list), (listm.init 10i32 ((*) 2) |> from_list))
00:22:21 verbose #25554 > > ||> zip 5i32
00:22:21 verbose #25555 > > |> _assert_eq (Some 5, Some 10)
00:22:21 verbose #25556 > 00:22:20   debug #1379 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/71e14515e7207b44b73f3f669390dfe1d943c3c1b7f6016eadd800bdd7106ec4/main.spi
00:22:21 verbose #25557 > >
00:22:21 verbose #25558 > > ╭─[ 393.10ms - stdout ]────────────────────────────────────────────────────────╮
00:22:21 verbose #25559 > > │ assert_eq / actual: struct (US0_0 5, US0_0 10) / expected: struct (US0_0 5,  │
00:22:21 verbose #25560 > > │ US0_0 10)                                                                    │
00:22:21 verbose #25561 > > │                                                                              │
00:22:21 verbose #25562 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:21 verbose #25563 > >
00:22:21 verbose #25564 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:21 verbose #25565 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:21 verbose #25566 > > │ ### zip_with                                                                 │
00:22:21 verbose #25567 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:21 verbose #25568 > >
00:22:21 verbose #25569 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:21 verbose #25570 > > inl zip_with fn seq1 seq2 =
00:22:21 verbose #25571 > >     fun n =>
00:22:21 verbose #25572 > >         fn (seq1 n) (seq2 n)
00:22:21 verbose #25573 > 00:22:20   debug #1380 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/55e72bb2cc5c233364a0dcb9d7bed8cea52722ceaae665a7ea3f40ff64e4caab/main.spi
00:22:21 verbose #25574 > >
00:22:21 verbose #25575 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:21 verbose #25576 > > //// test
00:22:21 verbose #25577 > >
00:22:21 verbose #25578 > > ((listm.init 10i32 id |> from_list), (listm.init 10i32 ((*) 2) |> from_list))
00:22:21 verbose #25579 > > ||> zip_with (optionm'.choose (+))
00:22:21 verbose #25580 > > |> try_item 2i32
00:22:21 verbose #25581 > > |> _assert_eq (Some 6)
00:22:22 verbose #25582 > 00:22:21   debug #1381 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7199ccab5602bf3757bfca7bea5cd047a8a3b3a3a022466791b49b7a7f6f3b0f/main.spi
00:22:22 verbose #25583 > >
00:22:22 verbose #25584 > > ╭─[ 367.34ms - stdout ]────────────────────────────────────────────────────────╮
00:22:22 verbose #25585 > > │ assert_eq / actual: US0_0 6 / expected: US0_0 6                              │
00:22:22 verbose #25586 > > │                                                                              │
00:22:22 verbose #25587 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:22 verbose #25588 > >
00:22:22 verbose #25589 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:22 verbose #25590 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:22 verbose #25591 > > │ ### fold                                                                     │
00:22:22 verbose #25592 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:22 verbose #25593 > >
00:22:22 verbose #25594 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:22 verbose #25595 > > inl fold fn init seq =
00:22:22 verbose #25596 > >     inl rec loop acc n =
00:22:22 verbose #25597 > >         match seq n with
00:22:22 verbose #25598 > >         | Some x => loop (fn acc x) (n + 1)
00:22:22 verbose #25599 > >         | None => acc
00:22:22 verbose #25600 > >     loop init 0
00:22:22 verbose #25601 > >
00:22:22 verbose #25602 > > inl fold_ fn init seq =
00:22:22 verbose #25603 > >     let rec loop acc n =
00:22:22 verbose #25604 > >         match seq n with
00:22:22 verbose #25605 > >         | Some x => loop (fn acc x) (n + 1)
00:22:22 verbose #25606 > >         | None => acc
00:22:22 verbose #25607 > >     loop init 0
00:22:22 verbose #25608 > 00:22:21   debug #1382 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/505e030c222de962a45929db53c270ed90e3e35e11cf95881ddbb194f7919f25/main.spi
00:22:22 verbose #25609 > >
00:22:22 verbose #25610 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:22 verbose #25611 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:22 verbose #25612 > > │ ### sum                                                                      │
00:22:22 verbose #25613 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:22 verbose #25614 > >
00:22:22 verbose #25615 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:22 verbose #25616 > > inl sum seq =
00:22:22 verbose #25617 > >     seq |> fold (+) 0
00:22:22 verbose #25618 > >
00:22:22 verbose #25619 > > inl sum_ seq =
00:22:22 verbose #25620 > >     seq |> fold_ (+) 0
00:22:22 verbose #25621 > 00:22:21   debug #1383 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/32acdcef86a5bd1be6d571060a7ddbe79175d30f0e26698ea9054ccccd2e4ce6/main.spi
00:22:22 verbose #25622 > >
00:22:22 verbose #25623 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:22 verbose #25624 > > //// test
00:22:22 verbose #25625 > >
00:22:22 verbose #25626 > > listm.init 10i32 id
00:22:22 verbose #25627 > > |> from_list
00:22:22 verbose #25628 > > |> fun f (n : i32) => f n
00:22:22 verbose #25629 > > |> sum
00:22:22 verbose #25630 > > |> _assert_eq 45
00:22:23 verbose #25631 > 00:22:22   debug #1384 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7d81c93a505bfdf310fe9964c717b72a1c3d911ce73cc1b9a9d431fe2ba954f7/main.spi
00:22:23 verbose #25632 > >
00:22:23 verbose #25633 > > ╭─[ 361.36ms - stdout ]────────────────────────────────────────────────────────╮
00:22:23 verbose #25634 > > │ assert_eq / actual: 45 / expected: 45                                        │
00:22:23 verbose #25635 > > │                                                                              │
00:22:23 verbose #25636 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:23 verbose #25637 > >
00:22:23 verbose #25638 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:23 verbose #25639 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:23 verbose #25640 > > │ ### to_list                                                                  │
00:22:23 verbose #25641 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:23 verbose #25642 > >
00:22:23 verbose #25643 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:23 verbose #25644 > > inl to_list seq =
00:22:23 verbose #25645 > >     seq
00:22:23 verbose #25646 > >     |> fold (fun acc x => x :: acc) [[]]
00:22:23 verbose #25647 > >     |> listm.rev
00:22:23 verbose #25648 > >
00:22:23 verbose #25649 > > inl to_list_ seq =
00:22:23 verbose #25650 > >     seq
00:22:23 verbose #25651 > >     |> fold_ (fun acc x => x :: acc) [[]]
00:22:23 verbose #25652 > >     |> listm.rev
00:22:23 verbose #25653 > 00:22:22   debug #1385 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9ff4f5f61f9b8ffcc37abb7ab0c0ba2e816961c76132962daeeba238a7bad483/main.spi
00:22:23 verbose #25654 > >
00:22:23 verbose #25655 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:23 verbose #25656 > > //// test
00:22:23 verbose #25657 > >
00:22:23 verbose #25658 > > listm.init 10i32 id
00:22:23 verbose #25659 > > |> from_list
00:22:23 verbose #25660 > > |> fun f (n : i32) => f n
00:22:23 verbose #25661 > > |> to_list
00:22:23 verbose #25662 > > |> _assert_eq (listm.init 10i32 id)
00:22:23 verbose #25663 > 00:22:23   debug #1386 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7a16dff67ccba407c7e2f61bd91851e7de4e3a32d6adc75c1eedab53647c0c6c/main.spi
00:22:24 verbose #25664 > >
00:22:24 verbose #25665 > > ╭─[ 437.13ms - stdout ]────────────────────────────────────────────────────────╮
00:22:24 verbose #25666 > > │ assert_eq / actual: UH0_1                                                    │
00:22:24 verbose #25667 > > │   (0,                                                                        │
00:22:24 verbose #25668 > > │    UH0_1                                                                     │
00:22:24 verbose #25669 > > │      (1,                                                                     │
00:22:24 verbose #25670 > > │       UH0_1                                                                  │
00:22:24 verbose #25671 > > │         (2,                                                                  │
00:22:24 verbose #25672 > > │          UH0_1                                                               │
00:22:24 verbose #25673 > > │            (3,                                                               │
00:22:24 verbose #25674 > > │             UH0_1                                                            │
00:22:24 verbose #25675 > > │               (4, UH0_1 (5, UH0_1 (6, UH0_1 (7, UH0_1 (8, UH0_1 (9,          │
00:22:24 verbose #25676 > > │ UH0_0)))))))))) / expected: UH0_1                                            │
00:22:24 verbose #25677 > > │   (0,                                                                        │
00:22:24 verbose #25678 > > │    UH0_1                                                                     │
00:22:24 verbose #25679 > > │      (1,                                                                     │
00:22:24 verbose #25680 > > │       UH0_1                                                                  │
00:22:24 verbose #25681 > > │         (2,                                                                  │
00:22:24 verbose #25682 > > │          UH0_1                                                               │
00:22:24 verbose #25683 > > │            (3,                                                               │
00:22:24 verbose #25684 > > │             UH0_1                                                            │
00:22:24 verbose #25685 > > │               (4, UH0_1 (5, UH0_1 (6, UH0_1 (7, UH0_1 (8, UH0_1 (9,          │
00:22:24 verbose #25686 > > │ UH0_0))))))))))                                                              │
00:22:24 verbose #25687 > > │                                                                              │
00:22:24 verbose #25688 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:24 verbose #25689 > >
00:22:24 verbose #25690 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:24 verbose #25691 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:24 verbose #25692 > > │ ### from_array                                                               │
00:22:24 verbose #25693 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:24 verbose #25694 > >
00:22:24 verbose #25695 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:24 verbose #25696 > > inl from_array forall dim {number; int} el. (array : a dim el) : seq dim el =
00:22:24 verbose #25697 > >     fun n =>
00:22:24 verbose #25698 > >         if n >= length array
00:22:24 verbose #25699 > >         then None
00:22:24 verbose #25700 > >         else index array n |> Some
00:22:24 verbose #25701 > 00:22:23   debug #1387 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2aad33cfcaf8603dbd056aaa4fe8728128fa325568270ac826f4bfecb1d64791/main.spi
00:22:24 verbose #25702 > >
00:22:24 verbose #25703 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:24 verbose #25704 > > //// test
00:22:24 verbose #25705 > >
00:22:24 verbose #25706 > > a ;[[ 1; 2; 3 ]]
00:22:24 verbose #25707 > > |> from_array
00:22:24 verbose #25708 > > |> try_item 1i32
00:22:24 verbose #25709 > > |> _assert_eq (Some 2i32)
00:22:24 verbose #25710 > 00:22:23   debug #1388 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d72170ff48b9a1ad80f25d954a42eabd98b2da8abf752824367b25edb6db1649/main.spi
00:22:25 verbose #25711 > >
00:22:25 verbose #25712 > > ╭─[ 664.13ms - stdout ]────────────────────────────────────────────────────────╮
00:22:25 verbose #25713 > > │ assert_eq / actual: US0_0 2 / expected: US0_0 2                              │
00:22:25 verbose #25714 > > │                                                                              │
00:22:25 verbose #25715 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:25 verbose #25716 > >
00:22:25 verbose #25717 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:25 verbose #25718 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:25 verbose #25719 > > │ ### to_array                                                                 │
00:22:25 verbose #25720 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:25 verbose #25721 > >
00:22:25 verbose #25722 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:25 verbose #25723 > > inl to_array seq =
00:22:25 verbose #25724 > >     inl ar = a ;[[]] |> mut
00:22:25 verbose #25725 > >     ((), seq)
00:22:25 verbose #25726 > >     ||> fold fun _ x =>
00:22:25 verbose #25727 > >         ar <- *ar ++ a ;[[x]]
00:22:25 verbose #25728 > >     *ar
00:22:25 verbose #25729 > >
00:22:25 verbose #25730 > > inl to_array_ seq =
00:22:25 verbose #25731 > >     inl ar = a ;[[]] |> mut
00:22:25 verbose #25732 > >     ((), seq)
00:22:25 verbose #25733 > >     ||> fold_ fun _ x =>
00:22:25 verbose #25734 > >         ar <- *ar ++ a ;[[x]]
00:22:25 verbose #25735 > >     *ar
00:22:25 verbose #25736 > 00:22:24   debug #1389 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/05660b5c8669c20c5beaae08903818f4ee36dda494a6c39ba4e2f25bc17a4814/main.spi
00:22:25 verbose #25737 > >
00:22:25 verbose #25738 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:25 verbose #25739 > > //// test
00:22:25 verbose #25740 > >
00:22:25 verbose #25741 > > listm.init 10i32 id
00:22:25 verbose #25742 > > |> from_list
00:22:25 verbose #25743 > > |> fun (x : i32 -> _) => x
00:22:25 verbose #25744 > > |> to_array
00:22:25 verbose #25745 > > |> _assert_eq (a ;[[ 0; 1; 2; 3; 4; 5; 6; 7; 8; 9 ]] : _ i32 _)
00:22:25 verbose #25746 > 00:22:24   debug #1390 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5662ce632e41d68b0a91e5b2bd037c745c4607d833001bd1a00e38de1023021c/main.spi
00:22:26 verbose #25747 > >
00:22:26 verbose #25748 > > ╭─[ 670.35ms - stdout ]────────────────────────────────────────────────────────╮
00:22:26 verbose #25749 > > │ assert_eq / actual: [|0; 1; 2; 3; 4; 5; 6; 7; 8; 9|] / expected: [|0; 1; 2;  │
00:22:26 verbose #25750 > > │ 3; 4; 5; 6; 7; 8; 9|]                                                        │
00:22:26 verbose #25751 > > │                                                                              │
00:22:26 verbose #25752 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:26 verbose #25753 > >
00:22:26 verbose #25754 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:26 verbose #25755 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:26 verbose #25756 > > │ ### take_while                                                               │
00:22:26 verbose #25757 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:26 verbose #25758 > >
00:22:26 verbose #25759 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:26 verbose #25760 > > inl take_while cond seq =
00:22:26 verbose #25761 > >     inl rec loop acc i =
00:22:26 verbose #25762 > >         match seq i with
00:22:26 verbose #25763 > >         | Some st when cond st i => loop (st :: acc) (i + 1)
00:22:26 verbose #25764 > >         | _ => acc |> listm.rev
00:22:26 verbose #25765 > >     loop [[]] 0
00:22:26 verbose #25766 > 00:22:25   debug #1391 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/35a79e5ebc2ffdb9642358ab52864b02cd086e965f0d08065957fa8069909842/main.spi
00:22:26 verbose #25767 > >
00:22:26 verbose #25768 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:26 verbose #25769 > > //// test
00:22:26 verbose #25770 > >
00:22:26 verbose #25771 > > listm.init 10i32 id
00:22:26 verbose #25772 > > |> from_list
00:22:26 verbose #25773 > > |> take_while (fun n (_ : i32) => n < 5)
00:22:26 verbose #25774 > > |> listm'.sum
00:22:26 verbose #25775 > > |> _assert_eq 10
00:22:26 verbose #25776 > 00:22:25   debug #1392 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9e759ad02a9842a7f424faf23f3a8777a9374faf321a59d172d440f9bec6c027/main.spi
00:22:26 verbose #25777 > >
00:22:26 verbose #25778 > > ╭─[ 349.77ms - stdout ]────────────────────────────────────────────────────────╮
00:22:26 verbose #25779 > > │ assert_eq / actual: 10 / expected: 10                                        │
00:22:26 verbose #25780 > > │                                                                              │
00:22:26 verbose #25781 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:26 verbose #25782 > >
00:22:26 verbose #25783 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:26 verbose #25784 > > //// test
00:22:26 verbose #25785 > >
00:22:26 verbose #25786 > > stream.new_finite_stream print_and_return 10i32
00:22:26 verbose #25787 > > |> flip stream.try_item
00:22:26 verbose #25788 > > |> take_while (fun n (_ : i32) => n < 5)
00:22:26 verbose #25789 > > |> listm'.sum
00:22:26 verbose #25790 > > |> _assert_eq 10
00:22:27 verbose #25791 > 00:22:26   debug #1393 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b79c427b31023f6d0062b45f5fefd975b02ef634db4f7a09b6b9e62a74fdfa1d/main.spi
00:22:27 verbose #25792 > >
00:22:27 verbose #25793 > > ╭─[ 430.81ms - stdout ]────────────────────────────────────────────────────────╮
00:22:27 verbose #25794 > > │ print_and_return / x: 0                                                      │
00:22:27 verbose #25795 > > │ print_and_return / x: 1                                                      │
00:22:27 verbose #25796 > > │ print_and_return / x: 1                                                      │
00:22:27 verbose #25797 > > │ print_and_return / x: 2                                                      │
00:22:27 verbose #25798 > > │ print_and_return / x: 1                                                      │
00:22:27 verbose #25799 > > │ print_and_return / x: 2                                                      │
00:22:27 verbose #25800 > > │ print_and_return / x: 3                                                      │
00:22:27 verbose #25801 > > │ print_and_return / x: 1                                                      │
00:22:27 verbose #25802 > > │ print_and_return / x: 2                                                      │
00:22:27 verbose #25803 > > │ print_and_return / x: 3                                                      │
00:22:27 verbose #25804 > > │ print_and_return / x: 4                                                      │
00:22:27 verbose #25805 > > │ print_and_return / x: 1                                                      │
00:22:27 verbose #25806 > > │ print_and_return / x: 2                                                      │
00:22:27 verbose #25807 > > │ print_and_return / x: 3                                                      │
00:22:27 verbose #25808 > > │ print_and_return / x: 4                                                      │
00:22:27 verbose #25809 > > │ print_and_return / x: 5                                                      │
00:22:27 verbose #25810 > > │ assert_eq / actual: 10 / expected: 10                                        │
00:22:27 verbose #25811 > > │                                                                              │
00:22:27 verbose #25812 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:27 verbose #25813 > >
00:22:27 verbose #25814 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:27 verbose #25815 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:27 verbose #25816 > > │ ### take_while_                                                              │
00:22:27 verbose #25817 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:27 verbose #25818 > >
00:22:27 verbose #25819 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:27 verbose #25820 > > inl take_while_ cond seq =
00:22:27 verbose #25821 > >     let rec loop acc i =
00:22:27 verbose #25822 > >         match seq i with
00:22:27 verbose #25823 > >         | Some st when cond st i => loop (st :: acc) (i + 1)
00:22:27 verbose #25824 > >         | _ => acc |> listm.rev
00:22:27 verbose #25825 > >     loop [[]] 0
00:22:27 verbose #25826 > 00:22:26   debug #1394 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e45b35aff18c40d59a41845d59f4af1af814d1eacfc7e4ab93e8cc0dc80fa414/main.spi
00:22:27 verbose #25827 > >
00:22:27 verbose #25828 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:27 verbose #25829 > > //// test
00:22:27 verbose #25830 > >
00:22:27 verbose #25831 > > stream.new_infinite_stream_ print_and_return
00:22:27 verbose #25832 > > |> flip stream.try_item
00:22:27 verbose #25833 > > |> take_while_ (fun n (_ : i32) => n < 5i32)
00:22:27 verbose #25834 > > |> listm'.sum
00:22:27 verbose #25835 > > |> _assert_eq 10
00:22:28 verbose #25836 > 00:22:27   debug #1395 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/28e49414807381353855a963c6a1455d4674b29406e797c88d3c253f0f469cb6/main.spi
00:22:28 verbose #25837 > >
00:22:28 verbose #25838 > > ╭─[ 542.84ms - stdout ]────────────────────────────────────────────────────────╮
00:22:28 verbose #25839 > > │ print_and_return / x: 0                                                      │
00:22:28 verbose #25840 > > │ print_and_return / x: 1                                                      │
00:22:28 verbose #25841 > > │ print_and_return / x: 1                                                      │
00:22:28 verbose #25842 > > │ print_and_return / x: 2                                                      │
00:22:28 verbose #25843 > > │ print_and_return / x: 1                                                      │
00:22:28 verbose #25844 > > │ print_and_return / x: 2                                                      │
00:22:28 verbose #25845 > > │ print_and_return / x: 3                                                      │
00:22:28 verbose #25846 > > │ print_and_return / x: 1                                                      │
00:22:28 verbose #25847 > > │ print_and_return / x: 2                                                      │
00:22:28 verbose #25848 > > │ print_and_return / x: 3                                                      │
00:22:28 verbose #25849 > > │ print_and_return / x: 4                                                      │
00:22:28 verbose #25850 > > │ print_and_return / x: 1                                                      │
00:22:28 verbose #25851 > > │ print_and_return / x: 2                                                      │
00:22:28 verbose #25852 > > │ print_and_return / x: 3                                                      │
00:22:28 verbose #25853 > > │ print_and_return / x: 4                                                      │
00:22:28 verbose #25854 > > │ print_and_return / x: 5                                                      │
00:22:28 verbose #25855 > > │ assert_eq / actual: 10 / expected: 10                                        │
00:22:28 verbose #25856 > > │                                                                              │
00:22:28 verbose #25857 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:28 verbose #25858 > >
00:22:28 verbose #25859 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:28 verbose #25860 > > //// test
00:22:28 verbose #25861 > >
00:22:28 verbose #25862 > > stream.new_infinite_stream_ print_and_return
00:22:28 verbose #25863 > > |> stream.memoize
00:22:28 verbose #25864 > > |> fun list =>
00:22:28 verbose #25865 > >     inl list = list ()
00:22:28 verbose #25866 > >     fun n =>
00:22:28 verbose #25867 > >         list |> stream.try_item n
00:22:28 verbose #25868 > > |> take_while_ (fun n (_ : i32) => n < 5i32)
00:22:28 verbose #25869 > > |> listm'.sum
00:22:28 verbose #25870 > > |> _assert_eq 10
00:22:28 verbose #25871 > 00:22:27   debug #1396 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5463d9592570b3c88f729671ebe00ceae972b81b76c3948e6621d19b6ada2ec7/main.spi
00:22:28 verbose #25872 > >
00:22:28 verbose #25873 > > ╭─[ 549.69ms - stdout ]────────────────────────────────────────────────────────╮
00:22:28 verbose #25874 > > │ print_and_return / x: 0                                                      │
00:22:28 verbose #25875 > > │ print_and_return / x: 1                                                      │
00:22:28 verbose #25876 > > │ print_and_return / x: 2                                                      │
00:22:28 verbose #25877 > > │ print_and_return / x: 3                                                      │
00:22:28 verbose #25878 > > │ print_and_return / x: 4                                                      │
00:22:28 verbose #25879 > > │ print_and_return / x: 5                                                      │
00:22:28 verbose #25880 > > │ assert_eq / actual: 10 / expected: 10                                        │
00:22:28 verbose #25881 > > │                                                                              │
00:22:28 verbose #25882 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:28 verbose #25883 > >
00:22:28 verbose #25884 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:28 verbose #25885 > > //// test
00:22:28 verbose #25886 > >
00:22:28 verbose #25887 > > stream.new_finite_stream print_and_return 10i32
00:22:28 verbose #25888 > > |> stream.memoize
00:22:28 verbose #25889 > > |> fun list =>
00:22:28 verbose #25890 > >     inl list = list ()
00:22:28 verbose #25891 > >     fun n =>
00:22:28 verbose #25892 > >         list |> stream.try_item n
00:22:28 verbose #25893 > > |> take_while_ (fun n (_ : i32) => n < 5)
00:22:28 verbose #25894 > > |> listm'.sum
00:22:28 verbose #25895 > > |> _assert_eq 10
00:22:29 verbose #25896 > 00:22:28   debug #1397 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c5a71ad5fc5d8fc4e85a6f40068fa60f0372f15ffd43a5705227125e42b2a495/main.spi
00:22:29 verbose #25897 > >
00:22:29 verbose #25898 > > ╭─[ 642.50ms - stdout ]────────────────────────────────────────────────────────╮
00:22:29 verbose #25899 > > │ print_and_return / x: 0                                                      │
00:22:29 verbose #25900 > > │ print_and_return / x: 1                                                      │
00:22:29 verbose #25901 > > │ print_and_return / x: 2                                                      │
00:22:29 verbose #25902 > > │ print_and_return / x: 3                                                      │
00:22:29 verbose #25903 > > │ print_and_return / x: 4                                                      │
00:22:29 verbose #25904 > > │ print_and_return / x: 5                                                      │
00:22:29 verbose #25905 > > │ assert_eq / actual: 10 / expected: 10                                        │
00:22:29 verbose #25906 > > │                                                                              │
00:22:29 verbose #25907 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:29 verbose #25908 > >
00:22:29 verbose #25909 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:29 verbose #25910 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:29 verbose #25911 > > │ ### memoize                                                                  │
00:22:29 verbose #25912 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:29 verbose #25913 > >
00:22:29 verbose #25914 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:29 verbose #25915 > > inl memoize seq =
00:22:29 verbose #25916 > >     inl state = mut [[]]
00:22:29 verbose #25917 > >     fun n =>
00:22:29 verbose #25918 > >         match *state |> listm'.try_find (fun (n', _) => n' = n) with
00:22:29 verbose #25919 > >         | Some (_, v) => v
00:22:29 verbose #25920 > >         | None =>
00:22:29 verbose #25921 > >             inl new_state = seq n
00:22:29 verbose #25922 > >             state <- (n, new_state) :: *state
00:22:29 verbose #25923 > >             new_state
00:22:29 verbose #25924 > >
00:22:29 verbose #25925 > > inl memoize_ seq =
00:22:29 verbose #25926 > >     inl state = mut [[]]
00:22:29 verbose #25927 > >     fun n =>
00:22:29 verbose #25928 > >         match *state |> listm'.try_find_ (fun (n', _) => n' = n) with
00:22:29 verbose #25929 > >         | Some (_, v) => v
00:22:29 verbose #25930 > >         | None =>
00:22:29 verbose #25931 > >             inl new_state = seq n
00:22:29 verbose #25932 > >             state <- (n, new_state) :: *state
00:22:29 verbose #25933 > >             new_state
00:22:29 verbose #25934 > 00:22:28   debug #1398 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/35fa78954ff3aac15a6f236db571b2afabe27b04b04be5e6fd18c3278e3464b5/main.spi
00:22:29 verbose #25935 > >
00:22:29 verbose #25936 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:29 verbose #25937 > > //// test
00:22:29 verbose #25938 > >
00:22:29 verbose #25939 > > inl seq =
00:22:29 verbose #25940 > >     fun n =>
00:22:29 verbose #25941 > >         n |> print_and_return |> Some
00:22:29 verbose #25942 > >     |> memoize_
00:22:29 verbose #25943 > >
00:22:29 verbose #25944 > > seq
00:22:29 verbose #25945 > > |> take_while_ (fun n (_ : i32) => n < 5)
00:22:29 verbose #25946 > > |> listm'.sum
00:22:29 verbose #25947 > > |> _assert_eq 10
00:22:29 verbose #25948 > >
00:22:29 verbose #25949 > > seq
00:22:29 verbose #25950 > > |> take_while_ (fun n _ => n < 5)
00:22:29 verbose #25951 > > |> listm'.sum
00:22:29 verbose #25952 > > |> _assert_eq 10
00:22:30 verbose #25953 > 00:22:29   debug #1399 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/bafe14c29090417270d0c7e0366243122fa9f5de8481fa670cfb6afe95e8aa79/main.spi
00:22:30 verbose #25954 > >
00:22:30 verbose #25955 > > ╭─[ 939.56ms - stdout ]────────────────────────────────────────────────────────╮
00:22:30 verbose #25956 > > │ print_and_return / x: 0                                                      │
00:22:30 verbose #25957 > > │ print_and_return / x: 1                                                      │
00:22:30 verbose #25958 > > │ print_and_return / x: 2                                                      │
00:22:30 verbose #25959 > > │ print_and_return / x: 3                                                      │
00:22:30 verbose #25960 > > │ print_and_return / x: 4                                                      │
00:22:30 verbose #25961 > > │ print_and_return / x: 5                                                      │
00:22:30 verbose #25962 > > │ assert_eq / actual: 10 / expected: 10                                        │
00:22:30 verbose #25963 > > │ assert_eq / actual: 10 / expected: 10                                        │
00:22:30 verbose #25964 > > │                                                                              │
00:22:30 verbose #25965 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:30 verbose #25966 > >
00:22:30 verbose #25967 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:30 verbose #25968 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:30 verbose #25969 > > │ ### iterate                                                                  │
00:22:30 verbose #25970 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:30 verbose #25971 > >
00:22:30 verbose #25972 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:30 verbose #25973 > > inl iterate f x0 num_steps =
00:22:30 verbose #25974 > >     inl rec loop x n =
00:22:30 verbose #25975 > >         if n <= 0
00:22:30 verbose #25976 > >         then x
00:22:30 verbose #25977 > >         else loop (f x) (n - 1)
00:22:30 verbose #25978 > >     loop x0 num_steps
00:22:31 verbose #25979 > 00:22:30   debug #1400 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ef443ba48f0b04433b275debb04eeab30f11ccb7ee7df5ba0377dd98e0890c44/main.spi
00:22:31 verbose #25980 > >
00:22:31 verbose #25981 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:31 verbose #25982 > > //// test
00:22:31 verbose #25983 > >
00:22:31 verbose #25984 > > 10i32 |> iterate ((*) 2) 1i32
00:22:31 verbose #25985 > > |> _assert_eq 1024
00:22:31 verbose #25986 > 00:22:30   debug #1401 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/730cf1eaebc003ebff1c15877dd951b0a67e0d1aef684886069c5c6cf9269576/main.spi
00:22:31 verbose #25987 > >
00:22:31 verbose #25988 > > ╭─[ 511.02ms - stdout ]────────────────────────────────────────────────────────╮
00:22:31 verbose #25989 > > │ assert_eq / actual: 1024 / expected: 1024                                    │
00:22:31 verbose #25990 > > │                                                                              │
00:22:31 verbose #25991 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:31 verbose #25992 > >
00:22:31 verbose #25993 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:31 verbose #25994 > > inl iterate_ f x0 num_steps =
00:22:31 verbose #25995 > >     let rec loop x n =
00:22:31 verbose #25996 > >         if n <= 0
00:22:31 verbose #25997 > >         then x
00:22:31 verbose #25998 > >         else loop (f x) (n - 1)
00:22:31 verbose #25999 > >     loop x0 num_steps
00:22:32 verbose #26000 > 00:22:31   debug #1402 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2adf9274ea41f43b34694f93f758add7a731846c8b62eace25c6a51efc868895/main.spi
00:22:32 verbose #26001 > >
00:22:32 verbose #26002 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:32 verbose #26003 > > //// test
00:22:32 verbose #26004 > >
00:22:32 verbose #26005 > > 10i32 |> iterate_ ((*) 2) 1i32
00:22:32 verbose #26006 > > |> _assert_eq 1024
00:22:32 verbose #26007 > 00:22:31   debug #1403 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2017434d52f486e4b88e57cae22b8f4d64b7d4cfe826d351de9f7015e8de2eff/main.spi
00:22:32 verbose #26008 > >
00:22:32 verbose #26009 > > ╭─[ 402.85ms - stdout ]────────────────────────────────────────────────────────╮
00:22:32 verbose #26010 > > │ assert_eq / actual: 1024 / expected: 1024                                    │
00:22:32 verbose #26011 > > │                                                                              │
00:22:32 verbose #26012 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:32 verbose #26013 > >
00:22:32 verbose #26014 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:32 verbose #26015 > > inl iterate' f x0 num_steps =
00:22:32 verbose #26016 > >     listm.init num_steps id
00:22:32 verbose #26017 > >     |> listm.fold (fun x _ => f x) x0
00:22:32 verbose #26018 > 00:22:32   debug #1404 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0af7da457501a52f1a9b9146ed4ef6ddc0632e89870343cf526267df32d75f52/main.spi
00:22:33 verbose #26019 > >
00:22:33 verbose #26020 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:33 verbose #26021 > > //// test
00:22:33 verbose #26022 > >
00:22:33 verbose #26023 > > 10i32 |> iterate' ((*) 2) 1i32
00:22:33 verbose #26024 > > |> _assert_eq 1024
00:22:33 verbose #26025 > 00:22:32   debug #1405 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b870f885b4da4960677f426fa1fe358969008719159b762b286bf04ad874b4ed/main.spi
00:22:33 verbose #26026 > >
00:22:33 verbose #26027 > > ╭─[ 392.97ms - stdout ]────────────────────────────────────────────────────────╮
00:22:33 verbose #26028 > > │ assert_eq / actual: 1024 / expected: 1024                                    │
00:22:33 verbose #26029 > > │                                                                              │
00:22:33 verbose #26030 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:33 verbose #26031 > >
00:22:33 verbose #26032 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:33 verbose #26033 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:33 verbose #26034 > > │ ### find_last                                                                │
00:22:33 verbose #26035 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:33 verbose #26036 > >
00:22:33 verbose #26037 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:33 verbose #26038 > > inl find_last forall item result. fold_fn fn target : option result =
00:22:33 verbose #26039 > >     fold_fn (fun (item : item) (result : option result) =>
00:22:33 verbose #26040 > >         match result with
00:22:33 verbose #26041 > >         | None => fn item
00:22:33 verbose #26042 > >         | result => result
00:22:33 verbose #26043 > >     ) target (None : option result)
00:22:33 verbose #26044 > >
00:22:33 verbose #26045 > > inl array_find_last forall item result. (fn : item -> option result) (target : a
00:22:33 verbose #26046 > > i32 item) : option result =
00:22:33 verbose #26047 > >     find_last am.foldBack fn target
00:22:33 verbose #26048 > >
00:22:33 verbose #26049 > > inl list_find_last forall item result. (fn : item -> option result) (target :
00:22:33 verbose #26050 > > list item) : option result =
00:22:33 verbose #26051 > >     find_last listm.foldBack fn target
00:22:33 verbose #26052 > 00:22:32   debug #1406 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c763c7cf5035755145751152dca8fa00a7376bbd6cf68ae836f489854e21c369/main.spi
00:22:33 verbose #26053 > >
00:22:33 verbose #26054 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:33 verbose #26055 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:33 verbose #26056 > > │ ## fsharp                                                                    │
00:22:33 verbose #26057 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:33 verbose #26058 > >
00:22:33 verbose #26059 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:33 verbose #26060 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:33 verbose #26061 > > │ ### seq'                                                                     │
00:22:33 verbose #26062 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:33 verbose #26063 > >
00:22:33 verbose #26064 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:33 verbose #26065 > > nominal seq' t = $"backend_switch `({ Fsharp : $"`t seq"; Python : t })"
00:22:34 verbose #26066 > 00:22:33   debug #1407 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4b936e3d4b4e65f713b7d14a0f3bf692b25cdfe223f082258cd381ec090ea8bd/main.spi
00:22:34 verbose #26067 > >
00:22:34 verbose #26068 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:34 verbose #26069 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:34 verbose #26070 > > │ ### of_array'                                                                │
00:22:34 verbose #26071 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:34 verbose #26072 > >
00:22:34 verbose #26073 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:34 verbose #26074 > > inl of_array' forall dim t. (items : a dim t) : seq' t =
00:22:34 verbose #26075 > >     backend_switch {
00:22:34 verbose #26076 > >         Fsharp = fun () => $'seq { for i = 0 to !items.Length - 1 do yield
00:22:34 verbose #26077 > > !items.[[i]] }' : seq' t
00:22:34 verbose #26078 > >         Python = fun () => $'!items ' : seq' t
00:22:34 verbose #26079 > >     }
00:22:34 verbose #26080 > 00:22:33   debug #1408 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/098a0abbdd45fd670910f809371304877e1af3cbceab8a8fbe3443347717ae72/main.spi
00:22:34 verbose #26081 > >
00:22:34 verbose #26082 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:34 verbose #26083 > > //// test
00:22:34 verbose #26084 > >
00:22:34 verbose #26085 > > (a ;[[ "a"; "b" ]] : _ i32 _)
00:22:34 verbose #26086 > > |> of_array'
00:22:34 verbose #26087 > 00:22:34   debug #1409 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/600c97d7cafd9f035ccab5cc063769f8f7dc90b311ccfe34e2bd219a91c59484/main.spi
00:22:35 verbose #26088 > >
00:22:35 verbose #26089 > > ╭─[ 516.97ms - return value ]──────────────────────────────────────────────────╮
00:22:35 verbose #26090 > > │ <details open="open" class="dni-treeview"><summary><span                     │
00:22:35 verbose #26091 > > │ class="dni-code-hint"><code>[ a, b                                           │
00:22:35 verbose #26092 > > │ ]</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
00:22:35 verbose #26093 > > │ CheckClose</td><td><div                                                      │
00:22:35 verbose #26094 > > │ class="dni-plaintext"><pre>False</pre></div></td></tr><tr><td>LastGenerated< │
00:22:35 verbose #26095 > > │ /td><td><div                                                                 │
00:22:35 verbose #26096 > > │ class="dni-plaintext"><pre>&lt;null&gt;</pre></div></td></tr><tr><td>v2</td> │
00:22:35 verbose #26097 > > │ <td><div class="dni-plaintext"><pre>[ a, b                                   │
00:22:35 verbose #26098 > > │ ]</pre></div></td></tr><tr><td>enum</td><td><div                             │
00:22:35 verbose #26099 > > │ class="dni-plaintext"><pre>&lt;null&gt;</pre></div></td></tr><tr><td>pc</td> │
00:22:35 verbose #26100 > > │ <td><div                                                                     │
00:22:35 verbose #26101 > > │ class="dni-plaintext"><pre>0</pre></div></td></tr><tr><td>current</td><td><d │
00:22:35 verbose #26102 > > │ iv                                                                           │
00:22:35 verbose #26103 > > │ class="dni-plaintext"><pre>&lt;null&gt;</pre></div></td></tr><tr><td><i>(val │
00:22:35 verbose #26104 > > │ ues)</i></td><td><div class="dni-plaintext"><pre>[ a, b                      │
00:22:35 verbose #26105 > > │ ]</pre></div></td></tr></tbody></table></div></details><style>               │
00:22:35 verbose #26106 > > │ .dni-code-hint {                                                             │
00:22:35 verbose #26107 > > │     font-style: italic;                                                      │
00:22:35 verbose #26108 > > │     overflow: hidden;                                                        │
00:22:35 verbose #26109 > > │     white-space: nowrap;                                                     │
00:22:35 verbose #26110 > > │ }                                                                            │
00:22:35 verbose #26111 > > │ .dni-treeview {                                                              │
00:22:35 verbose #26112 > > │     white-space: nowrap;                                                     │
00:22:35 verbose #26113 > > │ }                                                                            │
00:22:35 verbose #26114 > > │ .dni-treeview td {                                                           │
00:22:35 verbose #26115 > > │     vertical-align: top;                                                     │
00:22:35 verbose #26116 > > │     text-align: start;                                                       │
00:22:35 verbose #26117 > > │ }                                                                            │
00:22:35 verbose #26118 > > │ details.dni-treeview {                                                       │
00:22:35 verbose #26119 > > │     padding-left: 1em;                                                       │
00:22:35 verbose #26120 > > │ }                                                                            │
00:22:35 verbose #26121 > > │ table td {                                                                   │
00:22:35 verbose #26122 > > │     text-align: start;                                                       │
00:22:35 verbose #26123 > > │ }                                                                            │
00:22:35 verbose #26124 > > │ table tr {                                                                   │
00:22:35 verbose #26125 > > │     vertical-align: top;                                                     │
00:22:35 verbose #26126 > > │     margin: 0em 0px;                                                         │
00:22:35 verbose #26127 > > │ }                                                                            │
00:22:35 verbose #26128 > > │ table tr td pre                                                              │
00:22:35 verbose #26129 > > │ {                                                                            │
00:22:35 verbose #26130 > > │     vertical-align: top !important;                                          │
00:22:35 verbose #26131 > > │     margin: 0em 0px !important;                                              │
00:22:35 verbose #26132 > > │ }                                                                            │
00:22:35 verbose #26133 > > │ table th {                                                                   │
00:22:35 verbose #26134 > > │     text-align: start;                                                       │
00:22:35 verbose #26135 > > │ }                                                                            │
00:22:35 verbose #26136 > > │ </style>                                                                     │
00:22:35 verbose #26137 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:35 verbose #26138 > >
00:22:35 verbose #26139 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:35 verbose #26140 > > inl of_array forall dim t. (items : a dim t) : seq' t =
00:22:35 verbose #26141 > >     backend_switch {
00:22:35 verbose #26142 > >         Fsharp = fun () => $'!items |> Seq.ofArray' : seq' t
00:22:35 verbose #26143 > >         Python = fun () => $'!items ' : seq' t
00:22:35 verbose #26144 > >     }
00:22:35 verbose #26145 > 00:22:34   debug #1410 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/dfc32706d9a34d1d8f671ab8de6afbb17ec06c82a360351a3a03b666001f1ddf/main.spi
00:22:35 verbose #26146 > >
00:22:35 verbose #26147 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:35 verbose #26148 > > //// test
00:22:35 verbose #26149 > >
00:22:35 verbose #26150 > > (a ;[[ "a"; "b" ]] : _ i32 _)
00:22:35 verbose #26151 > > |> of_array
00:22:35 verbose #26152 > 00:22:34   debug #1411 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0f7a2b8c524e4e1fad2a0dc9f462a5d1748d0b32e85922c58c7ef1128e035f03/main.spi
00:22:35 verbose #26153 > >
00:22:35 verbose #26154 > > ╭─[ 464.09ms - return value ]──────────────────────────────────────────────────╮
00:22:35 verbose #26155 > > │ <details open="open" class="dni-treeview"><summary><span                     │
00:22:35 verbose #26156 > > │ class="dni-code-hint"><code>[ a, b                                           │
00:22:35 verbose #26157 > > │ ]</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
00:22:35 verbose #26158 > > │ f</td><td><details class="dni-treeview"><summary><span                       │
00:22:35 verbose #26159 > > │ class="dni-code-hint"><code>Microsoft.FSharp.Collections.SeqModule+OfArray@1 │
00:22:35 verbose #26160 > > │ 010[                                                                         │
00:22:35 verbose #26161 > > │ System.String]</code></span></summary><div><table><thead><tr></tr></thead><t │
00:22:35 verbose #26162 > > │ body><tr><td>source</td><td><div class="dni-plaintext"><pre>[ a, b           │
00:22:35 verbose #26163 > > │ ]</pre></div></td></tr></tbody></table></div></details></td></tr><tr><td><i> │
00:22:35 verbose #26164 > > │ (values)</i></td><td><div class="dni-plaintext"><pre>[ a, b                  │
00:22:35 verbose #26165 > > │ ]</pre></div></td></tr></tbody></table></div></details><style>               │
00:22:35 verbose #26166 > > │ .dni-code-hint {                                                             │
00:22:35 verbose #26167 > > │     font-style: italic;                                                      │
00:22:35 verbose #26168 > > │     overflow: hidden;                                                        │
00:22:35 verbose #26169 > > │     white-space: nowrap;                                                     │
00:22:35 verbose #26170 > > │ }                                                                            │
00:22:35 verbose #26171 > > │ .dni-treeview {                                                              │
00:22:35 verbose #26172 > > │     white-space: nowrap;                                                     │
00:22:35 verbose #26173 > > │ }                                                                            │
00:22:35 verbose #26174 > > │ .dni-treeview td {                                                           │
00:22:35 verbose #26175 > > │     vertical-align: top;                                                     │
00:22:35 verbose #26176 > > │     text-align: start;                                                       │
00:22:35 verbose #26177 > > │ }                                                                            │
00:22:35 verbose #26178 > > │ details.dni-treeview {                                                       │
00:22:35 verbose #26179 > > │     padding-left: 1em;                                                       │
00:22:35 verbose #26180 > > │ }                                                                            │
00:22:35 verbose #26181 > > │ table td {                                                                   │
00:22:35 verbose #26182 > > │     text-align: start;                                                       │
00:22:35 verbose #26183 > > │ }                                                                            │
00:22:35 verbose #26184 > > │ table tr {                                                                   │
00:22:35 verbose #26185 > > │     vertical-align: top;                                                     │
00:22:35 verbose #26186 > > │     margin: 0em 0px;                                                         │
00:22:35 verbose #26187 > > │ }                                                                            │
00:22:35 verbose #26188 > > │ table tr td pre                                                              │
00:22:35 verbose #26189 > > │ {                                                                            │
00:22:35 verbose #26190 > > │     vertical-align: top !important;                                          │
00:22:35 verbose #26191 > > │     margin: 0em 0px !important;                                              │
00:22:35 verbose #26192 > > │ }                                                                            │
00:22:35 verbose #26193 > > │ table th {                                                                   │
00:22:35 verbose #26194 > > │     text-align: start;                                                       │
00:22:35 verbose #26195 > > │ }                                                                            │
00:22:35 verbose #26196 > > │ </style>                                                                     │
00:22:35 verbose #26197 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:35 verbose #26198 > >
00:22:35 verbose #26199 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:35 verbose #26200 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:35 verbose #26201 > > │ ### to_array'                                                                │
00:22:35 verbose #26202 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:35 verbose #26203 > >
00:22:35 verbose #26204 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:35 verbose #26205 > > inl to_array' forall dim t. (items : seq' t) : a dim t =
00:22:35 verbose #26206 > >     backend_switch {
00:22:35 verbose #26207 > >         Fsharp = fun () => items |> $'Seq.toArray' : a dim t
00:22:35 verbose #26208 > >         Python = fun () => $'!items ' : a dim t
00:22:35 verbose #26209 > >     }
00:22:36 verbose #26210 > 00:22:35   debug #1412 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/804fd4af2459a07bdafbf8a1acb843ec257cd42357f799b6f0a2d0b4d1612a82/main.spi
00:22:36 verbose #26211 > >
00:22:36 verbose #26212 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:36 verbose #26213 > > //// test
00:22:36 verbose #26214 > >
00:22:36 verbose #26215 > > (a ;[[ "a"; "b" ]] : _ i32 _)
00:22:36 verbose #26216 > > |> of_array'
00:22:36 verbose #26217 > > |> to_array'
00:22:36 verbose #26218 > > |> _assert_eq' (a ;[[ "a"; "b" ]] : _ i32 _)
00:22:36 verbose #26219 > 00:22:35   debug #1413 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/962936a5a1bdccb144642d59fa4d1b0a5fdb1da11e472fc73302eb0f54684299/main.spi
00:22:36 verbose #26220 > >
00:22:36 verbose #26221 > > ╭─[ 379.20ms - stdout ]────────────────────────────────────────────────────────╮
00:22:36 verbose #26222 > > │ assert_eq' / actual: [|"a"; "b"|] / expected: [|"a"; "b"|]                   │
00:22:36 verbose #26223 > > │                                                                              │
00:22:36 verbose #26224 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:36 verbose #26225 > >
00:22:36 verbose #26226 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:36 verbose #26227 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:36 verbose #26228 > > │ ### of_list'                                                                 │
00:22:36 verbose #26229 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:36 verbose #26230 > >
00:22:36 verbose #26231 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:36 verbose #26232 > > inl of_list' forall t. (items : listm'.list' t) : seq' t =
00:22:36 verbose #26233 > >     backend_switch {
00:22:36 verbose #26234 > >         Fsharp = fun () => $'seq { for i = 0 to !items.Length - 1 do yield
00:22:36 verbose #26235 > > !items.[[i]] }' : seq' t
00:22:36 verbose #26236 > >         Python = fun () => $'!items ' : seq' t
00:22:36 verbose #26237 > >     }
00:22:36 verbose #26238 > 00:22:36   debug #1414 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/093081c08f9243351189647f9b9472793e5cb63d1e3af9bf4df73b5eb9b78eca/main.spi
00:22:36 verbose #26239 > >
00:22:36 verbose #26240 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:36 verbose #26241 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:36 verbose #26242 > > │ ### to_list'                                                                 │
00:22:36 verbose #26243 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:36 verbose #26244 > >
00:22:36 verbose #26245 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:36 verbose #26246 > > inl to_list' forall t. (items : seq' t) : listm'.list' t =
00:22:36 verbose #26247 > >     backend_switch {
00:22:36 verbose #26248 > >         Fsharp = fun () => items |> $'Seq.toList' : listm'.list' t
00:22:36 verbose #26249 > >         Python = fun () => $'!items ' : listm'.list' t
00:22:36 verbose #26250 > >     }
00:22:37 verbose #26251 > 00:22:36   debug #1415 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/328a91ca5c3a554b5a8202d8c025b202de2edcf00f072b77b03776d67205e01a/main.spi
00:22:37 verbose #26252 > >
00:22:37 verbose #26253 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:37 verbose #26254 > > //// test
00:22:37 verbose #26255 > >
00:22:37 verbose #26256 > > (a ;[[ "a"; "b" ]] : _ i32 _)
00:22:37 verbose #26257 > > |> of_array
00:22:37 verbose #26258 > > |> to_list'
00:22:37 verbose #26259 > > |> listm'.unbox
00:22:37 verbose #26260 > > |> _assert_eq ([[ "a"; "b" ]])
00:22:37 verbose #26261 > 00:22:36   debug #1416 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/de93a5d06735e93e4c1f37a3430e34f670b93ed62cb370a75379a0b58edd54cd/main.spi
00:22:37 verbose #26262 > >
00:22:37 verbose #26263 > > ╭─[ 429.67ms - stdout ]────────────────────────────────────────────────────────╮
00:22:37 verbose #26264 > > │ assert_eq / actual: UH0_1 ("a", UH0_1 ("b", UH0_0)) / expected: UH0_1 ("a",  │
00:22:37 verbose #26265 > > │ UH0_1 ("b", UH0_0))                                                          │
00:22:37 verbose #26266 > > │                                                                              │
00:22:37 verbose #26267 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:37 verbose #26268 > >
00:22:37 verbose #26269 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:37 verbose #26270 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:37 verbose #26271 > > │ ### rev'                                                                     │
00:22:37 verbose #26272 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:37 verbose #26273 > >
00:22:37 verbose #26274 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:37 verbose #26275 > > inl rev'' forall t u. (items : t) : seq' u =
00:22:37 verbose #26276 > >     backend_switch {
00:22:37 verbose #26277 > >         Fsharp = fun () => items |> $'Seq.rev' : seq' u
00:22:37 verbose #26278 > >         Python = fun () => $'reversed(!items)' : seq' u
00:22:37 verbose #26279 > >     }
00:22:38 verbose #26280 > 00:22:37   debug #1417 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0ed38763cf8e4ef9e440f4e7955b340a6305a2cd6de3cce056f69008379b61ab/main.spi
00:22:38 verbose #26281 > >
00:22:38 verbose #26282 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:38 verbose #26283 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:38 verbose #26284 > > │ ## rust                                                                      │
00:22:38 verbose #26285 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:38 verbose #26286 > >
00:22:38 verbose #26287 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:38 verbose #26288 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:38 verbose #26289 > > │ ### fuse                                                                     │
00:22:38 verbose #26290 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:38 verbose #26291 > >
00:22:38 verbose #26292 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:38 verbose #26293 > > nominal fuse t =
00:22:38 verbose #26294 > >     `(
00:22:38 verbose #26295 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:22:38 verbose #26296 > > Fable.Core.Emit(\"core::iter::Fuse<$0>\")>]]\n#endif\ntype core_iter_Fuse<'T> =
00:22:38 verbose #26297 > > class end"
00:22:38 verbose #26298 > >         $'' : $'core_iter_Fuse<`t>'
00:22:38 verbose #26299 > >     )
00:22:38 verbose #26300 > 00:22:37   debug #1418 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/44056ad0882ea16802dd4aa7cfc98dab3f5c55b7aebd2371d7c46a50400b8ae5/main.spi
00:22:38 verbose #26301 > 00:00:31 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 45722 }
00:22:38 verbose #26302 > 00:00:31   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/spiral/seq.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/seq.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:22:40 verbose #26303 > 00:00:33 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/seq.dib.ipynb to html
00:22:40 verbose #26304 > 00:00:33 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:22:40 verbose #26305 > 00:00:33 verbose #7 !   validate(nb)
00:22:42 verbose #26306 > 00:00:35 verbose #8 ! [NbConvertApp] Writing 380958 bytes to c:\home\git\polyglot\lib\spiral\seq.dib.html
00:22:42 verbose #26307 > 00:00:35 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 637 }
00:22:42 verbose #26308 > 00:00:35   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 637 }
00:22:42 verbose #26309 > 00:00:35   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/seq.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/seq.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:22:43 verbose #26310 > 00:00:36 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:22:43 verbose #26311 > 00:00:36   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:22:44 verbose #26312 > 00:00:36   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 46418 }
00:22:44   debug #26313 runtime.execute_with_options_async / { exit_code = 0; output_length = 50856 }
00:22:44   debug #32 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path seq.dib --retries 3
00:22:44   debug #26314 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path env.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:22:44 verbose #26315 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "env.dib", "--retries", "3"])) }
00:22:44 verbose #26316 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/spiral/env.dib", "--output-path", "c:/home/git/polyglot/lib/spiral/env.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/env.dib" --output-path "c:/home/git/polyglot/lib/spiral/env.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:22:46 verbose #26317 > >
00:22:46 verbose #26318 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:46 verbose #26319 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:46 verbose #26320 > > │ # env                                                                        │
00:22:46 verbose #26321 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:46 verbose #26322 > >
00:22:46 verbose #26323 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:46 verbose #26324 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:46 verbose #26325 > > │ ## rust                                                                      │
00:22:46 verbose #26326 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:46 verbose #26327 > >
00:22:46 verbose #26328 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:46 verbose #26329 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:46 verbose #26330 > > │ ### var_error                                                                │
00:22:46 verbose #26331 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:50 verbose #26332 > >
00:22:50 verbose #26333 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:50 verbose #26334 > > nominal var_error =
00:22:50 verbose #26335 > >     `(
00:22:50 verbose #26336 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:22:50 verbose #26337 > > Fable.Core.Emit(\"std::env::VarError\")>]]\n#endif\ntype std_env_VarError =
00:22:50 verbose #26338 > > class end"
00:22:50 verbose #26339 > >         $'' : $'std_env_VarError'
00:22:50 verbose #26340 > >     )
00:22:51 verbose #26341 > 00:22:50   debug #1419 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ab8d0c051e87f3689bfe64b63aca0f78ebb6625ac482c092f75813d56447f95d/main.spi
00:22:51 verbose #26342 > >
00:22:51 verbose #26343 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:51 verbose #26344 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:51 verbose #26345 > > │ ### get_environment_variable_comptime                                        │
00:22:51 verbose #26346 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:51 verbose #26347 > >
00:22:51 verbose #26348 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:51 verbose #26349 > > inl get_environment_variable_comptime (var : string) : string =
00:22:51 verbose #26350 > >     run_target function
00:22:51 verbose #26351 > >         | Rust (Native) => fun () =>
00:22:51 verbose #26352 > >             open rust_operators
00:22:51 verbose #26353 > >             !\($'"env\!(\\\"" + !var + "\\\")"')
00:22:51 verbose #26354 > >             |> sm'.from_std_string
00:22:51 verbose #26355 > >         | target => fun () => null ()
00:22:52 verbose #26356 > 00:22:51   debug #1420 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0d3ab26fd920e30a39f0166dbde270556ab86242953df8c66de6c8ebfee73a98/main.spi
00:22:52 verbose #26357 > >
00:22:52 verbose #26358 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:52 verbose #26359 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:52 verbose #26360 > > │ ## python                                                                    │
00:22:52 verbose #26361 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:52 verbose #26362 > >
00:22:52 verbose #26363 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:52 verbose #26364 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:52 verbose #26365 > > │ ### os_environ                                                               │
00:22:52 verbose #26366 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:52 verbose #26367 > >
00:22:52 verbose #26368 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:52 verbose #26369 > > nominal os_environ = any
00:22:52 verbose #26370 > 00:22:51   debug #1421 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/829d5656dd51ba4e731c7b3fa83ae5557c5049a60ed5e26ddead590fb644af23/main.spi
00:22:52 verbose #26371 > >
00:22:52 verbose #26372 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:52 verbose #26373 > > inl os_environ () : os_environ =
00:22:52 verbose #26374 > >     backend_switch {
00:22:52 verbose #26375 > >         Fsharp = fun () =>
00:22:52 verbose #26376 > >             open python_operators
00:22:52 verbose #26377 > >             global "type IOsEnviron = abstract environ: x: unit -> obj"
00:22:52 verbose #26378 > >             inl os : $'IOsEnviron' = python.import_all "os"
00:22:52 verbose #26379 > >             !\($'"!os.environ"') : os_environ
00:22:52 verbose #26380 > >         Python = fun () =>
00:22:52 verbose #26381 > >             global "import os"
00:22:52 verbose #26382 > >             $'os.environ' : os_environ
00:22:52 verbose #26383 > >     }
00:22:52 verbose #26384 > 00:22:51   debug #1422 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d8f7b04af319819c23527565b4b76fd58f0a784e43c953ee3a58cfb05cd732ac/main.spi
00:22:52 verbose #26385 > >
00:22:52 verbose #26386 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:52 verbose #26387 > > inl environ_get (key : string) (os_environ : os_environ) : string =
00:22:52 verbose #26388 > >     backend_switch {
00:22:52 verbose #26389 > >         Fsharp = fun () =>
00:22:52 verbose #26390 > >             open python_operators
00:22:52 verbose #26391 > >             !\\(key, $'"!os_environ.get($0)"') : string
00:22:52 verbose #26392 > >         Python = fun () =>
00:22:52 verbose #26393 > >             $'!os_environ.get(!key)' : string
00:22:52 verbose #26394 > >     }
00:22:53 verbose #26395 > 00:22:52   debug #1423 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/747819e19342e3a0434c9c8c225c75d0a470a2ae16ed98665016e41149921e21/main.spi
00:22:53 verbose #26396 > >
00:22:53 verbose #26397 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:53 verbose #26398 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:53 verbose #26399 > > │ ## env                                                                       │
00:22:53 verbose #26400 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:53 verbose #26401 > >
00:22:53 verbose #26402 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:53 verbose #26403 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:53 verbose #26404 > > │ ### get_environment_variable                                                 │
00:22:53 verbose #26405 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:53 verbose #26406 > >
00:22:53 verbose #26407 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:53 verbose #26408 > > let get_environment_variable (var : string) : string =
00:22:53 verbose #26409 > >     run_target function
00:22:53 verbose #26410 > >         | Rust _ => fun () =>
00:22:53 verbose #26411 > >             open rust_operators
00:22:53 verbose #26412 > >             !\\(var, $'"std::env::var(&*$0)"')
00:22:53 verbose #26413 > >             |> fun x => x : resultm.result' sm'.std_string var_error
00:22:53 verbose #26414 > >             |> resultm.map' sm'.from_std_string
00:22:53 verbose #26415 > >             |> resultm.unwrap_or' (join "")
00:22:53 verbose #26416 > >         | Fsharp _ => fun () =>
00:22:53 verbose #26417 > >             var
00:22:53 verbose #26418 > >             |> $'System.Environment.GetEnvironmentVariable'
00:22:53 verbose #26419 > >             |> optionm'.of_obj
00:22:53 verbose #26420 > >             |> optionm'.unbox
00:22:53 verbose #26421 > >             |> optionm'.default_value ""
00:22:53 verbose #26422 > >         | TypeScript _ => fun () =>
00:22:53 verbose #26423 > >             open typescript_operators
00:22:53 verbose #26424 > >             !\\(var, $'"process.env[[$0]] ?? \\\"\\\""')
00:22:53 verbose #26425 > >         | Python _ | Cuda _ => fun () =>
00:22:53 verbose #26426 > >             os_environ ()
00:22:53 verbose #26427 > >             |> environ_get var
00:22:53 verbose #26428 > >             |> optionm'.of_obj
00:22:53 verbose #26429 > >             |> optionm'.unbox
00:22:53 verbose #26430 > >             |> optionm'.default_value ""
00:22:53 verbose #26431 > >         | target => fun () => failwith $'$"env.get_environment_variable
00:22:53 verbose #26432 > > target: {!target} / var: {!var}"'
00:22:53 verbose #26433 > 00:22:52   debug #1424 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3205c6155a140431e79d1f35a4c4134cbc92699bea0e4f4c28c588f7d7c8de11/main.spi
00:22:53 verbose #26434 > >
00:22:53 verbose #26435 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:53 verbose #26436 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:53 verbose #26437 > > │ ### get_entry_assembly_name                                                  │
00:22:53 verbose #26438 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:53 verbose #26439 > >
00:22:53 verbose #26440 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:53 verbose #26441 > > let get_entry_assembly_name () : string =
00:22:53 verbose #26442 > >     run_target function
00:22:53 verbose #26443 > >         | Rust _ => fun () =>
00:22:53 verbose #26444 > >             (join "CARGO_PKG_NAME") |> get_environment_variable
00:22:53 verbose #26445 > >         | Fsharp _ => fun () =>
00:22:53 verbose #26446 > >             $'System.Reflection.Assembly.GetEntryAssembly().GetName().Name'
00:22:53 verbose #26447 > >         | target => fun () => failwith $'$"env.get_entry_assembly_name / target:
00:22:53 verbose #26448 > > {!target}"'
00:22:53 verbose #26449 > 00:22:53   debug #1425 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/46f8bfcc0ff99a0ed77535a197e4fb2eaf984b4df1298fba4b0d3b90622fd478/main.spi
00:22:54 verbose #26450 > >
00:22:54 verbose #26451 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:54 verbose #26452 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:54 verbose #26453 > > │ ### append_path                                                              │
00:22:54 verbose #26454 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:54 verbose #26455 > >
00:22:54 verbose #26456 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:54 verbose #26457 > > inl append_path (path : string) : option string =
00:22:54 verbose #26458 > >     inl env_path = "PATH" |> get_environment_variable
00:22:54 verbose #26459 > >     if env_path = ""
00:22:54 verbose #26460 > >     then None
00:22:54 verbose #26461 > >     else
00:22:54 verbose #26462 > >         inl env_sep =
00:22:54 verbose #26463 > >             if platform.is_windows ()
00:22:54 verbose #26464 > >             then ";"
00:22:54 verbose #26465 > >             else ":"
00:22:54 verbose #26466 > >         Some $'$"{!path}{!env_sep}{!env_path}"'
00:22:54 verbose #26467 > 00:22:53   debug #1426 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/870a6f39b250d8026fab147c0c3e205a12e959aed13ca5c73d843be2b08e850d/main.spi
00:22:54 verbose #26468 > 00:00:10 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 6761 }
00:22:54 verbose #26469 > 00:00:10   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/spiral/env.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/env.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:22:56 verbose #26470 > 00:00:11 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/env.dib.ipynb to html
00:22:56 verbose #26471 > 00:00:11 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:22:56 verbose #26472 > 00:00:11 verbose #7 !   validate(nb)
00:22:57 verbose #26473 > 00:00:13 verbose #8 ! [NbConvertApp] Writing 290581 bytes to c:\home\git\polyglot\lib\spiral\env.dib.html
00:22:58 verbose #26474 > 00:00:13 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 637 }
00:22:58 verbose #26475 > 00:00:13   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 637 }
00:22:58 verbose #26476 > 00:00:13   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/env.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/env.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:22:59 verbose #26477 > 00:00:14 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:22:59 verbose #26478 > 00:00:14   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:22:59 verbose #26479 > 00:00:15   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 7457 }
00:22:59   debug #26480 runtime.execute_with_options_async / { exit_code = 0; output_length = 10331 }
00:22:59   debug #33 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path env.dib --retries 3
00:22:59   debug #26481 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path python.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:22:59 verbose #26482 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "python.dib", "--retries", "3"])) }
00:22:59 verbose #26483 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/spiral/python.dib", "--output-path", "c:/home/git/polyglot/lib/spiral/python.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/python.dib" --output-path "c:/home/git/polyglot/lib/spiral/python.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:23:03 verbose #26484 > >
00:23:03 verbose #26485 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:03 verbose #26486 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:03 verbose #26487 > > │ # python                                                                     │
00:23:03 verbose #26488 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:03 verbose #26489 > >
00:23:03 verbose #26490 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:03 verbose #26491 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:03 verbose #26492 > > │ ### emit_expr                                                                │
00:23:03 verbose #26493 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:07 verbose #26494 > >
00:23:07 verbose #26495 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:07 verbose #26496 > > inl emit_expr forall a t. (args : a) (code : string) : t =
00:23:07 verbose #26497 > >     real
00:23:07 verbose #26498 > >         $'Fable.Core.PyInterop.emitPyExpr !args !code ' : t
00:23:08 verbose #26499 > 00:23:07   debug #1427 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5447e0dc10564f04ef577d20fa8f92f247573bd47f061c29042e3e47e071987b/main.spi
00:23:08 verbose #26500 > >
00:23:08 verbose #26501 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:08 verbose #26502 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:08 verbose #26503 > > │ ###                                                                          │
00:23:08 verbose #26504 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:08 verbose #26505 > >
00:23:08 verbose #26506 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:08 verbose #26507 > > inl (~!\) forall t. (code : string) : t =
00:23:08 verbose #26508 > >     emit_expr () code
00:23:08 verbose #26509 > 00:23:08   debug #1428 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b00ac9592ed76583bf0d1c17c0013f6f39638179952e6cbed2d811f62e382264/main.spi
00:23:08 verbose #26510 > >
00:23:08 verbose #26511 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:08 verbose #26512 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:08 verbose #26513 > > │ ###                                                                          │
00:23:08 verbose #26514 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:08 verbose #26515 > >
00:23:08 verbose #26516 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:08 verbose #26517 > > inl (~!\\) forall t u. ((args : t), (code : string)) : u =
00:23:08 verbose #26518 > >     emit_expr args code
00:23:09 verbose #26519 > 00:23:08   debug #1429 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/dc066a710ba31498d2155086d76d96ef6fb4c6287fecc061873365ced829915d/main.spi
00:23:09 verbose #26520 > >
00:23:09 verbose #26521 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:09 verbose #26522 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:09 verbose #26523 > > │ ###                                                                          │
00:23:09 verbose #26524 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:09 verbose #26525 > >
00:23:09 verbose #26526 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:09 verbose #26527 > > inl import_all forall t. (file : string) : t =
00:23:09 verbose #26528 > >     real
00:23:09 verbose #26529 > >         $'Fable.Core.PyInterop.importAll !file ' : t
00:23:09 verbose #26530 > 00:23:08   debug #1430 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3f385c6af6c0dc432908d54e1c558d789b39449adc75e847b1b91b2940f32fb5/main.spi
00:23:09 verbose #26531 > >
00:23:09 verbose #26532 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:09 verbose #26533 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:09 verbose #26534 > > │ ###                                                                          │
00:23:09 verbose #26535 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:09 verbose #26536 > >
00:23:09 verbose #26537 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:09 verbose #26538 > > inl import forall t. (name : string) (file : string) : t =
00:23:09 verbose #26539 > >     real
00:23:09 verbose #26540 > >         $'Fable.Core.PyInterop.import !name !file ' : t
00:23:09 verbose #26541 > 00:23:09   debug #1431 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/75fccd10a6550c424d30c9017eded8c5430744be3810874309cad2aaeedc7a6f/main.spi
00:23:10 verbose #26542 > 00:00:10 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 2867 }
00:23:10 verbose #26543 > 00:00:10   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/spiral/python.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/python.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:23:12 verbose #26544 > 00:00:12 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/python.dib.ipynb to html
00:23:12 verbose #26545 > 00:00:12 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:23:12 verbose #26546 > 00:00:12 verbose #7 !   validate(nb)
00:23:13 verbose #26547 > 00:00:13 verbose #8 ! [NbConvertApp] Writing 278637 bytes to c:\home\git\polyglot\lib\spiral\python.dib.html
00:23:13 verbose #26548 > 00:00:13 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 643 }
00:23:13 verbose #26549 > 00:00:13   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 643 }
00:23:13 verbose #26550 > 00:00:13   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/python.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/python.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:23:14 verbose #26551 > 00:00:14 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:23:14 verbose #26552 > 00:00:14   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:23:14 verbose #26553 > 00:00:15   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 3569 }
00:23:14   debug #26554 runtime.execute_with_options_async / { exit_code = 0; output_length = 6290 }
00:23:14   debug #34 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path python.dib --retries 3
00:23:14   debug #26555 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path typescript.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:23:15 verbose #26556 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "typescript.dib", "--retries", "3"])) }
00:23:15 verbose #26557 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/spiral/typescript.dib", "--output-path", "c:/home/git/polyglot/lib/spiral/typescript.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/typescript.dib" --output-path "c:/home/git/polyglot/lib/spiral/typescript.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:23:17 verbose #26558 > >
00:23:17 verbose #26559 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:17 verbose #26560 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:17 verbose #26561 > > │ # typescript                                                                 │
00:23:17 verbose #26562 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:17 verbose #26563 > >
00:23:17 verbose #26564 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:17 verbose #26565 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:17 verbose #26566 > > │ ### emit_expr                                                                │
00:23:17 verbose #26567 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:22 verbose #26568 > >
00:23:22 verbose #26569 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:22 verbose #26570 > > inl emit_expr forall a t. (args : a) (code : string) : t =
00:23:22 verbose #26571 > >     real
00:23:22 verbose #26572 > >         $'Fable.Core.JsInterop.emitJsExpr !args !code ' : t
00:23:22 verbose #26573 > 00:23:21   debug #1432 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ffd4addd53f79aa04e68f6f302bd824f16c03e6b0378c0d72008016b3937842c/main.spi
00:23:23 verbose #26574 > >
00:23:23 verbose #26575 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:23 verbose #26576 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:23 verbose #26577 > > │ ###                                                                          │
00:23:23 verbose #26578 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:23 verbose #26579 > >
00:23:23 verbose #26580 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:23 verbose #26581 > > inl (~!\) forall t. (code : string) : t =
00:23:23 verbose #26582 > >     emit_expr () code
00:23:23 verbose #26583 > 00:23:22   debug #1433 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/92a275d67df2eba3e649fcfd83691b71189adf20a9eae633febd0fa9139b7336/main.spi
00:23:23 verbose #26584 > >
00:23:23 verbose #26585 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:23 verbose #26586 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:23 verbose #26587 > > │ ###                                                                          │
00:23:23 verbose #26588 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:23 verbose #26589 > >
00:23:23 verbose #26590 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:23 verbose #26591 > > inl (~!\\) forall t u. ((args : t), (code : string)) : u =
00:23:23 verbose #26592 > >     emit_expr args code
00:23:23 verbose #26593 > 00:23:22   debug #1434 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a94c8e498193017c7a37098496ec045f58660b4e7e5d36eaf0cef34cd40a2bdc/main.spi
00:23:23 verbose #26594 > >
00:23:23 verbose #26595 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:23 verbose #26596 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:23 verbose #26597 > > │ ###                                                                          │
00:23:23 verbose #26598 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:23 verbose #26599 > >
00:23:23 verbose #26600 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:23 verbose #26601 > > inl import_all forall t. (file : string) : t =
00:23:23 verbose #26602 > >     real
00:23:23 verbose #26603 > >         $'Fable.Core.JsInterop.importAll !file ' : t
00:23:24 verbose #26604 > 00:23:23   debug #1435 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/bb6475de865cc5962b83d816d8a6a2e7fe48128f2411a97c7016f0b49cc6a338/main.spi
00:23:24 verbose #26605 > >
00:23:24 verbose #26606 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:24 verbose #26607 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:24 verbose #26608 > > │ ###                                                                          │
00:23:24 verbose #26609 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:24 verbose #26610 > >
00:23:24 verbose #26611 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:24 verbose #26612 > > inl import forall t. (name : string) (file : string) : t =
00:23:24 verbose #26613 > >     real
00:23:24 verbose #26614 > >         $'Fable.Core.JsInterop.import !name !file ' : t
00:23:24 verbose #26615 > 00:23:23   debug #1436 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/698c6e1e71c7d8bdab2cc6d00031ecfb5301f686bbc38beba7d10a842f6b0be9/main.spi
00:23:24 verbose #26616 > 00:00:09 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 2867 }
00:23:24 verbose #26617 > 00:00:09   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/spiral/typescript.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/typescript.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:23:26 verbose #26618 > 00:00:11 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/typescript.dib.ipynb to html
00:23:26 verbose #26619 > 00:00:11 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:23:26 verbose #26620 > 00:00:11 verbose #7 !   validate(nb)
00:23:28 verbose #26621 > 00:00:13 verbose #8 ! [NbConvertApp] Writing 278653 bytes to c:\home\git\polyglot\lib\spiral\typescript.dib.html
00:23:28 verbose #26622 > 00:00:13 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 651 }
00:23:28 verbose #26623 > 00:00:13   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 651 }
00:23:28 verbose #26624 > 00:00:13   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/typescript.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/typescript.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:23:29 verbose #26625 > 00:00:14 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:23:29 verbose #26626 > 00:00:14   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:23:30 verbose #26627 > 00:00:15   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 3577 }
00:23:30   debug #26628 runtime.execute_with_options_async / { exit_code = 0; output_length = 6334 }
00:23:30   debug #35 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path typescript.dib --retries 3
00:23:30   debug #26629 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path file_system.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:23:30 verbose #26630 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "file_system.dib", "--retries", "3"])) }
00:23:30 verbose #26631 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/spiral/file_system.dib", "--output-path", "c:/home/git/polyglot/lib/spiral/file_system.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/file_system.dib" --output-path "c:/home/git/polyglot/lib/spiral/file_system.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:23:33 verbose #26632 > >
00:23:33 verbose #26633 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:33 verbose #26634 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:33 verbose #26635 > > │ # file_system                                                                │
00:23:33 verbose #26636 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:37 verbose #26637 > >
00:23:37 verbose #26638 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:37 verbose #26639 > > open sm'_operators
00:23:37 verbose #26640 > > open rust_operators
00:23:38 verbose #26641 > 00:23:37   debug #1437 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d18c421303fb6d605a3027516e3f0203aee5cd8d2239592f6ee01be536c64466/main.spi
00:23:38 verbose #26642 > >
00:23:38 verbose #26643 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:38 verbose #26644 > > //// test
00:23:38 verbose #26645 > >
00:23:38 verbose #26646 > > open testing
00:23:38 verbose #26647 > 00:23:38   debug #1438 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/65d2454ef2c69f3bd21146b71bfa20756423ab99aa4c66771c7f5ede708c0b19/main.spi
00:23:38 verbose #26648 > >
00:23:38 verbose #26649 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:38 verbose #26650 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:38 verbose #26651 > > │ ## fsharp                                                                    │
00:23:38 verbose #26652 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:38 verbose #26653 > >
00:23:38 verbose #26654 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:38 verbose #26655 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:38 verbose #26656 > > │ ### file_mode                                                                │
00:23:38 verbose #26657 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:38 verbose #26658 > >
00:23:38 verbose #26659 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:38 verbose #26660 > > nominal file_mode' = $'System.IO.FileMode'
00:23:38 verbose #26661 > >
00:23:38 verbose #26662 > > union file_mode =
00:23:38 verbose #26663 > >     | ModeCreateNew
00:23:38 verbose #26664 > >     | ModeCreate
00:23:38 verbose #26665 > >     | ModeOpen
00:23:38 verbose #26666 > >     | ModeOpenOrCreate
00:23:38 verbose #26667 > >     | Truncate
00:23:38 verbose #26668 > >     | Append
00:23:38 verbose #26669 > >
00:23:38 verbose #26670 > > inl file_mode = function
00:23:38 verbose #26671 > >     | ModeCreateNew => $'System.IO.FileMode.CreateNew' : file_mode'
00:23:38 verbose #26672 > >     | ModeCreate => $'System.IO.FileMode.Create' : file_mode'
00:23:38 verbose #26673 > >     | ModeOpen => $'System.IO.FileMode.Open' : file_mode'
00:23:38 verbose #26674 > >     | ModeOpenOrCreate => $'System.IO.FileMode.OpenOrCreate' : file_mode'
00:23:38 verbose #26675 > >     | Truncate => $'System.IO.FileMode.Truncate' : file_mode'
00:23:38 verbose #26676 > >     | Append => $'System.IO.FileMode.Append' : file_mode'
00:23:39 verbose #26677 > 00:23:38   debug #1439 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/005fb4ba73b9851ed3136d5531023c6ee244eb15e1ad01a5a2b8547e3beea708/main.spi
00:23:39 verbose #26678 > >
00:23:39 verbose #26679 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:39 verbose #26680 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:39 verbose #26681 > > │ ### file_access                                                              │
00:23:39 verbose #26682 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:39 verbose #26683 > >
00:23:39 verbose #26684 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:39 verbose #26685 > > nominal file_access' = $'System.IO.FileAccess'
00:23:39 verbose #26686 > >
00:23:39 verbose #26687 > > union file_access =
00:23:39 verbose #26688 > >     | AccessRead
00:23:39 verbose #26689 > >     | AccessWrite
00:23:39 verbose #26690 > >     | AccessReadWrite
00:23:39 verbose #26691 > >
00:23:39 verbose #26692 > > inl file_access = function
00:23:39 verbose #26693 > >     | AccessRead => $'System.IO.FileAccess.Read' : file_access'
00:23:39 verbose #26694 > >     | AccessWrite => $'System.IO.FileAccess.ReadWrite' : file_access'
00:23:39 verbose #26695 > >     | AccessReadWrite => $'System.IO.FileAccess.ReadWrite' : file_access'
00:23:39 verbose #26696 > 00:23:38   debug #1440 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4cf4492102f0d8994cccae901f8840245861b417342d9e43beb7e747193be2b6/main.spi
00:23:39 verbose #26697 > >
00:23:39 verbose #26698 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:39 verbose #26699 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:39 verbose #26700 > > │ ### file_share                                                               │
00:23:39 verbose #26701 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:39 verbose #26702 > >
00:23:39 verbose #26703 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:39 verbose #26704 > > nominal file_share' = $'System.IO.FileShare'
00:23:39 verbose #26705 > >
00:23:39 verbose #26706 > > union file_share =
00:23:39 verbose #26707 > >     | ShareNone
00:23:39 verbose #26708 > >     | ShareRead
00:23:39 verbose #26709 > >     | ShareWrite
00:23:39 verbose #26710 > >     | ShareReadWrite
00:23:39 verbose #26711 > >     | ShareDelete
00:23:39 verbose #26712 > >
00:23:39 verbose #26713 > > inl file_share = function
00:23:39 verbose #26714 > >     | ShareNone => $'System.IO.FileShare.None' : file_share'
00:23:39 verbose #26715 > >     | ShareRead => $'System.IO.FileShare.Read' : file_share'
00:23:39 verbose #26716 > >     | ShareWrite => $'System.IO.FileShare.Write' : file_share'
00:23:39 verbose #26717 > >     | ShareReadWrite => $'System.IO.FileShare.ReadWrite' : file_share'
00:23:39 verbose #26718 > >     | ShareDelete => $'System.IO.FileShare.Delete' : file_share'
00:23:40 verbose #26719 > 00:23:39   debug #1441 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/17ddcbc3fb81e02c343ba32471029f1e7f46474e6f8ff3794bd04dbe101f011b/main.spi
00:23:40 verbose #26720 > >
00:23:40 verbose #26721 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:40 verbose #26722 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:40 verbose #26723 > > │ ### file_stream                                                              │
00:23:40 verbose #26724 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:40 verbose #26725 > >
00:23:40 verbose #26726 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:40 verbose #26727 > > nominal file_stream' = $'System.IO.FileStream'
00:23:40 verbose #26728 > >
00:23:40 verbose #26729 > > inl file_stream (path : string) mode access share : file_stream' =
00:23:40 verbose #26730 > >     run_target function
00:23:40 verbose #26731 > >         | Fsharp (Native) => fun () =>
00:23:40 verbose #26732 > >             inl mode = mode |> file_mode
00:23:40 verbose #26733 > >             inl access = access |> file_access
00:23:40 verbose #26734 > >             inl share = share |> file_share
00:23:40 verbose #26735 > >             $'new System.IO.FileStream (!path, !mode, !access, !share)'
00:23:40 verbose #26736 > >         | _ => fun () => null ()
00:23:40 verbose #26737 > 00:23:39   debug #1442 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9df5876ade037c725bc996b97b3fcb3bcdc3b0d5864f12f61634052cb443606b/main.spi
00:23:40 verbose #26738 > >
00:23:40 verbose #26739 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:40 verbose #26740 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:40 verbose #26741 > > │ ### directory_info                                                           │
00:23:40 verbose #26742 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:40 verbose #26743 > >
00:23:40 verbose #26744 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:40 verbose #26745 > > nominal directory_info = $'System.IO.DirectoryInfo'
00:23:40 verbose #26746 > >
00:23:40 verbose #26747 > > inl directory_info (path : string) : directory_info =
00:23:40 verbose #26748 > >     path |> $'`directory_info '
00:23:41 verbose #26749 > 00:23:40   debug #1443 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a925db25061d82963708a05795224da425eb26ab2dbdd33d3a55dddb94e9dbd7/main.spi
00:23:41 verbose #26750 > >
00:23:41 verbose #26751 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:41 verbose #26752 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:41 verbose #26753 > > │ ### directory_info_exists                                                    │
00:23:41 verbose #26754 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:41 verbose #26755 > >
00:23:41 verbose #26756 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:41 verbose #26757 > > inl directory_info_exists (info : directory_info) : bool =
00:23:41 verbose #26758 > >     run_target function
00:23:41 verbose #26759 > >         | Fsharp (Native) => fun () =>
00:23:41 verbose #26760 > >             $'!info.Exists'
00:23:41 verbose #26761 > >         | _ => fun () => null ()
00:23:41 verbose #26762 > 00:23:40   debug #1444 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4a2f8100bc44834e47752b6ae9dcdae220cc06bf73b680fe02e9562d11eb4818/main.spi
00:23:41 verbose #26763 > >
00:23:41 verbose #26764 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:41 verbose #26765 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:41 verbose #26766 > > │ ### directory_info_creation_time                                             │
00:23:41 verbose #26767 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:41 verbose #26768 > >
00:23:41 verbose #26769 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:41 verbose #26770 > > inl directory_info_creation_time (info : directory_info) : date_time.date_time =
00:23:41 verbose #26771 > >     run_target function
00:23:41 verbose #26772 > >         | Fsharp (Native) => fun () =>
00:23:41 verbose #26773 > >             $'!info.CreationTime'
00:23:41 verbose #26774 > >         | _ => fun () => null ()
00:23:41 verbose #26775 > 00:23:41   debug #1445 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/125c8aab2478e220e86e1a23067700a593e2741fe8aefe2edd76b91d15bf6b92/main.spi
00:23:42 verbose #26776 > >
00:23:42 verbose #26777 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:42 verbose #26778 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:42 verbose #26779 > > │ ### directory_info_name                                                      │
00:23:42 verbose #26780 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:42 verbose #26781 > >
00:23:42 verbose #26782 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:42 verbose #26783 > > inl directory_info_name (info : directory_info) : string =
00:23:42 verbose #26784 > >     run_target function
00:23:42 verbose #26785 > >         | Fsharp (Native) => fun () =>
00:23:42 verbose #26786 > >             $'!info.Name'
00:23:42 verbose #26787 > >         | _ => fun () => null ()
00:23:42 verbose #26788 > 00:23:41   debug #1446 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f14fa049871ac2da6005bd195583ba38d849c22977a621d71a0826d6d30f334b/main.spi
00:23:42 verbose #26789 > >
00:23:42 verbose #26790 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:42 verbose #26791 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:42 verbose #26792 > > │ ### directory_info_full_name                                                 │
00:23:42 verbose #26793 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:42 verbose #26794 > >
00:23:42 verbose #26795 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:42 verbose #26796 > > inl directory_info_full_name (info : directory_info) : string =
00:23:42 verbose #26797 > >     run_target function
00:23:42 verbose #26798 > >         | Fsharp (Native) => fun () =>
00:23:42 verbose #26799 > >             $'!info.FullName'
00:23:42 verbose #26800 > >         | _ => fun () => null ()
00:23:42 verbose #26801 > 00:23:41   debug #1447 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d4967149370aee032f4c6bb1be556823679b0cc6e2e935724a19b2e24c71ff07/main.spi
00:23:42 verbose #26802 > >
00:23:42 verbose #26803 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:42 verbose #26804 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:42 verbose #26805 > > │ ### create_directory                                                         │
00:23:42 verbose #26806 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:42 verbose #26807 > >
00:23:42 verbose #26808 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:42 verbose #26809 > > inl create_directory (path : string) : directory_info =
00:23:42 verbose #26810 > >     run_target function
00:23:42 verbose #26811 > >         | Fsharp (Native) => fun () =>
00:23:42 verbose #26812 > >             path |> $'System.IO.Directory.CreateDirectory'
00:23:42 verbose #26813 > >         | _ => fun () => null ()
00:23:43 verbose #26814 > 00:23:42   debug #1448 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/993be395bb5196b21c33f55859b60a6a388d6f3b426ba9748611fa56ebe65d84/main.spi
00:23:43 verbose #26815 > >
00:23:43 verbose #26816 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:43 verbose #26817 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:43 verbose #26818 > > │ ### directory_get_files                                                      │
00:23:43 verbose #26819 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:43 verbose #26820 > >
00:23:43 verbose #26821 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:43 verbose #26822 > > inl directory_get_files (path : string) : array_base string =
00:23:43 verbose #26823 > >     run_target function
00:23:43 verbose #26824 > >         | Fsharp (Native) => fun () =>
00:23:43 verbose #26825 > >             path |> $'System.IO.Directory.GetFiles'
00:23:43 verbose #26826 > >         | _ => fun () => null ()
00:23:43 verbose #26827 > 00:23:42   debug #1449 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7e5b69228665c38ad96c7b93fdc7784932ddfa050c7a1f127baf86e99d7288f6/main.spi
00:23:43 verbose #26828 > >
00:23:43 verbose #26829 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:43 verbose #26830 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:43 verbose #26831 > > │ ### file_move                                                                │
00:23:43 verbose #26832 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:43 verbose #26833 > >
00:23:43 verbose #26834 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:43 verbose #26835 > > inl file_move (new_path : string) (old_path : string) : () =
00:23:43 verbose #26836 > >     run_target function
00:23:43 verbose #26837 > >         | Fsharp (Native) => fun () =>
00:23:43 verbose #26838 > >             $'System.IO.File.Move (!old_path, !new_path)'
00:23:43 verbose #26839 > >         | _ => fun () => null ()
00:23:43 verbose #26840 > 00:23:42   debug #1450 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b1679411d42555f78aa80b2cbf16ceaae7dd2c4ad1a3436d3ab20e206d665b64/main.spi
00:23:43 verbose #26841 > >
00:23:43 verbose #26842 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:43 verbose #26843 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:43 verbose #26844 > > │ ### read_all_text_async                                                      │
00:23:43 verbose #26845 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:43 verbose #26846 > >
00:23:43 verbose #26847 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:43 verbose #26848 > > inl read_all_text_async (path : string) : _ string =
00:23:43 verbose #26849 > >     run_target function
00:23:43 verbose #26850 > >         | Fsharp (Native) => fun () =>
00:23:43 verbose #26851 > >             path |> $'System.IO.File.ReadAllTextAsync' |> async.await_task
00:23:43 verbose #26852 > >         | _ => fun () => null ()
00:23:44 verbose #26853 > 00:23:43   debug #1451 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/685c695482b9181de3b908d45fa8410b7c46f5ae4cdd0946ce231359159c5e41/main.spi
00:23:44 verbose #26854 > >
00:23:44 verbose #26855 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:44 verbose #26856 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:44 verbose #26857 > > │ ### write_all_text_async                                                     │
00:23:44 verbose #26858 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:44 verbose #26859 > >
00:23:44 verbose #26860 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:44 verbose #26861 > > inl write_all_text_async (path : string) (text : string) : _ () =
00:23:44 verbose #26862 > >     run_target function
00:23:44 verbose #26863 > >         | Fsharp (Native) => fun () =>
00:23:44 verbose #26864 > >             $'System.IO.File.WriteAllTextAsync (!path, !text)' |>
00:23:44 verbose #26865 > > async.await_task
00:23:44 verbose #26866 > >         | _ => fun () => null ()
00:23:44 verbose #26867 > 00:23:43   debug #1452 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8fc82edcd1146543181f5f62c454bb821167e154bc5f92c521c42a9802f5b95d/main.spi
00:23:44 verbose #26868 > >
00:23:44 verbose #26869 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:44 verbose #26870 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:44 verbose #26871 > > │ ### file_system_info                                                         │
00:23:44 verbose #26872 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:44 verbose #26873 > >
00:23:44 verbose #26874 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:44 verbose #26875 > > nominal file_system_info = $'System.IO.FileSystemInfo'
00:23:44 verbose #26876 > 00:23:44   debug #1453 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0cd7807e02af2fdb698ea7a1253a59c1bb3697e1362af446d0dac419729f38d6/main.spi
00:23:44 verbose #26877 > >
00:23:44 verbose #26878 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:44 verbose #26879 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:44 verbose #26880 > > │ ### get_source_directory                                                     │
00:23:44 verbose #26881 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:44 verbose #26882 > >
00:23:44 verbose #26883 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:44 verbose #26884 > > inl get_source_directory () =
00:23:44 verbose #26885 > >     $'__SOURCE_DIRECTORY__' : string
00:23:45 verbose #26886 > 00:23:44   debug #1454 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a4a58e0258e63d38c88a9e9d1f47beb86953a57a5a8f0765f9d06757fd4c54a0/main.spi
00:23:45 verbose #26887 > >
00:23:45 verbose #26888 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:45 verbose #26889 > > //// test
00:23:45 verbose #26890 > >
00:23:45 verbose #26891 > > get_source_directory ()
00:23:45 verbose #26892 > > |> directory_info
00:23:45 verbose #26893 > > |> directory_info_name
00:23:45 verbose #26894 > > |> _assert_eq "spiral"
00:23:45 verbose #26895 > 00:23:44   debug #1455 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/42f5b24848c222b964b64f7ddb578e6dba78fb58a7b8f4b5dc26c6bd1fc60d3e/main.spi
00:23:46 verbose #26896 > >
00:23:46 verbose #26897 > > ╭─[ 1.13s - stdout ]───────────────────────────────────────────────────────────╮
00:23:46 verbose #26898 > > │ assert_eq / actual: "spiral" / expected: "spiral"                            │
00:23:46 verbose #26899 > > │                                                                              │
00:23:46 verbose #26900 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:46 verbose #26901 > >
00:23:46 verbose #26902 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:46 verbose #26903 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:46 verbose #26904 > > │ ## rust                                                                      │
00:23:46 verbose #26905 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:46 verbose #26906 > >
00:23:46 verbose #26907 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:46 verbose #26908 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:46 verbose #26909 > > │ ### display                                                                  │
00:23:46 verbose #26910 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:46 verbose #26911 > >
00:23:46 verbose #26912 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:46 verbose #26913 > > nominal display =
00:23:46 verbose #26914 > >     `(
00:23:46 verbose #26915 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:23:46 verbose #26916 > > Fable.Core.Emit(\"std::path::Display\")>]]\n#endif\ntype std_path_Display =
00:23:46 verbose #26917 > > class end"
00:23:46 verbose #26918 > >         $'' : $'std_path_Display'
00:23:46 verbose #26919 > >     )
00:23:46 verbose #26920 > 00:23:45   debug #1456 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/772bc40a8e98b70e22c59a50eb7401eb92297f0310f613cf653a2fedf6e3079d/main.spi
00:23:46 verbose #26921 > >
00:23:46 verbose #26922 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:46 verbose #26923 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:46 verbose #26924 > > │ ### path                                                                     │
00:23:46 verbose #26925 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:46 verbose #26926 > >
00:23:46 verbose #26927 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:46 verbose #26928 > > nominal path =
00:23:46 verbose #26929 > >     `(
00:23:46 verbose #26930 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:23:46 verbose #26931 > > Fable.Core.Emit(\"std::path::Path\")>]]\n#endif\ntype std_path_Path = class end"
00:23:46 verbose #26932 > >         $'' : $'std_path_Path'
00:23:46 verbose #26933 > >     )
00:23:47 verbose #26934 > 00:23:46   debug #1457 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/779c5eea82129583946a043d9c3046de59c18ad254491c216c2687ed8c36c43e/main.spi
00:23:47 verbose #26935 > >
00:23:47 verbose #26936 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:47 verbose #26937 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:47 verbose #26938 > > │ ### path_buf                                                                 │
00:23:47 verbose #26939 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:47 verbose #26940 > >
00:23:47 verbose #26941 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:47 verbose #26942 > > nominal path_buf =
00:23:47 verbose #26943 > >     `(
00:23:47 verbose #26944 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:23:47 verbose #26945 > > Fable.Core.Emit(\"std::path::PathBuf\")>]]\n#endif\ntype std_path_PathBuf =
00:23:47 verbose #26946 > > class end"
00:23:47 verbose #26947 > >         $'' : $'std_path_PathBuf'
00:23:47 verbose #26948 > >     )
00:23:47 verbose #26949 > 00:23:46   debug #1458 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e9cb000b108a8ba05f5e559e46390bfd974fbd68686936af67ad1d56422c25ad/main.spi
00:23:47 verbose #26950 > >
00:23:47 verbose #26951 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:47 verbose #26952 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:47 verbose #26953 > > │ ### new_path_buf                                                             │
00:23:47 verbose #26954 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:47 verbose #26955 > >
00:23:47 verbose #26956 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:47 verbose #26957 > > inl new_path_buf (path : sm'.std_string) : path_buf =
00:23:47 verbose #26958 > >     open rust_operators
00:23:47 verbose #26959 > >     !\\(path, $'"std::path::PathBuf::from($0)"')
00:23:47 verbose #26960 > 00:23:46   debug #1459 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f929d0a407a179dbd257ca3cad2adb4f9e957d9402c0127dae87fa369a893caf/main.spi
00:23:47 verbose #26961 > >
00:23:47 verbose #26962 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:47 verbose #26963 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:47 verbose #26964 > > │ ### path_buf_from                                                            │
00:23:47 verbose #26965 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:47 verbose #26966 > >
00:23:47 verbose #26967 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:47 verbose #26968 > > inl path_buf_from (path : rust.box path) : path_buf =
00:23:47 verbose #26969 > >     open rust_operators
00:23:47 verbose #26970 > >     !\\(path, $'"std::path::PathBuf::from($0)"')
00:23:48 verbose #26971 > 00:23:47   debug #1460 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9c9fc318c1a61879a5d0bf9ccae524c6bda5b8a3aa913ce3d6005d733c182141/main.spi
00:23:48 verbose #26972 > >
00:23:48 verbose #26973 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:48 verbose #26974 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:48 verbose #26975 > > │ ### path_buf_join                                                            │
00:23:48 verbose #26976 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:48 verbose #26977 > >
00:23:48 verbose #26978 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:48 verbose #26979 > > inl path_buf_join (s : string) (path_buf : path_buf) : path_buf =
00:23:48 verbose #26980 > >     open rust_operators
00:23:48 verbose #26981 > >     !\\((path_buf, s |> sm'.to_std_string), $'"$0.join($1)"')
00:23:48 verbose #26982 > 00:23:47   debug #1461 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/82ef555c33b0d7e5a23106d9cd3262b29a61a52b99321b496b218b5d28d42883/main.spi
00:23:48 verbose #26983 > >
00:23:48 verbose #26984 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:48 verbose #26985 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:48 verbose #26986 > > │ ### path_buf_strip_prefix                                                    │
00:23:48 verbose #26987 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:48 verbose #26988 > >
00:23:48 verbose #26989 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:48 verbose #26990 > > inl path_buf_strip_prefix (s : string) (path_buf : path_buf) : path_buf =
00:23:48 verbose #26991 > >     open rust_operators
00:23:48 verbose #26992 > >     !\\((path_buf, s |> sm'.to_std_string),
00:23:48 verbose #26993 > > $'"$0.strip_prefix($1).unwrap().to_path_buf()"')
00:23:48 verbose #26994 > 00:23:48   debug #1462 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c5fd37c6981b5ae9941cf51381ed9dc00ed6ef109baf495f4d02d7a3b67583bc/main.spi
00:23:48 verbose #26995 > >
00:23:48 verbose #26996 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:48 verbose #26997 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:48 verbose #26998 > > │ ### path_display                                                             │
00:23:48 verbose #26999 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:48 verbose #27000 > >
00:23:48 verbose #27001 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:48 verbose #27002 > > inl path_display (path : rust.ref path) : display =
00:23:48 verbose #27003 > >     open rust_operators
00:23:48 verbose #27004 > >     !\\(path, $'"$0.display()"')
00:23:49 verbose #27005 > 00:23:48   debug #1463 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/261cb7671cae5bab5b485c4d098c4215e322fd1bbc1384e1f981bc324d4c26df/main.spi
00:23:49 verbose #27006 > >
00:23:49 verbose #27007 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:49 verbose #27008 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:49 verbose #27009 > > │ ### path_buf_display                                                         │
00:23:49 verbose #27010 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:49 verbose #27011 > >
00:23:49 verbose #27012 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:49 verbose #27013 > > inl path_buf_display (path_buf : path_buf) : display =
00:23:49 verbose #27014 > >     open rust_operators
00:23:49 verbose #27015 > >     !\\(path_buf, $'"$0.display()"')
00:23:49 verbose #27016 > 00:23:48   debug #1464 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ace570a423a31ce5770ba79d3b7e0e9fe8d269f7e0b5682b93b3623a3273817f/main.spi
00:23:49 verbose #27017 > >
00:23:49 verbose #27018 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:49 verbose #27019 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:49 verbose #27020 > > │ ### path_buf_file_name                                                       │
00:23:49 verbose #27021 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:49 verbose #27022 > >
00:23:49 verbose #27023 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:49 verbose #27024 > > inl path_buf_file_name (path : path_buf) : optionm'.option' (rust.ref
00:23:49 verbose #27025 > > sm'.os_str) =
00:23:49 verbose #27026 > >     open rust_operators
00:23:49 verbose #27027 > >     !\($'"!path.file_name()"')
00:23:49 verbose #27028 > 00:23:49   debug #1465 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b701add90f442e5bbf47388c32e530bd3a971ec00ece36f3910405d81d75b9c6/main.spi
00:23:50 verbose #27029 > >
00:23:50 verbose #27030 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:50 verbose #27031 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:50 verbose #27032 > > │ ### path_buf_exists                                                          │
00:23:50 verbose #27033 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:50 verbose #27034 > >
00:23:50 verbose #27035 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:50 verbose #27036 > > inl path_buf_exists (path_buf : path_buf) : bool =
00:23:50 verbose #27037 > >     open rust_operators
00:23:50 verbose #27038 > >     !\\(path_buf, $'"$0.exists()"')
00:23:50 verbose #27039 > 00:23:49   debug #1466 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/09c41f25ebad614d5faeee71dc03635cde6cbf0b91aa49f845db4823caa48859/main.spi
00:23:50 verbose #27040 > >
00:23:50 verbose #27041 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:50 verbose #27042 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:50 verbose #27043 > > │ ### path_buf_is_dir                                                          │
00:23:50 verbose #27044 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:50 verbose #27045 > >
00:23:50 verbose #27046 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:50 verbose #27047 > > inl path_buf_is_dir (path_buf : path_buf) : bool =
00:23:50 verbose #27048 > >     open rust_operators
00:23:50 verbose #27049 > >     !\\(path_buf, $'"$0.is_dir()"')
00:23:50 verbose #27050 > 00:23:49   debug #1467 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/82700e38aa5ca8c9d026b7a47fa3b639d0a486e0d9e7bcae2bd80d9754dc2b22/main.spi
00:23:50 verbose #27051 > >
00:23:50 verbose #27052 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:50 verbose #27053 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:50 verbose #27054 > > │ ### path_buf_is_file                                                         │
00:23:50 verbose #27055 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:50 verbose #27056 > >
00:23:50 verbose #27057 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:50 verbose #27058 > > inl path_buf_is_file (path_buf : path_buf) : bool =
00:23:50 verbose #27059 > >     open rust_operators
00:23:50 verbose #27060 > >     !\\(path_buf, $'"$0.is_file()"')
00:23:51 verbose #27061 > 00:23:50   debug #1468 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/376bdbfa6d2a8f397a6197ffcf081d3fb13dc1a4b562a026af682ffb5706f3e1/main.spi
00:23:51 verbose #27062 > >
00:23:51 verbose #27063 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:51 verbose #27064 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:51 verbose #27065 > > │ ### path_buf_is_symlink                                                      │
00:23:51 verbose #27066 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:51 verbose #27067 > >
00:23:51 verbose #27068 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:51 verbose #27069 > > inl path_buf_is_symlink (path_buf : path_buf) : bool =
00:23:51 verbose #27070 > >     open rust_operators
00:23:51 verbose #27071 > >     !\\(path_buf, $'"$0.is_symlink()"')
00:23:51 verbose #27072 > 00:23:50   debug #1469 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/49015334269b388029f56ce17a366109d7d2f97889c7257ffc928403fe2c227c/main.spi
00:23:51 verbose #27073 > >
00:23:51 verbose #27074 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:51 verbose #27075 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:51 verbose #27076 > > │ ### path_buf_parent                                                          │
00:23:51 verbose #27077 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:51 verbose #27078 > >
00:23:51 verbose #27079 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:51 verbose #27080 > > inl path_buf_parent (path_buf : path_buf) : optionm'.option' path_buf =
00:23:51 verbose #27081 > >     open rust_operators
00:23:51 verbose #27082 > >     !\\(path_buf, $'"$0.parent().map(std::path::PathBuf::from)"')
00:23:51 verbose #27083 > 00:23:50   debug #1470 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1e5b2d86200b013d922723d4dc8027c00dcc200ebc1b6dc1a3a8359e691fcee6/main.spi
00:23:51 verbose #27084 > >
00:23:51 verbose #27085 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:51 verbose #27086 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:51 verbose #27087 > > │ ### dir_entry                                                                │
00:23:51 verbose #27088 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:51 verbose #27089 > >
00:23:51 verbose #27090 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:51 verbose #27091 > > nominal dir_entry =
00:23:51 verbose #27092 > >     `(
00:23:51 verbose #27093 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:23:51 verbose #27094 > > Fable.Core.Emit(\"async_walkdir::DirEntry\")>]]\n#endif\ntype
00:23:51 verbose #27095 > > async_walkdir_DirEntry = class end"
00:23:51 verbose #27096 > >         $'' : $'async_walkdir_DirEntry'
00:23:51 verbose #27097 > >     )
00:23:52 verbose #27098 > 00:23:51   debug #1471 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/82c836b9fbbfede2c866aedf17c7c9e1ec7c9d2a4da45c8972ae63782b44261d/main.spi
00:23:52 verbose #27099 > >
00:23:52 verbose #27100 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:52 verbose #27101 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:52 verbose #27102 > > │ ### walk_dir                                                                 │
00:23:52 verbose #27103 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:52 verbose #27104 > >
00:23:52 verbose #27105 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:52 verbose #27106 > > nominal walk_dir =
00:23:52 verbose #27107 > >     `(
00:23:52 verbose #27108 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:23:52 verbose #27109 > > Fable.Core.Emit(\"async_walkdir::WalkDir\")>]]\n#endif\ntype
00:23:52 verbose #27110 > > async_walkdir_WalkDir = class end"
00:23:52 verbose #27111 > >         $'' : $'async_walkdir_WalkDir'
00:23:52 verbose #27112 > >     )
00:23:52 verbose #27113 > 00:23:51   debug #1472 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a4c0635791ba39f036d37ccfb3de5b91dc9d55183f047e9691ec1203fdab962c/main.spi
00:23:52 verbose #27114 > >
00:23:52 verbose #27115 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:52 verbose #27116 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:52 verbose #27117 > > │ ### async_walkdir_filtering                                                  │
00:23:52 verbose #27118 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:52 verbose #27119 > >
00:23:52 verbose #27120 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:52 verbose #27121 > > nominal async_walkdir_filtering =
00:23:52 verbose #27122 > >     `(
00:23:52 verbose #27123 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:23:52 verbose #27124 > > Fable.Core.Emit(\"async_walkdir::Filtering\")>]]\n#endif\ntype
00:23:52 verbose #27125 > > async_walkdir_Filtering = class end"
00:23:52 verbose #27126 > >         $'' : $'async_walkdir_Filtering'
00:23:52 verbose #27127 > >     )
00:23:52 verbose #27128 > 00:23:52   debug #1473 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/172af9cedb677e142c9c70f4855ad2852ae4e176440875f0476bb7b9a21a6bf6/main.spi
00:23:53 verbose #27129 > >
00:23:53 verbose #27130 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:53 verbose #27131 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:53 verbose #27132 > > │ ### filtering                                                                │
00:23:53 verbose #27133 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:53 verbose #27134 > >
00:23:53 verbose #27135 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:53 verbose #27136 > > union filtering =
00:23:53 verbose #27137 > >     | Ignore
00:23:53 verbose #27138 > >     | IgnoreDir
00:23:53 verbose #27139 > >     | Continue
00:23:53 verbose #27140 > 00:23:52   debug #1474 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6a9ab2e7ff34f02f97ff006907f75c5eb4242d621c5ff39cfb36b40e69f3e7ad/main.spi
00:23:53 verbose #27141 > >
00:23:53 verbose #27142 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:53 verbose #27143 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:53 verbose #27144 > > │ ### async_walkdir_error                                                      │
00:23:53 verbose #27145 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:53 verbose #27146 > >
00:23:53 verbose #27147 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:53 verbose #27148 > > nominal async_walkdir_error =
00:23:53 verbose #27149 > >     `(
00:23:53 verbose #27150 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:23:53 verbose #27151 > > Fable.Core.Emit(\"async_walkdir::Error\")>]]\n#endif\ntype async_walkdir_Error =
00:23:53 verbose #27152 > > class end"
00:23:53 verbose #27153 > >         $'' : $'async_walkdir_Error'
00:23:53 verbose #27154 > >     )
00:23:53 verbose #27155 > 00:23:52   debug #1475 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/82e8c3d335317a95327a0280a8c67983d20db3bfb103c263f6b5c2f741408172/main.spi
00:23:53 verbose #27156 > >
00:23:53 verbose #27157 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:53 verbose #27158 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:53 verbose #27159 > > │ ### stream_filter_map                                                        │
00:23:53 verbose #27160 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:53 verbose #27161 > >
00:23:53 verbose #27162 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:53 verbose #27163 > > inl stream_filter_map forall t.
00:23:53 verbose #27164 > >     (fn : resultm.result' dir_entry async_walkdir_error -> optionm'.option' t)
00:23:53 verbose #27165 > >     (stream : walk_dir)
00:23:53 verbose #27166 > >     : am'.vec t =
00:23:53 verbose #27167 > >
00:23:53 verbose #27168 > >     inl fn = join fn
00:23:53 verbose #27169 > >     inl result : am'.vec t =
00:23:53 verbose #27170 > >
00:23:53 verbose #27171 > > !\($'"tokio_stream::StreamExt::collect(tokio_stream::StreamExt::filter_map(!stre
00:23:53 verbose #27172 > > am, |x| !fn(x))).await"')
00:23:53 verbose #27173 > >     result
00:23:54 verbose #27174 > 00:23:53   debug #1476 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fb8cbb322a1d49f9e6550a623681804c599cc24d6d6d294d6e66e04b4ee924b5/main.spi
00:23:54 verbose #27175 > >
00:23:54 verbose #27176 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:54 verbose #27177 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:54 verbose #27178 > > │ ### new_walk_dir                                                             │
00:23:54 verbose #27179 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:54 verbose #27180 > >
00:23:54 verbose #27181 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:54 verbose #27182 > > inl new_walk_dir (dir : string) : walk_dir =
00:23:54 verbose #27183 > >     !\\(dir, $'"async_walkdir::WalkDir::new(&*$0)"')
00:23:54 verbose #27184 > >     // inl walk_dir : walk_dir = walk_dir |> rust.to_mut
00:23:54 verbose #27185 > >     // (!\($'"true; let mut !walk_dir = !walk_dir"') : bool) |> ignore
00:23:54 verbose #27186 > 00:23:53   debug #1477 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a7e3187c559d1658a65c73bfaad953bd05cdb825f0a31b09fc3b26abf49bd73f/main.spi
00:23:54 verbose #27187 > >
00:23:54 verbose #27188 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:54 verbose #27189 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:54 verbose #27190 > > │ ### walk_dir_filter                                                          │
00:23:54 verbose #27191 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:54 verbose #27192 > >
00:23:54 verbose #27193 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:54 verbose #27194 > > inl walk_dir_filter (fn : dir_entry -> async.future_pin_send filtering)
00:23:54 verbose #27195 > > (walk_dir : walk_dir) : walk_dir =
00:23:54 verbose #27196 > >     inl fn entry = async.future_init_send (2, 1) 0 fun () =>
00:23:54 verbose #27197 > >         inl result = fn entry |> async.await_send
00:23:54 verbose #27198 > >         inl filtering : async_walkdir_filtering =
00:23:54 verbose #27199 > >             match result with
00:23:54 verbose #27200 > >             | Ignore => !\($'"async_walkdir::Filtering::Ignore"')
00:23:54 verbose #27201 > >             | IgnoreDir => !\($'"async_walkdir::Filtering::IgnoreDir"')
00:23:54 verbose #27202 > >             | Continue => !\($'"async_walkdir::Filtering::Continue"')
00:23:54 verbose #27203 > >         filtering
00:23:54 verbose #27204 > >     !\\((walk_dir, fn), $'"async_walkdir::WalkDir::filter($0, |x| $1(x))"')
00:23:54 verbose #27205 > 00:23:54   debug #1478 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c9be985cafd3bb2263174c917d47ec1daf99261b94700b5e6ed04b269ae8c351/main.spi
00:23:55 verbose #27206 > >
00:23:55 verbose #27207 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:55 verbose #27208 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:55 verbose #27209 > > │ ### file_type                                                                │
00:23:55 verbose #27210 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:55 verbose #27211 > >
00:23:55 verbose #27212 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:55 verbose #27213 > > nominal file_type =
00:23:55 verbose #27214 > >     `(
00:23:55 verbose #27215 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:23:55 verbose #27216 > > Fable.Core.Emit(\"std::fs::FileType\")>]]\n#endif\ntype std_fs_FileType = class
00:23:55 verbose #27217 > > end"
00:23:55 verbose #27218 > >         $'' : $'std_fs_FileType'
00:23:55 verbose #27219 > >     )
00:23:55 verbose #27220 > 00:23:54   debug #1479 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a1e4c5e5f415773cafa3bc8f2688fcc25af02469414362045ff09335ecc6174d/main.spi
00:23:55 verbose #27221 > >
00:23:55 verbose #27222 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:55 verbose #27223 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:55 verbose #27224 > > │ ### dir_entry_file_type                                                      │
00:23:55 verbose #27225 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:55 verbose #27226 > >
00:23:55 verbose #27227 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:55 verbose #27228 > > inl dir_entry_file_type (dir_entry : dir_entry) : async.future_pin_send
00:23:55 verbose #27229 > > (resultm.result' file_type stream.io_error) =
00:23:55 verbose #27230 > >     inl dir_entry = join dir_entry
00:23:55 verbose #27231 > >     !\($'"Box::pin(async_walkdir::DirEntry::file_type(&!dir_entry))"')
00:23:55 verbose #27232 > 00:23:54   debug #1480 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/862b1f42a79947c952b7b7a52eadbd43d183064df9c9c467b74a20594c1a6158/main.spi
00:23:55 verbose #27233 > >
00:23:55 verbose #27234 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:55 verbose #27235 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:55 verbose #27236 > > │ ### file_type_is_dir                                                         │
00:23:55 verbose #27237 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:55 verbose #27238 > >
00:23:55 verbose #27239 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:55 verbose #27240 > > inl file_type_is_dir (file_type : file_type) : bool =
00:23:55 verbose #27241 > >     inl file_type = join file_type
00:23:55 verbose #27242 > >     !\($'"std::fs::FileType::is_dir(&!file_type)"')
00:23:56 verbose #27243 > 00:23:55   debug #1481 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b9a0e0eef218c06d704dd560f948ac19d1828ab712366697ff297266abde261a/main.spi
00:23:56 verbose #27244 > >
00:23:56 verbose #27245 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:56 verbose #27246 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:56 verbose #27247 > > │ ### file                                                                     │
00:23:56 verbose #27248 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:56 verbose #27249 > >
00:23:56 verbose #27250 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:56 verbose #27251 > > nominal file =
00:23:56 verbose #27252 > >     `(
00:23:56 verbose #27253 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:23:56 verbose #27254 > > Fable.Core.Emit(\"std::fs::File\")>]]\n#endif\ntype std_fs_File = class end"
00:23:56 verbose #27255 > >         $'' : $'std_fs_File'
00:23:56 verbose #27256 > >     )
00:23:56 verbose #27257 > 00:23:55   debug #1482 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1f270fe1f535ba50a164d276b95d44a9a96c6bc9e97740d90ae678fdf1b02217/main.spi
00:23:56 verbose #27258 > >
00:23:56 verbose #27259 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:56 verbose #27260 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:56 verbose #27261 > > │ ### file_open                                                                │
00:23:56 verbose #27262 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:56 verbose #27263 > >
00:23:56 verbose #27264 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:56 verbose #27265 > > inl file_open (path : string) : resultm.result' file stream.io_error =
00:23:56 verbose #27266 > >     !\($'"std::fs::File::open(&*!path)"')
00:23:56 verbose #27267 > 00:23:55   debug #1483 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/58f920ddd0b65107b2eaa8032678d2fbfccdcf4d0bf97ce813b265e7c7c0e482/main.spi
00:23:56 verbose #27268 > >
00:23:56 verbose #27269 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:56 verbose #27270 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:56 verbose #27271 > > │ ### rename                                                                   │
00:23:56 verbose #27272 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:56 verbose #27273 > >
00:23:56 verbose #27274 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:56 verbose #27275 > > inl rename (to : string) (path : string) : resultm.result' () stream.io_error =
00:23:56 verbose #27276 > >     !\($'"std::fs::rename(&*!path, &*!to)"')
00:23:57 verbose #27277 > 00:23:56   debug #1484 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/34b14647c0a55665364fdfe42d3f8fde8d9e44118992d30ce08921242b8b4efd/main.spi
00:23:57 verbose #27278 > >
00:23:57 verbose #27279 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:57 verbose #27280 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:57 verbose #27281 > > │ ### dir_entry_path                                                           │
00:23:57 verbose #27282 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:57 verbose #27283 > >
00:23:57 verbose #27284 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:57 verbose #27285 > > inl dir_entry_path (dir_entry : dir_entry) : path_buf =
00:23:57 verbose #27286 > >     !\\(dir_entry, $'"async_walkdir::DirEntry::path(&$0)"')
00:23:57 verbose #27287 > 00:23:56   debug #1485 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/98d1c45fe9bf49a661f2b888a37ae40d40ea6f304fa35366121bd6d24fcde965/main.spi
00:23:57 verbose #27288 > >
00:23:57 verbose #27289 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:57 verbose #27290 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:57 verbose #27291 > > │ ### create_dir_all                                                           │
00:23:57 verbose #27292 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:57 verbose #27293 > >
00:23:57 verbose #27294 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:57 verbose #27295 > > inl create_dir_all (path : string) : resultm.result' () stream.io_error =
00:23:57 verbose #27296 > >     !\\(path, $'"std::fs::create_dir_all(&*$0)"')
00:23:57 verbose #27297 > 00:23:56   debug #1486 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d78df34a884a4cd4e0b16eba2e18a05032bd9cfd28be05a01d050aca04e42b6c/main.spi
00:23:57 verbose #27298 > >
00:23:57 verbose #27299 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:57 verbose #27300 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:57 verbose #27301 > > │ ### read_link                                                                │
00:23:57 verbose #27302 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:57 verbose #27303 > >
00:23:57 verbose #27304 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:57 verbose #27305 > > inl read_link (path : string) : resultm.result' path_buf stream.io_error =
00:23:57 verbose #27306 > >     open rust_operators
00:23:57 verbose #27307 > >     !\\(path, $'"std::fs::read_link(&*$0)"')
00:23:58 verbose #27308 > 00:23:57   debug #1487 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/936ef857070fbdc927a5a0d7ad93b2c6e160c37ef12b91bf9a039627190e659e/main.spi
00:23:58 verbose #27309 > >
00:23:58 verbose #27310 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:58 verbose #27311 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:58 verbose #27312 > > │ ## typescript                                                                │
00:23:58 verbose #27313 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:58 verbose #27314 > >
00:23:58 verbose #27315 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:58 verbose #27316 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:58 verbose #27317 > > │ ### ts_path_join                                                             │
00:23:58 verbose #27318 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:58 verbose #27319 > >
00:23:58 verbose #27320 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:58 verbose #27321 > > inl ts_path_join (b : string) (a : string) : string =
00:23:58 verbose #27322 > >     open typescript_operators
00:23:58 verbose #27323 > >     global "type IPathJoin = abstract join: [[<System.ParamArray>]] paths:
00:23:58 verbose #27324 > > string[[]] -> string"
00:23:58 verbose #27325 > >     inl path : $'IPathJoin' = typescript.import_all "path"
00:23:58 verbose #27326 > >     !\\((join a, join b), $'"!path.join($0, $1)"')
00:23:58 verbose #27327 > 00:23:57   debug #1488 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1d43bd6791c3f67f4371ea8dc3efc3909f601d6786b1ef08a96e9c40bf54e53c/main.spi
00:23:58 verbose #27328 > >
00:23:58 verbose #27329 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:58 verbose #27330 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:58 verbose #27331 > > │ ## file_system                                                               │
00:23:58 verbose #27332 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:58 verbose #27333 > >
00:23:58 verbose #27334 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:58 verbose #27335 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:58 verbose #27336 > > │ ### (< />)                                                                   │
00:23:58 verbose #27337 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:58 verbose #27338 > >
00:23:58 verbose #27339 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:58 verbose #27340 > > let (</>) (a : string) (b : string) : string =
00:23:58 verbose #27341 > >     run_target function
00:23:58 verbose #27342 > >         | Rust (Contract) => fun () => null ()
00:23:58 verbose #27343 > >         | Rust (Native) => fun () =>
00:23:58 verbose #27344 > >             a
00:23:58 verbose #27345 > >             |> sm'.to_std_string
00:23:58 verbose #27346 > >             |> new_path_buf
00:23:58 verbose #27347 > >             |> path_buf_join b
00:23:58 verbose #27348 > >             |> path_buf_display
00:23:58 verbose #27349 > >             |> sm'.format'
00:23:58 verbose #27350 > >             |> sm'.from_std_string
00:23:58 verbose #27351 > >         | TypeScript (Native) => fun () =>
00:23:58 verbose #27352 > >             a |> ts_path_join b
00:23:58 verbose #27353 > >         | Fsharp (Native) => fun () =>
00:23:58 verbose #27354 > >             $'System.IO.Path.Combine (!a, !b)'
00:23:58 verbose #27355 > >         | target => fun () => failwith $'$"file_system.(</>) / target: {!target}
00:23:58 verbose #27356 > > / a: {!a} / b: {!b}"'
00:23:58 verbose #27357 > 00:23:58   debug #1489 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/45fb80ecaf37607dd8c0fdf217e797337cee8bcd5db5b60191ed77eb3f06b8c4/main.spi
00:23:59 verbose #27358 > >
00:23:59 verbose #27359 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:59 verbose #27360 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:59 verbose #27361 > > │ ### get_temp_path                                                            │
00:23:59 verbose #27362 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:59 verbose #27363 > >
00:23:59 verbose #27364 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:59 verbose #27365 > > let get_temp_path () : string =
00:23:59 verbose #27366 > >     run_target function
00:23:59 verbose #27367 > >         | Rust (Contract) => fun () => null ()
00:23:59 verbose #27368 > >         | Rust (Native) => fun () =>
00:23:59 verbose #27369 > >             open rust_operators
00:23:59 verbose #27370 > >             !\($'"std::env::temp_dir()"')
00:23:59 verbose #27371 > >             |> path_buf_display
00:23:59 verbose #27372 > >             |> sm'.format'
00:23:59 verbose #27373 > >             |> sm'.from_std_string
00:23:59 verbose #27374 > >         | Fsharp (Native) => fun () =>
00:23:59 verbose #27375 > >             $'System.IO.Path.GetTempPath' ()
00:23:59 verbose #27376 > >         | target => fun () => failwith $'$"file_system.get_temp_path / target:
00:23:59 verbose #27377 > > {!target}"'
00:23:59 verbose #27378 > 00:23:58   debug #1490 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/40725960b42bf91114aa79a5db15ca32a6a24c5f1bf4a4ee6c94f8e903d81d5c/main.spi
00:23:59 verbose #27379 > >
00:23:59 verbose #27380 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:59 verbose #27381 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:59 verbose #27382 > > │ ### get_file_name                                                            │
00:23:59 verbose #27383 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:59 verbose #27384 > >
00:23:59 verbose #27385 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:59 verbose #27386 > > let get_file_name (path : string) : string =
00:23:59 verbose #27387 > >     run_target function
00:23:59 verbose #27388 > >         | Rust (Contract) => fun () => null ()
00:23:59 verbose #27389 > >         | Rust (Native) => fun () =>
00:23:59 verbose #27390 > >             open rust_operators
00:23:59 verbose #27391 > >             inl path_buf = path |> sm'.to_std_string |> new_path_buf
00:23:59 verbose #27392 > >             !\\(path_buf, $'"$0.file_name()"')
00:23:59 verbose #27393 > >             |> optionm'.unwrap
00:23:59 verbose #27394 > >             |> sm'.from_os_str_ref
00:23:59 verbose #27395 > >         | Fsharp (Native) => fun () =>
00:23:59 verbose #27396 > >             path |> $'System.IO.Path.GetFileName'
00:23:59 verbose #27397 > >         | target => fun () => failwith $'$"file_system.get_file_name / target:
00:23:59 verbose #27398 > > {!target} / path: {!path}"'
00:23:59 verbose #27399 > 00:23:58   debug #1491 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0bcbf669da498719f43cf79d641ad36e822c357d620f191a60d3617fcbafd394/main.spi
00:23:59 verbose #27400 > >
00:23:59 verbose #27401 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:59 verbose #27402 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:59 verbose #27403 > > │ ### get_file_name_without_extension                                          │
00:23:59 verbose #27404 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:59 verbose #27405 > >
00:23:59 verbose #27406 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:59 verbose #27407 > > let get_file_name_without_extension (path : string) : string =
00:23:59 verbose #27408 > >     run_target function
00:23:59 verbose #27409 > >         | Rust (Contract) => fun () => null ()
00:23:59 verbose #27410 > >         | Rust (Native) => fun () =>
00:23:59 verbose #27411 > >             open rust_operators
00:23:59 verbose #27412 > >             inl path_buf = path |> sm'.to_std_string |> new_path_buf
00:23:59 verbose #27413 > >             !\\(path_buf, $'"$0.file_stem()"')
00:23:59 verbose #27414 > >             |> optionm'.unwrap
00:23:59 verbose #27415 > >             |> sm'.from_os_str_ref
00:23:59 verbose #27416 > >         | _ => fun () =>
00:23:59 verbose #27417 > >             path |> $'System.IO.Path.GetFileNameWithoutExtension'
00:24:00 verbose #27418 > 00:23:59   debug #1492 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1d02106659e61526a6d197a498dd563e3d896f65300ccdf49a7d24af28b91919/main.spi
00:24:00 verbose #27419 > >
00:24:00 verbose #27420 > > ── markdown ────────────────────────────────────────────────────────────────────
00:24:00 verbose #27421 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:24:00 verbose #27422 > > │ ### get_directory_name                                                       │
00:24:00 verbose #27423 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:00 verbose #27424 > >
00:24:00 verbose #27425 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:00 verbose #27426 > > let get_directory_name (path : string) : string =
00:24:00 verbose #27427 > >     run_target function
00:24:00 verbose #27428 > >         | Rust (Contract) => fun () => null ()
00:24:00 verbose #27429 > >         | Rust (Native) => fun () =>
00:24:00 verbose #27430 > >             open rust_operators
00:24:00 verbose #27431 > >             inl path_buf = path |> sm'.to_std_string |> new_path_buf
00:24:00 verbose #27432 > >             !\\(path_buf, $'"$0.parent()"')
00:24:00 verbose #27433 > >             |> optionm'.unwrap
00:24:00 verbose #27434 > >             |> path_display
00:24:00 verbose #27435 > >             |> sm'.format'
00:24:00 verbose #27436 > >             |> sm'.from_std_string
00:24:00 verbose #27437 > >         | _ => fun () =>
00:24:00 verbose #27438 > >             path |> $'System.IO.Path.GetDirectoryName'
00:24:00 verbose #27439 > 00:23:59   debug #1493 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a04cd242f4af575d6e6587a75b8ec745f415c68c864db39b9dbf99cdbc42310d/main.spi
00:24:00 verbose #27440 > >
00:24:00 verbose #27441 > > ── markdown ────────────────────────────────────────────────────────────────────
00:24:00 verbose #27442 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:24:00 verbose #27443 > > │ ### get_extension                                                            │
00:24:00 verbose #27444 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:00 verbose #27445 > >
00:24:00 verbose #27446 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:00 verbose #27447 > > let get_extension (path : string) : string =
00:24:00 verbose #27448 > >     run_target function
00:24:00 verbose #27449 > >         | Rust (Contract) => fun () => null ()
00:24:00 verbose #27450 > >         | Rust (Native) => fun () =>
00:24:00 verbose #27451 > >             open rust_operators
00:24:00 verbose #27452 > >             inl path_buf = path |> sm'.to_std_string |> new_path_buf
00:24:00 verbose #27453 > >             !\\(path_buf, $'"$0.extension()"')
00:24:00 verbose #27454 > >             |> optionm'.unwrap
00:24:00 verbose #27455 > >             |> sm'.from_os_str_ref
00:24:00 verbose #27456 > >         | _ => fun () =>
00:24:00 verbose #27457 > >             path |> $'System.IO.Path.GetExtension'
00:24:00 verbose #27458 > 00:23:59   debug #1494 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/819568265b39c707047d70ad2d99edd645e6173327659eddb7153aa6954247c1/main.spi
00:24:00 verbose #27459 > >
00:24:00 verbose #27460 > > ── markdown ────────────────────────────────────────────────────────────────────
00:24:00 verbose #27461 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:24:00 verbose #27462 > > │ ### directory_separator_char                                                 │
00:24:00 verbose #27463 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:00 verbose #27464 > >
00:24:00 verbose #27465 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:00 verbose #27466 > > let directory_separator_char () : char =
00:24:00 verbose #27467 > >     run_target function
00:24:00 verbose #27468 > >         | Rust (Native) => fun () =>
00:24:00 verbose #27469 > >             open rust_operators
00:24:00 verbose #27470 > >             !\($'"std::path::MAIN_SEPARATOR"')
00:24:00 verbose #27471 > >         | _ => fun () =>
00:24:00 verbose #27472 > >             $'System.IO.Path.DirectorySeparatorChar'
00:24:01 verbose #27473 > 00:24:00   debug #1495 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/80c6457f1fae4b05d48768692c5545d192e0e217754486099ff591ee01062c07/main.spi
00:24:01 verbose #27474 > >
00:24:01 verbose #27475 > > ── markdown ────────────────────────────────────────────────────────────────────
00:24:01 verbose #27476 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:24:01 verbose #27477 > > │ ### get_current_directory                                                    │
00:24:01 verbose #27478 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:01 verbose #27479 > >
00:24:01 verbose #27480 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:01 verbose #27481 > > let get_current_directory () : string =
00:24:01 verbose #27482 > >     run_target function
00:24:01 verbose #27483 > >         | Rust (Contract | Wasm) => fun () => null ()
00:24:01 verbose #27484 > >         | Rust (Native) => fun () =>
00:24:01 verbose #27485 > >             open rust_operators
00:24:01 verbose #27486 > >             inl current_dir = !\($'"std::env::current_dir()"') : resultm.result'
00:24:01 verbose #27487 > > path_buf stream.io_error
00:24:01 verbose #27488 > >             current_dir
00:24:01 verbose #27489 > >             |> resultm.unwrap'
00:24:01 verbose #27490 > >             |> path_buf_display
00:24:01 verbose #27491 > >             |> sm'.format'
00:24:01 verbose #27492 > >             |> sm'.from_std_string
00:24:01 verbose #27493 > >         | Fsharp (Native) => fun () =>
00:24:01 verbose #27494 > >             $'System.IO.Directory.GetCurrentDirectory' ()
00:24:01 verbose #27495 > >         | _ => fun () => null ()
00:24:01 verbose #27496 > 00:24:00   debug #1496 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/13e662f4f0d29ee35ace28de9ab8799897e5e123c2e12478f9f4790a15586716/main.spi
00:24:01 verbose #27497 > >
00:24:01 verbose #27498 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:01 verbose #27499 > > //// test
00:24:01 verbose #27500 > >
00:24:01 verbose #27501 > > get_current_directory ()
00:24:01 verbose #27502 > > |> _assert_contains (directory_separator_char ())
00:24:02 verbose #27503 > 00:24:01   debug #1497 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/28a7a19a0b50cf7aeb3cac94597d39c49561a2d1268dd605ab0ebfdbe9445388/main.spi
00:24:02 verbose #27504 > >
00:24:02 verbose #27505 > > ╭─[ 853.63ms - stdout ]────────────────────────────────────────────────────────╮
00:24:02 verbose #27506 > > │ assert_contains / actual: "C:\home\git\polyglot\lib\spiral" / expected: '\\' │
00:24:02 verbose #27507 > > │                                                                              │
00:24:02 verbose #27508 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:02 verbose #27509 > >
00:24:02 verbose #27510 > > ── markdown ────────────────────────────────────────────────────────────────────
00:24:02 verbose #27511 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:24:02 verbose #27512 > > │ ### normalize_path                                                           │
00:24:02 verbose #27513 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:02 verbose #27514 > >
00:24:02 verbose #27515 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:02 verbose #27516 > > let normalize_path (path : string) : string =
00:24:02 verbose #27517 > >     if path = ""
00:24:02 verbose #27518 > >     then ""
00:24:02 verbose #27519 > >     else
00:24:02 verbose #27520 > >         inl path = path |> sm'.replace_regex @"^\\\\\?\\" ""
00:24:02 verbose #27521 > >         $'$"{!path.[[0]] |> string |> _.ToLower()}{!path.[[1..]]}"' |>
00:24:02 verbose #27522 > > sm'.replace "\\" "/"
00:24:02 verbose #27523 > 00:24:02   debug #1498 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b9d6fe3fde7f8ec1a9e4d5dcc3cf8c3217b2cfe4033595e114b726be4a83b345/main.spi
00:24:02 verbose #27524 > >
00:24:02 verbose #27525 > > ── markdown ────────────────────────────────────────────────────────────────────
00:24:02 verbose #27526 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:24:02 verbose #27527 > > │ ### get_full_path                                                            │
00:24:02 verbose #27528 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:02 verbose #27529 > >
00:24:02 verbose #27530 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:02 verbose #27531 > > let get_full_path (path : string) : string =
00:24:02 verbose #27532 > >     run_target function
00:24:02 verbose #27533 > >         | Fsharp (Native) => fun () =>
00:24:02 verbose #27534 > >             inl path = join path
00:24:02 verbose #27535 > >             path |> $'System.IO.Path.GetFullPath'
00:24:02 verbose #27536 > >         | Rust (Native) => fun () =>
00:24:02 verbose #27537 > >             inl path = join path
00:24:02 verbose #27538 > >             open rust_operators
00:24:02 verbose #27539 > >             inl path_buf = path |> sm'.to_std_string |> new_path_buf
00:24:02 verbose #27540 > >             if path_buf |> path_buf_exists |> not then
00:24:02 verbose #27541 > >                 inl current_dir = get_current_directory ()
00:24:02 verbose #27542 > >                 current_dir </> path
00:24:02 verbose #27543 > >                 |> normalize_path
00:24:02 verbose #27544 > >                 |> sm'.split "/"
00:24:02 verbose #27545 > >                 |> fun x =>
00:24:02 verbose #27546 > >                     ((a x : _ i32 _), (0i32, (a ;[[]] : _ i32 _)))
00:24:02 verbose #27547 > >                     ||> am.foldBack fun x level, acc =>
00:24:02 verbose #27548 > >                         match x, level with
00:24:02 verbose #27549 > >                         | "..", _ => level + 1, acc
00:24:02 verbose #27550 > >                         | ".", _ => level, acc
00:24:02 verbose #27551 > >                         | _, 0 when x |> sm'.ends_with ":" => 0, a ;[[
00:24:02 verbose #27552 > > $'$"{!current_dir.[[0]]}:"' ]] ++ acc
00:24:02 verbose #27553 > >                         | _, 0 => 0, a ;[[ x ]] ++ acc
00:24:02 verbose #27554 > >                         | _ => level - 1, acc
00:24:02 verbose #27555 > >                 |> snd
00:24:02 verbose #27556 > >                 |> seq.of_array'
00:24:02 verbose #27557 > >                 |> sm'.concat (directory_separator_char () |> sm'.obj_to_string)
00:24:02 verbose #27558 > >             else
00:24:02 verbose #27559 > >                 inl path = !\\(path, $'"std::fs::canonicalize(&*$0)"') :
00:24:02 verbose #27560 > > resultm.result' path_buf stream.io_error
00:24:02 verbose #27561 > >                 path
00:24:02 verbose #27562 > >                 |> resultm.unwrap'
00:24:02 verbose #27563 > >                 |> path_buf_display
00:24:02 verbose #27564 > >                 |> sm'.format'
00:24:02 verbose #27565 > >                 |> sm'.from_std_string
00:24:02 verbose #27566 > >         | _ => fun () => null ()
00:24:03 verbose #27567 > 00:24:02   debug #1499 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0b82c27b4393166627d9a51c05d268c966e8e81933c456911a5e0285eab66d20/main.spi
00:24:03 verbose #27568 > >
00:24:03 verbose #27569 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:03 verbose #27570 > > //// test
00:24:03 verbose #27571 > >
00:24:03 verbose #27572 > > "."
00:24:03 verbose #27573 > > |> get_full_path
00:24:03 verbose #27574 > > |> directory_info
00:24:03 verbose #27575 > > |> directory_info_name
00:24:03 verbose #27576 > > |> _assert_eq "spiral"
00:24:03 verbose #27577 > 00:24:02   debug #1500 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/eddd7df3de6c5e6f3c2e95748bcb88928dbd55f2d6777e8f2c31df72cda40899/main.spi
00:24:03 verbose #27578 > >
00:24:03 verbose #27579 > > ╭─[ 649.11ms - stdout ]────────────────────────────────────────────────────────╮
00:24:03 verbose #27580 > > │ assert_eq / actual: "spiral" / expected: "spiral"                            │
00:24:03 verbose #27581 > > │                                                                              │
00:24:03 verbose #27582 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:03 verbose #27583 > >
00:24:03 verbose #27584 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:03 verbose #27585 > > //// test
00:24:03 verbose #27586 > >
00:24:03 verbose #27587 > > "dir/.././._file"
00:24:03 verbose #27588 > > |> get_full_path
00:24:03 verbose #27589 > > |> _assert_eq (get_current_directory () </> "._file")
00:24:04 verbose #27590 > 00:24:03   debug #1501 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/969345ef7abe1c43ebdf50ab8654b9ba6bb294afd801adfabb0fedb3743bab7a/main.spi
00:24:04 verbose #27591 > >
00:24:04 verbose #27592 > > ╭─[ 525.99ms - stdout ]────────────────────────────────────────────────────────╮
00:24:04 verbose #27593 > > │ assert_eq / actual: "C:\home\git\polyglot\lib\spiral\._file" / expected:     │
00:24:04 verbose #27594 > > │ "C:\home\git\polyglot\lib\spiral\._file"                                     │
00:24:04 verbose #27595 > > │                                                                              │
00:24:04 verbose #27596 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:04 verbose #27597 > >
00:24:04 verbose #27598 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:04 verbose #27599 > > //// test
00:24:04 verbose #27600 > > ///! rust -d regex
00:24:04 verbose #27601 > >
00:24:04 verbose #27602 > > "."
00:24:04 verbose #27603 > > |> get_full_path
00:24:04 verbose #27604 > > |> sm'.to_std_string
00:24:04 verbose #27605 > > |> new_path_buf
00:24:04 verbose #27606 > > |> path_buf_file_name
00:24:04 verbose #27607 > > |> optionm'.unwrap
00:24:04 verbose #27608 > > |> sm'.from_os_str_ref
00:24:04 verbose #27609 > > |> _assert_eq "spiral"
00:24:04 verbose #27610 > 00:24:03   debug #1502 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e6a535e320ff392ad0d0e824c2876cfee766df63cd48390553fbf43e548e79c8/main.spi
00:24:07 verbose #27611 > >
00:24:07 verbose #27612 > > ╭─[ 3.17s - return value ]─────────────────────────────────────────────────────╮
00:24:07 verbose #27613 > > │ assert_eq / actual: "spiral" / expected: "spiral"                            │
00:24:07 verbose #27614 > > │                                                                              │
00:24:07 verbose #27615 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:07 verbose #27616 > >
00:24:07 verbose #27617 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:07 verbose #27618 > > //// test
00:24:07 verbose #27619 > > ///! rust -d regex
00:24:07 verbose #27620 > >
00:24:07 verbose #27621 > > "dir/.././._file"
00:24:07 verbose #27622 > > |> get_full_path
00:24:07 verbose #27623 > > |> _assert_eq (get_current_directory () </> "._file")
00:24:07 verbose #27624 > 00:24:07   debug #1503 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/271a195dcd712896f4cc4e17e043c6655435bcbb2881eec5290b4877b2d0e5c1/main.spi
00:24:10 verbose #27625 > >
00:24:10 verbose #27626 > > ╭─[ 3.02s - return value ]─────────────────────────────────────────────────────╮
00:24:10 verbose #27627 > > │ assert_eq / actual: "C:\home\git\polyglot\lib\spiral\._file" / expected:     │
00:24:10 verbose #27628 > > │ "C:\home\git\polyglot\lib\spiral\._file"                                     │
00:24:10 verbose #27629 > > │                                                                              │
00:24:10 verbose #27630 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:10 verbose #27631 > >
00:24:10 verbose #27632 > > ── markdown ────────────────────────────────────────────────────────────────────
00:24:10 verbose #27633 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:24:10 verbose #27634 > > │ ### create_temp_path'                                                        │
00:24:10 verbose #27635 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:10 verbose #27636 > >
00:24:10 verbose #27637 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:10 verbose #27638 > > let create_temp_path' (guid : guid.guid) =
00:24:10 verbose #27639 > >     run_target function
00:24:10 verbose #27640 > >         | Rust (Contract) => fun () => null ()
00:24:10 verbose #27641 > >         | _ => fun () =>
00:24:10 verbose #27642 > >             get_temp_path ()
00:24:10 verbose #27643 > >             </> (join "!create_temp_path_")
00:24:10 verbose #27644 > >             </> (env.get_entry_assembly_name ())
00:24:10 verbose #27645 > >             </> (guid |> sm'.obj_to_string)
00:24:10 verbose #27646 > 00:24:10   debug #1504 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d64879d86a5706ea003c851e30e185db1a9b8710413fa0553a3cf629a5cd771d/main.spi
00:24:11 verbose #27647 > >
00:24:11 verbose #27648 > > ── markdown ────────────────────────────────────────────────────────────────────
00:24:11 verbose #27649 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:24:11 verbose #27650 > > │ ### create_temp_path                                                         │
00:24:11 verbose #27651 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:11 verbose #27652 > >
00:24:11 verbose #27653 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:11 verbose #27654 > > let create_temp_path () =
00:24:11 verbose #27655 > >     run_target function
00:24:11 verbose #27656 > >         | Rust (Contract) => fun () => null ()
00:24:11 verbose #27657 > >         | _ => fun () =>
00:24:11 verbose #27658 > >             date_time.now ()
00:24:11 verbose #27659 > >             |> date_time.new_guid_from_date_time
00:24:11 verbose #27660 > >             |> create_temp_path'
00:24:11 verbose #27661 > 00:24:10   debug #1505 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/58b0ed75aeecf914c3b085b24d49443fbe93748de8c9d85103b3b2bd3ddc0777/main.spi
00:24:11 verbose #27662 > >
00:24:11 verbose #27663 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:11 verbose #27664 > > //// test
00:24:11 verbose #27665 > > ///! fsharp
00:24:11 verbose #27666 > > ///! rust -d chrono
00:24:11 verbose #27667 > >
00:24:11 verbose #27668 > > create_temp_path ()
00:24:11 verbose #27669 > > |> _assert_contains (directory_separator_char ())
00:24:11 verbose #27670 > 00:24:10   debug #1506 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a1a6bb4836125cee7b37a0bd3e20eb47e2305a6386f0861afe83430ca2b6fe31/main.spi
00:24:14 verbose #27671 > >
00:24:14 verbose #27672 > > ╭─[ 2.86s - return value ]─────────────────────────────────────────────────────╮
00:24:14 verbose #27673 > > │ .rs output:                                                                  │
00:24:14 verbose #27674 > > │ assert_contains / actual:                                                    │
00:24:14 verbose #27675 > > │ "C:\Users\i574n\AppData\Local\Temp\!create_temp_path_\spiral_builder_9143e79 │
00:24:14 verbose #27676 > > │ 1a3626855d8d59dd151cdc051fdcb5147f4d3c2186b14a539d225ef6d\20240710-0753-2610 │
00:24:14 verbose #27677 > > │ -4919-0000002604b8" / expected: '\\'                                         │
00:24:14 verbose #27678 > > │                                                                              │
00:24:14 verbose #27679 > > │                                                                              │
00:24:14 verbose #27680 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:14 verbose #27681 > >
00:24:14 verbose #27682 > > ╭─[ 2.86s - stdout ]───────────────────────────────────────────────────────────╮
00:24:14 verbose #27683 > > │ .fsx output:                                                                 │
00:24:14 verbose #27684 > > │ assert_contains / actual:                                                    │
00:24:14 verbose #27685 > > │ "C:\Users\i574n\AppData\Local\Temp\!create_temp_path_\dotnet-repl\20240710-0 │
00:24:14 verbose #27686 > > │ 753-2646-4623-40030047f2d2" / expected: '\\'                                 │
00:24:14 verbose #27687 > > │                                                                              │
00:24:14 verbose #27688 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:14 verbose #27689 > >
00:24:14 verbose #27690 > > ── markdown ────────────────────────────────────────────────────────────────────
00:24:14 verbose #27691 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:24:14 verbose #27692 > > │ ### directory_exists                                                         │
00:24:14 verbose #27693 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:14 verbose #27694 > >
00:24:14 verbose #27695 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:14 verbose #27696 > > let directory_exists (path : string) : bool =
00:24:14 verbose #27697 > >     run_target function
00:24:14 verbose #27698 > >         | Fsharp (Native) => fun () =>
00:24:14 verbose #27699 > >             path |> $'System.IO.Directory.Exists'
00:24:14 verbose #27700 > >         | Rust (Native) => fun () =>
00:24:14 verbose #27701 > >             inl path = path |> sm'.to_std_string |> new_path_buf
00:24:14 verbose #27702 > >             path_buf_exists path || path_buf_is_dir path || path_buf_is_symlink
00:24:14 verbose #27703 > > path
00:24:14 verbose #27704 > >         | TypeScript (Native) => fun () =>
00:24:14 verbose #27705 > >             global "type IFsExistsSync = abstract existsSync: path: string ->
00:24:14 verbose #27706 > > bool"
00:24:14 verbose #27707 > >             open typescript_operators
00:24:14 verbose #27708 > >             inl fs : $'IFsExistsSync' = typescript.import_all "fs"
00:24:14 verbose #27709 > >             !\\((fs, path), $'"$0.existsSync($1)"')
00:24:14 verbose #27710 > >         | _ => fun () => null ()
00:24:14 verbose #27711 > 00:24:13   debug #1507 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8eb1be790eb3a6a121296a7f99a39198b6d8461bef4bbe815326f1b8b904724f/main.spi
00:24:14 verbose #27712 > >
00:24:14 verbose #27713 > > ── markdown ────────────────────────────────────────────────────────────────────
00:24:14 verbose #27714 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:24:14 verbose #27715 > > │ ### directory_get_parent                                                     │
00:24:14 verbose #27716 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:14 verbose #27717 > >
00:24:14 verbose #27718 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:14 verbose #27719 > > let directory_get_parent (path : string) : optionm'.option' string =
00:24:14 verbose #27720 > >     run_target function
00:24:14 verbose #27721 > >         | Fsharp (Native) => fun () =>
00:24:14 verbose #27722 > >             inl parent : directory_info = path |>
00:24:14 verbose #27723 > > $'System.IO.Directory.GetParent'
00:24:14 verbose #27724 > >             if parent =. null ()
00:24:14 verbose #27725 > >             then None
00:24:14 verbose #27726 > >             else parent |> directory_info_full_name |> Some
00:24:14 verbose #27727 > >         | Rust (Native) => fun () =>
00:24:14 verbose #27728 > >             path
00:24:14 verbose #27729 > >             |> sm'.to_std_string
00:24:14 verbose #27730 > >             |> new_path_buf
00:24:14 verbose #27731 > >             |> path_buf_parent
00:24:14 verbose #27732 > >             |> optionm'.try'
00:24:14 verbose #27733 > >             |> path_buf_display
00:24:14 verbose #27734 > >             |> sm'.format'
00:24:14 verbose #27735 > >             |> sm'.from_std_string
00:24:14 verbose #27736 > >             |> Some
00:24:14 verbose #27737 > >         | TypeScript _ => fun () =>
00:24:14 verbose #27738 > >             open typescript_operators
00:24:14 verbose #27739 > >             global "type IPathDirname = abstract dirname: path: string ->
00:24:14 verbose #27740 > > string"
00:24:14 verbose #27741 > >             inl fs : $'IPathDirname' = typescript.import_all "path"
00:24:14 verbose #27742 > >             !\\(path, $'"!fs.dirname($0)"') |> Some
00:24:14 verbose #27743 > >         | _ => fun () => null ()
00:24:14 verbose #27744 > >     |> optionm'.box
00:24:15 verbose #27745 > 00:24:14   debug #1508 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8bcde2864633b2138d12d8e5eff1d175ebf1865399d5ac3a6fde35db688780e4/main.spi
00:24:15 verbose #27746 > >
00:24:15 verbose #27747 > > ── markdown ────────────────────────────────────────────────────────────────────
00:24:15 verbose #27748 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:24:15 verbose #27749 > > │ ### file_copy                                                                │
00:24:15 verbose #27750 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:15 verbose #27751 > >
00:24:15 verbose #27752 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:15 verbose #27753 > > let file_copy (new_path : string) (old_path : string) : () =
00:24:15 verbose #27754 > >     run_target function
00:24:15 verbose #27755 > >         | Fsharp (Native) => fun () =>
00:24:15 verbose #27756 > >             $'System.IO.File.Copy (!old_path, !new_path, true)'
00:24:15 verbose #27757 > >         | Rust (Native) => fun () =>
00:24:15 verbose #27758 > >             open rust_operators
00:24:15 verbose #27759 > >             inl new_path = join new_path
00:24:15 verbose #27760 > >             !\\(old_path, $'"std::fs::copy(&*$0, &*!new_path)"')
00:24:15 verbose #27761 > >             |> fun x => x : _ u64 stream.io_error
00:24:15 verbose #27762 > >             |> resultm.unwrap'
00:24:15 verbose #27763 > >             |> ignore
00:24:15 verbose #27764 > >         | _ => fun () => null ()
00:24:15 verbose #27765 > 00:24:14   debug #1509 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/73977ba7c5d7b000a6c70abf50da5fc80ddc603d2b860cb9f928565ab79e6050/main.spi
00:24:15 verbose #27766 > >
00:24:15 verbose #27767 > > ── markdown ────────────────────────────────────────────────────────────────────
00:24:15 verbose #27768 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:24:15 verbose #27769 > > │ ### file_exists                                                              │
00:24:15 verbose #27770 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:15 verbose #27771 > >
00:24:15 verbose #27772 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:15 verbose #27773 > > let file_exists (path : string) : bool =
00:24:15 verbose #27774 > >     run_target function
00:24:15 verbose #27775 > >         | Fsharp (Native) => fun () =>
00:24:15 verbose #27776 > >             path |> $'System.IO.File.Exists'
00:24:15 verbose #27777 > >         | Rust (Native) => fun () =>
00:24:15 verbose #27778 > >             inl path_buf = path |> sm'.to_std_string |> new_path_buf
00:24:15 verbose #27779 > >             path_buf_exists path_buf && path_buf_is_file path_buf
00:24:15 verbose #27780 > >         | TypeScript (Native) => fun () =>
00:24:15 verbose #27781 > >             open typescript_operators
00:24:15 verbose #27782 > >             global "type IFsExistsSync = abstract existsSync: path: string ->
00:24:15 verbose #27783 > > bool"
00:24:15 verbose #27784 > >             inl fs : $'IFsExistsSync' = typescript.import_all "fs"
00:24:15 verbose #27785 > >             !\\((fs, path), $'"$0.existsSync($1)"')
00:24:15 verbose #27786 > >         | _ => fun () => null ()
00:24:15 verbose #27787 > 00:24:14   debug #1510 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/60a194561b846ebada664faebd7a577b4399e50b31968db7d1d8e3b9699583aa/main.spi
00:24:15 verbose #27788 > >
00:24:15 verbose #27789 > > ── markdown ────────────────────────────────────────────────────────────────────
00:24:15 verbose #27790 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:24:15 verbose #27791 > > │ ### directory_delete                                                         │
00:24:15 verbose #27792 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:15 verbose #27793 > >
00:24:15 verbose #27794 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:15 verbose #27795 > > let directory_delete recursive (path : string) : () =
00:24:15 verbose #27796 > >     run_target function
00:24:15 verbose #27797 > >         | Fsharp (Native) => fun () =>
00:24:15 verbose #27798 > >             $'System.IO.Directory.Delete (!path, !recursive)'
00:24:15 verbose #27799 > >         | Rust (Native) => fun () =>
00:24:15 verbose #27800 > >             inl path = join path
00:24:15 verbose #27801 > >             if path |> directory_exists then
00:24:15 verbose #27802 > >                 open rust_operators
00:24:15 verbose #27803 > >                 if recursive
00:24:15 verbose #27804 > >                 then !\\(path, $'"std::fs::remove_dir_all(&*$0).unwrap()"')
00:24:15 verbose #27805 > >                 else !\\(path, $'"std::fs::remove_dir(&*$0).unwrap()"')
00:24:15 verbose #27806 > >         | _ => fun () => null ()
00:24:16 verbose #27807 > 00:24:15   debug #1511 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2d7bd7fc35254b6f3b0fd0c64939aaa281d41084a5e68ea5001fed46deec4179/main.spi
00:24:16 verbose #27808 > >
00:24:16 verbose #27809 > > ── markdown ────────────────────────────────────────────────────────────────────
00:24:16 verbose #27810 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:24:16 verbose #27811 > > │ ### write_all_text                                                           │
00:24:16 verbose #27812 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:16 verbose #27813 > >
00:24:16 verbose #27814 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:16 verbose #27815 > > inl write_all_text (path : string) (text : string) : () =
00:24:16 verbose #27816 > >     run_target function
00:24:16 verbose #27817 > >         | Fsharp (Native) => fun () =>
00:24:16 verbose #27818 > >             inl text = join text
00:24:16 verbose #27819 > >             $'System.IO.File.WriteAllText (!path, !text)'
00:24:16 verbose #27820 > >         | Rust (Native) => fun () =>
00:24:16 verbose #27821 > >             open rust_operators
00:24:16 verbose #27822 > >             !\\((path, text), $'"std::fs::write(&*$0, &*$1).unwrap()"')
00:24:16 verbose #27823 > >         | _ => fun () => null ()
00:24:16 verbose #27824 > 00:24:15   debug #1512 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/be9f301b8c08b58f3754b6606b90aa86a4fa626da879409f2205dcc72c1775e6/main.spi
00:24:16 verbose #27825 > >
00:24:16 verbose #27826 > > ── markdown ────────────────────────────────────────────────────────────────────
00:24:16 verbose #27827 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:24:16 verbose #27828 > > │ ### read_all_bytes                                                           │
00:24:16 verbose #27829 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:16 verbose #27830 > >
00:24:16 verbose #27831 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:16 verbose #27832 > > inl read_all_bytes (path : string) : am'.vec u8 =
00:24:16 verbose #27833 > >     run_target function
00:24:16 verbose #27834 > >         | Fsharp (Native) => fun () =>
00:24:16 verbose #27835 > >             $'!path |> System.IO.File.ReadAllBytes'
00:24:16 verbose #27836 > >             |> am'.to_vec
00:24:16 verbose #27837 > >         | Rust (Native) => fun () =>
00:24:16 verbose #27838 > >             open rust_operators
00:24:16 verbose #27839 > >             !\\(path, $'"std::fs::read(&*$0).unwrap()"')
00:24:16 verbose #27840 > >         | _ => fun () => null ()
00:24:17 verbose #27841 > 00:24:16   debug #1513 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/28e0307b25d4fece396cc373c10b939564c9a497ad5c148052baf40d309f4ea2/main.spi
00:24:17 verbose #27842 > >
00:24:17 verbose #27843 > > ── markdown ────────────────────────────────────────────────────────────────────
00:24:17 verbose #27844 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:24:17 verbose #27845 > > │ ### read_all_text                                                            │
00:24:17 verbose #27846 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:17 verbose #27847 > >
00:24:17 verbose #27848 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:17 verbose #27849 > > inl read_all_text (path : string) : string =
00:24:17 verbose #27850 > >     run_target function
00:24:17 verbose #27851 > >         | Fsharp (Native) => fun () =>
00:24:17 verbose #27852 > >             $'!path |> System.IO.File.ReadAllText'
00:24:17 verbose #27853 > >         | Rust (Native) => fun () =>
00:24:17 verbose #27854 > >             path
00:24:17 verbose #27855 > >             |> read_all_bytes
00:24:17 verbose #27856 > >             |> sm'.string_from_utf8
00:24:17 verbose #27857 > >             |> resultm.unwrap'
00:24:17 verbose #27858 > >             |> sm'.from_std_string
00:24:17 verbose #27859 > >         | _ => fun () => null ()
00:24:17 verbose #27860 > 00:24:16   debug #1514 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/05dde9b7f8fc9017824d547acdd839051ec906925bc8953d9ee6489aabf4a40f/main.spi
00:24:17 verbose #27861 > >
00:24:17 verbose #27862 > > ── markdown ────────────────────────────────────────────────────────────────────
00:24:17 verbose #27863 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:24:17 verbose #27864 > > │ ### directory_create_symbolic_link                                           │
00:24:17 verbose #27865 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:17 verbose #27866 > >
00:24:17 verbose #27867 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:17 verbose #27868 > > inl directory_create_symbolic_link (target : string) (path : string) : () =
00:24:17 verbose #27869 > >     run_target function
00:24:17 verbose #27870 > >         | Fsharp (Native) => fun () =>
00:24:17 verbose #27871 > >             ($'System.IO.Directory.CreateSymbolicLink (!path, !target)' :
00:24:17 verbose #27872 > > file_system_info)
00:24:17 verbose #27873 > >             |> ignore
00:24:17 verbose #27874 > >         | Rust (Native) => fun () =>
00:24:17 verbose #27875 > >             open rust_operators
00:24:17 verbose #27876 > >             platform.run_platform function
00:24:17 verbose #27877 > >                 | Windows => fun () => !\\((target, path),
00:24:17 verbose #27878 > > $'"std::os::windows::fs::symlink_dir(&*$0, &*$1).unwrap()"')
00:24:17 verbose #27879 > >                 | _ => fun () => !\\((target, path),
00:24:17 verbose #27880 > > $'"std::os::unix::fs::symlink(&*$0, &*$1).unwrap()"')
00:24:17 verbose #27881 > >         | _ => fun () => null ()
00:24:18 verbose #27882 > 00:24:17   debug #1515 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/eea839fd29819d8f9ea451487f3da2f6a000bd2a300c64d6c6c38409a8740246/main.spi
00:24:18 verbose #27883 > >
00:24:18 verbose #27884 > > ── markdown ────────────────────────────────────────────────────────────────────
00:24:18 verbose #27885 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:24:18 verbose #27886 > > │ ### find_parent                                                              │
00:24:18 verbose #27887 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:18 verbose #27888 > >
00:24:18 verbose #27889 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:18 verbose #27890 > > inl find_parent name is_file root_dir =
00:24:18 verbose #27891 > >     let rec loop dir =
00:24:18 verbose #27892 > >         if dir </> name |> (if is_file then file_exists else directory_exists)
00:24:18 verbose #27893 > >         then dir |> Ok
00:24:18 verbose #27894 > >         else
00:24:18 verbose #27895 > >             inl result = dir |> (join directory_get_parent)
00:24:18 verbose #27896 > >             match result |> optionm'.unbox with
00:24:18 verbose #27897 > >             | Some parent => parent |> loop
00:24:18 verbose #27898 > >             | None => ($'$"""No parent for {if !is_file then "file" else "dir"}
00:24:18 verbose #27899 > > \'{!name}\' at \'{!root_dir}\' (until \'{!dir}\')"""' : string) |> Error
00:24:18 verbose #27900 > >     loop root_dir
00:24:18 verbose #27901 > 00:24:17   debug #1516 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/cc074884e12805a4271237180933044eda80cd934ad9f17e1dd4210c4b924c5a/main.spi
00:24:18 verbose #27902 > >
00:24:18 verbose #27903 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:18 verbose #27904 > > //// test
00:24:18 verbose #27905 > >
00:24:18 verbose #27906 > > a ;[[ ".paket", false; "paket.dependencies", true ]]
00:24:18 verbose #27907 > > |> am.map fun (file, is_file) =>
00:24:18 verbose #27908 > >     get_source_directory ()
00:24:18 verbose #27909 > >     |> find_parent file is_file
00:24:18 verbose #27910 > >     |> resultm.get
00:24:18 verbose #27911 > >     |> directory_info
00:24:18 verbose #27912 > >     |> directory_info_name
00:24:18 verbose #27913 > > |> am'.distinct
00:24:18 verbose #27914 > > |> fun (a x : _ int _) => x
00:24:18 verbose #27915 > > |> _assert_eq' ;[[ "polyglot" ]]
00:24:19 verbose #27916 > 00:24:18   debug #1517 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f1f46159c0bc211ea3dbca590c5ffda1d7996b14c752cc68ea4e3f0fbfa46426/main.spi
00:24:19 verbose #27917 > >
00:24:19 verbose #27918 > > ╭─[ 849.36ms - stdout ]────────────────────────────────────────────────────────╮
00:24:19 verbose #27919 > > │ assert_eq' / actual: [|"polyglot"|] / expected: [|"polyglot"|]               │
00:24:19 verbose #27920 > > │                                                                              │
00:24:19 verbose #27921 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:19 verbose #27922 > >
00:24:19 verbose #27923 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:19 verbose #27924 > > //// test
00:24:19 verbose #27925 > > ///! rust
00:24:19 verbose #27926 > >
00:24:19 verbose #27927 > > a ;[[ ".paket", false; "paket.dependencies", true ]]
00:24:19 verbose #27928 > > |> am.map fun (file, is_file) =>
00:24:19 verbose #27929 > >     fun () =>
00:24:19 verbose #27930 > >         join
00:24:19 verbose #27931 > >             get_source_directory ()
00:24:19 verbose #27932 > >             |> find_parent file is_file
00:24:19 verbose #27933 > >             |> resultm.get
00:24:19 verbose #27934 > >             |> sm'.to_std_string
00:24:19 verbose #27935 > >             |> new_path_buf
00:24:19 verbose #27936 > >             |> path_buf_file_name
00:24:19 verbose #27937 > >             |> optionm'.try'
00:24:19 verbose #27938 > >             |> sm'.from_os_str_ref
00:24:19 verbose #27939 > >             |> Some
00:24:19 verbose #27940 > >             |> optionm'.box
00:24:19 verbose #27941 > >     |> fun x => x () |> optionm'.unbox
00:24:19 verbose #27942 > >     |> optionm'.default_value ""
00:24:19 verbose #27943 > > |> am'.distinct
00:24:19 verbose #27944 > > |> fun result =>
00:24:19 verbose #27945 > >     result |> am'.length |> _assert_eq 1i32
00:24:19 verbose #27946 > >     index result 0i32 |> _assert_eq "polyglot"
00:24:19 verbose #27947 > 00:24:19   debug #1518 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/cf1896269f1046df00e7fc2e83733848cd885e5c23800cf56fbcf4de71af602a/main.spi
00:24:22 verbose #27948 > >
00:24:22 verbose #27949 > > ╭─[ 2.72s - return value ]─────────────────────────────────────────────────────╮
00:24:22 verbose #27950 > > │ assert_eq / actual: 1 / expected: 1                                          │
00:24:22 verbose #27951 > > │ assert_eq / actual: "polyglot" / expected: "polyglot"                        │
00:24:22 verbose #27952 > > │                                                                              │
00:24:22 verbose #27953 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:22 verbose #27954 > >
00:24:22 verbose #27955 > > ── markdown ────────────────────────────────────────────────────────────────────
00:24:22 verbose #27956 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:24:22 verbose #27957 > > │ ### get_workspace_root                                                       │
00:24:22 verbose #27958 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:22 verbose #27959 > >
00:24:22 verbose #27960 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:22 verbose #27961 > > inl get_workspace_root () =
00:24:22 verbose #27962 > >     (None, [[ get_source_directory; get_current_directory ]])
00:24:22 verbose #27963 > >     ||> listm.fold fun acc path =>
00:24:22 verbose #27964 > >         match acc with
00:24:22 verbose #27965 > >         | Some path => Some path
00:24:22 verbose #27966 > >         | None =>
00:24:22 verbose #27967 > >             path ()
00:24:22 verbose #27968 > >             |> find_parent ("polyglot" </> ".devcontainer") false
00:24:22 verbose #27969 > >             |> function
00:24:22 verbose #27970 > >                 | Ok path => Some path
00:24:22 verbose #27971 > >                 | Error error =>
00:24:22 verbose #27972 > >                     trace Warning
00:24:22 verbose #27973 > >                         fun () => "file_system.get_workspace_root"
00:24:22 verbose #27974 > >                         fun () => { error }
00:24:22 verbose #27975 > >                     None
00:24:22 verbose #27976 > >     |> optionm.value
00:24:22 verbose #27977 > >     |> fun root => root </> "polyglot"
00:24:22 verbose #27978 > 00:24:21   debug #1519 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e80107699a7f21e8cef956d4cb651b92e1905df80f430db304eba44dba18b8c3/main.spi
00:24:22 verbose #27979 > >
00:24:22 verbose #27980 > > ── markdown ────────────────────────────────────────────────────────────────────
00:24:22 verbose #27981 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:24:22 verbose #27982 > > │ ### get_workspace_root_external                                              │
00:24:22 verbose #27983 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:22 verbose #27984 > >
00:24:22 verbose #27985 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:22 verbose #27986 > > inl get_workspace_root_external () =
00:24:22 verbose #27987 > >     inl workspace_root = get_workspace_root ()
00:24:22 verbose #27988 > >     inl current_dir = get_current_directory () |> sm'.to_lower
00:24:22 verbose #27989 > >     inl workspace_root = workspace_root |> sm'.to_lower
00:24:22 verbose #27990 > >     if current_dir |> sm'.starts_with workspace_root
00:24:22 verbose #27991 > >     then Error workspace_root
00:24:22 verbose #27992 > >     else Ok workspace_root
00:24:23 verbose #27993 > 00:24:22   debug #1520 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3b524398fdb8bb32a687c7032d167b3d40207fa478953ca2a2d4ded3c8c89e10/main.spi
00:24:23 verbose #27994 > >
00:24:23 verbose #27995 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:23 verbose #27996 > > //// test
00:24:23 verbose #27997 > >
00:24:23 verbose #27998 > > get_workspace_root_external ()
00:24:23 verbose #27999 > > |> resultm.unwrap_err
00:24:23 verbose #28000 > > |> get_file_name
00:24:23 verbose #28001 > > |> _assert_eq "polyglot"
00:24:23 verbose #28002 > 00:24:22   debug #1521 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/dd1893246d83abe936532e49c0c52eb86d4fb0c4eaca6adeec39a715e4c0caa1/main.spi
00:24:24 verbose #28003 > >
00:24:24 verbose #28004 > > ╭─[ 815.79ms - stdout ]────────────────────────────────────────────────────────╮
00:24:24 verbose #28005 > > │ assert_eq / actual: "polyglot" / expected: "polyglot"                        │
00:24:24 verbose #28006 > > │                                                                              │
00:24:24 verbose #28007 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:24 verbose #28008 > >
00:24:24 verbose #28009 > > ── markdown ────────────────────────────────────────────────────────────────────
00:24:24 verbose #28010 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:24:24 verbose #28011 > > │ ### standardize_path                                                         │
00:24:24 verbose #28012 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:24 verbose #28013 > >
00:24:24 verbose #28014 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:24 verbose #28015 > > let standardize_path path =
00:24:24 verbose #28016 > >     path |> get_full_path |> normalize_path
00:24:24 verbose #28017 > 00:24:23   debug #1522 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3760a913ec4d6431a11379acd1c76a2707c4b7e837d41b82db0ff150bb07b87a/main.spi
00:24:24 verbose #28018 > >
00:24:24 verbose #28019 > > ── markdown ────────────────────────────────────────────────────────────────────
00:24:24 verbose #28020 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:24:24 verbose #28021 > > │ ### absolute_path                                                            │
00:24:24 verbose #28022 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:24 verbose #28023 > >
00:24:24 verbose #28024 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:24 verbose #28025 > > let absolute_path path =
00:24:24 verbose #28026 > >     inl current_dir = get_current_directory ()
00:24:24 verbose #28027 > >     current_dir </> path |> standardize_path
00:24:24 verbose #28028 > 00:24:23   debug #1523 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/327d1ba532a966492e814c25e9783fd662d8bee81a2d7e00972bed3057483ecc/main.spi
00:24:24 verbose #28029 > >
00:24:24 verbose #28030 > > ── markdown ────────────────────────────────────────────────────────────────────
00:24:24 verbose #28031 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:24:24 verbose #28032 > > │ ### new_file_uri                                                             │
00:24:24 verbose #28033 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:24 verbose #28034 > >
00:24:24 verbose #28035 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:24 verbose #28036 > > inl new_file_uri (path : string) : string =
00:24:24 verbose #28037 > >     inl path = path |> sm'.trim_start [[ '/' ]]
00:24:24 verbose #28038 > >     $'$"file:///{!path}"'
00:24:25 verbose #28039 > 00:24:24   debug #1524 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a7bec7a9eec1bde4a0caa21ccd02ff6abc8c743abc062073ca92a895b4c1e62b/main.spi
00:24:25 verbose #28040 > >
00:24:25 verbose #28041 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:25 verbose #28042 > > //// test
00:24:25 verbose #28043 > >
00:24:25 verbose #28044 > > @"\\?\C:\test"
00:24:25 verbose #28045 > > |> normalize_path
00:24:25 verbose #28046 > > |> new_file_uri
00:24:25 verbose #28047 > > |> _assert_eq "file:///c:/test"
00:24:25 verbose #28048 > 00:24:24   debug #1525 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0f8ee98095f1c9920bcc9de046b1ae7c6162af0bd31550975fb2188296dddc27/main.spi
00:24:25 verbose #28049 > >
00:24:25 verbose #28050 > > ╭─[ 445.64ms - stdout ]────────────────────────────────────────────────────────╮
00:24:25 verbose #28051 > > │ assert_eq / actual: "file:///c:/test" / expected: "file:///c:/test"          │
00:24:25 verbose #28052 > > │                                                                              │
00:24:25 verbose #28053 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:25 verbose #28054 > >
00:24:25 verbose #28055 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:25 verbose #28056 > > //// test
00:24:25 verbose #28057 > > ///! rust -d regex
00:24:25 verbose #28058 > >
00:24:25 verbose #28059 > > @"\\?\C:\test"
00:24:25 verbose #28060 > > |> normalize_path
00:24:25 verbose #28061 > > |> new_file_uri
00:24:25 verbose #28062 > > |> _assert_eq "file:///c:/test"
00:24:26 verbose #28063 > 00:24:25   debug #1526 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a26c104e65c0aff9b9ff88120da1b8f9dde61acbef34a1d077d50de8c89b0aba/main.spi
00:24:28 verbose #28064 > >
00:24:28 verbose #28065 > > ╭─[ 2.89s - return value ]─────────────────────────────────────────────────────╮
00:24:28 verbose #28066 > > │ assert_eq / actual: "file:///c:/test" / expected: "file:///c:/test"          │
00:24:28 verbose #28067 > > │                                                                              │
00:24:28 verbose #28068 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:28 verbose #28069 > >
00:24:28 verbose #28070 > > ── markdown ────────────────────────────────────────────────────────────────────
00:24:28 verbose #28071 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:24:28 verbose #28072 > > │ ### file_delete                                                              │
00:24:28 verbose #28073 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:28 verbose #28074 > >
00:24:28 verbose #28075 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:28 verbose #28076 > > inl file_delete (path : string) : () =
00:24:28 verbose #28077 > >     run_target function
00:24:28 verbose #28078 > >         | Fsharp (Native) => fun () =>
00:24:28 verbose #28079 > >             path |> $'System.IO.File.Delete'
00:24:28 verbose #28080 > >         | Rust (Native) => fun () =>
00:24:28 verbose #28081 > >             open rust_operators
00:24:28 verbose #28082 > >             !\\(path, $'"std::fs::remove_file(&*$0).unwrap()"')
00:24:28 verbose #28083 > >         | _ => fun () => null ()
00:24:28 verbose #28084 > 00:24:28   debug #1527 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/476e8b72b2f3bc41c6bc855f2d4d13a638a09f1cbf3b14da65835a9aa8d63eee/main.spi
00:24:29 verbose #28085 > >
00:24:29 verbose #28086 > > ── markdown ────────────────────────────────────────────────────────────────────
00:24:29 verbose #28087 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:24:29 verbose #28088 > > │ ## fsharp                                                                    │
00:24:29 verbose #28089 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:29 verbose #28090 > >
00:24:29 verbose #28091 > > ── markdown ────────────────────────────────────────────────────────────────────
00:24:29 verbose #28092 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:24:29 verbose #28093 > > │ ### file_exists_content_async                                                │
00:24:29 verbose #28094 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:29 verbose #28095 > >
00:24:29 verbose #28096 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:29 verbose #28097 > > inl file_exists_content_async path content : async.async bool =
00:24:29 verbose #28098 > >     run_target function
00:24:29 verbose #28099 > >         | Fsharp (Native) => fun () =>
00:24:29 verbose #28100 > >             fun () =>
00:24:29 verbose #28101 > >                 fix_condition
00:24:29 verbose #28102 > >                     fun () => path |> file_exists |> not
00:24:29 verbose #28103 > >                     fun () => false |> return
00:24:29 verbose #28104 > >                     fun () =>
00:24:29 verbose #28105 > >                         inl existing_content = path |> read_all_text_async |>
00:24:29 verbose #28106 > > async.let'
00:24:29 verbose #28107 > >                         content = existing_content |> return
00:24:29 verbose #28108 > >             |> async.new_async_unit
00:24:29 verbose #28109 > >         | _ => fun () => null ()
00:24:29 verbose #28110 > 00:24:28   debug #1528 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e189f939d6a3695a200a2a5818f9867755b27eee7d6781950c76aa5a2dd04100/main.spi
00:24:29 verbose #28111 > >
00:24:29 verbose #28112 > > ── markdown ────────────────────────────────────────────────────────────────────
00:24:29 verbose #28113 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:24:29 verbose #28114 > > │ ### write_all_text_exists_async                                              │
00:24:29 verbose #28115 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:29 verbose #28116 > >
00:24:29 verbose #28117 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:29 verbose #28118 > > inl write_all_text_exists_async path contents =
00:24:29 verbose #28119 > >     fun () =>
00:24:29 verbose #28120 > >         inl exists' = contents |> file_exists_content_async path |> async.let'
00:24:29 verbose #28121 > >         if not exists'
00:24:29 verbose #28122 > >         then contents |> write_all_text_async path |> async.do
00:24:29 verbose #28123 > >     |> async.new_async
00:24:29 verbose #28124 > 00:24:28   debug #1529 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1bf1b6d41206fc6c9635feededb7b3658fa8716fa065b66acb3db9d4db412883/main.spi
00:24:29 verbose #28125 > >
00:24:29 verbose #28126 > > ── markdown ────────────────────────────────────────────────────────────────────
00:24:29 verbose #28127 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:24:29 verbose #28128 > > │ ### delete_directory_async                                                   │
00:24:29 verbose #28129 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:29 verbose #28130 > >
00:24:29 verbose #28131 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:29 verbose #28132 > > inl delete_directory_async path : _ i64 =
00:24:29 verbose #28133 > >     run_target function
00:24:29 verbose #28134 > >         | Fsharp (Native) => fun () =>
00:24:29 verbose #28135 > >             let rec loop (retry : i64) =
00:24:29 verbose #28136 > >                 fun () =>
00:24:29 verbose #28137 > >                     try_unit
00:24:29 verbose #28138 > >                         fun () =>
00:24:29 verbose #28139 > >                             path |> directory_delete true
00:24:29 verbose #28140 > >                             retry |> return
00:24:29 verbose #28141 > >                         fun ex =>
00:24:29 verbose #28142 > >                             if retry % 100i64 = 0 then
00:24:29 verbose #28143 > >                                 inl ex = ex |> sm'.format_exception
00:24:29 verbose #28144 > >                                 trace Debug
00:24:29 verbose #28145 > >                                     fun () =>
00:24:29 verbose #28146 > > "file_system.delete_directory_async"
00:24:29 verbose #28147 > >                                     fun () => { ex path = path |> get_file_name
00:24:29 verbose #28148 > > }
00:24:29 verbose #28149 > >                             async.sleep 10i32 |> async.do
00:24:29 verbose #28150 > >                             loop (retry + 1) |> async.return_await
00:24:29 verbose #28151 > >                 |> async.new_async
00:24:29 verbose #28152 > >             loop 0
00:24:29 verbose #28153 > >         | _ => fun () => null ()
00:24:30 verbose #28154 > 00:24:29   debug #1530 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a66b67f9c1fe52b81a595386e133a0a79a45ca93808f159905e35d5ef3e0c0e7/main.spi
00:24:30 verbose #28155 > >
00:24:30 verbose #28156 > > ── markdown ────────────────────────────────────────────────────────────────────
00:24:30 verbose #28157 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:24:30 verbose #28158 > > │ ### trace_file                                                               │
00:24:30 verbose #28159 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:30 verbose #28160 > >
00:24:30 verbose #28161 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:30 verbose #28162 > > let rec trace_file text =
00:24:30 verbose #28163 > >     run_target function
00:24:30 verbose #28164 > >     | Fsharp (Native) => fun () =>
00:24:30 verbose #28165 > >         try_unit
00:24:30 verbose #28166 > >             fun () =>
00:24:30 verbose #28167 > >                 inl assembly_name = env.get_entry_assembly_name ()
00:24:30 verbose #28168 > >                 inl guid = date_time.now () |> date_time.new_guid_from_date_time
00:24:30 verbose #28169 > >                 inl file_name = $'$"{!assembly_name}_{!guid}.txt"'
00:24:30 verbose #28170 > >
00:24:30 verbose #28171 > >                 inl workspace_root = get_workspace_root ()
00:24:30 verbose #28172 > >                 inl trace_dir = workspace_root </> "target/trace"
00:24:30 verbose #28173 > >                 trace_dir |> create_directory |> ignore
00:24:30 verbose #28174 > >                 inl path = trace_dir </> file_name
00:24:30 verbose #28175 > >                 text |> write_all_text_async path |> async.run_synchronously
00:24:30 verbose #28176 > >             fun ex =>
00:24:30 verbose #28177 > >                 trace_file $'$"file_system.trace_file / ex: %A{!ex}"'
00:24:30 verbose #28178 > >     | _ => fun () => ()
00:24:30 verbose #28179 > 00:24:29   debug #1531 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/83c5f82cc23f62edc249fe08c9b49404b2e3bd72a3eec46c81f8fe7b5518b119/main.spi
00:24:30 verbose #28180 > >
00:24:30 verbose #28181 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:30 verbose #28182 > > //// test
00:24:30 verbose #28183 > >
00:24:30 verbose #28184 > > inl get_count dir : i64 =
00:24:30 verbose #28185 > >     inl files = dir |> directory_get_files
00:24:30 verbose #28186 > >     a files |> am'.length
00:24:30 verbose #28187 > >
00:24:30 verbose #28188 > > inl trace_dir = get_workspace_root () </> "target/trace"
00:24:30 verbose #28189 > > trace_dir |> create_directory |> ignore
00:24:30 verbose #28190 > >
00:24:30 verbose #28191 > > inl count = get_count trace_dir
00:24:30 verbose #28192 > >
00:24:30 verbose #28193 > > trace_file "test"
00:24:30 verbose #28194 > >
00:24:30 verbose #28195 > > get_count trace_dir
00:24:30 verbose #28196 > > |> _assert_eq (count + 1)
00:24:30 verbose #28197 > 00:24:30   debug #1532 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d055d2fe270b680f2c93bba078a44747fe9f179c6b5549cb4bc8e0610d8e43e6/main.spi
00:24:31 verbose #28198 > >
00:24:31 verbose #28199 > > ╭─[ 1.17s - stdout ]───────────────────────────────────────────────────────────╮
00:24:31 verbose #28200 > > │ assert_eq / actual: 12L / expected: 12L                                      │
00:24:31 verbose #28201 > > │                                                                              │
00:24:31 verbose #28202 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:31 verbose #28203 > >
00:24:31 verbose #28204 > > ── markdown ────────────────────────────────────────────────────────────────────
00:24:31 verbose #28205 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:24:31 verbose #28206 > > │ ### init_trace_file                                                          │
00:24:31 verbose #28207 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:31 verbose #28208 > >
00:24:31 verbose #28209 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:31 verbose #28210 > > inl init_trace_file enabled =
00:24:31 verbose #28211 > >     inl state_trace_file = get_trace_state_or_init None .trace_file
00:24:31 verbose #28212 > >     state_trace_file <- if enabled then trace_file else ignore
00:24:32 verbose #28213 > 00:24:31   debug #1533 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/780267e0f66c1c7b3c5cc7222438430ef75e3331d6b4feeafc77a8f0a341f27b/main.spi
00:24:32 verbose #28214 > >
00:24:32 verbose #28215 > > ── markdown ────────────────────────────────────────────────────────────────────
00:24:32 verbose #28216 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:24:32 verbose #28217 > > │ ## file_system                                                               │
00:24:32 verbose #28218 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:32 verbose #28219 > >
00:24:32 verbose #28220 > > ── markdown ────────────────────────────────────────────────────────────────────
00:24:32 verbose #28221 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:24:32 verbose #28222 > > │ ### create_dir                                                               │
00:24:32 verbose #28223 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:32 verbose #28224 > >
00:24:32 verbose #28225 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:32 verbose #28226 > > let create_dir dir =
00:24:32 verbose #28227 > >     run_target function
00:24:32 verbose #28228 > >         | Rust (Contract | Wasm) => fun () => null ()
00:24:32 verbose #28229 > >         | Rust (Native) => fun () =>
00:24:32 verbose #28230 > >             inl dir = join dir
00:24:32 verbose #28231 > >             match dir |> create_dir_all |> resultm.map_error' sm'.format' |>
00:24:32 verbose #28232 > > resultm.unbox with
00:24:32 verbose #28233 > >             | Ok () =>
00:24:32 verbose #28234 > >                 trace Verbose
00:24:32 verbose #28235 > >                     fun () => "file_system.create_dir"
00:24:32 verbose #28236 > >                     fun () => { dir }
00:24:32 verbose #28237 > >             | Error error =>
00:24:32 verbose #28238 > >                 trace Critical
00:24:32 verbose #28239 > >                     fun () => "file_system.create_dir"
00:24:32 verbose #28240 > >                     fun () => { dir error }
00:24:32 verbose #28241 > >             inl disposable : _ () = new_disposable fun () =>
00:24:32 verbose #28242 > >                 dir
00:24:32 verbose #28243 > >                 |> directory_delete true
00:24:32 verbose #28244 > >             disposable
00:24:32 verbose #28245 > >         | _ => fun () =>
00:24:32 verbose #28246 > >             inl directory_info = dir |> create_directory
00:24:32 verbose #28247 > >             inl exists' = directory_info |> directory_info_exists
00:24:32 verbose #28248 > >             if not exists' then
00:24:32 verbose #28249 > >                 inl creation_time = directory_info |>
00:24:32 verbose #28250 > > directory_info_creation_time
00:24:32 verbose #28251 > >                 inl result = ($'{| Exists = !exists'; CreationTime =
00:24:32 verbose #28252 > > !creation_time |}' : any) |> sm'.format_debug
00:24:32 verbose #28253 > >                 trace Debug
00:24:32 verbose #28254 > >                     fun () => "file_system.create_dir"
00:24:32 verbose #28255 > >                     fun () => { dir result }
00:24:32 verbose #28256 > >             inl disposable : _ () = new_disposable fun () =>
00:24:32 verbose #28257 > >                 dir
00:24:32 verbose #28258 > >                 |> delete_directory_async
00:24:32 verbose #28259 > >                 |> async.ignore
00:24:32 verbose #28260 > >                 |> async.run_synchronously
00:24:32 verbose #28261 > >             disposable
00:24:32 verbose #28262 > 00:24:31   debug #1534 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/118ff0cd7de507cf7605e360683f07614cfacfad874c32adad61e619834bb9d4/main.spi
00:24:32 verbose #28263 > >
00:24:32 verbose #28264 > > ── markdown ────────────────────────────────────────────────────────────────────
00:24:32 verbose #28265 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:24:32 verbose #28266 > > │ ### create_temp_dir                                                          │
00:24:32 verbose #28267 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:32 verbose #28268 > >
00:24:32 verbose #28269 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:32 verbose #28270 > > inl create_temp_dir () =
00:24:32 verbose #28271 > >     inl dir = create_temp_path ()
00:24:32 verbose #28272 > >     dir, dir |> create_dir
00:24:32 verbose #28273 > 00:24:32   debug #1535 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fbc6e96450179f2a94a8d316be785a479b1b33bebfb322c2bdaa9ca62cfbdced/main.spi
00:24:33 verbose #28274 > >
00:24:33 verbose #28275 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:33 verbose #28276 > > //// test
00:24:33 verbose #28277 > >
00:24:33 verbose #28278 > > inl path, disposable = create_temp_dir ()
00:24:33 verbose #28279 > > disposable |> use |> ignore
00:24:33 verbose #28280 > > path
00:24:33 verbose #28281 > > |> directory_exists
00:24:33 verbose #28282 > > |> _assert_eq true
00:24:33 verbose #28283 > 00:24:32   debug #1536 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8923070c45c32838f99353955543f34f4e434e482e623993003c5d7c81000be1/main.spi
00:24:34 verbose #28284 > >
00:24:34 verbose #28285 > > ╭─[ 1.67s - stdout ]───────────────────────────────────────────────────────────╮
00:24:34 verbose #28286 > > │ assert_eq / actual: true / expected: true                                    │
00:24:34 verbose #28287 > > │                                                                              │
00:24:34 verbose #28288 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:34 verbose #28289 > >
00:24:34 verbose #28290 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:34 verbose #28291 > > //// test
00:24:34 verbose #28292 > > ///! rust -d chrono
00:24:34 verbose #28293 > >
00:24:34 verbose #28294 > > inl path, disposable = create_temp_dir ()
00:24:34 verbose #28295 > > path
00:24:34 verbose #28296 > > |> directory_exists
00:24:34 verbose #28297 > > |> _assert_eq true
00:24:34 verbose #28298 > > disposable |> use |> ignore
00:24:34 verbose #28299 > > path
00:24:34 verbose #28300 > > |> directory_exists
00:24:34 verbose #28301 > > |> _assert_eq false
00:24:35 verbose #28302 > 00:24:34   debug #1537 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c51588d2459aa664046980a3b338bb340b34af823443f9d36ea6c31e4734ef73/main.spi
00:24:38 verbose #28303 > >
00:24:38 verbose #28304 > > ╭─[ 3.23s - return value ]─────────────────────────────────────────────────────╮
00:24:38 verbose #28305 > > │ 00:00:00 verbose #1 file_system.create_dir / { dir =                   │
00:24:38 verbose #28306 > > │ C:\Users\i574n\AppData\Local\Temp\!create_temp_path_\spiral_builder_46aa80e5 │
00:24:38 verbose #28307 > > │ a8b8c20dee345d6ca9d9c7488c10c8293fd5a8c93f60e81d3d0875ce\20240710-0753-5006- │
00:24:38 verbose #28308 > > │ 7572-000000df8f42 }                                                          │
00:24:38 verbose #28309 > > │ assert_eq / actual: true / expected: true                                    │
00:24:38 verbose #28310 > > │ assert_eq / actual: false / expected: false                                  │
00:24:38 verbose #28311 > > │                                                                              │
00:24:38 verbose #28312 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:38 verbose #28313 > >
00:24:38 verbose #28314 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:38 verbose #28315 > > //// test
00:24:38 verbose #28316 > >
00:24:38 verbose #28317 > > inl lock_directory path =
00:24:38 verbose #28318 > >     fun () =>
00:24:38 verbose #28319 > >         trace Debug (fun () => "_1") id
00:24:38 verbose #28320 > >         "0" |> write_all_text_async (path </> "test.txt") |> async.do
00:24:38 verbose #28321 > >         file_stream
00:24:38 verbose #28322 > >             (path </> "test.txt")
00:24:38 verbose #28323 > >             ModeOpen
00:24:38 verbose #28324 > >             AccessReadWrite
00:24:38 verbose #28325 > >             ShareNone
00:24:38 verbose #28326 > >         |> use
00:24:38 verbose #28327 > >         |> ignore
00:24:38 verbose #28328 > >         trace Debug (fun () => "_2") id
00:24:38 verbose #28329 > >         async.sleep 2000 |> async.do
00:24:38 verbose #28330 > >         trace Debug (fun () => "_3") id
00:24:38 verbose #28331 > >         () |> return
00:24:38 verbose #28332 > >     |> async.new_async
00:24:38 verbose #28333 > >
00:24:38 verbose #28334 > > inl temp_dir, disposable = create_temp_dir ()
00:24:38 verbose #28335 > > disposable |> use |> ignore
00:24:38 verbose #28336 > > inl path = temp_dir </> "test"
00:24:38 verbose #28337 > >
00:24:38 verbose #28338 > > fun () =>
00:24:38 verbose #28339 > >     trace Debug (fun () => "1") id
00:24:38 verbose #28340 > >     path |> create_directory |> ignore
00:24:38 verbose #28341 > >     trace Debug (fun () => "2") id
00:24:38 verbose #28342 > >     inl child = path |> lock_directory |> async.start_child |> async.let'
00:24:38 verbose #28343 > >     trace Debug (fun () => "3") id
00:24:38 verbose #28344 > >     async.sleep 60 |> async.do
00:24:38 verbose #28345 > >     trace Debug (fun () => "4") id
00:24:38 verbose #28346 > >     inl retries = path |> delete_directory_async |> async.let'
00:24:38 verbose #28347 > >     trace Debug (fun () => "5") id
00:24:38 verbose #28348 > >     child |> async.do
00:24:38 verbose #28349 > >     trace Debug (fun () => "6") id
00:24:38 verbose #28350 > >     retries |> return
00:24:38 verbose #28351 > > |> async.new_async_unit
00:24:38 verbose #28352 > > |> async.run_with_timeout 3000
00:24:38 verbose #28353 > > |> fun x => x : _ i64
00:24:38 verbose #28354 > > |> function
00:24:38 verbose #28355 > >     | Some (retries : i64) =>
00:24:38 verbose #28356 > >         retries
00:24:38 verbose #28357 > >         |> _assert_between
00:24:38 verbose #28358 > >             (if platform.is_windows () then 50 else 0)
00:24:38 verbose #28359 > >             (if platform.is_windows () then 180 else 0)
00:24:38 verbose #28360 > >
00:24:38 verbose #28361 > >         true
00:24:38 verbose #28362 > >     | _ => false
00:24:38 verbose #28363 > > |> _assert_eq true
00:24:38 verbose #28364 > 00:24:37   debug #1538 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0f3b03875cf0e77ed9c817d95c486155a6566f450462b0d2bd80cb61a1f0f9f7/main.spi
00:24:42 verbose #28365 > >
00:24:42 verbose #28366 > > ╭─[ 4.31s - stdout ]───────────────────────────────────────────────────────────╮
00:24:42 verbose #28367 > > │ 00:00:00   debug #1 1                                                   │
00:24:42 verbose #28368 > > │ 00:00:00   debug #2 2                                                   │
00:24:42 verbose #28369 > > │ 00:00:00   debug #3 _1                                                  │
00:24:42 verbose #28370 > > │ 00:00:00   debug #4 3                                                   │
00:24:42 verbose #28371 > > │ 00:00:00   debug #5 _2                                                  │
00:24:42 verbose #28372 > > │ 00:00:00   debug #6 4                                                   │
00:24:42 verbose #28373 > > │ 00:00:00   debug #7 file_system.delete_directory_async / { ex =         │
00:24:42 verbose #28374 > > │ System.IO.IOException: The process cannot access the file 'test.txt' because │
00:24:42 verbose #28375 > > │ it is being used by another process.; path = test }                          │
00:24:42 verbose #28376 > > │ 00:00:01   debug #8 file_system.delete_directory_async / { ex =         │
00:24:42 verbose #28377 > > │ System.IO.IOException: The process cannot access the file 'test.txt' because │
00:24:42 verbose #28378 > > │ it is being used by another process.; path = test }                          │
00:24:42 verbose #28379 > > │ 00:00:02   debug #9 _3                                                  │
00:24:42 verbose #28380 > > │ 00:00:02   debug #10 5                                                  │
00:24:42 verbose #28381 > > │ 00:00:02   debug #11 6                                                  │
00:24:42 verbose #28382 > > │ assert_between / actual: 125L / expected: struct (50L, 180L)                 │
00:24:42 verbose #28383 > > │ assert_eq / actual: true / expected: true                                    │
00:24:42 verbose #28384 > > │                                                                              │
00:24:42 verbose #28385 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:42 verbose #28386 > >
00:24:42 verbose #28387 > > ── markdown ────────────────────────────────────────────────────────────────────
00:24:42 verbose #28388 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:24:42 verbose #28389 > > │ ### create_temp_dir'                                                         │
00:24:42 verbose #28390 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:42 verbose #28391 > >
00:24:42 verbose #28392 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:42 verbose #28393 > > inl create_temp_dir' (hash : string) =
00:24:42 verbose #28394 > >     inl dir = hash |> guid.hash_guid |> create_temp_path'
00:24:42 verbose #28395 > >     dir, dir |> create_dir
00:24:42 verbose #28396 > 00:24:41   debug #1539 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d2ceb42e91f182e24f31d76cd46e8a420d59b9fc9149c058693663976ad840a7/main.spi
00:24:42 verbose #28397 > >
00:24:42 verbose #28398 > > ── markdown ────────────────────────────────────────────────────────────────────
00:24:42 verbose #28399 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:24:42 verbose #28400 > > │ ### link_directory                                                           │
00:24:42 verbose #28401 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:42 verbose #28402 > >
00:24:42 verbose #28403 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:42 verbose #28404 > > let link_directory target_path path =
00:24:42 verbose #28405 > >     if target_path |> directory_exists |> not
00:24:42 verbose #28406 > >     then target_path |> create_dir |> ignore
00:24:42 verbose #28407 > >
00:24:42 verbose #28408 > >     inl lib_dir_path = path |> get_directory_name
00:24:42 verbose #28409 > >     if lib_dir_path |> directory_exists |> not
00:24:42 verbose #28410 > >     then lib_dir_path |> create_dir |> ignore
00:24:42 verbose #28411 > >
00:24:42 verbose #28412 > >     if (path |> directory_exists)
00:24:42 verbose #28413 > >         && (path |> read_link |> resultm.is_err) then
00:24:42 verbose #28414 > >         path |> directory_delete true
00:24:42 verbose #28415 > >
00:24:42 verbose #28416 > >     if path |> directory_exists |> not then
00:24:42 verbose #28417 > >         path |> directory_create_symbolic_link target_path
00:24:43 verbose #28418 > 00:24:42   debug #1540 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/48c8677a16d606e6053f412e52c1674443e2188db31c656f1c84285c4c67ca2d/main.spi
00:24:43 verbose #28419 > >
00:24:43 verbose #28420 > > ── markdown ────────────────────────────────────────────────────────────────────
00:24:43 verbose #28421 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:24:43 verbose #28422 > > │ ## rust                                                                      │
00:24:43 verbose #28423 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:43 verbose #28424 > >
00:24:43 verbose #28425 > > ── markdown ────────────────────────────────────────────────────────────────────
00:24:43 verbose #28426 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:24:43 verbose #28427 > > │ ### file_exists_content                                                      │
00:24:43 verbose #28428 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:43 verbose #28429 > >
00:24:43 verbose #28430 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:43 verbose #28431 > > let file_exists_content path content : bool =
00:24:43 verbose #28432 > >     run_target function
00:24:43 verbose #28433 > >         | Rust (Native) => fun () =>
00:24:43 verbose #28434 > >             if path |> file_exists |> not
00:24:43 verbose #28435 > >             then false
00:24:43 verbose #28436 > >             else
00:24:43 verbose #28437 > >                 inl existing_content = path |> read_all_text
00:24:43 verbose #28438 > >                 content = existing_content
00:24:43 verbose #28439 > >         | _ => fun () => null ()
00:24:43 verbose #28440 > 00:24:42   debug #1541 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/652161a1abbe552c63416591bb4ec92c32020e9d63c12259f299d019cc4ad485/main.spi
00:24:43 verbose #28441 > >
00:24:43 verbose #28442 > > ── markdown ────────────────────────────────────────────────────────────────────
00:24:43 verbose #28443 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:24:43 verbose #28444 > > │ ### write_all_text_exists                                                    │
00:24:43 verbose #28445 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:43 verbose #28446 > >
00:24:43 verbose #28447 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:43 verbose #28448 > > let write_all_text_exists path contents =
00:24:43 verbose #28449 > >     inl exists' = contents |> file_exists_content path
00:24:43 verbose #28450 > >     if not exists' then
00:24:43 verbose #28451 > >         inl dir = path |> get_directory_name
00:24:43 verbose #28452 > >         if dir |> directory_exists |> not
00:24:43 verbose #28453 > >         then dir |> create_dir |> ignore
00:24:43 verbose #28454 > >         contents |> write_all_text path
00:24:43 verbose #28455 > 00:24:42   debug #1542 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0817ac4edc65231f66cadd8c2046b2400c0e6eba2dea511fe089e79d435a189f/main.spi
00:24:44 verbose #28456 > >
00:24:44 verbose #28457 > > ── markdown ────────────────────────────────────────────────────────────────────
00:24:44 verbose #28458 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:24:44 verbose #28459 > > │ ## fsharp                                                                    │
00:24:44 verbose #28460 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:44 verbose #28461 > >
00:24:44 verbose #28462 > > ── markdown ────────────────────────────────────────────────────────────────────
00:24:44 verbose #28463 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:24:44 verbose #28464 > > │ ### wait_for_file_access                                                     │
00:24:44 verbose #28465 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:44 verbose #28466 > >
00:24:44 verbose #28467 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:44 verbose #28468 > > inl wait_for_file_access access path =
00:24:44 verbose #28469 > >     run_target function
00:24:44 verbose #28470 > >         | Fsharp (Native) => fun () =>
00:24:44 verbose #28471 > >             inl file_access, file_share =
00:24:44 verbose #28472 > >                 access
00:24:44 verbose #28473 > >                 |> optionm'.default_value (AccessReadWrite, ShareRead)
00:24:44 verbose #28474 > >             let rec loop (retry : i64) : _ i64 =
00:24:44 verbose #28475 > >                 fun () =>
00:24:44 verbose #28476 > >                     try_unit
00:24:44 verbose #28477 > >                         fun () =>
00:24:44 verbose #28478 > >                             file_stream
00:24:44 verbose #28479 > >                                 path
00:24:44 verbose #28480 > >                                 ModeOpen
00:24:44 verbose #28481 > >                                 file_access
00:24:44 verbose #28482 > >                                 file_share
00:24:44 verbose #28483 > >                             |> use
00:24:44 verbose #28484 > >                             |> ignore
00:24:44 verbose #28485 > >                             retry |> return
00:24:44 verbose #28486 > >                         fun ex =>
00:24:44 verbose #28487 > >                             if retry > 0 && retry % 100i64 = 0 then
00:24:44 verbose #28488 > >                                 inl ex = ex |> sm'.format_exception
00:24:44 verbose #28489 > >                                 trace Debug
00:24:44 verbose #28490 > >                                     fun () => "file_system.wait_for_file_access"
00:24:44 verbose #28491 > >                                     fun () => { path = path |> get_file_name;
00:24:44 verbose #28492 > > retry ex }
00:24:44 verbose #28493 > >                             async.sleep 10i32 |> async.do
00:24:44 verbose #28494 > >                             loop (retry + 1) |> async.return_await
00:24:44 verbose #28495 > >                 |> async.new_async
00:24:44 verbose #28496 > >             loop 0
00:24:44 verbose #28497 > >         | _ => fun () => null ()
00:24:44 verbose #28498 > >
00:24:44 verbose #28499 > > inl wait_for_file_access_read path =
00:24:44 verbose #28500 > >     path
00:24:44 verbose #28501 > >     |> wait_for_file_access (Some (
00:24:44 verbose #28502 > >         AccessRead,
00:24:44 verbose #28503 > >         ShareRead
00:24:44 verbose #28504 > >     ))
00:24:44 verbose #28505 > 00:24:43   debug #1543 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1f651a04a339e1fcce078462f26faa055ca2e3d4d25bd7ed8fd454d2cb4d7341/main.spi
00:24:44 verbose #28506 > >
00:24:44 verbose #28507 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:44 verbose #28508 > > //// test
00:24:44 verbose #28509 > >
00:24:44 verbose #28510 > > inl lock_file path =
00:24:44 verbose #28511 > >     fun () =>
00:24:44 verbose #28512 > >         trace Debug (fun () => "_1") id
00:24:44 verbose #28513 > >         inl stream : file_stream' =
00:24:44 verbose #28514 > >             file_stream
00:24:44 verbose #28515 > >                 path
00:24:44 verbose #28516 > >                 ModeOpen
00:24:44 verbose #28517 > >                 AccessReadWrite
00:24:44 verbose #28518 > >                 ShareNone
00:24:44 verbose #28519 > >             |> use
00:24:44 verbose #28520 > >         trace Debug (fun () => "_2") id
00:24:44 verbose #28521 > >         async.sleep 2000 |> async.do
00:24:44 verbose #28522 > >         trace Debug (fun () => "_3") id
00:24:44 verbose #28523 > >         ($'!stream.Seek (0L, System.IO.SeekOrigin.Begin)' : i64) |> ignore
00:24:44 verbose #28524 > >         trace Debug (fun () => "_4") id
00:24:44 verbose #28525 > >         $'!stream.WriteByte' 49u8
00:24:44 verbose #28526 > >         trace Debug (fun () => "_5") id
00:24:44 verbose #28527 > >         stream |> $'_.Flush()'
00:24:44 verbose #28528 > >         trace Debug (fun () => "_6") id
00:24:44 verbose #28529 > >     |> async.new_async
00:24:44 verbose #28530 > >
00:24:44 verbose #28531 > > inl file_name = "test.txt"
00:24:44 verbose #28532 > > inl text = "0"
00:24:44 verbose #28533 > >
00:24:44 verbose #28534 > > inl temp_dir, disposable =
00:24:44 verbose #28535 > >     (file_name, text)
00:24:44 verbose #28536 > >     |> sm'.format_debug
00:24:44 verbose #28537 > >     |> crypto.hash_text
00:24:44 verbose #28538 > >     |> create_temp_dir'
00:24:44 verbose #28539 > > disposable |> use |> ignore
00:24:44 verbose #28540 > > inl path = temp_dir </> file_name
00:24:44 verbose #28541 > >
00:24:44 verbose #28542 > > fun () =>
00:24:44 verbose #28543 > >     trace Debug (fun () => "1") id
00:24:44 verbose #28544 > >     text |> write_all_text_async path |> async.do
00:24:44 verbose #28545 > >     trace Debug (fun () => "2") id
00:24:44 verbose #28546 > >     inl child = path |> lock_file |> async.start_child |> async.let'
00:24:44 verbose #28547 > >     trace Debug (fun () => "3") id
00:24:44 verbose #28548 > >     async.sleep 1 |> async.do
00:24:44 verbose #28549 > >     trace Debug (fun () => "4") id
00:24:44 verbose #28550 > >     inl retries = path |> wait_for_file_access None |> async.let'
00:24:44 verbose #28551 > >     trace Debug (fun () => "5") id
00:24:44 verbose #28552 > >     inl text = path |> read_all_text_async |> async.let'
00:24:44 verbose #28553 > >     trace Debug (fun () => "6") id
00:24:44 verbose #28554 > >     child |> async.do
00:24:44 verbose #28555 > >     trace Debug (fun () => "7") id
00:24:44 verbose #28556 > >     (retries, text) |> return
00:24:44 verbose #28557 > > |> async.new_async_unit
00:24:44 verbose #28558 > > |> async.run_with_timeout 3000
00:24:44 verbose #28559 > > |> function
00:24:44 verbose #28560 > >     | Some ((retries : i64), text) =>
00:24:44 verbose #28561 > >         retries
00:24:44 verbose #28562 > >         |> _assert_between
00:24:44 verbose #28563 > >             (if platform.is_windows () then 50 else 100)
00:24:44 verbose #28564 > >             (if platform.is_windows () then 180 else 200)
00:24:44 verbose #28565 > >
00:24:44 verbose #28566 > >         text |> _assert_eq (join "1")
00:24:44 verbose #28567 > >
00:24:44 verbose #28568 > >         true
00:24:44 verbose #28569 > >     | _ => false
00:24:44 verbose #28570 > > |> _assert_eq true
00:24:44 verbose #28571 > 00:24:43   debug #1544 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b936378a879365e8ef38a58ba742615126f7e3fd6bbd8983c112b816bb7ae82a/main.spi
00:24:48 verbose #28572 > >
00:24:48 verbose #28573 > > ╭─[ 4.51s - stdout ]───────────────────────────────────────────────────────────╮
00:24:48 verbose #28574 > > │ 00:00:00   debug #1 1                                                   │
00:24:48 verbose #28575 > > │ 00:00:00   debug #2 2                                                   │
00:24:48 verbose #28576 > > │ 00:00:00   debug #3 3                                                   │
00:24:48 verbose #28577 > > │ 00:00:00   debug #4 _1                                                  │
00:24:48 verbose #28578 > > │ 00:00:00   debug #5 _2                                                  │
00:24:48 verbose #28579 > > │ 00:00:00   debug #6 4                                                   │
00:24:48 verbose #28580 > > │ 00:00:01   debug #7 file_system.wait_for_file_access / { path =         │
00:24:48 verbose #28581 > > │ test.txt; retry = 100; ex = System.IO.IOException: The process cannot access │
00:24:48 verbose #28582 > > │ the file                                                                     │
00:24:48 verbose #28583 > > │ 'C:\Users\i574n\AppData\Local\Temp\!create_temp_path_\dotnet-repl\613830ed-0 │
00:24:48 verbose #28584 > > │ 16e-d959-8d21-02dc1c63c252\test.txt' because it is being used by another     │
00:24:48 verbose #28585 > > │ process. }                                                                   │
00:24:48 verbose #28586 > > │ 00:00:02   debug #8 _3                                                  │
00:24:48 verbose #28587 > > │ 00:00:02   debug #9 _4                                                  │
00:24:48 verbose #28588 > > │ 00:00:02   debug #10 _5                                                 │
00:24:48 verbose #28589 > > │ 00:00:02   debug #11 _6                                                 │
00:24:48 verbose #28590 > > │ 00:00:02   debug #12 5                                                  │
00:24:48 verbose #28591 > > │ 00:00:02   debug #13 6                                                  │
00:24:48 verbose #28592 > > │ 00:00:02   debug #14 7                                                  │
00:24:48 verbose #28593 > > │ assert_between / actual: 127L / expected: struct (50L, 180L)                 │
00:24:48 verbose #28594 > > │ assert_eq / actual: "1" / expected: "1"                                      │
00:24:48 verbose #28595 > > │ assert_eq / actual: true / expected: true                                    │
00:24:48 verbose #28596 > > │                                                                              │
00:24:48 verbose #28597 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:48 verbose #28598 > >
00:24:48 verbose #28599 > > ── markdown ────────────────────────────────────────────────────────────────────
00:24:48 verbose #28600 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:24:48 verbose #28601 > > │ ### read_all_text_retry_async                                                │
00:24:48 verbose #28602 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:48 verbose #28603 > >
00:24:48 verbose #28604 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:48 verbose #28605 > > inl read_all_text_retry_async full_path : async.async (optionm'.option' string)
00:24:48 verbose #28606 > > =
00:24:48 verbose #28607 > >     run_target function
00:24:48 verbose #28608 > >         | Fsharp (Native) => fun () =>
00:24:48 verbose #28609 > >             let rec loop (retry : i64) =
00:24:48 verbose #28610 > >                 fun () =>
00:24:48 verbose #28611 > >                     try_unit
00:24:48 verbose #28612 > >                         fun () =>
00:24:48 verbose #28613 > >                             if retry > 0
00:24:48 verbose #28614 > >                             then
00:24:48 verbose #28615 > >                                 full_path
00:24:48 verbose #28616 > >                                 |> wait_for_file_access_read
00:24:48 verbose #28617 > >                                 |> async.run_with_timeout_async 1000
00:24:48 verbose #28618 > >                                 |> async.ignore
00:24:48 verbose #28619 > >                                 |> async.do
00:24:48 verbose #28620 > >                             full_path |> read_all_text_async |> async.map (Some
00:24:48 verbose #28621 > > >> optionm'.box) |> async.return_await
00:24:48 verbose #28622 > >                         fun ex =>
00:24:48 verbose #28623 > >                             fix_condition
00:24:48 verbose #28624 > >                                 fun () => retry <> 0
00:24:48 verbose #28625 > >                                 fun () =>
00:24:48 verbose #28626 > >                                     inl ex = ex |> sm'.format_exception
00:24:48 verbose #28627 > >                                     trace Debug
00:24:48 verbose #28628 > >                                         fun () => $'"read_all_text_retry_async"'
00:24:48 verbose #28629 > >                                         fun () => { retry ex }
00:24:48 verbose #28630 > >                                     (None : _ string) |> optionm'.box |> return
00:24:48 verbose #28631 > >                                 fun () =>
00:24:48 verbose #28632 > >                                     loop (retry + 1) |> async.return_await
00:24:48 verbose #28633 > >                 |> async.new_async
00:24:48 verbose #28634 > >             loop 0
00:24:48 verbose #28635 > >         | _ => fun () => null ()
00:24:49 verbose #28636 > 00:24:48   debug #1545 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c081f9db4ebd93fa5699cc28aadb0d45f541a898bec85fc9e4e5e7579b68cdb7/main.spi
00:24:49 verbose #28637 > >
00:24:49 verbose #28638 > > ── markdown ────────────────────────────────────────────────────────────────────
00:24:49 verbose #28639 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:24:49 verbose #28640 > > │ ### move_file_async                                                          │
00:24:49 verbose #28641 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:49 verbose #28642 > >
00:24:49 verbose #28643 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:49 verbose #28644 > > inl move_file_async new_path old_path : _ i64 =
00:24:49 verbose #28645 > >     run_target function
00:24:49 verbose #28646 > >         | Fsharp (Native) => fun () =>
00:24:49 verbose #28647 > >             let rec loop (retry : i64) =
00:24:49 verbose #28648 > >                 fun () =>
00:24:49 verbose #28649 > >                     try_unit
00:24:49 verbose #28650 > >                         fun () =>
00:24:49 verbose #28651 > >                             old_path |> file_move new_path
00:24:49 verbose #28652 > >                             return retry
00:24:49 verbose #28653 > >                         fun ex =>
00:24:49 verbose #28654 > >                             if retry % 100 = 0 then
00:24:49 verbose #28655 > >
00:24:49 verbose #28656 > >                                 trace Warning
00:24:49 verbose #28657 > >                                     fun () => "move_file_async"
00:24:49 verbose #28658 > >                                     fun () => {
00:24:49 verbose #28659 > >                                         old_path = old_path |> get_file_name
00:24:49 verbose #28660 > >                                         new_path = new_path |> get_file_name
00:24:49 verbose #28661 > >                                         ex
00:24:49 verbose #28662 > >                                     }
00:24:49 verbose #28663 > >                             async.sleep 10 |> async.do
00:24:49 verbose #28664 > >                             loop (retry + 1) |> async.return_await
00:24:49 verbose #28665 > >                 |> async.new_async_unit
00:24:49 verbose #28666 > >             loop 0
00:24:49 verbose #28667 > >         | _ => fun () => null ()
00:24:49 verbose #28668 > 00:24:48   debug #1546 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4ff3cde3640f5aea6228df30dae6e4a07a474bad699959591ff570b45db149ea/main.spi
00:24:49 verbose #28669 > >
00:24:49 verbose #28670 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:49 verbose #28671 > > //// test
00:24:49 verbose #28672 > >
00:24:49 verbose #28673 > > inl lock_file path =
00:24:49 verbose #28674 > >     fun () =>
00:24:49 verbose #28675 > >         trace Debug (fun () => "_1") id
00:24:49 verbose #28676 > >         file_stream
00:24:49 verbose #28677 > >             path
00:24:49 verbose #28678 > >             ModeOpen
00:24:49 verbose #28679 > >             AccessReadWrite
00:24:49 verbose #28680 > >             ShareNone
00:24:49 verbose #28681 > >         |> use
00:24:49 verbose #28682 > >         |> ignore
00:24:49 verbose #28683 > >         trace Debug (fun () => "_2") id
00:24:49 verbose #28684 > >         async.sleep 2000 |> async.do
00:24:49 verbose #28685 > >         trace Debug (fun () => "_3") id
00:24:49 verbose #28686 > >     |> async.new_async
00:24:49 verbose #28687 > >
00:24:49 verbose #28688 > > fun () =>
00:24:49 verbose #28689 > >     inl file_name = "test.txt"
00:24:49 verbose #28690 > >     inl text = "0"
00:24:49 verbose #28691 > >
00:24:49 verbose #28692 > >     inl temp_dir, disposable =
00:24:49 verbose #28693 > >         (file_name, text)
00:24:49 verbose #28694 > >         |> sm'.format_debug
00:24:49 verbose #28695 > >         |> crypto.hash_text
00:24:49 verbose #28696 > >         |> create_temp_dir'
00:24:49 verbose #28697 > >     disposable |> use |> ignore
00:24:49 verbose #28698 > >     let path = temp_dir </> file_name
00:24:49 verbose #28699 > >     let new_path = temp_dir </> "test2.txt"
00:24:49 verbose #28700 > >
00:24:49 verbose #28701 > >     trace Debug (fun () => "1") id
00:24:49 verbose #28702 > >     text |> write_all_text_async path |> async.do
00:24:49 verbose #28703 > >     trace Debug (fun () => "2") id
00:24:49 verbose #28704 > >     inl child = lock_file path |> async.start_child |> async.let'
00:24:49 verbose #28705 > >     trace Debug (fun () => "3") id
00:24:49 verbose #28706 > >     async.sleep 1 |> async.do
00:24:49 verbose #28707 > >     trace Debug (fun () => "4") id
00:24:49 verbose #28708 > >     inl retries1 = path |> move_file_async new_path |> async.let'
00:24:49 verbose #28709 > >     trace Debug (fun () => "5") id
00:24:49 verbose #28710 > >     inl retries2 = new_path |> wait_for_file_access None |> async.let'
00:24:49 verbose #28711 > >     trace Debug (fun () => "6") id
00:24:49 verbose #28712 > >     inl text = new_path |> read_all_text_async |> async.let'
00:24:49 verbose #28713 > >     trace Debug (fun () => "7") id
00:24:49 verbose #28714 > >     child |> async.do
00:24:49 verbose #28715 > >     trace Debug (fun () => "8") id
00:24:49 verbose #28716 > >     (retries1, retries2, text) |> return
00:24:49 verbose #28717 > > |> async.new_async_unit
00:24:49 verbose #28718 > > |> async.run_with_timeout 3000
00:24:49 verbose #28719 > > |> function
00:24:49 verbose #28720 > >     | Some (retries1, retries2, text) =>
00:24:49 verbose #28721 > >         retries1
00:24:49 verbose #28722 > >         |> _assert_between
00:24:49 verbose #28723 > >             (if platform.is_windows () then 50i64 else 0)
00:24:49 verbose #28724 > >             (if platform.is_windows () then 200 else 0)
00:24:49 verbose #28725 > >
00:24:49 verbose #28726 > >         retries2
00:24:49 verbose #28727 > >         |> _assert_between
00:24:49 verbose #28728 > >             (if platform.is_windows () then 0i64 else 100)
00:24:49 verbose #28729 > >             (if platform.is_windows () then 0 else 200)
00:24:49 verbose #28730 > >
00:24:49 verbose #28731 > >         text |> _assert_eq (join "0")
00:24:49 verbose #28732 > >
00:24:49 verbose #28733 > >         true
00:24:49 verbose #28734 > >     | _ => false
00:24:49 verbose #28735 > > |> _assert_eq true
00:24:50 verbose #28736 > 00:24:49   debug #1547 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/095fb56421be1a71258e522bd49460c1f697a6495581adb16c6fa1ba663b1347/main.spi
00:24:55 verbose #28737 > >
00:24:55 verbose #28738 > > ╭─[ 5.19s - stdout ]───────────────────────────────────────────────────────────╮
00:24:55 verbose #28739 > > │ 00:00:00   debug #1 1                                                   │
00:24:55 verbose #28740 > > │ 00:00:00   debug #2 2                                                   │
00:24:55 verbose #28741 > > │ 00:00:00   debug #3 3                                                   │
00:24:55 verbose #28742 > > │ 00:00:00   debug #4 _1                                                  │
00:24:55 verbose #28743 > > │ 00:00:00   debug #5 _2                                                  │
00:24:55 verbose #28744 > > │ 00:00:00   debug #6 4                                                   │
00:24:55 verbose #28745 > > │ 00:00:00 warning #7 move_file_async / { old_path = test.txt; new_path = │
00:24:55 verbose #28746 > > │ test2.txt; ex = System.IO.IOException: The process cannot access the file    │
00:24:55 verbose #28747 > > │ because it is being used by another process.                                 │
00:24:55 verbose #28748 > > │    at System.IO.FileSystem.MoveFile(String sourceFullPath, String            │
00:24:55 verbose #28749 > > │ destFullPath, Boolean overwrite)                                             │
00:24:55 verbose #28750 > > │    at FSI_0114.method46@5452-12.Invoke(Unit unitVar)                         │
00:24:55 verbose #28751 > > │    at Microsoft.FSharp.Control.AsyncPrimitives.CallThenInvoke[               │
00:24:55 verbose #28752 > > │ T,TResult](AsyncActivation`1 ctxt, TResult result1, FSharpFunc`2 part2) in   │
00:24:55 verbose #28753 > > │ D:\a\_work\1\s\src\FSharp.Core\async.fs:line 510                             │
00:24:55 verbose #28754 > > │    at Microsoft.FSharp.Control.Trampoline.Execute(FSharpFunc`2 firstAction)  │
00:24:55 verbose #28755 > > │ in D:\a\_work\1\s\src\FSharp.Core\async.fs:line 112 }                        │
00:24:55 verbose #28756 > > │ 00:00:01 warning #8 move_file_async / { old_path = test.txt; new_path = │
00:24:55 verbose #28757 > > │ test2.txt; ex = System.IO.IOException: The process cannot access the file    │
00:24:55 verbose #28758 > > │ because it is being used by another process.                                 │
00:24:55 verbose #28759 > > │    at System.IO.FileSystem.MoveFile(String sourceFullPath, String            │
00:24:55 verbose #28760 > > │ destFullPath, Boolean overwrite)                                             │
00:24:55 verbose #28761 > > │    at FSI_0114.method46@5452-12.Invoke(Unit unitVar)                         │
00:24:55 verbose #28762 > > │    at Microsoft.FSharp.Control.AsyncPrimitives.CallThenInvoke[               │
00:24:55 verbose #28763 > > │ T,TResult](AsyncActivation`1 ctxt, TResult result1, FSharpFunc`2 part2) in   │
00:24:55 verbose #28764 > > │ D:\a\_work\1\s\src\FSharp.Core\async.fs:line 510                             │
00:24:55 verbose #28765 > > │    at Microsoft.FSharp.Control.Trampoline.Execute(FSharpFunc`2 firstAction)  │
00:24:55 verbose #28766 > > │ in D:\a\_work\1\s\src\FSharp.Core\async.fs:line 112 }                        │
00:24:55 verbose #28767 > > │ 00:00:02   debug #9 _3                                                  │
00:24:55 verbose #28768 > > │ 00:00:02   debug #10 5                                                  │
00:24:55 verbose #28769 > > │ 00:00:02   debug #11 6                                                  │
00:24:55 verbose #28770 > > │ 00:00:02   debug #12 7                                                  │
00:24:55 verbose #28771 > > │ 00:00:02   debug #13 8                                                  │
00:24:55 verbose #28772 > > │ assert_between / actual: 126L / expected: struct (50L, 200L)                 │
00:24:55 verbose #28773 > > │ assert_between / actual: 0L / expected: struct (0L, 0L)                      │
00:24:55 verbose #28774 > > │ assert_eq / actual: "0" / expected: "0"                                      │
00:24:55 verbose #28775 > > │ assert_eq / actual: true / expected: true                                    │
00:24:55 verbose #28776 > > │                                                                              │
00:24:55 verbose #28777 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:55 verbose #28778 > >
00:24:55 verbose #28779 > > ── markdown ────────────────────────────────────────────────────────────────────
00:24:55 verbose #28780 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:24:55 verbose #28781 > > │ ### delete_file_async                                                        │
00:24:55 verbose #28782 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:55 verbose #28783 > >
00:24:55 verbose #28784 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:55 verbose #28785 > > inl delete_file_async path : _ i64 =
00:24:55 verbose #28786 > >     run_target function
00:24:55 verbose #28787 > >         | Fsharp (Native) => fun () =>
00:24:55 verbose #28788 > >             let rec loop (retry : i64) =
00:24:55 verbose #28789 > >                 fun () =>
00:24:55 verbose #28790 > >                     try_unit
00:24:55 verbose #28791 > >                         fun () =>
00:24:55 verbose #28792 > >                             path |> file_delete
00:24:55 verbose #28793 > >                             return retry
00:24:55 verbose #28794 > >                         fun ex =>
00:24:55 verbose #28795 > >                             if retry % 100 = 0 then
00:24:55 verbose #28796 > >                                 trace Warning
00:24:55 verbose #28797 > >                                     fun () => "delete_file_async"
00:24:55 verbose #28798 > >                                     fun () => { path = path |> get_file_name; ex
00:24:55 verbose #28799 > > = ex |> sm'.format_exception }
00:24:55 verbose #28800 > >                             async.sleep 10 |> async.do
00:24:55 verbose #28801 > >                             loop (retry + 1) |> async.return_await
00:24:55 verbose #28802 > >                 |> async.new_async
00:24:55 verbose #28803 > >             loop 0
00:24:55 verbose #28804 > >         | _ => fun () => null ()
00:24:55 verbose #28805 > 00:24:54   debug #1548 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b53043a951d0d254b1e4416fe38eab0e947d4f0edaea04fceb305bc43ef6aaa7/main.spi
00:24:55 verbose #28806 > >
00:24:55 verbose #28807 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:55 verbose #28808 > > //// test
00:24:55 verbose #28809 > >
00:24:55 verbose #28810 > > inl lock_file path =
00:24:55 verbose #28811 > >     fun () =>
00:24:55 verbose #28812 > >         trace Debug (fun () => "_1") id
00:24:55 verbose #28813 > >         file_stream
00:24:55 verbose #28814 > >             path
00:24:55 verbose #28815 > >             ModeOpen
00:24:55 verbose #28816 > >             AccessReadWrite
00:24:55 verbose #28817 > >             ShareNone
00:24:55 verbose #28818 > >         |> use
00:24:55 verbose #28819 > >         |> ignore
00:24:55 verbose #28820 > >         trace Debug (fun () => "_2") id
00:24:55 verbose #28821 > >         async.sleep 2000 |> async.do
00:24:55 verbose #28822 > >         trace Debug (fun () => "_3") id
00:24:55 verbose #28823 > >     |> async.new_async
00:24:55 verbose #28824 > >
00:24:55 verbose #28825 > > fun () =>
00:24:55 verbose #28826 > >     inl file_name = "test.txt"
00:24:55 verbose #28827 > >     inl text = "0"
00:24:55 verbose #28828 > >
00:24:55 verbose #28829 > >     inl temp_dir, disposable =
00:24:55 verbose #28830 > >         (file_name, text)
00:24:55 verbose #28831 > >         |> sm'.format_debug
00:24:55 verbose #28832 > >         |> crypto.hash_text
00:24:55 verbose #28833 > >         |> create_temp_dir'
00:24:55 verbose #28834 > >     disposable |> use |> ignore
00:24:55 verbose #28835 > >     inl path = temp_dir </> file_name
00:24:55 verbose #28836 > >
00:24:55 verbose #28837 > >     trace Debug (fun () => "1") id
00:24:55 verbose #28838 > >     text |> write_all_text_async path |> async.do
00:24:55 verbose #28839 > >     trace Debug (fun () => "2") id
00:24:55 verbose #28840 > >     inl child = lock_file path |> async.start_child |> async.let'
00:24:55 verbose #28841 > >     trace Debug (fun () => "3") id
00:24:55 verbose #28842 > >     async.sleep 1 |> async.do
00:24:55 verbose #28843 > >     trace Debug (fun () => "4") id
00:24:55 verbose #28844 > >     inl retries = delete_file_async path |> async.let'
00:24:55 verbose #28845 > >     trace Debug (fun () => "5") id
00:24:55 verbose #28846 > >     child |> async.do
00:24:55 verbose #28847 > >     trace Debug (fun () => "6") id
00:24:55 verbose #28848 > >     return retries
00:24:55 verbose #28849 > > |> async.new_async_unit
00:24:55 verbose #28850 > > |> async.run_with_timeout 3000
00:24:55 verbose #28851 > > |> function
00:24:55 verbose #28852 > >     | Some (retries : i64) =>
00:24:55 verbose #28853 > >         retries
00:24:55 verbose #28854 > >         |> _assert_between
00:24:55 verbose #28855 > >             (if platform.is_windows () then 50 else 0)
00:24:55 verbose #28856 > >             (if platform.is_windows () then 180 else 0)
00:24:55 verbose #28857 > >
00:24:55 verbose #28858 > >         true
00:24:55 verbose #28859 > >     | _ => false
00:24:55 verbose #28860 > > |> _assert_eq true
00:24:55 verbose #28861 > 00:24:54   debug #1549 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4a8b2b3053bcde7e3a5fbe47fcf254f25bfa35b1461650d55ab357c8a892a1ad/main.spi
00:24:59 verbose #28862 > >
00:24:59 verbose #28863 > > ╭─[ 4.45s - stdout ]───────────────────────────────────────────────────────────╮
00:24:59 verbose #28864 > > │ 00:00:00   debug #1 1                                                   │
00:24:59 verbose #28865 > > │ 00:00:00   debug #2 2                                                   │
00:24:59 verbose #28866 > > │ 00:00:00   debug #3 3                                                   │
00:24:59 verbose #28867 > > │ 00:00:00   debug #4 _1                                                  │
00:24:59 verbose #28868 > > │ 00:00:00   debug #5 _2                                                  │
00:24:59 verbose #28869 > > │ 00:00:00   debug #6 4                                                   │
00:24:59 verbose #28870 > > │ 00:00:00 warning #7 delete_file_async / { path = test.txt; ex =         │
00:24:59 verbose #28871 > > │ System.IO.IOException: The process cannot access the file                    │
00:24:59 verbose #28872 > > │ 'C:\Users\i574n\AppData\Local\Temp\!create_temp_path_\dotnet-repl\613830ed-0 │
00:24:59 verbose #28873 > > │ 16e-d959-8d21-02dc1c63c252\test.txt' because it is being used by another     │
00:24:59 verbose #28874 > > │ process. }                                                                   │
00:24:59 verbose #28875 > > │ 00:00:01 warning #8 delete_file_async / { path = test.txt; ex =         │
00:24:59 verbose #28876 > > │ System.IO.IOException: The process cannot access the file                    │
00:24:59 verbose #28877 > > │ 'C:\Users\i574n\AppData\Local\Temp\!create_temp_path_\dotnet-repl\613830ed-0 │
00:24:59 verbose #28878 > > │ 16e-d959-8d21-02dc1c63c252\test.txt' because it is being used by another     │
00:24:59 verbose #28879 > > │ process. }                                                                   │
00:24:59 verbose #28880 > > │ 00:00:01   debug #9 _3                                                  │
00:24:59 verbose #28881 > > │ 00:00:02   debug #10 5                                                  │
00:24:59 verbose #28882 > > │ 00:00:02   debug #11 6                                                  │
00:24:59 verbose #28883 > > │ assert_between / actual: 128L / expected: struct (50L, 180L)                 │
00:24:59 verbose #28884 > > │ assert_eq / actual: true / expected: true                                    │
00:24:59 verbose #28885 > > │                                                                              │
00:24:59 verbose #28886 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:59 verbose #28887 > >
00:24:59 verbose #28888 > > ── markdown ────────────────────────────────────────────────────────────────────
00:24:59 verbose #28889 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:24:59 verbose #28890 > > │ ## main                                                                      │
00:24:59 verbose #28891 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:59 verbose #28892 > >
00:24:59 verbose #28893 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:59 verbose #28894 > > inl main () =
00:24:59 verbose #28895 > >     init_trace_state None
00:24:59 verbose #28896 > >     $'let delete_directory_async x = !delete_directory_async x' : ()
00:24:59 verbose #28897 > >     $'let wait_for_file_access x = !wait_for_file_access x' : ()
00:24:59 verbose #28898 > >     $'let wait_for_file_access_read x = !wait_for_file_access_read x' : ()
00:24:59 verbose #28899 > >     $'let read_all_text_async x = !read_all_text_async x' : ()
00:24:59 verbose #28900 > >     $'let file_exists_content x = !file_exists_content x' : ()
00:24:59 verbose #28901 > >     $'let write_all_text_async x = !write_all_text_async x' : ()
00:24:59 verbose #28902 > >     $'let write_all_text_exists x = !write_all_text_exists_async x' : ()
00:24:59 verbose #28903 > >     $'let delete_file_async x = !delete_file_async x' : ()
00:24:59 verbose #28904 > >     $'let move_file_async x = !move_file_async x' : ()
00:24:59 verbose #28905 > >     $'let read_all_text_retry_async x = !read_all_text_retry_async x' : ()
00:24:59 verbose #28906 > >     $'let create_temp_path () = !create_temp_path ()' : ()
00:24:59 verbose #28907 > >     $'let create_temp_dir () = !create_temp_dir ()' : ()
00:24:59 verbose #28908 > >     $'let create_temp_dir\' x = !create_temp_dir' x' : ()
00:24:59 verbose #28909 > >     $'let get_source_directory () = !get_source_directory ()' : ()
00:24:59 verbose #28910 > >     $'let normalize_path x = !normalize_path x' : ()
00:24:59 verbose #28911 > >     $'let new_file_uri x = !new_file_uri x' : ()
00:24:59 verbose #28912 > >     $'let get_workspace_root () = !get_workspace_root ()' : ()
00:24:59 verbose #28913 > >     $'let init_trace_file x = !init_trace_file x' : ()
00:24:59 verbose #28914 > >     inl combine x = (</>) x
00:24:59 verbose #28915 > >     $'let (</>) x = !combine x' : ()
00:25:00 verbose #28916 > 00:24:59   debug #1550 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0965337c69d99ebf355286c6194233a04524b9ef837a1fd5bc0e2d717776ec8a/main.spi
00:25:03 verbose #28917 > 00:01:32 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 101954 }
00:25:03 verbose #28918 > 00:01:32   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/spiral/file_system.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/file_system.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:25:05 verbose #28919 > 00:01:35 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/file_system.dib.ipynb to html
00:25:05 verbose #28920 > 00:01:35 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:25:05 verbose #28921 > 00:01:35 verbose #7 !   validate(nb)
00:25:08 verbose #28922 > 00:01:38 verbose #8 ! [NbConvertApp] Writing 586931 bytes to c:\home\git\polyglot\lib\spiral\file_system.dib.html
00:25:08 verbose #28923 > 00:01:38 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 653 }
00:25:08 verbose #28924 > 00:01:38   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 653 }
00:25:08 verbose #28925 > 00:01:38   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/file_system.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/file_system.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:25:10 verbose #28926 > 00:01:39 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:25:10 verbose #28927 > 00:01:39   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:25:10 verbose #28928 > 00:01:40   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 102666 }
00:25:10   debug #28929 runtime.execute_with_options_async / { exit_code = 0; output_length = 109672 }
00:25:10   debug #36 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path file_system.dib --retries 3
00:25:10   debug #28930 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path networking.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:25:10 verbose #28931 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "networking.dib", "--retries", "3"])) }
00:25:10 verbose #28932 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/spiral/networking.dib", "--output-path", "c:/home/git/polyglot/lib/spiral/networking.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/networking.dib" --output-path "c:/home/git/polyglot/lib/spiral/networking.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:25:13 verbose #28933 > >
00:25:13 verbose #28934 > > ── markdown ────────────────────────────────────────────────────────────────────
00:25:13 verbose #28935 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:25:13 verbose #28936 > > │ # networking                                                                 │
00:25:13 verbose #28937 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:25:17 verbose #28938 > >
00:25:17 verbose #28939 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:25:17 verbose #28940 > > open rust_operators
00:25:18 verbose #28941 > 00:25:17   debug #1551 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0d9bd8e5bb71a8e1d983506a46e54fb8c8e6cf2d0bd973135d4cdd580c5f6d39/main.spi
00:25:18 verbose #28942 > >
00:25:18 verbose #28943 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:25:18 verbose #28944 > > //// test
00:25:18 verbose #28945 > >
00:25:18 verbose #28946 > > open testing
00:25:18 verbose #28947 > 00:25:18   debug #1552 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d06211d48c36e09624381aad71e69f817df1a545af31c21067514d4d391bdd05/main.spi
00:25:19 verbose #28948 > >
00:25:19 verbose #28949 > > ── markdown ────────────────────────────────────────────────────────────────────
00:25:19 verbose #28950 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:25:19 verbose #28951 > > │ ## rust                                                                      │
00:25:19 verbose #28952 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:25:19 verbose #28953 > >
00:25:19 verbose #28954 > > ── markdown ────────────────────────────────────────────────────────────────────
00:25:19 verbose #28955 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:25:19 verbose #28956 > > │ ### reqwest_response                                                         │
00:25:19 verbose #28957 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:25:19 verbose #28958 > >
00:25:19 verbose #28959 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:25:19 verbose #28960 > > nominal reqwest_response =
00:25:19 verbose #28961 > >     `(
00:25:19 verbose #28962 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:25:19 verbose #28963 > > Fable.Core.Emit(\"reqwest_wasm::Response\")>]]\n#endif\ntype reqwest_Response =
00:25:19 verbose #28964 > > class end"
00:25:19 verbose #28965 > >         $'' : $'reqwest_Response'
00:25:19 verbose #28966 > >     )
00:25:19 verbose #28967 > 00:25:18   debug #1553 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c1054eafc016e972e6fdce532e6329b7765d44d2df9485a24372dbbacee1c1c6/main.spi
00:25:19 verbose #28968 > >
00:25:19 verbose #28969 > > ── markdown ────────────────────────────────────────────────────────────────────
00:25:19 verbose #28970 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:25:19 verbose #28971 > > │ ### reqwest_error                                                            │
00:25:19 verbose #28972 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:25:19 verbose #28973 > >
00:25:19 verbose #28974 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:25:19 verbose #28975 > > nominal reqwest_error =
00:25:19 verbose #28976 > >     `(
00:25:19 verbose #28977 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:25:19 verbose #28978 > > Fable.Core.Emit(\"reqwest_wasm::Error\")>]]\n#endif\ntype reqwest_Error = class
00:25:19 verbose #28979 > > end"
00:25:19 verbose #28980 > >         $'' : $'reqwest_Error'
00:25:19 verbose #28981 > >     )
00:25:19 verbose #28982 > 00:25:18   debug #1554 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/aec0dc47f7706241c17943cc4eb771f3b79700864442a27a3d1bf39ad413d69b/main.spi
00:25:19 verbose #28983 > >
00:25:19 verbose #28984 > > ── markdown ────────────────────────────────────────────────────────────────────
00:25:19 verbose #28985 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:25:19 verbose #28986 > > │ ### request_builder                                                          │
00:25:19 verbose #28987 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:25:19 verbose #28988 > >
00:25:19 verbose #28989 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:25:19 verbose #28990 > > nominal request_builder =
00:25:19 verbose #28991 > >     `(
00:25:19 verbose #28992 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:25:19 verbose #28993 > > Fable.Core.Emit(\"reqwest_wasm::RequestBuilder\")>]]\n#endif\ntype
00:25:19 verbose #28994 > > reqwest_RequestBuilder = class end"
00:25:19 verbose #28995 > >         $'' : $'reqwest_RequestBuilder'
00:25:19 verbose #28996 > >     )
00:25:19 verbose #28997 > 00:25:19   debug #1555 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b3ac0b25cc24b508db104800267b9b0877d33450daf79ce4f4273f0f70b54d84/main.spi
00:25:20 verbose #28998 > >
00:25:20 verbose #28999 > > ── markdown ────────────────────────────────────────────────────────────────────
00:25:20 verbose #29000 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:25:20 verbose #29001 > > │ ### request_type                                                             │
00:25:20 verbose #29002 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:25:20 verbose #29003 > >
00:25:20 verbose #29004 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:25:20 verbose #29005 > > union request_type =
00:25:20 verbose #29006 > >     | Get
00:25:20 verbose #29007 > >     | Post
00:25:20 verbose #29008 > 00:25:19   debug #1556 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ca36fa0cad4b6d6da469d193fb0fab5fd88bd31db476b3e9ef2fceaf1a90e97b/main.spi
00:25:20 verbose #29009 > >
00:25:20 verbose #29010 > > ── markdown ────────────────────────────────────────────────────────────────────
00:25:20 verbose #29011 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:25:20 verbose #29012 > > │ ### request                                                                  │
00:25:20 verbose #29013 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:25:20 verbose #29014 > >
00:25:20 verbose #29015 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:25:20 verbose #29016 > > type request =
00:25:20 verbose #29017 > >     {
00:25:20 verbose #29018 > >         url : string
00:25:20 verbose #29019 > >         request_type : request_type
00:25:20 verbose #29020 > >         body : string
00:25:20 verbose #29021 > >         json : bool
00:25:20 verbose #29022 > >         auto_refresh : bool
00:25:20 verbose #29023 > >     }
00:25:20 verbose #29024 > 00:25:19   debug #1557 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b8e30498a128d841554fa73c403c5b3ce7ec0219c4de17ea3078ad3a64cd152f/main.spi
00:25:20 verbose #29025 > >
00:25:20 verbose #29026 > > ── markdown ────────────────────────────────────────────────────────────────────
00:25:20 verbose #29027 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:25:20 verbose #29028 > > │ ### new_request_get                                                          │
00:25:20 verbose #29029 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:25:20 verbose #29030 > >
00:25:20 verbose #29031 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:25:20 verbose #29032 > > inl new_request_get (url : string) : request_builder =
00:25:20 verbose #29033 > >     inl url = join url
00:25:20 verbose #29034 > >     inl url = url |> sm'.to_std_string
00:25:20 verbose #29035 > >     inl url = join url
00:25:20 verbose #29036 > >     !\($'"reqwest_wasm::Client::builder().build().map_err(|err|
00:25:20 verbose #29037 > > err.to_string())?.get(!url)"')
00:25:20 verbose #29038 > 00:25:20   debug #1558 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b9fb00da433e03ac1b2c859f1f3e75a695f4139c6bb4f2421e1358952e0765d0/main.spi
00:25:21 verbose #29039 > >
00:25:21 verbose #29040 > > ── markdown ────────────────────────────────────────────────────────────────────
00:25:21 verbose #29041 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:25:21 verbose #29042 > > │ ### new_request_post                                                         │
00:25:21 verbose #29043 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:25:21 verbose #29044 > >
00:25:21 verbose #29045 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:25:21 verbose #29046 > > inl new_request_post (url : string) : request_builder =
00:25:21 verbose #29047 > >     inl url = join url
00:25:21 verbose #29048 > >     inl url = url |> sm'.to_std_string
00:25:21 verbose #29049 > >     inl url = join url
00:25:21 verbose #29050 > >     !\($'"reqwest_wasm::Client::builder().build().map_err(|err|
00:25:21 verbose #29051 > > err.to_string())?.post(!url)"')
00:25:21 verbose #29052 > 00:25:20   debug #1559 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7471fe3abd0d93fd3e5f817e9a85616d8cf7cac4f72c8735b098cf728654407b/main.spi
00:25:21 verbose #29053 > >
00:25:21 verbose #29054 > > ── markdown ────────────────────────────────────────────────────────────────────
00:25:21 verbose #29055 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:25:21 verbose #29056 > > │ ### request_send                                                             │
00:25:21 verbose #29057 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:25:21 verbose #29058 > >
00:25:21 verbose #29059 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:25:21 verbose #29060 > > inl request_send (request : request_builder) : async.future_pin (resultm.result'
00:25:21 verbose #29061 > > reqwest_response reqwest_error) =
00:25:21 verbose #29062 > >     inl request = join request
00:25:21 verbose #29063 > >     !\($'"Box::pin(reqwest_wasm::RequestBuilder::send(!request))"')
00:25:21 verbose #29064 > 00:25:20   debug #1560 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/647fca9a0fc10de24763315fd5340b585b4019e1dd2813d15003d4fde463dd98/main.spi
00:25:21 verbose #29065 > >
00:25:21 verbose #29066 > > ── markdown ────────────────────────────────────────────────────────────────────
00:25:21 verbose #29067 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:25:21 verbose #29068 > > │ ### request_body                                                             │
00:25:21 verbose #29069 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:25:21 verbose #29070 > >
00:25:21 verbose #29071 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:25:21 verbose #29072 > > inl request_body (body : string) (request : request_builder) : request_builder =
00:25:21 verbose #29073 > >     inl body = body |> sm'.to_std_string
00:25:21 verbose #29074 > >     !\($'"reqwest_wasm::RequestBuilder::body(!request, !body)"')
00:25:22 verbose #29075 > 00:25:21   debug #1561 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/76dff1632c83e0ef26d02381c83851d922f95c30c007391aeb1c06f97f4079d5/main.spi
00:25:22 verbose #29076 > >
00:25:22 verbose #29077 > > ── markdown ────────────────────────────────────────────────────────────────────
00:25:22 verbose #29078 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:25:22 verbose #29079 > > │ ### request_header                                                           │
00:25:22 verbose #29080 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:25:22 verbose #29081 > >
00:25:22 verbose #29082 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:25:22 verbose #29083 > > inl request_header (key : string) (value : string) (request : request_builder) :
00:25:22 verbose #29084 > > request_builder =
00:25:22 verbose #29085 > >     inl request = join request
00:25:22 verbose #29086 > >     inl key = key |> sm'.to_std_string
00:25:22 verbose #29087 > >     inl value = value |> sm'.to_std_string
00:25:22 verbose #29088 > >     !\($'"reqwest_wasm::RequestBuilder::header(!request, !key, !value)"')
00:25:22 verbose #29089 > 00:25:21   debug #1562 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c7f4556dd759d86f9b4fccc4e08ae899d70f2ae34116549ac26f95b836e68817/main.spi
00:25:22 verbose #29090 > >
00:25:22 verbose #29091 > > ── markdown ────────────────────────────────────────────────────────────────────
00:25:22 verbose #29092 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:25:22 verbose #29093 > > │ ### request_json                                                             │
00:25:22 verbose #29094 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:25:22 verbose #29095 > >
00:25:22 verbose #29096 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:25:22 verbose #29097 > > inl request_json forall t. (obj : t) (request : request_builder) :
00:25:22 verbose #29098 > > request_builder =
00:25:22 verbose #29099 > >     !\($'"reqwest_wasm::RequestBuilder::json(!request, &!obj)"')
00:25:22 verbose #29100 > 00:25:21   debug #1563 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0786f37eae82383cccece0dc81035d8e5bebfa7f33042f140a152a68f841f4aa/main.spi
00:25:22 verbose #29101 > >
00:25:22 verbose #29102 > > ── markdown ────────────────────────────────────────────────────────────────────
00:25:22 verbose #29103 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:25:22 verbose #29104 > > │ ### response_text                                                            │
00:25:22 verbose #29105 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:25:22 verbose #29106 > >
00:25:22 verbose #29107 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:25:22 verbose #29108 > > inl response_text (response : reqwest_response) : async.future_pin
00:25:22 verbose #29109 > > (resultm.result' sm'.std_string reqwest_error) =
00:25:22 verbose #29110 > >     !\($'"Box::pin(reqwest_wasm::Response::text(!response))"')
00:25:23 verbose #29111 > 00:25:22   debug #1564 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a89b13ec2d609bf385ba97011bb4196dbcae56d4c412ed085d5aeb965d41e771/main.spi
00:25:23 verbose #29112 > >
00:25:23 verbose #29113 > > ── markdown ────────────────────────────────────────────────────────────────────
00:25:23 verbose #29114 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:25:23 verbose #29115 > > │ ## fsharp                                                                    │
00:25:23 verbose #29116 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:25:23 verbose #29117 > >
00:25:23 verbose #29118 > > ── markdown ────────────────────────────────────────────────────────────────────
00:25:23 verbose #29119 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:25:23 verbose #29120 > > │ ### tcp_client                                                               │
00:25:23 verbose #29121 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:25:23 verbose #29122 > >
00:25:23 verbose #29123 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:25:23 verbose #29124 > > nominal tcp_client = $'System.Net.Sockets.TcpClient'
00:25:23 verbose #29125 > 00:25:22   debug #1565 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/aadd4fee3210d3ae274355ba45823956a964aec01627c068d493b859405ebb76/main.spi
00:25:23 verbose #29126 > >
00:25:23 verbose #29127 > > ── markdown ────────────────────────────────────────────────────────────────────
00:25:23 verbose #29128 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:25:23 verbose #29129 > > │ ### new_tcp_client                                                           │
00:25:23 verbose #29130 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:25:23 verbose #29131 > >
00:25:23 verbose #29132 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:25:23 verbose #29133 > > inl new_tcp_client () : tcp_client =
00:25:23 verbose #29134 > >     $'new `tcp_client ()'
00:25:24 verbose #29135 > 00:25:23   debug #1566 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e77dff133e7f6e5d18744e2fa4d9081b65e4ac10ef967ff662abd31dc101d247/main.spi
00:25:24 verbose #29136 > >
00:25:24 verbose #29137 > > ── markdown ────────────────────────────────────────────────────────────────────
00:25:24 verbose #29138 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:25:24 verbose #29139 > > │ ### ip_address                                                               │
00:25:24 verbose #29140 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:25:24 verbose #29141 > >
00:25:24 verbose #29142 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:25:24 verbose #29143 > > nominal ip_address = $'System.Net.IPAddress'
00:25:24 verbose #29144 > 00:25:23   debug #1567 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/40f3300a2917eddeef7b9a09ef8e9de13f8fe8b6b74786342d55982445c8bf22/main.spi
00:25:24 verbose #29145 > >
00:25:24 verbose #29146 > > ── markdown ────────────────────────────────────────────────────────────────────
00:25:24 verbose #29147 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:25:24 verbose #29148 > > │ ### ip_address_parse                                                         │
00:25:24 verbose #29149 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:25:24 verbose #29150 > >
00:25:24 verbose #29151 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:25:24 verbose #29152 > > inl ip_address_parse (s : string) : ip_address =
00:25:24 verbose #29153 > >     s |> $'`ip_address.Parse'
00:25:24 verbose #29154 > 00:25:24   debug #1568 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/49131333ffb14e4e120a8806687acd1733c78c7a766b4a305ff6bd3ba61290c3/main.spi
00:25:25 verbose #29155 > >
00:25:25 verbose #29156 > > ── markdown ────────────────────────────────────────────────────────────────────
00:25:25 verbose #29157 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:25:25 verbose #29158 > > │ ### tcp_listener                                                             │
00:25:25 verbose #29159 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:25:25 verbose #29160 > >
00:25:25 verbose #29161 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:25:25 verbose #29162 > > nominal tcp_listener = $'System.Net.Sockets.TcpListener'
00:25:25 verbose #29163 > 00:25:24   debug #1569 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/bc982ac96cdbe850e78faa5b6a068a154bd1949129441a0817174ca814dd49c6/main.spi
00:25:25 verbose #29164 > >
00:25:25 verbose #29165 > > ── markdown ────────────────────────────────────────────────────────────────────
00:25:25 verbose #29166 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:25:25 verbose #29167 > > │ ### new_tcp_listener                                                         │
00:25:25 verbose #29168 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:25:25 verbose #29169 > >
00:25:25 verbose #29170 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:25:25 verbose #29171 > > inl new_tcp_listener (ip_address : ip_address) (port : i32) : tcp_listener =
00:25:25 verbose #29172 > >     $'new `tcp_listener (!ip_address, !port)'
00:25:25 verbose #29173 > 00:25:24   debug #1570 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/33b6b91d38212c79818167d108024e9925d73ac224ca6b3f469d329822c81edb/main.spi
00:25:25 verbose #29174 > >
00:25:25 verbose #29175 > > ── markdown ────────────────────────────────────────────────────────────────────
00:25:25 verbose #29176 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:25:25 verbose #29177 > > │ ### listener_start                                                           │
00:25:25 verbose #29178 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:25:25 verbose #29179 > >
00:25:25 verbose #29180 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:25:25 verbose #29181 > > inl listener_start (listener : tcp_listener) : () =
00:25:25 verbose #29182 > >     $'!listener.Start' ()
00:25:26 verbose #29183 > 00:25:25   debug #1571 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/316246036065b39c8c35b0210761c15fb795678a8d5f91ad56dff1ac29873d9b/main.spi
00:25:26 verbose #29184 > >
00:25:26 verbose #29185 > > ── markdown ────────────────────────────────────────────────────────────────────
00:25:26 verbose #29186 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:25:26 verbose #29187 > > │ ### listener_stop                                                            │
00:25:26 verbose #29188 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:25:26 verbose #29189 > >
00:25:26 verbose #29190 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:25:26 verbose #29191 > > inl listener_stop (listener : tcp_listener) : () =
00:25:26 verbose #29192 > >     $'!listener.Stop' ()
00:25:26 verbose #29193 > 00:25:25   debug #1572 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/66e73124aa954e45def8f50261539c906c5d08b256aa587f4e6ea78b383c3a4d/main.spi
00:25:26 verbose #29194 > >
00:25:26 verbose #29195 > > ── markdown ────────────────────────────────────────────────────────────────────
00:25:26 verbose #29196 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:25:26 verbose #29197 > > │ ### client_connect_async                                                     │
00:25:26 verbose #29198 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:25:26 verbose #29199 > >
00:25:26 verbose #29200 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:25:26 verbose #29201 > > inl client_connect_async
00:25:26 verbose #29202 > >     (host : string)
00:25:26 verbose #29203 > >     (port : i32)
00:25:26 verbose #29204 > >     (ct : threading.cancellation_token)
00:25:26 verbose #29205 > >     (client : tcp_client)
00:25:26 verbose #29206 > >     : async.value_task
00:25:26 verbose #29207 > >     =
00:25:26 verbose #29208 > >     $'!client.ConnectAsync (!host, !port, !ct)'
00:25:26 verbose #29209 > 00:25:25   debug #1573 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e18590eac0d79259987d547e6df65a47f553797d4a39909f85fc471a0f4e257f/main.spi
00:25:26 verbose #29210 > >
00:25:26 verbose #29211 > > ── markdown ────────────────────────────────────────────────────────────────────
00:25:26 verbose #29212 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:25:26 verbose #29213 > > │ ### test_port_open                                                           │
00:25:26 verbose #29214 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:25:26 verbose #29215 > >
00:25:26 verbose #29216 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:25:26 verbose #29217 > > inl test_port_open host port : _ bool = async.new_async fun () =>
00:25:26 verbose #29218 > >     inl ct = async.cancellation_token () |> async.let'
00:25:26 verbose #29219 > >     inl client = new_tcp_client () |> use
00:25:26 verbose #29220 > >     try_unit
00:25:26 verbose #29221 > >         fun () =>
00:25:26 verbose #29222 > >             client |> client_connect_async host port ct |>
00:25:26 verbose #29223 > > async.await_value_task_unit |> async.do
00:25:26 verbose #29224 > >             return true
00:25:26 verbose #29225 > >         fun ex =>
00:25:26 verbose #29226 > >             inl ex = ex |> sm'.format_exception
00:25:26 verbose #29227 > >             trace Verbose
00:25:26 verbose #29228 > >                 fun () => $'$"networking.test_port_open"'
00:25:26 verbose #29229 > >                 fun () => { port ex }
00:25:26 verbose #29230 > >             return false
00:25:27 verbose #29231 > 00:25:26   debug #1574 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b1cb4f07222436a85af26175e3e01ac5ffc016ac6b76c4dbfc317f837f527c98/main.spi
00:25:27 verbose #29232 > >
00:25:27 verbose #29233 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:25:27 verbose #29234 > > //// test
00:25:27 verbose #29235 > >
00:25:27 verbose #29236 > > test_port_open "127.0.0.1" 65536
00:25:27 verbose #29237 > > |> async.run_with_timeout 120
00:25:27 verbose #29238 > > |> _assert_eq (Some false)
00:25:27 verbose #29239 > 00:25:26   debug #1575 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1faa68f66823775d8a3ad3006e0404991e7aaf861069b29418b7f6e0d20892b6/main.spi
00:25:30 verbose #29240 > >
00:25:30 verbose #29241 > > ╭─[ 3.25s - stdout ]───────────────────────────────────────────────────────────╮
00:25:30 verbose #29242 > > │ 00:00:00 verbose #1 networking.test_port_open / { port = 65536; ex =    │
00:25:30 verbose #29243 > > │ System.ArgumentOutOfRangeException: Specified argument was out of the range  │
00:25:30 verbose #29244 > > │ of valid values. (Parameter 'port') }                                        │
00:25:30 verbose #29245 > > │ assert_eq / actual: US4_0 false / expected: US4_0 false                      │
00:25:30 verbose #29246 > > │                                                                              │
00:25:30 verbose #29247 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:25:30 verbose #29248 > >
00:25:30 verbose #29249 > > ── markdown ────────────────────────────────────────────────────────────────────
00:25:30 verbose #29250 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:25:30 verbose #29251 > > │ ### test_port_open_timeout                                                   │
00:25:30 verbose #29252 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:25:30 verbose #29253 > >
00:25:30 verbose #29254 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:25:30 verbose #29255 > > inl test_port_open_timeout timeout host port : _ bool = async.new_async_unit fun
00:25:30 verbose #29256 > > () =>
00:25:30 verbose #29257 > >     test_port_open host port
00:25:30 verbose #29258 > >     |> async.run_with_timeout_async timeout
00:25:30 verbose #29259 > >     |> async.let'
00:25:30 verbose #29260 > >     |> function
00:25:30 verbose #29261 > >         | None => false
00:25:30 verbose #29262 > >         | Some result => result
00:25:30 verbose #29263 > >     |> return
00:25:30 verbose #29264 > 00:25:29   debug #1576 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ef6647fda0f760768c9c3f88c16cfd8cb13eebc54e9ab8f652ade1d5d22e0090/main.spi
00:25:30 verbose #29265 > >
00:25:30 verbose #29266 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:25:30 verbose #29267 > > //// test
00:25:30 verbose #29268 > >
00:25:30 verbose #29269 > > test_port_open_timeout 120 "127.0.0.1" 65535
00:25:30 verbose #29270 > > |> async.run_synchronously
00:25:30 verbose #29271 > > |> _assert_eq false
00:25:31 verbose #29272 > 00:25:30   debug #1577 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1e9eeb0229872b602ca89c2d039090a6f68d401a0784813ca9393e00d47675bf/main.spi
00:25:32 verbose #29273 > >
00:25:32 verbose #29274 > > ╭─[ 1.51s - stdout ]───────────────────────────────────────────────────────────╮
00:25:32 verbose #29275 > > │ 00:00:00 verbose #1 async.run_with_timeout_async / { timeout = 120 }    │
00:25:32 verbose #29276 > > │ assert_eq / actual: false / expected: false                                  │
00:25:32 verbose #29277 > > │                                                                              │
00:25:32 verbose #29278 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:25:32 verbose #29279 > >
00:25:32 verbose #29280 > > ── markdown ────────────────────────────────────────────────────────────────────
00:25:32 verbose #29281 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:25:32 verbose #29282 > > │ ### wait_for_port_access                                                     │
00:25:32 verbose #29283 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:25:32 verbose #29284 > >
00:25:32 verbose #29285 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:25:32 verbose #29286 > > inl wait_for_port_access timeout status host port : _ i64 =
00:25:32 verbose #29287 > >     let rec loop retry : _ i64 = async.new_async_unit fun () =>
00:25:32 verbose #29288 > >         inl isPortOpen =
00:25:32 verbose #29289 > >             match timeout |> optionm'.unbox with
00:25:32 verbose #29290 > >             | None => test_port_open host port
00:25:32 verbose #29291 > >             | Some timeout => test_port_open_timeout timeout host port
00:25:32 verbose #29292 > >             |> async.let'
00:25:32 verbose #29293 > >
00:25:32 verbose #29294 > >         fix_condition
00:25:32 verbose #29295 > >             fun () => isPortOpen = status
00:25:32 verbose #29296 > >             fun () => retry |> return
00:25:32 verbose #29297 > >             fun () =>
00:25:32 verbose #29298 > >                 if retry % 100 = 0 then
00:25:32 verbose #29299 > >                     trace Verbose
00:25:32 verbose #29300 > >                         fun () => "networking.wait_for_port_access"
00:25:32 verbose #29301 > >                         fun () => { port retry timeout status }
00:25:32 verbose #29302 > >                 async.sleep 10 |> async.do
00:25:32 verbose #29303 > >                 loop (retry + 1) |> async.return_await
00:25:32 verbose #29304 > >     loop 0i64
00:25:32 verbose #29305 > 00:25:31   debug #1578 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3e41eb69a338b9a40e409e967882f8456d49c79cd804dda58bf8f1702bc9b4ca/main.spi
00:25:32 verbose #29306 > >
00:25:32 verbose #29307 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:25:32 verbose #29308 > > //// test
00:25:32 verbose #29309 > >
00:25:32 verbose #29310 > > inl lock_port host port = async.new_async fun () =>
00:25:32 verbose #29311 > >     trace Debug (fun () => "_1") id
00:25:32 verbose #29312 > >     async.sleep 5000 |> async.do
00:25:32 verbose #29313 > >     inl listener = new_tcp_listener (host |> ip_address_parse) port |> use
00:25:32 verbose #29314 > >     trace Debug (fun () => "_2") id
00:25:32 verbose #29315 > >     listener |> listener_start
00:25:32 verbose #29316 > >     trace Debug (fun () => "_3") id
00:25:32 verbose #29317 > >     async.sleep 2000 |> async.do
00:25:32 verbose #29318 > >     trace Debug (fun () => "_4") id
00:25:32 verbose #29319 > >     $'!listener.Stop' ()
00:25:32 verbose #29320 > >     trace Debug (fun () => "_5") id
00:25:32 verbose #29321 > >
00:25:32 verbose #29322 > > inl host = "127.0.0.1"
00:25:32 verbose #29323 > > inl port = 5555i32
00:25:32 verbose #29324 > >
00:25:32 verbose #29325 > > fun () =>
00:25:32 verbose #29326 > >     trace Debug (fun () => "1") id
00:25:32 verbose #29327 > >     inl child = lock_port host port |> async.start_child |> async.let'
00:25:32 verbose #29328 > >     trace Debug (fun () => "2") id
00:25:32 verbose #29329 > >     async.sleep 1 |> async.do
00:25:32 verbose #29330 > >     trace Debug (fun () => "3") id
00:25:32 verbose #29331 > >     inl retries1 = wait_for_port_access (None |> optionm'.box) true host port |>
00:25:32 verbose #29332 > > async.let'
00:25:32 verbose #29333 > >     trace Debug (fun () => "4") id
00:25:32 verbose #29334 > >     inl retries2 = wait_for_port_access (None |> optionm'.box) false host port
00:25:32 verbose #29335 > > |> async.let'
00:25:32 verbose #29336 > >     trace Debug (fun () => "5") id
00:25:32 verbose #29337 > >     child |> async.do
00:25:32 verbose #29338 > >     trace Debug (fun () => "6") id
00:25:32 verbose #29339 > >     (retries1, retries2) |> return
00:25:32 verbose #29340 > > |> async.new_async_unit
00:25:32 verbose #29341 > > |> async.run_with_timeout 20000
00:25:32 verbose #29342 > > |> function
00:25:32 verbose #29343 > >     | Some (retries1, retries2) =>
00:25:32 verbose #29344 > >         retries1
00:25:32 verbose #29345 > >         |> _assert_between
00:25:32 verbose #29346 > >             if platform.is_windows () then 2i64 else 2
00:25:32 verbose #29347 > >             if platform.is_windows () then 5 else 1500
00:25:32 verbose #29348 > >
00:25:32 verbose #29349 > >         retries2
00:25:32 verbose #29350 > >         |> _assert_between
00:25:32 verbose #29351 > >             if platform.is_windows () then 80i64 else 80
00:25:32 verbose #29352 > >             if platform.is_windows () then 200 else 600
00:25:32 verbose #29353 > >
00:25:32 verbose #29354 > >         true
00:25:32 verbose #29355 > >     | _ => false
00:25:32 verbose #29356 > > |> _assert_eq true
00:25:32 verbose #29357 > 00:25:32   debug #1579 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9dbbb20df69d653c1c647589d69db692c5c96a80e317279fd840bf4ad7b9d7b2/main.spi
00:25:44 verbose #29358 > >
00:25:44 verbose #29359 > > ╭─[ 11.68s - stdout ]──────────────────────────────────────────────────────────╮
00:25:44 verbose #29360 > > │ 00:00:00   debug #1 1                                                   │
00:25:44 verbose #29361 > > │ 00:00:00   debug #2 _1                                                  │
00:25:44 verbose #29362 > > │ 00:00:00   debug #3 2                                                   │
00:25:44 verbose #29363 > > │ 00:00:00   debug #4 3                                                   │
00:25:44 verbose #29364 > > │ 00:00:02 verbose #5 networking.test_port_open / { port = 5555; ex =     │
00:25:44 verbose #29365 > > │ System.AggregateException: One or more errors occurred. (No connection could │
00:25:44 verbose #29366 > > │ be made because the target machine actively refused it.) }                   │
00:25:44 verbose #29367 > > │ 00:00:02 verbose #6 networking.wait_for_port_access / { port = 5555;    │
00:25:44 verbose #29368 > > │ retry = 0; timeout = None; status = true }                                   │
00:25:44 verbose #29369 > > │ 00:00:04 verbose #7 networking.test_port_open / { port = 5555; ex =     │
00:25:44 verbose #29370 > > │ System.AggregateException: One or more errors occurred. (No connection could │
00:25:44 verbose #29371 > > │ be made because the target machine actively refused it.) }                   │
00:25:44 verbose #29372 > > │ 00:00:05   debug #8 _2                                                  │
00:25:44 verbose #29373 > > │ 00:00:05   debug #9 _3                                                  │
00:25:44 verbose #29374 > > │ 00:00:05   debug #10 4                                                  │
00:25:44 verbose #29375 > > │ 00:00:05 verbose #11 networking.wait_for_port_access / { port = 5555;   │
00:25:44 verbose #29376 > > │ retry = 0; timeout = None; status = false }                                  │
00:25:44 verbose #29377 > > │ 00:00:06 verbose #12 networking.wait_for_port_access / { port = 5555;   │
00:25:44 verbose #29378 > > │ retry = 100; timeout = None; status = false }                                │
00:25:44 verbose #29379 > > │ 00:00:07   debug #13 _4                                                 │
00:25:44 verbose #29380 > > │ 00:00:07   debug #14 _5                                                 │
00:25:44 verbose #29381 > > │ 00:00:09 verbose #15 networking.test_port_open / { port = 5555; ex =    │
00:25:44 verbose #29382 > > │ System.AggregateException: One or more errors occurred. (No connection could │
00:25:44 verbose #29383 > > │ be made because the target machine actively refused it.) }                   │
00:25:44 verbose #29384 > > │ 00:00:09   debug #16 5                                                  │
00:25:44 verbose #29385 > > │ 00:00:09   debug #17 6                                                  │
00:25:44 verbose #29386 > > │ assert_between / actual: 2L / expected: struct (2L, 5L)                      │
00:25:44 verbose #29387 > > │ assert_between / actual: 116L / expected: struct (80L, 200L)                 │
00:25:44 verbose #29388 > > │ assert_eq / actual: true / expected: true                                    │
00:25:44 verbose #29389 > > │                                                                              │
00:25:44 verbose #29390 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:25:44 verbose #29391 > >
00:25:44 verbose #29392 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:25:44 verbose #29393 > > //// test
00:25:44 verbose #29394 > >
00:25:44 verbose #29395 > > inl lock_port host port = async.new_async_unit fun () =>
00:25:44 verbose #29396 > >     trace Debug (fun () => "_1") id
00:25:44 verbose #29397 > >     async.sleep 500 |> async.do
00:25:44 verbose #29398 > >     inl listener = new_tcp_listener (ip_address_parse host) port |> use
00:25:44 verbose #29399 > >     trace Debug (fun () => "_2") id
00:25:44 verbose #29400 > >     listener |> listener_start
00:25:44 verbose #29401 > >     trace Debug (fun () => "_3") id
00:25:44 verbose #29402 > >     async.sleep 200 |> async.do
00:25:44 verbose #29403 > >     trace Debug (fun () => "_4") id
00:25:44 verbose #29404 > >     listener |> listener_stop
00:25:44 verbose #29405 > >     trace Debug (fun () => "_5") id
00:25:44 verbose #29406 > >
00:25:44 verbose #29407 > > inl host = "127.0.0.1"
00:25:44 verbose #29408 > > inl port = 5555
00:25:44 verbose #29409 > >
00:25:44 verbose #29410 > > fun () =>
00:25:44 verbose #29411 > >     trace Debug (fun () => "1") id
00:25:44 verbose #29412 > >     inl child = lock_port host port |> async.start_child |> async.let'
00:25:44 verbose #29413 > >     trace Debug (fun () => "2") id
00:25:44 verbose #29414 > >     async.sleep 1 |> async.do
00:25:44 verbose #29415 > >     trace Debug (fun () => "3") id
00:25:44 verbose #29416 > >     inl retries1 = wait_for_port_access (Some 60 |> optionm'.box) true host port
00:25:44 verbose #29417 > > |> async.let'
00:25:44 verbose #29418 > >     trace Debug (fun () => "4") id
00:25:44 verbose #29419 > >     inl retries2 = wait_for_port_access (Some 60 |> optionm'.box) false host
00:25:44 verbose #29420 > > port |> async.let'
00:25:44 verbose #29421 > >     trace Debug (fun () => "5") id
00:25:44 verbose #29422 > >     child |> async.do
00:25:44 verbose #29423 > >     trace Debug (fun () => "6") id
00:25:44 verbose #29424 > >     (retries1, retries2) |> return
00:25:44 verbose #29425 > > |> async.new_async_unit
00:25:44 verbose #29426 > > |> async.run_with_timeout 2000
00:25:44 verbose #29427 > > |> function
00:25:44 verbose #29428 > >     | Some (retries1, retries2) =>
00:25:44 verbose #29429 > >         retries1
00:25:44 verbose #29430 > >         |> _assert_between
00:25:44 verbose #29431 > >             if platform.is_windows () then 4i64 else 2
00:25:44 verbose #29432 > >             if platform.is_windows () then 15 else 150
00:25:44 verbose #29433 > >
00:25:44 verbose #29434 > >         retries2
00:25:44 verbose #29435 > >         |> _assert_between
00:25:44 verbose #29436 > >             if platform.is_windows () then 5i64 else 0
00:25:44 verbose #29437 > >             if platform.is_windows () then 20 else 60
00:25:44 verbose #29438 > >
00:25:44 verbose #29439 > >         true
00:25:44 verbose #29440 > >     | _ => false
00:25:44 verbose #29441 > > |> _assert_eq true
00:25:44 verbose #29442 > 00:25:43   debug #1580 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d89250cb6286d7c4fd45206d1f24d7a172107c724c32a43c0fec4b1a33437c5c/main.spi
00:25:47 verbose #29443 > >
00:25:47 verbose #29444 > > ╭─[ 3.20s - stdout ]───────────────────────────────────────────────────────────╮
00:25:47 verbose #29445 > > │ 00:00:00   debug #1 1                                                   │
00:25:47 verbose #29446 > > │ 00:00:00   debug #2 2                                                   │
00:25:47 verbose #29447 > > │ 00:00:00   debug #3 _1                                                  │
00:25:47 verbose #29448 > > │ 00:00:00   debug #4 3                                                   │
00:25:47 verbose #29449 > > │ 00:00:00 verbose #5 async.run_with_timeout_async / { timeout = 60 }     │
00:25:47 verbose #29450 > > │ 00:00:00 verbose #6 networking.wait_for_port_access / { port = 5555;    │
00:25:47 verbose #29451 > > │ retry = 0; timeout = Some 60; status = true }                                │
00:25:47 verbose #29452 > > │ 00:00:00 verbose #7 async.run_with_timeout_async / { timeout = 60 }     │
00:25:47 verbose #29453 > > │ 00:00:00 verbose #8 async.run_with_timeout_async / { timeout = 60 }     │
00:25:47 verbose #29454 > > │ 00:00:00 verbose #9 async.run_with_timeout_async / { timeout = 60 }     │
00:25:47 verbose #29455 > > │ 00:00:00 verbose #10 async.run_with_timeout_async / { timeout = 60 }    │
00:25:47 verbose #29456 > > │ 00:00:00 verbose #11 async.run_with_timeout_async / { timeout = 60 }    │
00:25:47 verbose #29457 > > │ 00:00:00   debug #12 _2                                                 │
00:25:47 verbose #29458 > > │ 00:00:00   debug #13 _3                                                 │
00:25:47 verbose #29459 > > │ 00:00:00   debug #14 4                                                  │
00:25:47 verbose #29460 > > │ 00:00:00 verbose #15 networking.wait_for_port_access / { port = 5555;   │
00:25:47 verbose #29461 > > │ retry = 0; timeout = Some 60; status = false }                               │
00:25:47 verbose #29462 > > │ 00:00:00   debug #16 _4                                                 │
00:25:47 verbose #29463 > > │ 00:00:00   debug #17 _5                                                 │
00:25:47 verbose #29464 > > │ 00:00:00 verbose #18 async.run_with_timeout_async / { timeout = 60 }    │
00:25:47 verbose #29465 > > │ 00:00:00   debug #19 5                                                  │
00:25:47 verbose #29466 > > │ 00:00:00   debug #20 6                                                  │
00:25:47 verbose #29467 > > │ assert_between / actual: 6L / expected: struct (4L, 15L)                     │
00:25:47 verbose #29468 > > │ assert_between / actual: 12L / expected: struct (5L, 20L)                    │
00:25:47 verbose #29469 > > │ assert_eq / actual: true / expected: true                                    │
00:25:47 verbose #29470 > > │                                                                              │
00:25:47 verbose #29471 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:25:47 verbose #29472 > >
00:25:47 verbose #29473 > > ── markdown ────────────────────────────────────────────────────────────────────
00:25:47 verbose #29474 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:25:47 verbose #29475 > > │ ### get_available_port                                                       │
00:25:47 verbose #29476 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:25:47 verbose #29477 > >
00:25:47 verbose #29478 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:25:47 verbose #29479 > > inl get_available_port timeout host initial_port : _ i32 =
00:25:47 verbose #29480 > >     let rec loop port = async.new_async_unit fun () =>
00:25:47 verbose #29481 > >         inl is_port_open =
00:25:47 verbose #29482 > >             match timeout |> optionm'.unbox with
00:25:47 verbose #29483 > >             | None => test_port_open host port
00:25:47 verbose #29484 > >             | Some timeout => test_port_open_timeout timeout host port
00:25:47 verbose #29485 > >             |> async.let'
00:25:47 verbose #29486 > >         fix_condition
00:25:47 verbose #29487 > >             fun () => is_port_open |> not
00:25:47 verbose #29488 > >             fun () => port |> return
00:25:47 verbose #29489 > >             fun () => loop (port + 1) |> async.return_await
00:25:47 verbose #29490 > >     loop initial_port
00:25:47 verbose #29491 > 00:25:46   debug #1581 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9d106429129a278e9a4b354e6bf1e5d4d4362a3c9d9968b3fc1e9ab37f099851/main.spi
00:25:47 verbose #29492 > >
00:25:47 verbose #29493 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:25:47 verbose #29494 > > //// test
00:25:47 verbose #29495 > >
00:25:47 verbose #29496 > > inl lock_ports host port = async.new_async_unit fun () =>
00:25:47 verbose #29497 > >     trace Debug (fun () => "_1") id
00:25:47 verbose #29498 > >     inl listener1 = new_tcp_listener (ip_address_parse host) port |> use
00:25:47 verbose #29499 > >     inl listener2 = new_tcp_listener (ip_address_parse host) (port + 1) |> use
00:25:47 verbose #29500 > >     trace Debug (fun () => "_2") id
00:25:47 verbose #29501 > >     listener1 |> listener_start
00:25:47 verbose #29502 > >     listener2 |> listener_start
00:25:47 verbose #29503 > >     trace Debug (fun () => "_3") id
00:25:47 verbose #29504 > >     async.sleep 4000 |> async.do
00:25:47 verbose #29505 > >     trace Debug (fun () => "_4") id
00:25:47 verbose #29506 > >     listener1 |> listener_stop
00:25:47 verbose #29507 > >     listener2 |> listener_stop
00:25:47 verbose #29508 > >     trace Debug (fun () => "_5") id
00:25:47 verbose #29509 > >
00:25:47 verbose #29510 > > inl host = "127.0.0.1"
00:25:47 verbose #29511 > > inl port = 5555
00:25:47 verbose #29512 > >
00:25:47 verbose #29513 > > fun () =>
00:25:47 verbose #29514 > >     trace Debug (fun () => "1") id
00:25:47 verbose #29515 > >     inl child = lock_ports host port |> async.start_child |> async.let'
00:25:47 verbose #29516 > >     trace Debug (fun () => "2") id
00:25:47 verbose #29517 > >     async.sleep 240 |> async.do
00:25:47 verbose #29518 > >     trace Debug (fun () => "3") id
00:25:47 verbose #29519 > >     inl available_port = get_available_port (None |> optionm'.box) host port |>
00:25:47 verbose #29520 > > async.let'
00:25:47 verbose #29521 > >     trace Debug (fun () => "4") id
00:25:47 verbose #29522 > >     inl retries = wait_for_port_access (None |> optionm'.box) false host port |>
00:25:47 verbose #29523 > > async.let'
00:25:47 verbose #29524 > >     trace Debug (fun () => "5") id
00:25:47 verbose #29525 > >     child |> async.do
00:25:47 verbose #29526 > >     trace Debug (fun () => "6") id
00:25:47 verbose #29527 > >     (available_port, retries) |> return
00:25:47 verbose #29528 > > |> async.new_async_unit
00:25:47 verbose #29529 > > |> async.run_with_timeout 15000
00:25:47 verbose #29530 > > |> function
00:25:47 verbose #29531 > >     | Some (available_port, retries) =>
00:25:47 verbose #29532 > >         available_port |> _assert_eq (port + 2)
00:25:47 verbose #29533 > >
00:25:47 verbose #29534 > >         retries
00:25:47 verbose #29535 > >         |> _assert_between
00:25:47 verbose #29536 > >             if platform.is_windows () then 50i64 else 50
00:25:47 verbose #29537 > >             if platform.is_windows () then 150 else 1200
00:25:47 verbose #29538 > >
00:25:47 verbose #29539 > >         true
00:25:47 verbose #29540 > >     | _ => false
00:25:47 verbose #29541 > > |> _assert_eq true
00:25:48 verbose #29542 > 00:25:47   debug #1582 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d7ec7bd61f1a3f038d7075b0a8ded2c35fbea902cf302c40be8046eba052ba66/main.spi
00:25:56 verbose #29543 > >
00:25:56 verbose #29544 > > ╭─[ 8.44s - stdout ]───────────────────────────────────────────────────────────╮
00:25:56 verbose #29545 > > │ 00:00:00   debug #1 1                                                   │
00:25:56 verbose #29546 > > │ 00:00:00   debug #2 _1                                                  │
00:25:56 verbose #29547 > > │ 00:00:00   debug #3 2                                                   │
00:25:56 verbose #29548 > > │ 00:00:00   debug #4 _2                                                  │
00:25:56 verbose #29549 > > │ 00:00:00   debug #5 _3                                                  │
00:25:56 verbose #29550 > > │ 00:00:00   debug #6 3                                                   │
00:25:56 verbose #29551 > > │ 00:00:02 verbose #7 networking.test_port_open / { port = 5557; ex =     │
00:25:56 verbose #29552 > > │ System.AggregateException: One or more errors occurred. (No connection could │
00:25:56 verbose #29553 > > │ be made because the target machine actively refused it.) }                   │
00:25:56 verbose #29554 > > │ 00:00:02   debug #8 4                                                   │
00:25:56 verbose #29555 > > │ 00:00:02 verbose #9 networking.wait_for_port_access / { port = 5555;    │
00:25:56 verbose #29556 > > │ retry = 0; timeout = None; status = false }                                  │
00:25:56 verbose #29557 > > │ 00:00:03 verbose #10 networking.wait_for_port_access / { port = 5555;   │
00:25:56 verbose #29558 > > │ retry = 100; timeout = None; status = false }                                │
00:25:56 verbose #29559 > > │ 00:00:04   debug #11 _4                                                 │
00:25:56 verbose #29560 > > │ 00:00:04   debug #12 _5                                                 │
00:25:56 verbose #29561 > > │ 00:00:06 verbose #13 networking.test_port_open / { port = 5555; ex =    │
00:25:56 verbose #29562 > > │ System.AggregateException: One or more errors occurred. (No connection could │
00:25:56 verbose #29563 > > │ be made because the target machine actively refused it.) }                   │
00:25:56 verbose #29564 > > │ 00:00:06   debug #14 5                                                  │
00:25:56 verbose #29565 > > │ 00:00:06   debug #15 6                                                  │
00:25:56 verbose #29566 > > │ assert_eq / actual: 5557 / expected: 5557                                    │
00:25:56 verbose #29567 > > │ assert_between / actual: 107L / expected: struct (50L, 150L)                 │
00:25:56 verbose #29568 > > │ assert_eq / actual: true / expected: true                                    │
00:25:56 verbose #29569 > > │                                                                              │
00:25:56 verbose #29570 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:25:56 verbose #29571 > >
00:25:56 verbose #29572 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:25:56 verbose #29573 > > //// test
00:25:56 verbose #29574 > >
00:25:56 verbose #29575 > > inl lock_ports host port = async.new_async_unit fun () =>
00:25:56 verbose #29576 > >     trace Debug (fun () => "_1") id
00:25:56 verbose #29577 > >     inl listener1 = new_tcp_listener (ip_address_parse host) port |> use
00:25:56 verbose #29578 > >     inl listener2 = new_tcp_listener (ip_address_parse host) (port + 1) |> use
00:25:56 verbose #29579 > >     trace Debug (fun () => "_2") id
00:25:56 verbose #29580 > >     listener1 |> listener_start
00:25:56 verbose #29581 > >     listener2 |> listener_start
00:25:56 verbose #29582 > >     trace Debug (fun () => "_3") id
00:25:56 verbose #29583 > >     async.sleep 400 |> async.do
00:25:56 verbose #29584 > >     trace Debug (fun () => "_4") id
00:25:56 verbose #29585 > >     listener1 |> listener_stop
00:25:56 verbose #29586 > >     listener2 |> listener_stop
00:25:56 verbose #29587 > >     trace Debug (fun () => "_5") id
00:25:56 verbose #29588 > >
00:25:56 verbose #29589 > > inl host = "127.0.0.1"
00:25:56 verbose #29590 > > inl port = 5555
00:25:56 verbose #29591 > >
00:25:56 verbose #29592 > > fun () =>
00:25:56 verbose #29593 > >     trace Debug (fun () => "1") id
00:25:56 verbose #29594 > >     inl child = lock_ports host port |> async.start_child |> async.let'
00:25:56 verbose #29595 > >     trace Debug (fun () => "2") id
00:25:56 verbose #29596 > >     async.sleep 240 |> async.do
00:25:56 verbose #29597 > >     trace Debug (fun () => "3") id
00:25:56 verbose #29598 > >     inl available_port = get_available_port (Some 60 |> optionm'.box) host port
00:25:56 verbose #29599 > > |> async.let'
00:25:56 verbose #29600 > >     trace Debug (fun () => "4") id
00:25:56 verbose #29601 > >     inl retries = wait_for_port_access (Some 60 |> optionm'.box) false host port
00:25:56 verbose #29602 > > |> async.let'
00:25:56 verbose #29603 > >     trace Debug (fun () => "5") id
00:25:56 verbose #29604 > >     child |> async.do
00:25:56 verbose #29605 > >     trace Debug (fun () => "6") id
00:25:56 verbose #29606 > >     (available_port, retries) |> return
00:25:56 verbose #29607 > > |> async.new_async_unit
00:25:56 verbose #29608 > > |> async.run_with_timeout 1500
00:25:56 verbose #29609 > > |> function
00:25:56 verbose #29610 > >     | Some (available_port, retries) =>
00:25:56 verbose #29611 > >         available_port |> _assert_eq (port + 2)
00:25:56 verbose #29612 > >
00:25:56 verbose #29613 > >         retries
00:25:56 verbose #29614 > >         |> _assert_between
00:25:56 verbose #29615 > >             (if platform.is_windows () then 2i64 else 1)
00:25:56 verbose #29616 > >             (if platform.is_windows () then 10 else 120)
00:25:56 verbose #29617 > >
00:25:56 verbose #29618 > >         true
00:25:56 verbose #29619 > >     | _ => false
00:25:56 verbose #29620 > > |> _assert_eq true
00:25:56 verbose #29621 > 00:25:55   debug #1583 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1455af5c30e411d933a4aa3db50bb6b967facc5d2390d1a3713b413c339fc8e9/main.spi
00:25:59 verbose #29622 > >
00:25:59 verbose #29623 > > ╭─[ 2.88s - stdout ]───────────────────────────────────────────────────────────╮
00:25:59 verbose #29624 > > │ 00:00:00   debug #1 1                                                   │
00:25:59 verbose #29625 > > │ 00:00:00   debug #2 2                                                   │
00:25:59 verbose #29626 > > │ 00:00:00   debug #3 _1                                                  │
00:25:59 verbose #29627 > > │ 00:00:00   debug #4 _2                                                  │
00:25:59 verbose #29628 > > │ 00:00:00   debug #5 _3                                                  │
00:25:59 verbose #29629 > > │ 00:00:00   debug #6 3                                                   │
00:25:59 verbose #29630 > > │ 00:00:00 verbose #7 async.run_with_timeout_async / { timeout = 60 }     │
00:25:59 verbose #29631 > > │ 00:00:00   debug #8 4                                                   │
00:25:59 verbose #29632 > > │ 00:00:00 verbose #9 networking.wait_for_port_access / { port = 5555;    │
00:25:59 verbose #29633 > > │ retry = 0; timeout = Some 60; status = false }                               │
00:25:59 verbose #29634 > > │ 00:00:00   debug #10 _4                                                 │
00:25:59 verbose #29635 > > │ 00:00:00   debug #11 _5                                                 │
00:25:59 verbose #29636 > > │ 00:00:00 verbose #12 async.run_with_timeout_async / { timeout = 60 }    │
00:25:59 verbose #29637 > > │ 00:00:00   debug #13 5                                                  │
00:25:59 verbose #29638 > > │ 00:00:00   debug #14 6                                                  │
00:25:59 verbose #29639 > > │ assert_eq / actual: 5557 / expected: 5557                                    │
00:25:59 verbose #29640 > > │ assert_between / actual: 5L / expected: struct (2L, 10L)                     │
00:25:59 verbose #29641 > > │ assert_eq / actual: true / expected: true                                    │
00:25:59 verbose #29642 > > │                                                                              │
00:25:59 verbose #29643 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:25:59 verbose #29644 > >
00:25:59 verbose #29645 > > ── markdown ────────────────────────────────────────────────────────────────────
00:25:59 verbose #29646 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:25:59 verbose #29647 > > │ ## main                                                                      │
00:25:59 verbose #29648 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:25:59 verbose #29649 > >
00:25:59 verbose #29650 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:25:59 verbose #29651 > > inl main () =
00:25:59 verbose #29652 > >     init_trace_state None
00:25:59 verbose #29653 > >     $'let test_port_open x = !test_port_open x' : ()
00:25:59 verbose #29654 > >     $'let test_port_open_timeout x = !test_port_open_timeout x' : ()
00:25:59 verbose #29655 > >     $'let wait_for_port_access x = !wait_for_port_access x' : ()
00:25:59 verbose #29656 > >     $'let get_available_port x = !get_available_port x' : ()
00:25:59 verbose #29657 > 00:25:58   debug #1584 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ab8ea652ff79bb8ba3f50bd0449ca557d09ccfb32c952064b843160f4dbe647e/main.spi
00:26:01 verbose #29658 > 00:00:51 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 34090 }
00:26:01 verbose #29659 > 00:00:51   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/spiral/networking.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/networking.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:26:04 verbose #29660 > 00:00:53 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/networking.dib.ipynb to html
00:26:04 verbose #29661 > 00:00:53 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:26:04 verbose #29662 > 00:00:53 verbose #7 !   validate(nb)
00:26:05 verbose #29663 > 00:00:55 verbose #8 ! [NbConvertApp] Writing 369657 bytes to c:\home\git\polyglot\lib\spiral\networking.dib.html
00:26:06 verbose #29664 > 00:00:55 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 651 }
00:26:06 verbose #29665 > 00:00:55   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 651 }
00:26:06 verbose #29666 > 00:00:55   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/networking.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/networking.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:26:07 verbose #29667 > 00:00:56 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:26:07 verbose #29668 > 00:00:56   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:26:07 verbose #29669 > 00:00:57   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 34800 }
00:26:07   debug #29670 runtime.execute_with_options_async / { exit_code = 0; output_length = 38835 }
00:26:07   debug #37 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path networking.dib --retries 3
00:26:07 verbose #6 networking.wait_for_port_access / { port = 13805; retry = 0; timeout = Some 100; status = false }
00:26:08 verbose #7 async.run_with_timeout_async / { timeout = 100 }
00:00:00   debug #4 writeDibCode / output: Spi / path: runtime.dib
00:00:00   debug #4 writeDibCode / output: Spi / path: networking.dib
00:00:00   debug #4 writeDibCode / output: Spi / path: common.dib
00:00:00   debug #4 writeDibCode / output: Spi / path: testing.dib
00:00:00   debug #4 writeDibCode / output: Spi / path: trace.dib
00:00:00   debug #4 writeDibCode / output: Spi / path: threading.dib
00:00:00   debug #4 writeDibCode / output: Spi / path: crypto.dib
00:00:00   debug #4 writeDibCode / output: Spi / path: async.dib
00:00:00   debug #8 parseDibCode / output: Spi / file: runtime.dib
00:00:00   debug #12 parseDibCode / output: Spi / file: networking.dib
00:00:00   debug #8 parseDibCode / output: Spi / file: crypto.dib
00:00:00   debug #8 parseDibCode / output: Spi / file: testing.dib
00:00:00   debug #10 parseDibCode / output: Spi / file: trace.dib
00:00:00   debug #8 parseDibCode / output: Spi / file: common.dib
00:00:00   debug #10 parseDibCode / output: Spi / file: threading.dib
00:00:00   debug #12 parseDibCode / output: Spi / file: async.dib
00:00:00   debug #18 writeDibCode / output: Spi / path: console.dib
00:00:00   debug #17 writeDibCode / output: Spi / path: resultm.dib
00:00:00   debug #17 writeDibCode / output: Spi / path: base.dib
00:00:00   debug #17 writeDibCode / output: Spi / path: env.dib
00:00:00   debug #17 writeDibCode / output: Spi / path: iter.dib
00:00:00   debug #19 writeDibCode / output: Spi / path: date_time.dib
00:00:00   debug #21 parseDibCode / output: Spi / file: resultm.dib
00:00:00   debug #22 parseDibCode / output: Spi / file: base.dib
00:00:00   debug #20 parseDibCode / output: Spi / file: console.dib
00:00:00   debug #24 parseDibCode / output: Spi / file: iter.dib
00:00:00   debug #17 writeDibCode / output: Spi / path: parsing.dib
00:00:00   debug #23 parseDibCode / output: Spi / file: env.dib
00:00:00   debug #26 parseDibCode / output: Spi / file: parsing.dib
00:00:00   debug #25 parseDibCode / output: Spi / file: date_time.dib
00:00:00   debug #27 writeDibCode / output: Spi / path: file_system.dib
00:00:00   debug #28 writeDibCode / output: Spi / path: guid.dib
00:00:00   debug #29 parseDibCode / output: Spi / file: file_system.dib
00:00:00   debug #30 parseDibCode / output: Spi / file: guid.dib
00:00:00   debug #31 writeDibCode / output: Spi / path: math.dib
00:00:00   debug #32 writeDibCode / output: Spi / path: mapm.dib
00:00:00   debug #33 writeDibCode / output: Spi / path: optionm'.dib
00:00:00   debug #35 parseDibCode / output: Spi / file: mapm.dib
00:00:00   debug #34 parseDibCode / output: Spi / file: math.dib
00:00:00   debug #36 parseDibCode / output: Spi / file: optionm'.dib
00:00:00   debug #37 writeDibCode / output: Spi / path: am'.dib
00:00:00   debug #38 parseDibCode / output: Spi / file: am'.dib
00:00:00   debug #40 writeDibCode / output: Spir / path: sm'.dib
00:00:00   debug #40 writeDibCode / output: Spi / path: sm'.dib
00:00:00   debug #42 parseDibCode / output: Spi / file: sm'.dib
00:00:00   debug #41 parseDibCode / output: Spir / file: sm'.dib
00:00:00   debug #43 writeDibCode / output: Spi / path: listm'.dib
00:00:00   debug #44 parseDibCode / output: Spi / file: listm'.dib
00:00:00   debug #45 writeDibCode / output: Spi / path: reflection.dib
00:00:00   debug #46 parseDibCode / output: Spi / file: reflection.dib
00:00:00   debug #47 writeDibCode / output: Spi / path: python.dib
00:00:00   debug #49 parseDibCode / output: Spi / file: python.dib
00:00:00   debug #50 writeDibCode / output: Spi / path: benchmark.dib
00:00:00   debug #51 parseDibCode / output: Spi / file: benchmark.dib
00:00:00   debug #48 writeDibCode / output: Spi / path: typescript.dib
00:00:00   debug #52 parseDibCode / output: Spi / file: typescript.dib
00:00:00   debug #53 writeDibCode / output: Spi / path: stream.dib
00:00:00   debug #54 parseDibCode / output: Spi / file: stream.dib
00:00:00   debug #55 writeDibCode / output: Spi / path: seq.dib
00:00:00   debug #56 writeDibCode / output: Spi / path: util.dib
00:00:00   debug #57 parseDibCode / output: Spi / file: seq.dib
00:00:00   debug #58 parseDibCode / output: Spi / file: util.dib
00:00:00   debug #59 writeDibCode / output: Spi / path: platform.dib
00:00:00   debug #60 parseDibCode / output: Spi / file: platform.dib
00:00:00   debug #61 writeDibCode / output: Spi / path: rust.dib
00:00:00   debug #62 parseDibCode / output: Spi / file: rust.dib
00:00:00   debug #63 writeDibCode / output: Spi / path: physics.dib
00:00:00   debug #64 parseDibCode / output: Spi / file: physics.dib
00:00:00   debug #65 writeDibCode / output: Spi / path: leptos/leptos.dib
00:00:00   debug #66 parseDibCode / output: Spi / file: leptos/leptos.dib
00:00:00   debug #67 writeDibCode / output: Spi / path: wasm.dib
00:00:00   debug #68 parseDibCode / output: Spi / file: wasm.dib
00:00:00 verbose #1 async.run_with_timeout_async / { timeout = 180 }
00:00:00   debug #1 runtime.execute_with_options_async / { options = { command = dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port 13805 --default-int i32 --default-float f64; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = Some <fun:main@570-7>; stdin = None; trace = true; working_directory = Some "C:\home\git\polyglot" } }
00:00:01 verbose #2 > 00:00:00   debug #1 pwd: C:\home\git\polyglot
00:00:01 verbose #3 > 00:00:00   debug #2 dllPath: C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release
00:00:01 verbose #4 > 00:00:00   debug #3 targetDir: C:\home\git\polyglot\target/spiral_Eval
00:00:01 verbose #2 async.run_with_timeout_async / { timeout = 100 }
00:00:01 verbose #3 networking.wait_for_port_access / { port = 13805; retry = 0; timeout = Some 100; status = true }
00:00:01 verbose #4 async.run_with_timeout_async / { timeout = 100 }
00:00:01 verbose #5 > Starting the Spiral Server. It is bound to: http://localhost:13805
00:00:01 verbose #5 async.run_with_timeout_async / { timeout = 100 }
00:00:01 verbose #1 Supervisor.sendJson / port: 13805 / json: {"Ping":true} / result:
00:00:01 verbose #2 awaitCompiler / Ping / result: 'Some(null)' / port: 13805 / retry: 0
00:00:02 verbose #6 > Server bound to: http://localhost:13805
00:00:02 verbose #6 async.run_with_timeout_async / { timeout = 180 }
00:00:02 verbose #7 async.run_with_timeout_async / { timeout = 180 }
00:00:02 verbose #8 async.run_with_timeout_async / { timeout = 180 }
00:00:02 verbose #9 async.run_with_timeout_async / { timeout = 180 }
00:00:02 verbose #10 async.run_with_timeout_async / { timeout = 180 }
00:00:02   debug #7 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: threading.spi
00:00:02   debug #7 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: async.spi
00:00:02   debug #7 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: networking.spi
00:00:02   debug #7 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: trace.spi
00:00:02   debug #7 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: runtime.spi
00:00:02   debug #8 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: runtime.spi
00:00:02   debug #12 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: networking.spi
00:00:02   debug #10 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: async.spi
00:00:02   debug #9 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: trace.spi
00:00:02   debug #11 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: threading.spi
00:00:02   debug #15 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: networking.spi
00:00:02   debug #15 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: runtime.spi
00:00:02   debug #15 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: async.spi
00:00:02   debug #16 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: trace.spi
00:00:02   debug #17 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: threading.spi
00:00:02 verbose #20 Supervisor.sendJson / port: 13805 / json: {"FileOpen":{"spiText":"/// # async\nopen rust_operators\n\n/// ## rust\n\n/// ### future\nnominal f...token_with_default_async x\u0027 : ()\n","uri":"file:///c:/home/git/polyglot/lib/spiral/async.spi"}} / result:
00:00:02 verbose #19 Supervisor.sendJson / port: 13805 / json: {"FileOpen":{"spiText":"/// # networking\nopen rust_operators\n\n/// ## rust\n\n/// ### reqwest_resp...!get_available_port x\u0027 : ()\n","uri":"file:///c:/home/git/polyglot/lib/spiral/networking.spi"}} / result:
00:00:02 verbose #19 Supervisor.sendJson / port: 13805 / json: {"FileOpen":{"spiText":"/// # runtime\nopen rust_operators\nopen sm\u0027_operators\n\n/// ## runtim...t_args x = !split_args x\u0027 : ()\n","uri":"file:///c:/home/git/polyglot/lib/spiral/runtime.spi"}} / result:
00:00:02 verbose #21 Supervisor.sendJson / port: 13805 / json: {"FileOpen":{"spiText":"/// # trace\n\n/// ## trace\n\n/// ### trace_level\nunion trace_level =\n   ...0027let trace x = !trace x\u0027 : ()\n","uri":"file:///c:/home/git/polyglot/lib/spiral/trace.spi"}} / result:
00:00:02 verbose #22 Supervisor.sendJson / port: 13805 / json: {"FileOpen":{"spiText":"/// # threading\nopen rust_operators\n\n/// ## rust\n\n/// ### sleep\ninl sl...new_disposable_token x\u0027 : ()\n","uri":"file:///c:/home/git/polyglot/lib/spiral/threading.spi"}} / result:
00:00:02 verbose #25 Supervisor.sendJson / port: 13805 / json: {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/lib/spiral/async.spi"}} / result:
00:00:02 verbose #24 Supervisor.sendJson / port: 13805 / json: {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/lib/spiral/threading.spi"}} / result:
00:00:02 verbose #26 Supervisor.sendJson / port: 13805 / json: {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/lib/spiral/runtime.spi"}} / result:
00:00:02 verbose #24 Supervisor.sendJson / port: 13805 / json: {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/lib/spiral/trace.spi"}} / result:
00:00:02 verbose #27 Supervisor.sendJson / port: 13805 / json: {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/lib/spiral/networking.spi"}} / result:
00:00:02 verbose #7 > 00:00:02   debug #4 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/lib/spiral/async.spi
00:00:02   debug #31 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: runtime.spi
00:00:02   debug #31 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: trace.spi
00:00:02   debug #31 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: async.spi
00:00:02   debug #32 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: networking.spi
00:00:02   debug #33 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: runtime.spi
00:00:02   debug #34 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: trace.spi
00:00:02   debug #36 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: async.spi
00:00:02   debug #31 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: threading.spi
00:00:02   debug #35 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: networking.spi
00:00:02   debug #37 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: threading.spi
00:00:02 verbose #8 > 00:00:02   debug #5 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/lib/spiral/runtime.spi
00:00:02 verbose #9 > 00:00:02   debug #6 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/lib/spiral/trace.spi
00:00:02 verbose #10 > 00:00:02   debug #7 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/lib/spiral/threading.spi
00:00:02 verbose #11 > 00:00:02   debug #8 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/lib/spiral/networking.spi
00:00:03   debug #39 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: trace.spi
00:00:03   debug #39 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: runtime.spi
00:00:03   debug #41 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: runtime.spi
00:00:03   debug #42 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: networking.spi
00:00:03   debug #43 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: networking.spi
00:00:03   debug #44 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: trace.spi
00:00:03   debug #45 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: threading.spi
00:00:03   debug #46 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: threading.spi
00:00:03   debug #46 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: async.spi
00:00:03   debug #47 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: async.spi
00:00:03   debug #50 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: trace.spi
00:00:03   debug #52 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: networking.spi
00:00:03   debug #50 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: async.spi
00:00:03   debug #54 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: networking.spi
00:00:03   debug #54 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: trace.spi
00:00:03   debug #50 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: threading.spi
00:00:03   debug #55 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: async.spi
00:00:03   debug #51 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: runtime.spi
00:00:03   debug #56 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: threading.spi
00:00:03   debug #57 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: runtime.spi
00:00:04   debug #58 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: networking.spi
00:00:04   debug #59 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: networking.spi
00:00:04   debug #60 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: threading.spi
00:00:04   debug #61 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: threading.spi
00:00:04   debug #62 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: runtime.spi
00:00:04   debug #63 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: runtime.spi
00:00:04   debug #64 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: trace.spi
00:00:04   debug #65 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: trace.spi
00:00:04   debug #66 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: async.spi
00:00:04   debug #67 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: async.spi
00:00:04   debug #68 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: async.spi
00:00:04   debug #69 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: async.spi
00:00:04   debug #70 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: trace.spi
00:00:04   debug #71 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: trace.spi
00:00:04   debug #72 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: runtime.spi
00:00:04   debug #73 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: runtime.spi
00:00:04   debug #74 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: threading.spi
00:00:04   debug #75 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: threading.spi
00:00:04   debug #76 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: networking.spi
00:00:04   debug #77 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: networking.spi
00:00:05   debug #78 Supervisor.buildFile / AsyncSeq.scan / outputContent:
let rec closure0 () (v0 : System.Threading.CancellationToken) : Async<System.Threading.CancellationToken> =
    let v3 : bool = true
    let mutable _...em.Threading.CancellationToken -> Async<System.Threading.CancellationToken>) = closure0()
let merge_cancellation_token_with_default_async x = v0 x
()
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: async.spi
00:00:05   debug #79 Supervisor.buildFile / takeWhileInclusive / outputContent:
let rec closure0 () (v0 : System.Threading.CancellationToken) : Async<System.Threading.CancellationToken> =
    let v3 : bool = true
    let mutable _...em.Threading.CancellationToken -> Async<System.Threading.CancellationToken>) = closure0()
let merge_cancellation_token_with_default_async x = v0 x
()
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: async.spi
00:00:05   debug #80 Supervisor.buildFile / AsyncSeq.scan / outputContent:
type Disposable (f : unit -> unit) = interface System.IDisposable with member _.Dispose () = f ()
type [<Struct>] US0 =
    | US0_0 of f0_0 : System.T...ading.CancellationToken option -> struct (System.Threading.CancellationToken * System.IDisposable)) = closure0()
let new_disposable_token x = v0 x
()
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: threading.spi
00:00:05   debug #81 Supervisor.buildFile / takeWhileInclusive / outputContent:
type Disposable (f : unit -> unit) = interface System.IDisposable with member _.Dispose () = f ()
type [<Struct>] US0 =
    | US0_0 of f0_0 : System.T...ading.CancellationToken option -> struct (System.Threading.CancellationToken * System.IDisposable)) = closure0()
let new_disposable_token x = v0 x
()
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: threading.spi
00:00:05   debug #83 FileSystem.watchWithFilter / Disposing watch stream / filter: FileName, LastWrite
00:00:05   debug #82 FileSystem.watchWithFilter / Disposing watch stream / filter: FileName, LastWrite
00:00:05   debug #84 Supervisor.buildFile / AsyncSeq.scan / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("std::string::String")>]
#endif
type std_string_String = class end
#if FABLE_COMPILER
[<Fable.C....IsNone then State.trace_state <- v2 v3 |> Some
let v9 : (US0 -> ((unit -> string) -> ((unit -> string) -> unit))) = closure2()
let trace x = v9 x
()
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: trace.spi
00:00:05   debug #85 Supervisor.buildFile / takeWhileInclusive / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("std::string::String")>]
#endif
type std_string_String = class end
#if FABLE_COMPILER
[<Fable.C....IsNone then State.trace_state <- v2 v3 |> Some
let v9 : (US0 -> ((unit -> string) -> ((unit -> string) -> unit))) = closure2()
let trace x = v9 x
()
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: trace.spi
00:00:05   debug #86 FileSystem.watchWithFilter / Disposing watch stream / filter: FileName, LastWrite
00:00:05 verbose #11 async.run_with_timeout_async / { timeout = 180 }
00:00:05 verbose #11 async.run_with_timeout_async / { timeout = 180 }
00:00:05   debug #88 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: crypto.spi
00:00:05   debug #88 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: common.spi
00:00:05   debug #89 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: common.spi
00:00:05   debug #90 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: crypto.spi
00:00:05   debug #91 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: common.spi
00:00:05   debug #92 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: crypto.spi
00:00:05 verbose #93 Supervisor.sendJson / port: 13805 / json: {"FileOpen":{"spiText":"/// # common\n\n/// ## common\n\n/// ### (:\u003E)\nprototype (~:\u003E) r :...et memoize x = !memoize x\u0027 : ()\n","uri":"file:///c:/home/git/polyglot/lib/spiral/common.spi"}} / result:
00:00:05 verbose #94 Supervisor.sendJson / port: 13805 / json: {"FileOpen":{"spiText":"/// # crypto\nopen rust_operators\n\n/// ## fsharp\n\n/// ### sha256\nnomina..._port x = !hash_to_port x\u0027 : ()\n","uri":"file:///c:/home/git/polyglot/lib/spiral/crypto.spi"}} / result:
00:00:05 verbose #12 > 00:00:04   debug #9 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/lib/spiral/common.spi
00:00:05   debug #95 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: runtime.spi
00:00:05   debug #96 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: runtime.spi
00:00:05 verbose #97 Supervisor.sendJson / port: 13805 / json: {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/lib/spiral/common.spi"}} / result:
00:00:05 verbose #12 async.run_with_timeout_async / { timeout = 180 }
00:00:05 verbose #13 > 00:00:04   debug #10 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/lib/spiral/crypto.spi
00:00:05   debug #98 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: networking.spi
00:00:05   debug #99 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: networking.spi
00:00:05 verbose #100 Supervisor.sendJson / port: 13805 / json: {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/lib/spiral/crypto.spi"}} / result:
00:00:05   debug #101 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: date_time.spi
00:00:05   debug #102 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: date_time.spi
00:00:05   debug #103 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: date_time.spi
00:00:05 verbose #104 Supervisor.sendJson / port: 13805 / json: {"FileOpen":{"spiText":"/// # date_time\nopen rust_operators\nopen sm\u0027_operators\n\n/// ## date... x = !format_iso8601 x\u0027 : ()\n","uri":"file:///c:/home/git/polyglot/lib/spiral/date_time.spi"}} / result:
00:00:05 verbose #14 > 00:00:04   debug #11 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/lib/spiral/date_time.spi
00:00:05 verbose #105 Supervisor.sendJson / port: 13805 / json: {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/lib/spiral/date_time.spi"}} / result:
00:00:05   debug #106 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: crypto.spi
00:00:05   debug #107 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: crypto.spi
00:00:05   debug #108 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: common.spi
00:00:05   debug #109 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: common.spi
00:00:06   debug #110 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: runtime.spi
00:00:06   debug #111 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: runtime.spi
00:00:06   debug #112 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: networking.spi
00:00:06   debug #113 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: networking.spi
00:00:06   debug #114 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: date_time.spi
00:00:06   debug #115 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: date_time.spi
00:00:06   debug #116 Supervisor.buildFile / AsyncSeq.scan / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("std::string::String")>]
#endif
type std_string_String = class end
#if FABLE_COMPILER
[<Fable.C...nit -> unit) -> unit option)) = closure3()
let retry_fn x = v10 x
let v11 : ((unit -> unit) -> (unit -> unit)) = closure11()
let memoize x = v11 x
()
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: common.spi
00:00:06   debug #117 Supervisor.buildFile / takeWhileInclusive / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("std::string::String")>]
#endif
type std_string_String = class end
#if FABLE_COMPILER
[<Fable.C...nit -> unit) -> unit option)) = closure3()
let retry_fn x = v10 x
let v11 : ((unit -> unit) -> (unit -> unit)) = closure11()
let memoize x = v11 x
()
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: common.spi
00:00:06   debug #118 FileSystem.watchWithFilter / Disposing watch stream / filter: FileName, LastWrite
00:00:06   debug #119 Supervisor.buildFile / AsyncSeq.scan / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("chrono::DateTime<$0>")>]
#endif
type chrono_DateTime<'T> = class end
#if FABLE_COMPILER
[<Fabl...g -> (System.DateTime -> string)) = closure11()
let format x = v6 x
let v7 : (System.DateTime -> string) = closure13()
let format_iso8601 x = v7 x
()
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: date_time.spi
00:00:06   debug #120 Supervisor.buildFile / takeWhileInclusive / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("chrono::DateTime<$0>")>]
#endif
type chrono_DateTime<'T> = class end
#if FABLE_COMPILER
[<Fabl...g -> (System.DateTime -> string)) = closure11()
let format x = v6 x
let v7 : (System.DateTime -> string) = closure13()
let format_iso8601 x = v7 x
()
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: date_time.spi
00:00:06   debug #121 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: crypto.spi
00:00:06   debug #122 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: crypto.spi
00:00:06   debug #123 FileSystem.watchWithFilter / Disposing watch stream / filter: FileName, LastWrite
00:00:06 verbose #13 async.run_with_timeout_async / { timeout = 180 }
00:00:06   debug #124 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: runtime.spi
00:00:06   debug #125 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: runtime.spi
00:00:06   debug #126 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: platform.spi
00:00:06   debug #127 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: platform.spi
00:00:06   debug #128 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: platform.spi
00:00:06 verbose #129 Supervisor.sendJson / port: 13805 / json: {"FileOpen":{"spiText":"/// # platform\nopen rust_operators\n\n/// ## fsharp\n\n/// ### os_platform\...et_executable_suffix ()\u0027 : ()\n","uri":"file:///c:/home/git/polyglot/lib/spiral/platform.spi"}} / result:
00:00:06   debug #130 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: networking.spi
00:00:06   debug #131 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: networking.spi
00:00:06 verbose #132 Supervisor.sendJson / port: 13805 / json: {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/lib/spiral/platform.spi"}} / result:
00:00:06 verbose #15 > 00:00:05   debug #12 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/lib/spiral/platform.spi
00:00:06 verbose #14 async.run_with_timeout_async / { timeout = 180 }
00:00:06   debug #133 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: file_system.spi
00:00:06   debug #134 Supervisor.buildFile / AsyncSeq.scan / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("Vec<$0>")>]
#endif
type Vec<'T> = class end
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.... 1024us
    v13
let v0 : (string -> string) = closure0()
let hash_text x = v0 x
let v1 : (string -> uint16) = closure1()
let hash_to_port x = v1 x
()
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: crypto.spi
00:00:06   debug #135 Supervisor.buildFile / takeWhileInclusive / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("Vec<$0>")>]
#endif
type Vec<'T> = class end
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.... 1024us
    v13
let v0 : (string -> string) = closure0()
let hash_text x = v0 x
let v1 : (string -> uint16) = closure1()
let hash_to_port x = v1 x
()
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: crypto.spi
00:00:06   debug #136 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: file_system.spi
00:00:06   debug #137 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: file_system.spi
00:00:06   debug #138 FileSystem.watchWithFilter / Disposing watch stream / filter: FileName, LastWrite
00:00:06   debug #139 Supervisor.buildFile / AsyncSeq.scan / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("std::string::String")>]
#endif
type std_string_String = class end
#if FABLE_COMPILER
[<Fable.C...ng option)) = closure28()
let execution_options x = v12 x
let v13 : (string -> Result<(string []), string>) = closure29()
let split_args x = v13 x
()
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: runtime.spi
00:00:06   debug #140 Supervisor.buildFile / takeWhileInclusive / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("std::string::String")>]
#endif
type std_string_String = class end
#if FABLE_COMPILER
[<Fable.C...ng option)) = closure28()
let execution_options x = v12 x
let v13 : (string -> Result<(string []), string>) = closure29()
let split_args x = v13 x
()
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: runtime.spi
00:00:06   debug #141 FileSystem.watchWithFilter / Disposing watch stream / filter: FileName, LastWrite
00:00:06 verbose #142 Supervisor.sendJson / port: 13805 / json: {"FileOpen":{"spiText":"/// # file_system\nopen sm\u0027_operators\nopen rust_operators\n\n/// ## fs...003E) x = !combine x\u0027 : ()\n","uri":"file:///c:/home/git/polyglot/lib/spiral/file_system.spi"}} / result:
00:00:06   debug #143 Supervisor.buildFile / AsyncSeq.scan / outputContent:
type [<Struct>] US0 =
    | US0_0
    | US0_1
    | US0_2
and [<Struct>] US1 =
    | US1_0 of f0_0 : US0
    | US1_1 of f1_0 : US0
    | US1_2 of f2_0...    v31
let v0 : (unit -> bool) = closure0()
let is_windows () = v0 ()
let v1 : (unit -> string) = closure1()
let get_executable_suffix () = v1 ()
()
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: platform.spi
00:00:06   debug #144 Supervisor.buildFile / takeWhileInclusive / outputContent:
type [<Struct>] US0 =
    | US0_0
    | US0_1
    | US0_2
and [<Struct>] US1 =
    | US1_0 of f0_0 : US0
    | US1_1 of f1_0 : US0
    | US1_2 of f2_0...    v31
let v0 : (unit -> bool) = closure0()
let is_windows () = v0 ()
let v1 : (unit -> string) = closure1()
let get_executable_suffix () = v1 ()
()
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: platform.spi
00:00:06   debug #145 FileSystem.watchWithFilter / Disposing watch stream / filter: FileName, LastWrite
00:00:06   debug #146 FileSystem.watchWithFilter / Disposing watch stream / filter: FileName, LastWrite
00:00:06   debug #147 FileSystem.watchWithFilter / Disposing watch stream / filter: FileName, LastWrite
00:00:06   debug #148 FileSystem.watchWithFilter / Disposing watch stream / filter: FileName, LastWrite
00:00:06 verbose #16 > 00:00:05   debug #13 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/lib/spiral/file_system.spi
00:00:06   debug #149 FileSystem.watchWithFilter / Disposing watch stream / filter: FileName, LastWrite
00:00:06 verbose #15 networking.wait_for_port_access / { port = 13805; retry = 0; timeout = Some 100; status = false }
00:00:06 verbose #16 async.run_with_timeout_async / { timeout = 100 }
00:00:06 critical #150 runWithTimeoutAsync** / ex: System.AggregateException: One or more errors occurred. (The process cannot access the file 'C:\home\git\polyglot\lib\spiral\platform.fsx' because it is being used by another process.)
 ---> System.IO.IOException: The process cannot access the file 'C:\home\git\polyglot\lib\spiral\platform.fsx' because it is being used by another process.
   at Microsoft.Win32.SafeHandles.SafeFileHandle.CreateFile(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options)
   at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable`1 unixCreateMode)
   at System.IO.File.OpenHandle(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
   at System.IO.File.WriteToFileAsync(String path, FileMode mode, String contents, Encoding encoding, CancellationToken cancellationToken)
   --- End of inner exception stack trace ---
   at Microsoft.FSharp.Control.AsyncResult`1.Commit() in D:\a\_work\1\s\src\FSharp.Core\async.fs:line 454
   at <StartupCode$FSharp-Core>.$Async.AwaitAndBindChildResult@1972-6.Invoke(Boolean ok) in D:\a\_work\1\s\src\FSharp.Core\async.fs:line 1974
   at Microsoft.FSharp.Control.AsyncPrimitives.CallThenInvokeNoHijackCheck[a,b](AsyncActivation`1 ctxt, b result1, FSharpFunc`2 userCode) in D:\a\_work\1\s\src\FSharp.Core\async.fs:line 528
   at Microsoft.FSharp.Control.Trampoline.Execute(FSharpFunc`2 firstAction) in D:\a\_work\1\s\src\FSharp.Core\async.fs:line 112 / timeout: 3600000

# Invoke-Block / $retry: 1/3 / $Location:  / Get-Location: C:\home\git\polyglot\lib\spiral / $OnError: Stop / $exitcode: 1 / $EnvVars: {
  "PATH": "C:\\Users\\i574n\\scoop\\apps\\pwsh\\current;C:\\Program Files\\NVIDIA\\CUDNN\\v9.1\\bin;C:\\ProgramData\\scoop\\shims;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\ProgramData\\chocolatey\\bin;C:\\Program Files\\dotnet\\;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\Intel\\WiFi\\bin\\;C:\\Program Files\\Common Files\\Intel\\WirelessCommon\\;C:\\Program Files\\Perforce;C:\\Users\\i574n\\scoop\\apps\\vscode-insiders\\current\\bin;C:\\Users\\i574n\\scoop\\apps\\elixir\\current\\bin;C:\\Users\\i574n\\scoop\\apps\\python\\current\\Scripts;C:\\Users\\i574n\\scoop\\apps\\rustup\\current\\.cargo\\bin;C:\\Users\\i574n\\scoop\\apps\\latex\\current\\texmfs\\install\\miktex\\bin\\x64;C:\\Users\\i574n\\scoop\\apps\\dotnet-sdk-preview\\current;C:\\Users\\i574n\\scoop\\apps\\dotnet-sdk\\current;C:\\Users\\i574n\\scoop\\apps\\gsudo\\current;C:\\Users\\i574n\\scoop\\apps\\python\\current;C:\\Users\\i574n\\scoop\\apps\\nircmd\\current;C:\\Users\\i574n\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\i574n/scoop/buckets/mold/home/windows/path;C:\\Users\\i574n/scoop/persist/rustup/.cargo/bin;C:\\Users\\i574n/scoop/apps/nvm/current/nodejs/nodejs;C:\\Users\\i574n/scoop/apps/cygwin/current/root/bin;C:\\Users\\i574n\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\i574n\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\i574n\\.bun\\bin;C:\\Users\\i574n\\.dotnet\\tools;C:\\Users\\i574n\\scoop\\shims;C:\\Users\\i574n\\.fly\\bin;C:\\Users\\i574n/.cargo/bin;C:\\Users\\i574n/.bun/bin;C:\\Users\\i574n/.cargo/bin;C:\\Users\\i574n/.bun/bin;C:\\Users\\i574n/.cargo/bin;C:\\Users\\i574n/.bun/bin"
} / $Error: '' / $ScriptBlock:
'. ../../apps/spiral/dist/Supervisor$(_exe) --parallel --build-file async.spi async_.fsx --build-file runtime.spi runtime.fsx --build-file trace.spi trace.fsx --build-file threading.spi threading.fsx --build-file networking.spi networking.fsx --build-file crypto.spi crypto.fsx --build-file common.spi common.fsx --build-file date_time.spi date_time.fsx --build-file platform.spi platform.fsx --build-file file_system.spi file_system.fsx --build-file guid.spi guid.fsx --build-file "sm'.spi" sm.fsx'

00:00:00 verbose #1 async.run_with_timeout_async / { timeout = 180 }
00:00:00   debug #1 runtime.execute_with_options_async / { options = { command = dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port 13805 --default-int i32 --default-float f64; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = Some <fun:main@570-7>; stdin = None; trace = true; working_directory = Some "C:\home\git\polyglot" } }
00:00:01 verbose #2 > 00:00:00   debug #1 pwd: C:\home\git\polyglot
00:00:01 verbose #3 > 00:00:00   debug #2 dllPath: C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release
00:00:01 verbose #4 > 00:00:00   debug #3 targetDir: C:\home\git\polyglot\target/spiral_Eval
00:00:01 verbose #2 async.run_with_timeout_async / { timeout = 100 }
00:00:01 verbose #3 networking.wait_for_port_access / { port = 13805; retry = 0; timeout = Some 100; status = true }
00:00:01 verbose #4 async.run_with_timeout_async / { timeout = 100 }
00:00:01 verbose #5 > Starting the Spiral Server. It is bound to: http://localhost:13805
00:00:01 verbose #5 async.run_with_timeout_async / { timeout = 100 }
00:00:01 verbose #1 Supervisor.sendJson / port: 13805 / json: {"Ping":true} / result:
00:00:01 verbose #2 awaitCompiler / Ping / result: 'Some(null)' / port: 13805 / retry: 0
00:00:02 verbose #6 > Server bound to: http://localhost:13805
00:00:02 verbose #6 async.run_with_timeout_async / { timeout = 180 }
00:00:02 verbose #8 async.run_with_timeout_async / { timeout = 180 }
00:00:02 verbose #8 async.run_with_timeout_async / { timeout = 180 }
00:00:02 verbose #9 async.run_with_timeout_async / { timeout = 180 }
00:00:02 verbose #10 async.run_with_timeout_async / { timeout = 180 }
00:00:02   debug #7 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: networking.spi
00:00:02   debug #7 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: trace.spi
00:00:02   debug #7 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: async.spi
00:00:02   debug #7 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: threading.spi
00:00:02   debug #7 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: runtime.spi
00:00:02   debug #8 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: runtime.spi
00:00:02   debug #11 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: threading.spi
00:00:02   debug #12 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: async.spi
00:00:02   debug #10 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: networking.spi
00:00:02   debug #10 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: trace.spi
00:00:02   debug #16 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: threading.spi
00:00:02   debug #17 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: runtime.spi
00:00:02   debug #17 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: networking.spi
00:00:02   debug #16 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: trace.spi
00:00:02   debug #16 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: async.spi
00:00:02 verbose #21 Supervisor.sendJson / port: 13805 / json: {"FileOpen":{"spiText":"/// # networking\nopen rust_operators\n\n/// ## rust\n\n/// ### reqwest_resp...!get_available_port x\u0027 : ()\n","uri":"file:///c:/home/git/polyglot/lib/spiral/networking.spi"}} / result:
00:00:02 verbose #20 Supervisor.sendJson / port: 13805 / json: {"FileOpen":{"spiText":"/// # trace\n\n/// ## trace\n\n/// ### trace_level\nunion trace_level =\n   ...0027let trace x = !trace x\u0027 : ()\n","uri":"file:///c:/home/git/polyglot/lib/spiral/trace.spi"}} / result:
00:00:02 verbose #22 Supervisor.sendJson / port: 13805 / json: {"FileOpen":{"spiText":"/// # async\nopen rust_operators\n\n/// ## rust\n\n/// ### future\nnominal f...token_with_default_async x\u0027 : ()\n","uri":"file:///c:/home/git/polyglot/lib/spiral/async.spi"}} / result:
00:00:02 verbose #20 Supervisor.sendJson / port: 13805 / json: {"FileOpen":{"spiText":"/// # threading\nopen rust_operators\n\n/// ## rust\n\n/// ### sleep\ninl sl...new_disposable_token x\u0027 : ()\n","uri":"file:///c:/home/git/polyglot/lib/spiral/threading.spi"}} / result:
00:00:02 verbose #20 Supervisor.sendJson / port: 13805 / json: {"FileOpen":{"spiText":"/// # runtime\nopen rust_operators\nopen sm\u0027_operators\n\n/// ## runtim...t_args x = !split_args x\u0027 : ()\n","uri":"file:///c:/home/git/polyglot/lib/spiral/runtime.spi"}} / result:
00:00:02 verbose #25 Supervisor.sendJson / port: 13805 / json: {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/lib/spiral/async.spi"}} / result:
00:00:02 verbose #26 Supervisor.sendJson / port: 13805 / json: {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/lib/spiral/threading.spi"}} / result:
00:00:02 verbose #27 Supervisor.sendJson / port: 13805 / json: {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/lib/spiral/networking.spi"}} / result:
00:00:02 verbose #25 Supervisor.sendJson / port: 13805 / json: {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/lib/spiral/trace.spi"}} / result:
00:00:02 verbose #25 Supervisor.sendJson / port: 13805 / json: {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/lib/spiral/runtime.spi"}} / result:
00:00:02   debug #32 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: trace.spi
00:00:02   debug #32 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: async.spi
00:00:02   debug #32 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: threading.spi
00:00:02   debug #33 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: trace.spi
00:00:02   debug #34 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: async.spi
00:00:02   debug #32 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: networking.spi
00:00:02   debug #32 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: runtime.spi
00:00:02   debug #35 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: threading.spi
00:00:02   debug #36 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: networking.spi
00:00:02   debug #37 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: runtime.spi
00:00:02 verbose #7 > 00:00:02   debug #4 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/lib/spiral/threading.spi
00:00:02 verbose #8 > 00:00:02   debug #5 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/lib/spiral/async.spi
00:00:02 verbose #9 > 00:00:02   debug #6 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/lib/spiral/trace.spi
00:00:03 verbose #10 > 00:00:02   debug #7 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/lib/spiral/runtime.spi
00:00:03 verbose #11 > 00:00:02   debug #8 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/lib/spiral/networking.spi
00:00:03   debug #40 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: networking.spi
00:00:03   debug #40 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: runtime.spi
00:00:03   debug #40 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: async.spi
00:00:03   debug #41 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: networking.spi
00:00:03   debug #43 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: runtime.spi
00:00:03   debug #43 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: threading.spi
00:00:03   debug #44 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: async.spi
00:00:03   debug #45 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: threading.spi
00:00:03   debug #46 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: trace.spi
00:00:03   debug #47 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: trace.spi
00:00:03   debug #49 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: async.spi
00:00:03   debug #52 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: threading.spi
00:00:03   debug #51 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: runtime.spi
00:00:03   debug #53 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: async.spi
00:00:03   debug #49 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: trace.spi
00:00:03   debug #54 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: threading.spi
00:00:03   debug #52 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: networking.spi
00:00:03   debug #55 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: runtime.spi
00:00:03   debug #56 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: trace.spi
00:00:03   debug #57 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: networking.spi
00:00:04   debug #59 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: trace.spi
00:00:04   debug #59 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: networking.spi
00:00:04   debug #60 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: runtime.spi
00:00:04   debug #61 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: networking.spi
00:00:04   debug #62 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: runtime.spi
00:00:04   debug #64 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: async.spi
00:00:04   debug #64 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: threading.spi
00:00:04   debug #65 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: async.spi
00:00:04   debug #66 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: threading.spi
00:00:04   debug #67 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: trace.spi
00:00:04   debug #68 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: threading.spi
00:00:04   debug #69 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: threading.spi
00:00:04   debug #70 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: async.spi
00:00:04   debug #71 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: async.spi
00:00:04   debug #72 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: trace.spi
00:00:04   debug #73 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: networking.spi
00:00:04   debug #74 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: networking.spi
00:00:04   debug #75 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: trace.spi
00:00:04   debug #76 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: runtime.spi
00:00:04   debug #77 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: runtime.spi
00:00:05   debug #78 Supervisor.buildFile / AsyncSeq.scan / outputContent:
let rec closure0 () (v0 : System.Threading.CancellationToken) : Async<System.Threading.CancellationToken> =
    let v3 : bool = true
    let mutable _...em.Threading.CancellationToken -> Async<System.Threading.CancellationToken>) = closure0()
let merge_cancellation_token_with_default_async x = v0 x
()
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: async.spi
00:00:05   debug #79 Supervisor.buildFile / takeWhileInclusive / outputContent:
let rec closure0 () (v0 : System.Threading.CancellationToken) : Async<System.Threading.CancellationToken> =
    let v3 : bool = true
    let mutable _...em.Threading.CancellationToken -> Async<System.Threading.CancellationToken>) = closure0()
let merge_cancellation_token_with_default_async x = v0 x
()
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: async.spi
00:00:05   debug #80 Supervisor.buildFile / AsyncSeq.scan / outputContent:
type Disposable (f : unit -> unit) = interface System.IDisposable with member _.Dispose () = f ()
type [<Struct>] US0 =
    | US0_0 of f0_0 : System.T...ading.CancellationToken option -> struct (System.Threading.CancellationToken * System.IDisposable)) = closure0()
let new_disposable_token x = v0 x
()
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: threading.spi
00:00:05   debug #81 Supervisor.buildFile / takeWhileInclusive / outputContent:
type Disposable (f : unit -> unit) = interface System.IDisposable with member _.Dispose () = f ()
type [<Struct>] US0 =
    | US0_0 of f0_0 : System.T...ading.CancellationToken option -> struct (System.Threading.CancellationToken * System.IDisposable)) = closure0()
let new_disposable_token x = v0 x
()
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: threading.spi
00:00:05   debug #83 FileSystem.watchWithFilter / Disposing watch stream / filter: FileName, LastWrite
00:00:05   debug #82 FileSystem.watchWithFilter / Disposing watch stream / filter: FileName, LastWrite
00:00:05 verbose #11 async.run_with_timeout_async / { timeout = 180 }
00:00:05   debug #84 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: crypto.spi
00:00:05   debug #85 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: crypto.spi
00:00:05   debug #86 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: crypto.spi
00:00:05   debug #87 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: trace.spi
00:00:05   debug #88 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: trace.spi
00:00:05 verbose #12 async.run_with_timeout_async / { timeout = 180 }
00:00:05   debug #89 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: networking.spi
00:00:05   debug #90 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: networking.spi
00:00:05   debug #91 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: runtime.spi
00:00:05   debug #92 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: runtime.spi
00:00:05   debug #93 Supervisor.buildFile / AsyncSeq.scan / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("std::string::String")>]
#endif
type std_string_String = class end
#if FABLE_COMPILER
[<Fable.C....IsNone then State.trace_state <- v2 v3 |> Some
let v9 : (US0 -> ((unit -> string) -> ((unit -> string) -> unit))) = closure2()
let trace x = v9 x
()
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: trace.spi
00:00:05   debug #94 Supervisor.buildFile / takeWhileInclusive / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("std::string::String")>]
#endif
type std_string_String = class end
#if FABLE_COMPILER
[<Fable.C....IsNone then State.trace_state <- v2 v3 |> Some
let v9 : (US0 -> ((unit -> string) -> ((unit -> string) -> unit))) = closure2()
let trace x = v9 x
()
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: trace.spi
00:00:05   debug #95 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: common.spi
00:00:05   debug #96 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: common.spi
00:00:05   debug #97 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: common.spi
00:00:05 verbose #98 Supervisor.sendJson / port: 13805 / json: {"FileOpen":{"spiText":"/// # crypto\nopen rust_operators\n\n/// ## fsharp\n\n/// ### sha256\nnomina..._port x = !hash_to_port x\u0027 : ()\n","uri":"file:///c:/home/git/polyglot/lib/spiral/crypto.spi"}} / result:
00:00:05   debug #99 FileSystem.watchWithFilter / Disposing watch stream / filter: FileName, LastWrite
00:00:05 verbose #100 Supervisor.sendJson / port: 13805 / json: {"FileOpen":{"spiText":"/// # common\n\n/// ## common\n\n/// ### (:\u003E)\nprototype (~:\u003E) r :...et memoize x = !memoize x\u0027 : ()\n","uri":"file:///c:/home/git/polyglot/lib/spiral/common.spi"}} / result:
00:00:05 verbose #12 > 00:00:04   debug #9 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/lib/spiral/crypto.spi
00:00:05 verbose #101 Supervisor.sendJson / port: 13805 / json: {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/lib/spiral/crypto.spi"}} / result:
00:00:05 verbose #13 > 00:00:04   debug #10 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/lib/spiral/common.spi
00:00:05 verbose #102 Supervisor.sendJson / port: 13805 / json: {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/lib/spiral/common.spi"}} / result:
00:00:05 verbose #13 async.run_with_timeout_async / { timeout = 180 }
00:00:05   debug #103 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: date_time.spi
00:00:05   debug #104 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: date_time.spi
00:00:05   debug #105 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: date_time.spi
00:00:05 verbose #106 Supervisor.sendJson / port: 13805 / json: {"FileOpen":{"spiText":"/// # date_time\nopen rust_operators\nopen sm\u0027_operators\n\n/// ## date... x = !format_iso8601 x\u0027 : ()\n","uri":"file:///c:/home/git/polyglot/lib/spiral/date_time.spi"}} / result:
00:00:05 verbose #14 > 00:00:05   debug #11 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/lib/spiral/date_time.spi
00:00:05   debug #107 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: crypto.spi
00:00:05   debug #108 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: crypto.spi
00:00:05   debug #109 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: common.spi
00:00:05   debug #110 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: common.spi
00:00:05   debug #111 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: runtime.spi
00:00:05   debug #112 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: runtime.spi
00:00:06   debug #113 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: networking.spi
00:00:06   debug #114 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: networking.spi
00:00:06 verbose #115 Supervisor.sendJson / port: 13805 / json: {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/lib/spiral/date_time.spi"}} / result:
00:00:06   debug #116 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: date_time.spi
00:00:06   debug #117 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: date_time.spi
00:00:06   debug #118 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: networking.spi
00:00:06   debug #119 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: networking.spi
00:00:06   debug #120 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: runtime.spi
00:00:06   debug #121 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: runtime.spi
00:00:06   debug #122 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: common.spi
00:00:06   debug #123 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: common.spi
00:00:06   debug #124 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: crypto.spi
00:00:06   debug #125 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: crypto.spi
00:00:06   debug #126 Supervisor.buildFile / AsyncSeq.scan / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("std::string::String")>]
#endif
type std_string_String = class end
#if FABLE_COMPILER
[<Fable.C...nit -> unit) -> unit option)) = closure3()
let retry_fn x = v10 x
let v11 : ((unit -> unit) -> (unit -> unit)) = closure11()
let memoize x = v11 x
()
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: common.spi
00:00:06   debug #127 Supervisor.buildFile / takeWhileInclusive / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("std::string::String")>]
#endif
type std_string_String = class end
#if FABLE_COMPILER
[<Fable.C...nit -> unit) -> unit option)) = closure3()
let retry_fn x = v10 x
let v11 : ((unit -> unit) -> (unit -> unit)) = closure11()
let memoize x = v11 x
()
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: common.spi
00:00:06   debug #128 FileSystem.watchWithFilter / Disposing watch stream / filter: FileName, LastWrite
00:00:06   debug #129 Supervisor.buildFile / AsyncSeq.scan / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("chrono::DateTime<$0>")>]
#endif
type chrono_DateTime<'T> = class end
#if FABLE_COMPILER
[<Fabl...g -> (System.DateTime -> string)) = closure11()
let format x = v6 x
let v7 : (System.DateTime -> string) = closure13()
let format_iso8601 x = v7 x
()
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: date_time.spi
00:00:06   debug #130 Supervisor.buildFile / takeWhileInclusive / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("chrono::DateTime<$0>")>]
#endif
type chrono_DateTime<'T> = class end
#if FABLE_COMPILER
[<Fabl...g -> (System.DateTime -> string)) = closure11()
let format x = v6 x
let v7 : (System.DateTime -> string) = closure13()
let format_iso8601 x = v7 x
()
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: date_time.spi
00:00:06   debug #131 FileSystem.watchWithFilter / Disposing watch stream / filter: FileName, LastWrite
00:00:06 verbose #14 async.run_with_timeout_async / { timeout = 180 }
00:00:07 verbose #15 async.run_with_timeout_async / { timeout = 180 }
00:00:07   debug #132 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: crypto.spi
00:00:07   debug #133 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: crypto.spi
00:00:07   debug #134 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: runtime.spi
00:00:07   debug #135 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: runtime.spi
00:00:07   debug #136 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: networking.spi
00:00:07   debug #137 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: networking.spi
00:00:07   debug #138 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: file_system.spi
00:00:07   debug #139 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: platform.spi
00:00:07   debug #140 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: file_system.spi
00:00:07   debug #141 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: file_system.spi
00:00:07   debug #142 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: platform.spi
00:00:07   debug #143 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: platform.spi
00:00:07 verbose #144 Supervisor.sendJson / port: 13805 / json: {"FileOpen":{"spiText":"/// # platform\nopen rust_operators\n\n/// ## fsharp\n\n/// ### os_platform\...et_executable_suffix ()\u0027 : ()\n","uri":"file:///c:/home/git/polyglot/lib/spiral/platform.spi"}} / result:
00:00:07 verbose #145 Supervisor.sendJson / port: 13805 / json: {"FileOpen":{"spiText":"/// # file_system\nopen sm\u0027_operators\nopen rust_operators\n\n/// ## fs...003E) x = !combine x\u0027 : ()\n","uri":"file:///c:/home/git/polyglot/lib/spiral/file_system.spi"}} / result:
00:00:07 verbose #15 > 00:00:06   debug #12 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/lib/spiral/platform.spi
00:00:07 verbose #146 Supervisor.sendJson / port: 13805 / json: {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/lib/spiral/platform.spi"}} / result:
00:00:07 verbose #16 > 00:00:06   debug #13 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/lib/spiral/file_system.spi
00:00:07 verbose #147 Supervisor.sendJson / port: 13805 / json: {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/lib/spiral/file_system.spi"}} / result:
00:00:07   debug #148 Supervisor.buildFile / AsyncSeq.scan / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("Vec<$0>")>]
#endif
type Vec<'T> = class end
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.... 1024us
    v13
let v0 : (string -> string) = closure0()
let hash_text x = v0 x
let v1 : (string -> uint16) = closure1()
let hash_to_port x = v1 x
()
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: crypto.spi
00:00:07   debug #149 Supervisor.buildFile / takeWhileInclusive / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("Vec<$0>")>]
#endif
type Vec<'T> = class end
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.... 1024us
    v13
let v0 : (string -> string) = closure0()
let hash_text x = v0 x
let v1 : (string -> uint16) = closure1()
let hash_to_port x = v1 x
()
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: crypto.spi
00:00:07   debug #150 Supervisor.buildFile / AsyncSeq.scan / outputContent:
type [<Struct>] US0 =
    | US0_0
    | US0_1
    | US0_2
and [<Struct>] US1 =
    | US1_0 of f0_0 : US0
    | US1_1 of f1_0 : US0
    | US1_2 of f2_0...    v31
let v0 : (unit -> bool) = closure0()
let is_windows () = v0 ()
let v1 : (unit -> string) = closure1()
let get_executable_suffix () = v1 ()
()
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: platform.spi
00:00:07   debug #151 Supervisor.buildFile / takeWhileInclusive / outputContent:
type [<Struct>] US0 =
    | US0_0
    | US0_1
    | US0_2
and [<Struct>] US1 =
    | US1_0 of f0_0 : US0
    | US1_1 of f1_0 : US0
    | US1_2 of f2_0...    v31
let v0 : (unit -> bool) = closure0()
let is_windows () = v0 ()
let v1 : (unit -> string) = closure1()
let get_executable_suffix () = v1 ()
()
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: platform.spi
00:00:07   debug #152 FileSystem.watchWithFilter / Disposing watch stream / filter: FileName, LastWrite
00:00:07   debug #153 FileSystem.watchWithFilter / Disposing watch stream / filter: FileName, LastWrite
00:00:07   debug #154 Supervisor.buildFile / AsyncSeq.scan / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("std::string::String")>]
#endif
type std_string_String = class end
#if FABLE_COMPILER
[<Fable.C...ng option)) = closure28()
let execution_options x = v12 x
let v13 : (string -> Result<(string []), string>) = closure29()
let split_args x = v13 x
()
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: runtime.spi
00:00:07   debug #155 Supervisor.buildFile / takeWhileInclusive / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("std::string::String")>]
#endif
type std_string_String = class end
#if FABLE_COMPILER
[<Fable.C...ng option)) = closure28()
let execution_options x = v12 x
let v13 : (string -> Result<(string []), string>) = closure29()
let split_args x = v13 x
()
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: runtime.spi
00:00:07   debug #156 FileSystem.watchWithFilter / Disposing watch stream / filter: FileName, LastWrite
00:00:07   debug #158 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: networking.spi
00:00:07   debug #158 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: file_system.spi
00:00:07   debug #159 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: networking.spi
00:00:07   debug #160 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: file_system.spi
00:00:07   debug #161 Supervisor.buildFile / AsyncSeq.scan / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("std::string::String")>]
#endif
type std_string_String = class end
#if FABLE_COMPILER
[<Fable.C...
let wait_for_port_access x = v11 x
let v12 : (int32 option -> (string -> (int32 -> Async<int32>))) = closure25()
let get_available_port x = v12 x
()
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: networking.spi
00:00:07   debug #162 Supervisor.buildFile / takeWhileInclusive / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("std::string::String")>]
#endif
type std_string_String = class end
#if FABLE_COMPILER
[<Fable.C...
let wait_for_port_access x = v11 x
let v12 : (int32 option -> (string -> (int32 -> Async<int32>))) = closure25()
let get_available_port x = v12 x
()
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: networking.spi
00:00:07   debug #163 FileSystem.watchWithFilter / Disposing watch stream / filter: FileName, LastWrite
00:00:07 verbose #16 async.run_with_timeout_async / { timeout = 180 }
00:00:07   debug #164 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: guid.spi
00:00:07   debug #165 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: guid.spi
00:00:07   debug #166 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: guid.spi
00:00:07 verbose #17 async.run_with_timeout_async / { timeout = 180 }
00:00:07 verbose #167 Supervisor.sendJson / port: 13805 / json: {"FileOpen":{"spiText":"/// # guid\n\n/// ## guid\n\n/// ### guid\nnominal guid_python =\n    \u0060...aw_guid x = !new_raw_guid x\u0027 : ()\n","uri":"file:///c:/home/git/polyglot/lib/spiral/guid.spi"}} / result:
00:00:07   debug #168 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: sm'.spi
00:00:07   debug #169 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: sm'.spi
00:00:07   debug #170 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: sm'.spi
00:00:07 verbose #17 > 00:00:06   debug #14 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/lib/spiral/guid.spi
00:00:07 verbose #171 Supervisor.sendJson / port: 13805 / json: {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/lib/spiral/guid.spi"}} / result:
00:00:07 verbose #172 Supervisor.sendJson / port: 13805 / json: {"FileOpen":{"spiText":"/// # sm\u0027\nopen rust_operators\nopen real_sm\u0027\n\n/// ## sm\u0027\n...tring std_string = from_std_string\n","uri":"file:///c:/home/git/polyglot/lib/spiral/sm\u0027.spi"}} / result:
00:00:07 verbose #18 > 00:00:06   debug #15 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/lib/spiral/sm'.spi
00:00:07 verbose #173 Supervisor.sendJson / port: 13805 / json: {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/lib/spiral/sm\u0027.spi"}} / result:
00:00:07   debug #174 Supervisor.buildFile / AsyncSeq.scan / outputContent:
let rec closure0 () (v0 : string) : System.Guid =
    let v3 : System.Guid = v0 |> System.Guid 
    v3
and method0 (v0 : string) : System.Guid =
    l... = v0 x
let v1 : (string -> System.Guid) = closure1()
let hash_guid x = v1 x
let v2 : (unit -> System.Guid) = closure2()
let new_raw_guid x = v2 x
()
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: guid.spi
00:00:07   debug #175 Supervisor.buildFile / takeWhileInclusive / outputContent:
let rec closure0 () (v0 : string) : System.Guid =
    let v3 : System.Guid = v0 |> System.Guid 
    v3
and method0 (v0 : string) : System.Guid =
    l... = v0 x
let v1 : (string -> System.Guid) = closure1()
let hash_guid x = v1 x
let v2 : (unit -> System.Guid) = closure2()
let new_raw_guid x = v2 x
()
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: guid.spi
00:00:07   debug #176 FileSystem.watchWithFilter / Disposing watch stream / filter: FileName, LastWrite
00:00:07   debug #177 Supervisor.buildFile / AsyncSeq.scan / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("regex::Regex")>]
#endif
type regex_Regex = class end
#if FABLE_COMPILER
[<Fable.Core.Erase; Fa... : (string -> ((string []) -> string)) = closure46()
let join' x = v21 x
let v22 : (string -> (char [])) = closure48()
let to_char_array x = v22 x
()
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: sm'.spi
00:00:07   debug #178 Supervisor.buildFile / takeWhileInclusive / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("regex::Regex")>]
#endif
type regex_Regex = class end
#if FABLE_COMPILER
[<Fable.Core.Erase; Fa... : (string -> ((string []) -> string)) = closure46()
let join' x = v21 x
let v22 : (string -> (char [])) = closure48()
let to_char_array x = v22 x
()
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: sm'.spi
00:00:07   debug #179 FileSystem.watchWithFilter / Disposing watch stream / filter: FileName, LastWrite
00:00:08   debug #180 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: file_system.spi
00:00:08   debug #181 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: file_system.spi
00:00:08   debug #182 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: file_system.spi
00:00:08   debug #183 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: file_system.spi
00:00:09   debug #184 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: file_system.spi
00:00:09   debug #185 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: file_system.spi
00:00:09   debug #186 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: file_system.spi
00:00:09   debug #187 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: file_system.spi
00:00:09   debug #188 Supervisor.buildFile / AsyncSeq.scan / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("std::string::String")>]
#endif
type std_string_String = class end
#if FABLE_COMPILER
[<Fable.C...()
let v26 : (bool -> unit) = closure65()
let init_trace_file x = v26 x
let v27 : (string -> (string -> string)) = closure67()
let (</>) x = v27 x
()
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: file_system.spi
00:00:09   debug #189 Supervisor.buildFile / takeWhileInclusive / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("std::string::String")>]
#endif
type std_string_String = class end
#if FABLE_COMPILER
[<Fable.C...()
let v26 : (bool -> unit) = closure65()
let init_trace_file x = v26 x
let v27 : (string -> (string -> string)) = closure67()
let (</>) x = v27 x
()
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: file_system.spi
00:00:09   debug #190 FileSystem.watchWithFilter / Disposing watch stream / filter: FileName, LastWrite
00:00:10 verbose #18 networking.wait_for_port_access / { port = 13805; retry = 0; timeout = Some 100; status = false }
00:00:10 verbose #19 async.run_with_timeout_async / { timeout = 100 }
In [ ]:
{ pwsh ../apps/scheduler/build.ps1 } | Invoke-Block
00:00:00 verbose #1 async.run_with_timeout_async / { timeout = 180 }
00:00:00   debug #1 runtime.execute_with_options_async / { options = { command = dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port 13805 --default-int i32 --default-float f64; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = Some <fun:main@570-7>; stdin = None; trace = true; working_directory = Some "C:\home\git\polyglot" } }
00:00:01 verbose #2 > 00:00:00   debug #1 pwd: C:\home\git\polyglot
00:00:01 verbose #3 > 00:00:00   debug #2 dllPath: C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release
00:00:01 verbose #4 > 00:00:00   debug #3 targetDir: C:\home\git\polyglot\target/spiral_Eval
00:00:01 verbose #2 async.run_with_timeout_async / { timeout = 100 }
00:00:01 verbose #3 networking.wait_for_port_access / { port = 13805; retry = 0; timeout = Some 100; status = true }
00:00:01 verbose #4 async.run_with_timeout_async / { timeout = 100 }
00:00:01 verbose #5 > Starting the Spiral Server. It is bound to: http://localhost:13805
00:00:01 verbose #5 async.run_with_timeout_async / { timeout = 100 }
00:00:01   debug #1 runWithTimeoutAsync / timeout: 500
00:00:02 verbose #2 Supervisor.sendJson / port: 13805 / json: {"Ping":true} / result:
00:00:02 verbose #3 awaitCompiler / Ping / result: 'Some(null)' / port: 13805 / retry: 0
00:00:02 verbose #6 > Server bound to: http://localhost:13805
00:00:02   debug #7 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path Tasks.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:00:02 verbose #8 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "Tasks.dib", "--retries", "3"])) }
00:00:02 verbose #9 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/apps/scheduler/Tasks.dib", "--output-path", "c:/home/git/polyglot/apps/scheduler/Tasks.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/apps/scheduler/Tasks.dib" --output-path "c:/home/git/polyglot/apps/scheduler/Tasks.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:00:04 verbose #10 > >
00:00:04 verbose #11 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:04 verbose #12 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:04 verbose #13 > > │ ## Tasks (Polyglot)                                                          │
00:00:04 verbose #14 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 verbose #15 > >
00:00:09 verbose #16 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:09 verbose #17 > > //// test
00:00:09 verbose #18 > >
00:00:09 verbose #19 > > open testing
00:00:10 verbose #20 > 00:00:09   debug #4 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fa7845de436c12d0ca65282fe0cd65832468ca943e72feba50e6b1bb441e251a/main.spi
00:00:12 verbose #21 > >
00:00:12 verbose #22 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:12 verbose #23 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:12 verbose #24 > > │ ## task_name                                                                 │
00:00:12 verbose #25 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 verbose #26 > >
00:00:12 verbose #27 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 verbose #28 > > nominal task_name = string
00:00:13 verbose #29 > 00:00:12   debug #5 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/392f391f9cae28a3678d731595bd7a9f983d74c9c45aae995934db397b070807/main.spi
00:00:13 verbose #30 > >
00:00:13 verbose #31 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:13 verbose #32 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:13 verbose #33 > > │ ## manual_scheduling                                                         │
00:00:13 verbose #34 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 verbose #35 > >
00:00:13 verbose #36 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:13 verbose #37 > > union manual_scheduling =
00:00:13 verbose #38 > >     | WithSuggestion
00:00:13 verbose #39 > >     | WithoutSuggestion
00:00:13 verbose #40 > 00:00:12   debug #6 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/70c6e2fc87827e0434831213add114042820c20156ea3420be49778d155101a8/main.spi
00:00:13 verbose #41 > >
00:00:13 verbose #42 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:13 verbose #43 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:13 verbose #44 > > │ ## recurrency_offset                                                         │
00:00:13 verbose #45 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 verbose #46 > >
00:00:13 verbose #47 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:13 verbose #48 > > union recurrency_offset =
00:00:13 verbose #49 > >     | Days : i32
00:00:13 verbose #50 > >     | Weeks : i32
00:00:13 verbose #51 > >     | Months : i32
00:00:14 verbose #52 > 00:00:13   debug #7 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8cfaa597becde0018bf0ce3912bd79f0f0c0197bc2f800085c9a51deefbf96de/main.spi
00:00:14 verbose #53 > >
00:00:14 verbose #54 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:14 verbose #55 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:14 verbose #56 > > │ ## day_of_week                                                               │
00:00:14 verbose #57 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 verbose #58 > >
00:00:14 verbose #59 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:14 verbose #60 > > union day_of_week =
00:00:14 verbose #61 > >     | Sunday
00:00:14 verbose #62 > >     | Monday
00:00:14 verbose #63 > >     | Tuesday
00:00:14 verbose #64 > >     | Wednesday
00:00:14 verbose #65 > >     | Thursday
00:00:14 verbose #66 > >     | Friday
00:00:14 verbose #67 > >     | Saturday
00:00:14 verbose #68 > 00:00:13   debug #8 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f1a5d4929df57e32d3b746fffe7c948ab7320f0d175637218dd6f4c62efc25ff/main.spi
00:00:14 verbose #69 > >
00:00:14 verbose #70 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:14 verbose #71 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:14 verbose #72 > > │ ## month                                                                     │
00:00:14 verbose #73 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 verbose #74 > >
00:00:14 verbose #75 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:14 verbose #76 > > union month =
00:00:14 verbose #77 > >     | January
00:00:14 verbose #78 > >     | February
00:00:14 verbose #79 > >     | March
00:00:14 verbose #80 > >     | April
00:00:14 verbose #81 > >     | May
00:00:14 verbose #82 > >     | June
00:00:14 verbose #83 > >     | July
00:00:14 verbose #84 > >     | August
00:00:14 verbose #85 > >     | September
00:00:14 verbose #86 > >     | October
00:00:14 verbose #87 > >     | November
00:00:14 verbose #88 > >     | December
00:00:14 verbose #89 > 00:00:13   debug #9 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/43a16e792314fb2d8ab8badf543b853c5281afbc3545b9b6488eebed5375c738/main.spi
00:00:15 verbose #90 > >
00:00:15 verbose #91 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:15 verbose #92 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:15 verbose #93 > > │ ## day                                                                       │
00:00:15 verbose #94 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 verbose #95 > >
00:00:15 verbose #96 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:15 verbose #97 > > nominal day = i32
00:00:15 verbose #98 > 00:00:14   debug #10 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5935c34341779bf5daaa9ebc662ec0125f988811de2ee4c17ec73e99e3eb1dcb/main.spi
00:00:15 verbose #99 > >
00:00:15 verbose #100 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:15 verbose #101 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:15 verbose #102 > > │ ## year                                                                      │
00:00:15 verbose #103 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 verbose #104 > >
00:00:15 verbose #105 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:15 verbose #106 > > nominal year = i32
00:00:15 verbose #107 > 00:00:14   debug #11 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fcee6fad777bb4f522ee4ea0946c7389722ddbccf9a3c9351638d417ce2373f1/main.spi
00:00:15 verbose #108 > >
00:00:15 verbose #109 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:15 verbose #110 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:15 verbose #111 > > │ ## fixed_recurrency                                                          │
00:00:15 verbose #112 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 verbose #113 > >
00:00:15 verbose #114 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:15 verbose #115 > > union fixed_recurrency =
00:00:15 verbose #116 > >     | Weekly : day_of_week
00:00:15 verbose #117 > >     | Monthly : day
00:00:15 verbose #118 > >     | Yearly : day * month
00:00:16 verbose #119 > 00:00:15   debug #12 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fe775993bc85ffdc4e07f65dfac0882e7b662cdc44be2338310107a4cee05f05/main.spi
00:00:16 verbose #120 > >
00:00:16 verbose #121 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:16 verbose #122 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:16 verbose #123 > > │ ## recurrency                                                                │
00:00:16 verbose #124 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:16 verbose #125 > >
00:00:16 verbose #126 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:16 verbose #127 > > union recurrency =
00:00:16 verbose #128 > >     | Offset : recurrency_offset
00:00:16 verbose #129 > >     | Fixed : list fixed_recurrency
00:00:16 verbose #130 > 00:00:15   debug #13 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/522271d5c209e153cfe60ed8bbe82268e8deae47a175d71d46c48f836728dbce/main.spi
00:00:16 verbose #131 > >
00:00:16 verbose #132 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:16 verbose #133 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:16 verbose #134 > > │ ## scheduling                                                                │
00:00:16 verbose #135 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:16 verbose #136 > >
00:00:16 verbose #137 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:16 verbose #138 > > union scheduling =
00:00:16 verbose #139 > >     | Manual : manual_scheduling
00:00:16 verbose #140 > >     | Recurrent : recurrency
00:00:16 verbose #141 > 00:00:16   debug #14 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/13db759ddd5f002f4a7d216608d9ac256117d86484f1041e6124e9d1bc02ec70/main.spi
00:00:17 verbose #142 > >
00:00:17 verbose #143 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:17 verbose #144 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:17 verbose #145 > > │ ## task                                                                      │
00:00:17 verbose #146 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:17 verbose #147 > >
00:00:17 verbose #148 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:17 verbose #149 > > type task =
00:00:17 verbose #150 > >     {
00:00:17 verbose #151 > >         name : task_name
00:00:17 verbose #152 > >         scheduling : scheduling
00:00:17 verbose #153 > >     }
00:00:17 verbose #154 > 00:00:16   debug #15 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e32a314d5c49dd12a3550de36e84cb325f658f62879fb6a961b074d21b44c8c3/main.spi
00:00:17 verbose #155 > >
00:00:17 verbose #156 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:17 verbose #157 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:17 verbose #158 > > │ ## date                                                                      │
00:00:17 verbose #159 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:17 verbose #160 > >
00:00:17 verbose #161 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:17 verbose #162 > > type date =
00:00:17 verbose #163 > >     {
00:00:17 verbose #164 > >         year : year
00:00:17 verbose #165 > >         month : month
00:00:17 verbose #166 > >         day : day
00:00:17 verbose #167 > >     }
00:00:17 verbose #168 > 00:00:16   debug #16 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/76fbdec1211e9e9d96810fe9e0b651539d18912d84ba64b0635f855c11a3b193/main.spi
00:00:17 verbose #169 > >
00:00:17 verbose #170 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:17 verbose #171 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:17 verbose #172 > > │ ## status                                                                    │
00:00:17 verbose #173 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:17 verbose #174 > >
00:00:17 verbose #175 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:17 verbose #176 > > union status =
00:00:17 verbose #177 > >     | Postponed : option ()
00:00:18 verbose #178 > 00:00:17   debug #17 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5ae063545d86815f63b847ecdd76326b56c21c74f8e892b61a857c82f1ce4597/main.spi
00:00:18 verbose #179 > >
00:00:18 verbose #180 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:18 verbose #181 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:18 verbose #182 > > │ ## event                                                                     │
00:00:18 verbose #183 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:18 verbose #184 > >
00:00:18 verbose #185 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:18 verbose #186 > > type event =
00:00:18 verbose #187 > >     {
00:00:18 verbose #188 > >         date : date
00:00:18 verbose #189 > >         status : status
00:00:18 verbose #190 > >     }
00:00:18 verbose #191 > 00:00:17   debug #18 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/28572068d4192522ae3e40fc069d15c898acfec7092eccd6fae628de0918f09c/main.spi
00:00:18 verbose #192 > >
00:00:18 verbose #193 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:18 verbose #194 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:18 verbose #195 > > │ ## task_template                                                             │
00:00:18 verbose #196 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:18 verbose #197 > >
00:00:18 verbose #198 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:18 verbose #199 > > type task_template =
00:00:18 verbose #200 > >     {
00:00:18 verbose #201 > >         task : task
00:00:18 verbose #202 > >         events : list event
00:00:18 verbose #203 > >     }
00:00:18 verbose #204 > 00:00:17   debug #19 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0be3594557414e4795db3a982d7e5aba2bc2bc49002a0b2a742fb748a1a2231a/main.spi
00:00:19 verbose #205 > >
00:00:19 verbose #206 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:19 verbose #207 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:19 verbose #208 > > │ ## get_tasks (test)                                                          │
00:00:19 verbose #209 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:19 verbose #210 > >
00:00:19 verbose #211 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:19 verbose #212 > > //// test
00:00:19 verbose #213 > >
00:00:19 verbose #214 > > inl get_tasks () : list task_template =
00:00:19 verbose #215 > >     [[
00:00:19 verbose #216 > >         {
00:00:19 verbose #217 > >             task =
00:00:19 verbose #218 > >                 {
00:00:19 verbose #219 > >                     name = task_name "01"
00:00:19 verbose #220 > >                     scheduling = Manual WithSuggestion
00:00:19 verbose #221 > >                 }
00:00:19 verbose #222 > >             events = [[]]
00:00:19 verbose #223 > >         }
00:00:19 verbose #224 > >         {
00:00:19 verbose #225 > >             task =
00:00:19 verbose #226 > >                 {
00:00:19 verbose #227 > >                     name = task_name "02"
00:00:19 verbose #228 > >                     scheduling = Manual WithSuggestion
00:00:19 verbose #229 > >                 }
00:00:19 verbose #230 > >             events = [[]]
00:00:19 verbose #231 > >         }
00:00:19 verbose #232 > >         {
00:00:19 verbose #233 > >             task =
00:00:19 verbose #234 > >                 {
00:00:19 verbose #235 > >                     name = task_name "03"
00:00:19 verbose #236 > >                     scheduling = Manual WithSuggestion
00:00:19 verbose #237 > >                 }
00:00:19 verbose #238 > >             events = [[]]
00:00:19 verbose #239 > >         }
00:00:19 verbose #240 > >     ]]
00:00:19 verbose #241 > 00:00:18   debug #20 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/101eb882a39b347486cdd821a580359dbc61398ec86ab60c212111328ed8461b/main.spi
00:00:19 verbose #242 > >
00:00:19 verbose #243 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:19 verbose #244 > > //// test
00:00:19 verbose #245 > > ///! fsharp
00:00:19 verbose #246 > > ///! cuda
00:00:19 verbose #247 > > ///! rust
00:00:19 verbose #248 > > ///! typescript
00:00:19 verbose #249 > > ///! python
00:00:19 verbose #250 > >
00:00:19 verbose #251 > > get_tasks ()
00:00:19 verbose #252 > > |> sm'.format_debug
00:00:19 verbose #253 > > |> _assert_string_contains "01"
00:00:19 verbose #254 > 00:00:18   debug #21 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1a4f30630fcddc7b8a7a6e7ff823618bc90de79bc68d01db83da38be73b9a9d3/main.spi
00:00:19 verbose #255 > 00:00:18   debug #22 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7b444afb2ea5f21078b55ce9163f7664d2f8b280ed425118a9bf23f6d803831d/main.spi
00:00:27 verbose #256 > >
00:00:27 verbose #257 > > ╭─[ 7.86s - return value ]─────────────────────────────────────────────────────╮
00:00:27 verbose #258 > > │ .py output (Cuda):                                                           │
00:00:27 verbose #259 > > │ assert_string_contains / actual: 01 / expected: UH2_1(v0='01',               │
00:00:27 verbose #260 > > │ v1=US1_0(v0=US0_0()), v2=UH1_0(), v3=UH2_1(v0='02', v1=US1_0(v0=US0_0()),    │
00:00:27 verbose #261 > > │ v2=UH1_0(), v3=UH2_1(v0='03', v1=US1_0(v0=US0_0()), v2=UH1_0(),              │
00:00:27 verbose #262 > > │ v3=UH2_0())))                                                                │
00:00:27 verbose #263 > > │                                                                              │
00:00:27 verbose #264 > > │ .rs output:                                                                  │
00:00:27 verbose #265 > > │ assert_string_contains / actual: "01" / expected: "UH2_1("01", US1_0(US0_0), │
00:00:27 verbose #266 > > │ UH1_0, UH2_1("02", US1_0(US0_0), UH1_0, UH2_1("03", US1_0(US0_0), UH1_0,     │
00:00:27 verbose #267 > > │ UH2_0)))"                                                                    │
00:00:27 verbose #268 > > │                                                                              │
00:00:27 verbose #269 > > │ .ts output:                                                                  │
00:00:27 verbose #270 > > │ assert_string_contains / actual: 01 / expected: UH2_1 (01, US1_0 US0_0,      │
00:00:27 verbose #271 > > │ UH1_0, UH2_1 (02, US1_0 US0_0, UH1_0, UH2_1 (03, US1_0 US0_0, UH1_0,         │
00:00:27 verbose #272 > > │ UH2_0)))                                                                     │
00:00:27 verbose #273 > > │                                                                              │
00:00:27 verbose #274 > > │ .py output:                                                                  │
00:00:27 verbose #275 > > │ assert_string_contains / actual: 01 / expected: UH2_1 ("01", US1_0 US0_0,    │
00:00:27 verbose #276 > > │ UH1_0, UH2_1 ("02", US1_0 US0_0, UH1_0, UH2_1 ("03", US1_0 US0_0, UH1_0,     │
00:00:27 verbose #277 > > │ UH2_0)))                                                                     │
00:00:27 verbose #278 > > │                                                                              │
00:00:27 verbose #279 > > │                                                                              │
00:00:27 verbose #280 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:27 verbose #281 > >
00:00:27 verbose #282 > > ╭─[ 7.87s - stdout ]───────────────────────────────────────────────────────────╮
00:00:27 verbose #283 > > │ .fsx output:                                                                 │
00:00:27 verbose #284 > > │ assert_string_contains / actual: "01" / expected: "UH2_1                     │
00:00:27 verbose #285 > > │   ("01", US1_0 US0_0, UH1_0,                                                 │
00:00:27 verbose #286 > > │    UH2_1 ("02", US1_0 US0_0, UH1_0, UH2_1 ("03", US1_0 US0_0, UH1_0,         │
00:00:27 verbose #287 > > │ UH2_0)))"                                                                    │
00:00:27 verbose #288 > > │                                                                              │
00:00:27 verbose #289 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:27 verbose #290 > >
00:00:27 verbose #291 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:27 verbose #292 > > //// test
00:00:27 verbose #293 > > ///! fsharp
00:00:27 verbose #294 > > ///! cuda
00:00:27 verbose #295 > > ///! rust
00:00:27 verbose #296 > > ///! typescript
00:00:27 verbose #297 > > ///! python
00:00:27 verbose #298 > >
00:00:27 verbose #299 > > get_tasks ()
00:00:27 verbose #300 > > |> listm'.try_item 0i32
00:00:27 verbose #301 > > |> fun (Some task) => task.task.name
00:00:27 verbose #302 > > |> _assert_eq (task_name "01")
00:00:27 verbose #303 > 00:00:26   debug #23 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/88c2d2527c2701c5b8f1124331b86e929f7e7f0822c148ba113bc0bc119188b7/main.spi
00:00:27 verbose #304 > 00:00:26   debug #24 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/274674fcaef3d243f697cfeb84ce703162659cb96dd90fa04a89284146271535/main.spi
00:00:31 verbose #305 > >
00:00:31 verbose #306 > > ╭─[ 4.05s - return value ]─────────────────────────────────────────────────────╮
00:00:31 verbose #307 > > │ .py output (Cuda):                                                           │
00:00:31 verbose #308 > > │ assert_eq / actual: 01 / expected: 01                                        │
00:00:31 verbose #309 > > │                                                                              │
00:00:31 verbose #310 > > │ .rs output:                                                                  │
00:00:31 verbose #311 > > │ assert_eq / actual: "01" / expected: "01"                                    │
00:00:31 verbose #312 > > │                                                                              │
00:00:31 verbose #313 > > │ .ts output:                                                                  │
00:00:31 verbose #314 > > │ assert_eq / actual: 01 / expected: 01                                        │
00:00:31 verbose #315 > > │                                                                              │
00:00:31 verbose #316 > > │ .py output:                                                                  │
00:00:31 verbose #317 > > │ assert_eq / actual: 01 / expected: 01                                        │
00:00:31 verbose #318 > > │                                                                              │
00:00:31 verbose #319 > > │                                                                              │
00:00:31 verbose #320 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:31 verbose #321 > >
00:00:31 verbose #322 > > ╭─[ 4.05s - stdout ]───────────────────────────────────────────────────────────╮
00:00:31 verbose #323 > > │ .fsx output:                                                                 │
00:00:31 verbose #324 > > │ assert_eq / actual: "01" / expected: "01"                                    │
00:00:31 verbose #325 > > │                                                                              │
00:00:31 verbose #326 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:31 verbose #327 > 00:00:29 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 13425 }
00:00:31 verbose #328 > 00:00:29   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/apps/scheduler/Tasks.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/apps/scheduler/Tasks.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:00:33 verbose #329 > 00:00:31 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/apps/scheduler/Tasks.dib.ipynb to html
00:00:33 verbose #330 > 00:00:31 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:00:33 verbose #331 > 00:00:31 verbose #7 !   validate(nb)
00:00:35 verbose #332 > 00:00:32 verbose #8 ! [NbConvertApp] Writing 300210 bytes to c:\home\git\polyglot\apps\scheduler\Tasks.dib.html
00:00:35 verbose #333 > 00:00:33 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 649 }
00:00:35 verbose #334 > 00:00:33   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 649 }
00:00:35 verbose #335 > 00:00:33   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/apps/scheduler/Tasks.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/apps/scheduler/Tasks.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:00:36 verbose #336 > 00:00:34 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:00:36 verbose #337 > 00:00:34   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:00:37 verbose #338 > 00:00:34   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 14133 }
00:00:37   debug #339 runtime.execute_with_options_async / { exit_code = 0; output_length = 17365 }
00:00:37   debug #4 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path Tasks.dib --retries 3
00:00:37 verbose #6 networking.wait_for_port_access / { port = 13805; retry = 0; timeout = Some 100; status = false }
00:00:37 verbose #7 async.run_with_timeout_async / { timeout = 100 }
00:00:00   debug #1 writeDibCode / output: Spi / path: Tasks.dib
00:00:00   debug #2 parseDibCode / output: Spi / file: Tasks.dib
In [ ]:
{ pwsh ../apps/chat/build.ps1 } | Invoke-Block
    Finished `release` profile [optimized] target(s) in 1.89s
    Finished `release` profile [optimized] target(s) in 35.54s
     Running `/mnt/c/home/git/polyglot/workspace/target/release/chat_contract_tests`


new: ExecutionFinalResult {
    total_gas_burnt: NearGas {
        inner: 5283587146524,
    },
    transaction: ExecutionOutcome {
        transaction_hash: 5E4AHdPtfm2biiRtbUAWq487HnAhwjcFhNuFD2teRjdX,
        block_hash: 7N7ijsNKFY3gfM1fdaPqkD4qmnbyo2dk2RzNmCyZzcqj,
        logs: [],
        receipt_ids: [
            8AGjCUjjJ53AKx6SFXZQEvQiEEoFwaumyGYVLFy1F5iJ,
        ],
        gas_burnt: NearGas {
            inner: 2427927707802,
        },
        tokens_burnt: NearToken {
            inner: 242792770780200000000,
        },
        executor_id: AccountId(
            "dev-20240710105731-33556512771357",
        ),
        status: SuccessReceiptId(8AGjCUjjJ53AKx6SFXZQEvQiEEoFwaumyGYVLFy1F5iJ),
    },
    receipts: [
        ExecutionOutcome {
            transaction_hash: 8AGjCUjjJ53AKx6SFXZQEvQiEEoFwaumyGYVLFy1F5iJ,
            block_hash: 7N7ijsNKFY3gfM1fdaPqkD4qmnbyo2dk2RzNmCyZzcqj,
            logs: [],
            receipt_ids: [
                66prreh9BhrDorbcGhZJUDRMS2jiKBuAzSA5BMz2t2bP,
            ],
            gas_burnt: NearGas {
                inner: 2632476876222,
            },
            tokens_burnt: NearToken {
                inner: 263247687622200000000,
            },
            executor_id: AccountId(
                "dev-20240710105731-33556512771357",
            ),
            status: SuccessValue(''),
        },
        ExecutionOutcome {
            transaction_hash: 66prreh9BhrDorbcGhZJUDRMS2jiKBuAzSA5BMz2t2bP,
            block_hash: 7ufE7j3B1KZZTCGVaocEWTQFLSf5WJ5aJGEc88kM7JfK,
            logs: [],
            receipt_ids: [],
            gas_burnt: NearGas {
                inner: 223182562500,
            },
            tokens_burnt: NearToken {
                inner: 0,
            },
            executor_id: AccountId(
                "dev-20240710105731-33556512771357",
            ),
            status: SuccessValue(''),
        },
    ],
    status: SuccessValue(''),
}
total_gas_burnt_usd: 0.003529436213878032
outcome (success: true):
  outcome_gas_burnt_usd: 0.001621855708811736
  outcome_tokens_burnt_usd: 0.0
outcome (success: true):
  outcome_gas_burnt_usd: 0.001758494553316296
  outcome_tokens_burnt_usd: 0.0
outcome (success: true):
  outcome_gas_burnt_usd: 0.00014908595175
  outcome_tokens_burnt_usd: 0.0


claim_alias(contract, ''): ExecutionFinalResult {
    total_gas_burnt: NearGas {
        inner: 5278900605586,
    },
    transaction: ExecutionOutcome {
        transaction_hash: 7EnSotH6GaZhej8ov7yt6DJPKt8Bwme5zPKMvyESkDqA,
        block_hash: 951WbhijWPV5hbon4y6Xsrr9Wx4P9KUje4XVRvEHq1Qy,
        logs: [],
        receipt_ids: [
            A5i6XvE8hT5vqRsrDKPMBiJ4ft122xX85XaZjwuamTEX,
        ],
        gas_burnt: NearGas {
            inner: 2427972426482,
        },
        tokens_burnt: NearToken {
            inner: 242797242648200000000,
        },
        executor_id: AccountId(
            "dev-20240710105731-33556512771357",
        ),
        status: SuccessReceiptId(A5i6XvE8hT5vqRsrDKPMBiJ4ft122xX85XaZjwuamTEX),
    },
    receipts: [
        ExecutionOutcome {
            transaction_hash: A5i6XvE8hT5vqRsrDKPMBiJ4ft122xX85XaZjwuamTEX,
            block_hash: 951WbhijWPV5hbon4y6Xsrr9Wx4P9KUje4XVRvEHq1Qy,
            logs: [
                "claim_alias / alias: \"\" / account_id: AccountId(\n    \"dev-20240710105731-33556512771357\",\n) / timestamp: 1720609053095145056",
            ],
            receipt_ids: [
                FtnXLkEVTCDw9TB5YMSGcZa8Yeqwntjj6jauHF6sthS1,
            ],
            gas_burnt: NearGas {
                inner: 2627745616604,
            },
            tokens_burnt: NearToken {
                inner: 262774561660400000000,
            },
            executor_id: AccountId(
                "dev-20240710105731-33556512771357",
            ),
            status: Failure(ActionError(ActionError { index: Some(0), kind: FunctionCallError(ExecutionError("Smart contract panicked: Invalid alias")) })),
        },
        ExecutionOutcome {
            transaction_hash: FtnXLkEVTCDw9TB5YMSGcZa8Yeqwntjj6jauHF6sthS1,
            block_hash: 4X9sZaZepZc8rnt6htboj6tdPLFoo5wUk5UEshZMRtQf,
            logs: [],
            receipt_ids: [],
            gas_burnt: NearGas {
                inner: 223182562500,
            },
            tokens_burnt: NearToken {
                inner: 0,
            },
            executor_id: AccountId(
                "dev-20240710105731-33556512771357",
            ),
            status: SuccessValue(''),
        },
    ],
    status: Failure(ActionError(ActionError { index: Some(0), kind: FunctionCallError(ExecutionError("Smart contract panicked: Invalid alias")) })),
}
total_gas_burnt_usd: 0.0035263056045314474
outcome (success: true):
  outcome_gas_burnt_usd: 0.001621885580889976
  outcome_tokens_burnt_usd: 0.0
outcome (success: false):
  outcome_gas_burnt_usd: 0.001755334071891472
  outcome_tokens_burnt_usd: 0.0
outcome (success: true):
  outcome_gas_burnt_usd: 0.00014908595175
  outcome_tokens_burnt_usd: 0.0


dev_create_account(account1): Account {
    id: AccountId(
        "dev-20240710105733-45366912094718",
    ),
}


generate_cid_borsh(account1): ViewResultDetails {
    result: [
        59,
        0,
        0,
        0,
        98,
        97,
        102,
        107,
        114,
        101,
        105,
        104,
        100,
        119,
        100,
        99,
        101,
        102,
        103,
        104,
        52,
        100,
        113,
        107,
        106,
        118,
        54,
        55,
        117,
        122,
        99,
        109,
        119,
        55,
        111,
        106,
        101,
        101,
        54,
        120,
        101,
        100,
        122,
        100,
        101,
        116,
        111,
        106,
        117,
        122,
        106,
        101,
        118,
        116,
        101,
        110,
        120,
        113,
        117,
        118,
        121,
        107,
        117,
    ],
    logs: [],
}


claim_alias(account1, alias1): ExecutionFinalResult {
    total_gas_burnt: NearGas {
        inner: 5698509475495,
    },
    transaction: ExecutionOutcome {
        transaction_hash: EfcJ7TDK3ePkoavvoVBeJYHyRCBAFdKmGfHq1LuUm3N7,
        block_hash: 2q1BBtS8284LaDwYHyYU9NsN5knT5weHJxsdKA7ds1cX,
        logs: [],
        receipt_ids: [
            ExQNwiYqQRuZnoYj7Ro3fpwuDv5fdp7mUuQBfRAxY4YM,
        ],
        gas_burnt: NearGas {
            inner: 2427985842086,
        },
        tokens_burnt: NearToken {
            inner: 242798584208600000000,
        },
        executor_id: AccountId(
            "dev-20240710105733-45366912094718",
        ),
        status: SuccessReceiptId(ExQNwiYqQRuZnoYj7Ro3fpwuDv5fdp7mUuQBfRAxY4YM),
    },
    receipts: [
        ExecutionOutcome {
            transaction_hash: ExQNwiYqQRuZnoYj7Ro3fpwuDv5fdp7mUuQBfRAxY4YM,
            block_hash: Hx3o7pNK51nGHCVpzjYwQKjaX9JarxmmhesJR2Uj3kTK,
            logs: [
                "claim_alias / alias: \"alias1\" / account_id: AccountId(\n    \"dev-20240710105733-45366912094718\",\n) / timestamp: 1720609055221349670",
            ],
            receipt_ids: [
                BXzh8yBffX3yPzqg4Niq9VBN1F48hdnyCYbVbYonUMbS,
            ],
            gas_burnt: NearGas {
                inner: 3047341070909,
            },
            tokens_burnt: NearToken {
                inner: 304734107090900000000,
            },
            executor_id: AccountId(
                "dev-20240710105731-33556512771357",
            ),
            status: SuccessValue(''),
        },
        ExecutionOutcome {
            transaction_hash: BXzh8yBffX3yPzqg4Niq9VBN1F48hdnyCYbVbYonUMbS,
            block_hash: CJ8UEMi5PJ2nHjJts4sxiw2eZp1YjmTdChj1CNJjiASm,
            logs: [],
            receipt_ids: [],
            gas_burnt: NearGas {
                inner: 223182562500,
            },
            tokens_burnt: NearToken {
                inner: 0,
            },
            executor_id: AccountId(
                "dev-20240710105733-45366912094718",
            ),
            status: SuccessValue(''),
        },
    ],
    status: SuccessValue(''),
}
total_gas_burnt_usd: 0.00380660432963066
outcome (success: true):
  outcome_gas_burnt_usd: 0.0016218945425134478
  outcome_tokens_burnt_usd: 0.0
outcome (success: true):
  outcome_gas_burnt_usd: 0.002035623835367212
  outcome_tokens_burnt_usd: 0.0
outcome (success: true):
  outcome_gas_burnt_usd: 0.00014908595175
  outcome_tokens_burnt_usd: 0.0


claim_alias(account1, alias1): ExecutionFinalResult {
    total_gas_burnt: NearGas {
        inner: 5523425631856,
    },
    transaction: ExecutionOutcome {
        transaction_hash: 7H8f5Q9Vmv3dDBfc33bQdhRUh5TfSM94teLHnCZULV8T,
        block_hash: 7G9v7TCMA6qyuyE85wSTBkZgtvUUF6zwRVVHdJ6qSL9L,
        logs: [],
        receipt_ids: [
            75trAnh1ruJP2dtYmSHTRRzLAnmWRN83Lw8dcJtfsEya,
        ],
        gas_burnt: NearGas {
            inner: 2427985842086,
        },
        tokens_burnt: NearToken {
            inner: 242798584208600000000,
        },
        executor_id: AccountId(
            "dev-20240710105733-45366912094718",
        ),
        status: SuccessReceiptId(75trAnh1ruJP2dtYmSHTRRzLAnmWRN83Lw8dcJtfsEya),
    },
    receipts: [
        ExecutionOutcome {
            transaction_hash: 75trAnh1ruJP2dtYmSHTRRzLAnmWRN83Lw8dcJtfsEya,
            block_hash: 43E2621mgRiCU9Dd2GjXxGt6a4YFwzCbL43r6Gwvgkh3,
            logs: [
                "claim_alias / alias: \"alias1\" / account_id: AccountId(\n    \"dev-20240710105733-45366912094718\",\n) / timestamp: 1720609056232578000",
                "Alias already claimed",
            ],
            receipt_ids: [
                C9t6q2Jt3odwTahZ2osNd2Ef533WmyiB9bQjBQr6JG55,
            ],
            gas_burnt: NearGas {
                inner: 2872257227270,
            },
            tokens_burnt: NearToken {
                inner: 287225722727000000000,
            },
            executor_id: AccountId(
                "dev-20240710105731-33556512771357",
            ),
            status: SuccessValue(''),
        },
        ExecutionOutcome {
            transaction_hash: C9t6q2Jt3odwTahZ2osNd2Ef533WmyiB9bQjBQr6JG55,
            block_hash: 85DdcHL256AY6RyY5Hwh95q4kY8x2BWVF9upYqTwUsrT,
            logs: [],
            receipt_ids: [],
            gas_burnt: NearGas {
                inner: 223182562500,
            },
            tokens_burnt: NearToken {
                inner: 0,
            },
            executor_id: AccountId(
                "dev-20240710105733-45366912094718",
            ),
            status: SuccessValue(''),
        },
    ],
    status: SuccessValue(''),
}
total_gas_burnt_usd: 0.0036896483220798075
outcome (success: true):
  outcome_gas_burnt_usd: 0.0016218945425134478
  outcome_tokens_burnt_usd: 0.0
outcome (success: true):
  outcome_gas_burnt_usd: 0.00191866782781636
  outcome_tokens_burnt_usd: 0.0
outcome (success: true):
  outcome_gas_burnt_usd: 0.00014908595175
  outcome_tokens_burnt_usd: 0.0


get_account_info(account1): Some(
    (
        "alias1",
        (
            1720609055221349670,
            0,
        ),
    ),
)


get_alias_map(account1, alias1): Some(
    {
        AccountId(
            "dev-20240710105733-45366912094718",
        ): (
            1720609055221349670,
            0,
        ),
    },
)


dev_create_account(account2): Account {
    id: AccountId(
        "dev-20240710105736-71702227449377",
    ),
}


claim_alias(alias2): ExecutionFinalResult {
    total_gas_burnt: NearGas {
        inner: 5785859255125,
    },
    transaction: ExecutionOutcome {
        transaction_hash: 6eK6FzHC472KVNCUST6z3zpGESdbgLTpyvvTJd422YkE,
        block_hash: 5NJJcjFzMSJh8hmk3vtSeSqiunSas3xPiScHEZnsG27X,
        logs: [],
        receipt_ids: [
            GjbGJPhXVvFMZMrJoXuP3M8QNrtBouB6fjSREE8Fsxnt,
        ],
        gas_burnt: NearGas {
            inner: 2427985842086,
        },
        tokens_burnt: NearToken {
            inner: 242798584208600000000,
        },
        executor_id: AccountId(
            "dev-20240710105736-71702227449377",
        ),
        status: SuccessReceiptId(GjbGJPhXVvFMZMrJoXuP3M8QNrtBouB6fjSREE8Fsxnt),
    },
    receipts: [
        ExecutionOutcome {
            transaction_hash: GjbGJPhXVvFMZMrJoXuP3M8QNrtBouB6fjSREE8Fsxnt,
            block_hash: GcgXtSogBeTy1emLL8gK7x8KpBzyQGoYaoExNFjZUSxQ,
            logs: [
                "claim_alias / alias: \"alias2\" / account_id: AccountId(\n    \"dev-20240710105736-71702227449377\",\n) / timestamp: 1720609058260958063",
            ],
            receipt_ids: [
                3kikvxeZprBC4AkR4EF7nCWEWN2aaAYWNuAKSZiaEcHo,
            ],
            gas_burnt: NearGas {
                inner: 3134690850539,
            },
            tokens_burnt: NearToken {
                inner: 313469085053900000000,
            },
            executor_id: AccountId(
                "dev-20240710105731-33556512771357",
            ),
            status: SuccessValue(''),
        },
        ExecutionOutcome {
            transaction_hash: 3kikvxeZprBC4AkR4EF7nCWEWN2aaAYWNuAKSZiaEcHo,
            block_hash: BK5X4hRdVf9D8yshsFjmDwkwiXkhqbS88E6BhVhH8TTZ,
            logs: [],
            receipt_ids: [],
            gas_burnt: NearGas {
                inner: 223182562500,
            },
            tokens_burnt: NearToken {
                inner: 0,
            },
            executor_id: AccountId(
                "dev-20240710105736-71702227449377",
            ),
            status: SuccessValue(''),
        },
    ],
    status: SuccessValue(''),
}
total_gas_burnt_usd: 0.0038649539824235
outcome (success: true):
  outcome_gas_burnt_usd: 0.0016218945425134478
  outcome_tokens_burnt_usd: 0.0
outcome (success: true):
  outcome_gas_burnt_usd: 0.0020939734881600517
  outcome_tokens_burnt_usd: 0.0
outcome (success: true):
  outcome_gas_burnt_usd: 0.00014908595175
  outcome_tokens_burnt_usd: 0.0


get_account_info(account2): Some(
    (
        "alias2",
        (
            1720609058260958063,
            0,
        ),
    ),
)


get_alias_map_borsh(alias2): Some(
    {
        AccountId(
            "dev-20240710105736-71702227449377",
        ): (
            1720609058260958063,
            0,
        ),
    },
)


claim_alias(account2, alias1): ExecutionFinalResult {
    total_gas_burnt: NearGas {
        inner: 6089578875856,
    },
    transaction: ExecutionOutcome {
        transaction_hash: kbSrjAKcQs21Zt6dQnGL9Yu6fLhCsiHZsdCuWw9MSmJ,
        block_hash: Cye3tD8S6Cxtvt8Ti91QyeC66ApxKX5pRrVpqGzZXNYn,
        logs: [],
        receipt_ids: [
            AYgzjjG4oZ5qgxKNkc6qCjYgo2q8kDCxKzD9aLtHiywj,
        ],
        gas_burnt: NearGas {
            inner: 2427985842086,
        },
        tokens_burnt: NearToken {
            inner: 242798584208600000000,
        },
        executor_id: AccountId(
            "dev-20240710105736-71702227449377",
        ),
        status: SuccessReceiptId(AYgzjjG4oZ5qgxKNkc6qCjYgo2q8kDCxKzD9aLtHiywj),
    },
    receipts: [
        ExecutionOutcome {
            transaction_hash: AYgzjjG4oZ5qgxKNkc6qCjYgo2q8kDCxKzD9aLtHiywj,
            block_hash: Enfi3evuX98TdzFYUPHJSns54scXj7BtyvxwLvAou7Ln,
            logs: [
                "claim_alias / alias: \"alias1\" / account_id: AccountId(\n    \"dev-20240710105736-71702227449377\",\n) / timestamp: 1720609059274136294",
            ],
            receipt_ids: [
                85sDemqtTyKwhqbrZPA5TEGuBWB2knqANRjtw8EUS8XH,
            ],
            gas_burnt: NearGas {
                inner: 3438410471270,
            },
            tokens_burnt: NearToken {
                inner: 343841047127000000000,
            },
            executor_id: AccountId(
                "dev-20240710105731-33556512771357",
            ),
            status: SuccessValue(''),
        },
        ExecutionOutcome {
            transaction_hash: 85sDemqtTyKwhqbrZPA5TEGuBWB2knqANRjtw8EUS8XH,
            block_hash: 4eaonYx6BB2QXP21WDAMS8Qi8CD3tfu1GvEGA43yR7fM,
            logs: [],
            receipt_ids: [],
            gas_burnt: NearGas {
                inner: 223182562500,
            },
            tokens_burnt: NearToken {
                inner: 0,
            },
            executor_id: AccountId(
                "dev-20240710105736-71702227449377",
            ),
            status: SuccessValue(''),
        },
    ],
    status: SuccessValue(''),
}
total_gas_burnt_usd: 0.004067838689071808
outcome (success: true):
  outcome_gas_burnt_usd: 0.0016218945425134478
  outcome_tokens_burnt_usd: 0.0
outcome (success: true):
  outcome_gas_burnt_usd: 0.00229685819480836
  outcome_tokens_burnt_usd: 0.0
outcome (success: true):
  outcome_gas_burnt_usd: 0.00014908595175
  outcome_tokens_burnt_usd: 0.0


get_account_info(account2): Some(
    (
        "alias1",
        (
            1720609059274136294,
            1,
        ),
    ),
)


get_alias_map(account2, alias1): Some(
    {
        AccountId(
            "dev-20240710105736-71702227449377",
        ): (
            1720609059274136294,
            1,
        ),
        AccountId(
            "dev-20240710105733-45366912094718",
        ): (
            1720609055221349670,
            0,
        ),
    },
)


get_alias_map(account2, alias2): Some(
    {},
)


claim_alias(account1, alias2): ExecutionFinalResult {
    total_gas_burnt: NearGas {
        inner: 6084522217480,
    },
    transaction: ExecutionOutcome {
        transaction_hash: 2w1NrWpTdhTo2smo8QxZTdXUNMan1qUiiVb2E5nRmoTL,
        block_hash: 9p5XvUxfHs8WsmrCcuPeTkf3Fn6irqHb41PhNsUtDyZx,
        logs: [],
        receipt_ids: [
            Avj3hsZctRWwYGry1gGKdsbxmeaLWpXZb5hxmYtKn8Mn,
        ],
        gas_burnt: NearGas {
            inner: 2427985842086,
        },
        tokens_burnt: NearToken {
            inner: 242798584208600000000,
        },
        executor_id: AccountId(
            "dev-20240710105733-45366912094718",
        ),
        status: SuccessReceiptId(Avj3hsZctRWwYGry1gGKdsbxmeaLWpXZb5hxmYtKn8Mn),
    },
    receipts: [
        ExecutionOutcome {
            transaction_hash: Avj3hsZctRWwYGry1gGKdsbxmeaLWpXZb5hxmYtKn8Mn,
            block_hash: 6hqeF1UzZxV3QnytxREVkP1AqVppUyRr3FbFJj4mHsxF,
            logs: [
                "claim_alias / alias: \"alias2\" / account_id: AccountId(\n    \"dev-20240710105733-45366912094718\",\n) / timestamp: 1720609060489555832",
            ],
            receipt_ids: [
                2tT8X9koEKSJQwZM5YrrLnyDNLwLiUMFzx7tSi95Aefk,
            ],
            gas_burnt: NearGas {
                inner: 3433353812894,
            },
            tokens_burnt: NearToken {
                inner: 343335381289400000000,
            },
            executor_id: AccountId(
                "dev-20240710105731-33556512771357",
            ),
            status: SuccessValue(''),
        },
        ExecutionOutcome {
            transaction_hash: 2tT8X9koEKSJQwZM5YrrLnyDNLwLiUMFzx7tSi95Aefk,
            block_hash: C1V5n6UNozPHb4zWDAERBieMFa4cFfwhJS9pN4Rtt3du,
            logs: [],
            receipt_ids: [],
            gas_burnt: NearGas {
                inner: 223182562500,
            },
            tokens_burnt: NearToken {
                inner: 0,
            },
            executor_id: AccountId(
                "dev-20240710105733-45366912094718",
            ),
            status: SuccessValue(''),
        },
    ],
    status: SuccessValue(''),
}
total_gas_burnt_usd: 0.004064460841276639
outcome (success: true):
  outcome_gas_burnt_usd: 0.0016218945425134478
  outcome_tokens_burnt_usd: 0.0
outcome (success: true):
  outcome_gas_burnt_usd: 0.002293480347013192
  outcome_tokens_burnt_usd: 0.0
outcome (success: true):
  outcome_gas_burnt_usd: 0.00014908595175
  outcome_tokens_burnt_usd: 0.0


get_account_info(account1): Some(
    (
        "alias2",
        (
            1720609060489555832,
            0,
        ),
    ),
)


get_alias_map(account1, alias2): Some(
    {
        AccountId(
            "dev-20240710105733-45366912094718",
        ): (
            1720609060489555832,
            0,
        ),
    },
)


get_alias_map(account1, alias1): Some(
    {
        AccountId(
            "dev-20240710105736-71702227449377",
        ): (
            1720609059274136294,
            1,
        ),
    },
)


claim_alias(account1, alias1): ExecutionFinalResult {
    total_gas_burnt: NearGas {
        inner: 6089562420736,
    },
    transaction: ExecutionOutcome {
        transaction_hash: Hu6h9KhchdrJeT1QxDvv25nzpXSfmUpc6jqszFq1cNHR,
        block_hash: CzHQ1FeckqKJadg63TKq8N4hPGK2AdwXbPTQptRDF9rN,
        logs: [],
        receipt_ids: [
            GmJt2aaifxV1U9ArgyYkPgJicEpDnTNTsiPxK3s2x3Jm,
        ],
        gas_burnt: NearGas {
            inner: 2427985842086,
        },
        tokens_burnt: NearToken {
            inner: 242798584208600000000,
        },
        executor_id: AccountId(
            "dev-20240710105733-45366912094718",
        ),
        status: SuccessReceiptId(GmJt2aaifxV1U9ArgyYkPgJicEpDnTNTsiPxK3s2x3Jm),
    },
    receipts: [
        ExecutionOutcome {
            transaction_hash: GmJt2aaifxV1U9ArgyYkPgJicEpDnTNTsiPxK3s2x3Jm,
            block_hash: 4aofPzjSwVP3wMPrxwAGBYHddTdaSkWVC8jVf4C6Fwxn,
            logs: [
                "claim_alias / alias: \"alias1\" / account_id: AccountId(\n    \"dev-20240710105733-45366912094718\",\n) / timestamp: 1720609061502596564",
            ],
            receipt_ids: [
                9PiXUsiLtZhrrJuSvfVp3eef4jSUtqx8HLKHbnRmndWi,
            ],
            gas_burnt: NearGas {
                inner: 3438394016150,
            },
            tokens_burnt: NearToken {
                inner: 343839401615000000000,
            },
            executor_id: AccountId(
                "dev-20240710105731-33556512771357",
            ),
            status: SuccessValue(''),
        },
        ExecutionOutcome {
            transaction_hash: 9PiXUsiLtZhrrJuSvfVp3eef4jSUtqx8HLKHbnRmndWi,
            block_hash: 4yXesmWTHubt6rGtPwoVJYJUA1GH3YSokVxYLUNxjmu4,
            logs: [],
            receipt_ids: [],
            gas_burnt: NearGas {
                inner: 223182562500,
            },
            tokens_burnt: NearToken {
                inner: 0,
            },
            executor_id: AccountId(
                "dev-20240710105733-45366912094718",
            ),
            status: SuccessValue(''),
        },
    ],
    status: SuccessValue(''),
}
total_gas_burnt_usd: 0.004067827697051648
outcome (success: true):
  outcome_gas_burnt_usd: 0.0016218945425134478
  outcome_tokens_burnt_usd: 0.0
outcome (success: true):
  outcome_gas_burnt_usd: 0.0022968472027882
  outcome_tokens_burnt_usd: 0.0
outcome (success: true):
  outcome_gas_burnt_usd: 0.00014908595175
  outcome_tokens_burnt_usd: 0.0


get_account_info(account1): Some(
    (
        "alias1",
        (
            1720609061502596564,
            1,
        ),
    ),
)


get_alias_map(account1, alias1): Some(
    {
        AccountId(
            "dev-20240710105736-71702227449377",
        ): (
            1720609059274136294,
            0,
        ),
        AccountId(
            "dev-20240710105733-45366912094718",
        ): (
            1720609061502596564,
            1,
        ),
    },
)


get_alias_map(account1, alias2): Some(
    {},
)
In [ ]:
{ pwsh ../apps/spiral/temp/extension/build.ps1 } | Invoke-Block
bun install v1.1.7 (b0b7db5c)

Checked 11 installs across 13 packages (no changes) [140.00ms]
[INFO]: 🎯  Checking for the Wasm target...
[INFO]: 🌀  Compiling to Wasm...
warning: enum `AlbumData` is never used
  --> C:\home\git\polyglot\apps\spiral\temp\extension\src\timer.rs:52:6
   |
52 | enum AlbumData {
   |      ^^^^^^^^^
   |
   = note: `#[warn(dead_code)]` on by default

warning: `spiral_temp_extension` (lib) generated 1 warning
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.27s
[INFO]: ⬇️  Installing wasm-bindgen...
[INFO]: Optional field missing from Cargo.toml: 'description'. This is not necessary, but recommended
[INFO]: origin crate has no LICENSE
[INFO]: ✨   Done in 4.32s
[INFO]: 📦   Your wasm pkg is ready to publish at C:\home\git\polyglot\apps\spiral\temp\extension\pkg.
▲ [WARNING] "import.meta" is not available with the "iife" output format and will be empty [empty-import-meta]

    pkg/spiral_temp_extension.js:1494:57:
      1494 │ ...put = new URL('spiral_temp_extension_bg.wasm', import.meta.url);
           ╵                                                   ~~~~~~~~~~~

  You need to set the output format to "esm" for "import.meta" to work correctly.

1 warning

  dist\spiral_temp_extension_bg-5KWOYDYA.wasm   4.5mb ⚠️
  dist\devtools.js                             29.0kb
  dist\content_script.js                       27.1kb
  dist\service_worker.js                        2.2kb

⚡ Done in 67ms
$ playwright test

Running 3 tests using 3 workers

[1/3] [Desktop Chrome] › extension.spec.ts:8:5 › popup extension
[2/3] [Desktop Chrome] › extension.spec.ts:3:5 › popup localhost
[3/3] [Desktop Chrome] › extension.spec.ts:13:5 › libgen
  3 passed (21.1s)

To open last HTML report run:

  npx playwright show-report

In [ ]:
{ pwsh ../apps/spiral/temp/test/build.ps1 } | Invoke-Block
00:00:00 verbose #1 async.run_with_timeout_async / { timeout = 180 }
00:00:00   debug #1 runtime.execute_with_options_async / { options = { command = dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port 13805 --default-int i32 --default-float f64; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = Some <fun:main@570-7>; stdin = None; trace = true; working_directory = Some "C:\home\git\polyglot" } }
00:00:01 verbose #2 > 00:00:00   debug #1 pwd: C:\home\git\polyglot
00:00:01 verbose #3 > 00:00:00   debug #2 dllPath: C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release
00:00:01 verbose #4 > 00:00:00   debug #3 targetDir: C:\home\git\polyglot\target/spiral_Eval
00:00:02 verbose #2 async.run_with_timeout_async / { timeout = 100 }
00:00:02 verbose #3 networking.wait_for_port_access / { port = 13805; retry = 0; timeout = Some 100; status = true }
00:00:02 verbose #4 async.run_with_timeout_async / { timeout = 100 }
00:00:02 verbose #5 async.run_with_timeout_async / { timeout = 100 }
00:00:02 verbose #5 > Starting the Spiral Server. It is bound to: http://localhost:13805
00:00:02   debug #1 runWithTimeoutAsync / timeout: 500
00:00:03 verbose #2 Supervisor.sendJson / port: 13805 / json: {"Ping":true} / result:
00:00:03 verbose #3 awaitCompiler / Ping / result: 'Some(null)' / port: 13805 / retry: 0
00:00:03 verbose #6 > Server bound to: http://localhost:13805
00:00:03   debug #7 runtime.execute_with_options_async / { options = { command = ../../../../workspace/target/release/spiral_builder.exe dib --path build.dib; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:00:03 verbose #8 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "build.dib"])) }
00:00:03 verbose #9 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/apps/spiral/temp/test/build.dib", "--output-path", "c:/home/git/polyglot/apps/spiral/temp/test/build.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/apps/spiral/temp/test/build.dib" --output-path "c:/home/git/polyglot/apps/spiral/temp/test/build.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:00:06 verbose #10 > >
00:00:06 verbose #11 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:06 verbose #12 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:06 verbose #13 > > │ # test                                                                       │
00:00:06 verbose #14 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:06 verbose #15 > >
00:00:06 verbose #16 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:06 verbose #17 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:06 verbose #18 > > │ ## include scripts                                                           │
00:00:06 verbose #19 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:06 verbose #20 > >
00:00:06 verbose #21 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:06 verbose #22 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:06 verbose #23 > > │ ### include notebook core                                                    │
00:00:06 verbose #24 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:06 verbose #25 > >
00:00:06 verbose #26 > > ── pwsh ────────────────────────────────────────────────────────────────────────
00:00:06 verbose #27 > > . ../../../../scripts/nbs_header.ps1
00:00:07 verbose #28 > >
00:00:07 verbose #29 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:07 verbose #30 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:07 verbose #31 > > │ ### Include core functions script                                            │
00:00:07 verbose #32 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 verbose #33 > >
00:00:07 verbose #34 > > ── pwsh ────────────────────────────────────────────────────────────────────────
00:00:07 verbose #35 > > . ../../../../scripts/core.ps1
00:00:07 verbose #36 > >
00:00:07 verbose #37 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:07 verbose #38 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:07 verbose #39 > > │ ### Include spiral library                                                   │
00:00:07 verbose #40 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 verbose #41 > >
00:00:07 verbose #42 > > ── pwsh ────────────────────────────────────────────────────────────────────────
00:00:07 verbose #43 > > . ../../../../lib/spiral/lib.ps1
00:00:07 verbose #44 > >
00:00:07 verbose #45 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:07 verbose #46 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:07 verbose #47 > > │ ## execute project commands                                                  │
00:00:07 verbose #48 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 verbose #49 > >
00:00:07 verbose #50 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:07 verbose #51 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:07 verbose #52 > > │ ### run notebook with retries using spiral supervisor                        │
00:00:07 verbose #53 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 verbose #54 > >
00:00:07 verbose #55 > > ── pwsh ────────────────────────────────────────────────────────────────────────
00:00:07 verbose #56 > > { . ../../../../apps/spiral/dist/Supervisor$(_exe) --execute-command
00:00:07 verbose #57 > > "../../../../workspace/target/release/spiral_builder$(_exe) dib --path test.dib
00:00:07 verbose #58 > > --retries 3" } | Invoke-Block
00:00:19 verbose #59 > 00:00:18   debug #4 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fa7845de436c12d0ca65282fe0cd65832468ca943e72feba50e6b1bb441e251a/main.spi
00:00:24 verbose #60 > 00:00:22   debug #5 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ce990c2052584bdfe3d9095a6f66f3692ed9d22db4dfe9c0572634f2ad4150ae/main.spi
00:00:29 verbose #61 > 00:00:27   debug #6 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fe0c2514da1c8580e6109e31362282ad2ab3a7239f752cd4b1aee48fbab1b1b8/main.spi
00:00:30 verbose #62 > 00:00:28   debug #7 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/178adaa8563fb65ff883d10755bcf85f8b120a85a2cb7d9c92ec7d8259bf1906/main.spi
00:00:30 verbose #63 > <test>
00:00:30 verbose #64 > </test>
00:00:38 verbose #65 > >
00:00:38 verbose #66 > > ╭─[ 31.24s - stdout ]──────────────────────────────────────────────────────────╮
00:00:38 verbose #67 > > │ 00:00:01 verbose #1 async.run_with_timeout_async / { timeout = 180 }    │
00:00:38 verbose #68 > > │ 00:00:01   debug #1 runtime.execute_with_options_async / { options = {  │
00:00:38 verbose #69 > > │ command = ../../../../workspace/target/release/spiral_builder.exe dib --path │
00:00:38 verbose #70 > > │ test.dib --retries 3; cancellation_token = Some                              │
00:00:38 verbose #71 > > │ System.Threading.CancellationToken; environment_variables = [||]; on_line =  │
00:00:38 verbose #72 > > │ None; stdin = None; trace = true; working_directory = None } }               │
00:00:38 verbose #73 > > │ 00:00:01 verbose #2 > 00:00:00   debug #1 spiral_builder.main / { │
00:00:38 verbose #74 > > │ args = Array(MutCell(["dib", "--path", "test.dib", "--retries", "3"])) }     │
00:00:38 verbose #75 > > │ 00:00:01 verbose #3 > 00:00:00   debug #2                         │
00:00:38 verbose #76 > > │ runtime.execute_with_options / { file_name = dotnet; arguments = ["repl",    │
00:00:38 verbose #77 > > │ "--exit-after-run", "--run",                                                 │
00:00:38 verbose #78 > > │ "c:/home/git/polyglot/apps/spiral/temp/test/test.dib", "--output-path",      │
00:00:38 verbose #79 > > │ "c:/home/git/polyglot/apps/spiral/temp/test/test.dib.ipynb"]; options = {    │
00:00:38 verbose #80 > > │ command = dotnet repl --exit-after-run --run                                 │
00:00:38 verbose #81 > > │ "c:/home/git/polyglot/apps/spiral/temp/test/test.dib" --output-path          │
00:00:38 verbose #82 > > │ "c:/home/git/polyglot/apps/spiral/temp/test/test.dib.ipynb";                 │
00:00:38 verbose #83 > > │ cancellation_token = None; environment_variables = Array(MutCell([           │
00:00:38 verbose #84 > > │ ("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin │
00:00:38 verbose #85 > > │ = None; trace = false; working_directory = None } }                          │
00:00:38 verbose #86 > > │ 00:00:05 verbose #4 > >                                                 │
00:00:38 verbose #87 > > │ 00:00:05 verbose #5 > > ── markdown                                     │
00:00:38 verbose #88 > > │ ────────────────────────────────────────────────────────────────────         │
00:00:38 verbose #89 > > │ 00:00:05 verbose #6 > >                                                 │
00:00:38 verbose #90 > > │ ╭─────────────────────────────────────────────────────────────────────────── │
00:00:38 verbose #91 > > │ ───╮                                                                         │
00:00:38 verbose #92 > > │ 00:00:05 verbose #7 > > │ # test (Polyglot)                             │
00:00:38 verbose #93 > > │ │                                                                            │
00:00:38 verbose #94 > > │ 00:00:05 verbose #8 > >                                                 │
00:00:38 verbose #95 > > │ ╰─────────────────────────────────────────────────────────────────────────── │
00:00:38 verbose #96 > > │ ───╯                                                                         │
00:00:38 verbose #97 > > │ 00:00:10 verbose #9 > >                                                 │
00:00:38 verbose #98 > > │ 00:00:10 verbose #10 > > ── spiral                                      │
00:00:38 verbose #99 > > │ ──────────────────────────────────────────────────────────────────────       │
00:00:38 verbose #100 > > │ 00:00:10 verbose #11 > > //// test                                      │
00:00:38 verbose #101 > > │ 00:00:10 verbose #12 > >                                                │
00:00:38 verbose #102 > > │ 00:00:10 verbose #13 > > open testing                                   │
00:00:38 verbose #103 > > │ 00:00:16 verbose #14 > >                                                │
00:00:38 verbose #104 > > │ 00:00:16 verbose #15 > > ── spiral                                      │
00:00:38 verbose #105 > > │ ──────────────────────────────────────────────────────────────────────       │
00:00:38 verbose #106 > > │ 00:00:16 verbose #16 > > nominal i = ()                                 │
00:00:38 verbose #107 > > │ 00:00:16 verbose #17 > > nominal e = ()                                 │
00:00:38 verbose #108 > > │ 00:00:16 verbose #18 > > nominal s = ()                                 │
00:00:38 verbose #109 > > │ 00:00:16 verbose #19 > > nominal n = ()                                 │
00:00:38 verbose #110 > > │ 00:00:16 verbose #20 > > nominal t = ()                                 │
00:00:38 verbose #111 > > │ 00:00:16 verbose #21 > > nominal f = ()                                 │
00:00:38 verbose #112 > > │ 00:00:16 verbose #22 > > nominal j = ()                                 │
00:00:38 verbose #113 > > │ 00:00:16 verbose #23 > > nominal p = ()                                 │
00:00:38 verbose #114 > > │ 00:00:16 verbose #24 > >                                                │
00:00:38 verbose #115 > > │ 00:00:16 verbose #25 > > union sensing =                                │
00:00:38 verbose #116 > > │ 00:00:16 verbose #26 > >     | Si : s * i                               │
00:00:38 verbose #117 > > │ 00:00:16 verbose #27 > >     | Se : s * e                               │
00:00:38 verbose #118 > > │ 00:00:16 verbose #28 > >                                                │
00:00:38 verbose #119 > > │ 00:00:16 verbose #29 > > union intuition =                              │
00:00:38 verbose #120 > > │ 00:00:16 verbose #30 > >     | Ni : n * i                               │
00:00:38 verbose #121 > > │ 00:00:16 verbose #31 > >     | Ne : n * e                               │
00:00:38 verbose #122 > > │ 00:00:16 verbose #32 > >                                                │
00:00:38 verbose #123 > > │ 00:00:16 verbose #33 > > union thinking =                               │
00:00:38 verbose #124 > > │ 00:00:16 verbose #34 > >     | Ti : t * i                               │
00:00:38 verbose #125 > > │ 00:00:16 verbose #35 > >     | Te : t * e                               │
00:00:38 verbose #126 > > │ 00:00:16 verbose #36 > >                                                │
00:00:38 verbose #127 > > │ 00:00:16 verbose #37 > > union feeling =                                │
00:00:38 verbose #128 > > │ 00:00:16 verbose #38 > >     | Fi : f * i                               │
00:00:38 verbose #129 > > │ 00:00:16 verbose #39 > >     | Fe : f * e                               │
00:00:38 verbose #130 > > │ 00:00:16 verbose #40 > >                                                │
00:00:38 verbose #131 > > │ 00:00:16 verbose #41 > > union function_stack =                         │
00:00:38 verbose #132 > > │ 00:00:16 verbose #42 > >     | FS : sensing * intuition * thinking *    │
00:00:38 verbose #133 > > │ feeling                                                                      │
00:00:38 verbose #134 > > │ 00:00:16 verbose #43 > >                                                │
00:00:38 verbose #135 > > │ 00:00:16 verbose #44 > > union personality_type =                       │
00:00:38 verbose #136 > > │ 00:00:16 verbose #45 > >     | ISTJ : i * s * t * j * function_stack    │
00:00:38 verbose #137 > > │ 00:00:16 verbose #46 > >     | ISFJ : i * s * f * j * function_stack    │
00:00:38 verbose #138 > > │ 00:00:16 verbose #47 > >     | INFJ : i * n * f * j * function_stack    │
00:00:38 verbose #139 > > │ 00:00:16 verbose #48 > >     | INTJ : i * n * t * j * function_stack    │
00:00:38 verbose #140 > > │ 00:00:16 verbose #49 > >     | ISTP : i * s * t * p * function_stack    │
00:00:38 verbose #141 > > │ 00:00:16 verbose #50 > >     | ISFP : i * s * f * p * function_stack    │
00:00:38 verbose #142 > > │ 00:00:16 verbose #51 > >     | INFP : i * n * f * p * function_stack    │
00:00:38 verbose #143 > > │ 00:00:16 verbose #52 > >     | INTP : i * n * t * p * function_stack    │
00:00:38 verbose #144 > > │ 00:00:16 verbose #53 > >     | ESTP : e * s * t * p * function_stack    │
00:00:38 verbose #145 > > │ 00:00:16 verbose #54 > >     | ESFP : e * s * f * p * function_stack    │
00:00:38 verbose #146 > > │ 00:00:16 verbose #55 > >     | ENFP : e * n * f * p * function_stack    │
00:00:38 verbose #147 > > │ 00:00:16 verbose #56 > >     | ENTP : e * n * t * p * function_stack    │
00:00:38 verbose #148 > > │ 00:00:16 verbose #57 > >     | ESTJ : e * s * t * j * function_stack    │
00:00:38 verbose #149 > > │ 00:00:16 verbose #58 > >     | ESFJ : e * s * f * j * function_stack    │
00:00:38 verbose #150 > > │ 00:00:16 verbose #59 > >     | ENFJ : e * n * f * j * function_stack    │
00:00:38 verbose #151 > > │ 00:00:16 verbose #60 > >     | ENTJ : e * n * t * j * function_stack    │
00:00:38 verbose #152 > > │ 00:00:16 verbose #61 > >                                                │
00:00:38 verbose #153 > > │ 00:00:16 verbose #62 > >                                                │
00:00:38 verbose #154 > > │ 00:00:16 verbose #63 > > inl main () =                                  │
00:00:38 verbose #155 > > │ 00:00:16 verbose #64 > >     inl istj_stack = FS ((Si (s, i)), Ne (n,   │
00:00:38 verbose #156 > > │ e), (Te (t, e)), (Fi (f, i)))                                                │
00:00:38 verbose #157 > > │ 00:00:16 verbose #65 > >     inl istj_personality = ISTJ (i, s, t, j,   │
00:00:38 verbose #158 > > │ istj_stack)                                                                  │
00:00:38 verbose #159 > > │ 00:00:16 verbose #66 > >     // inl isfj_stack = FS ((Si (s, i)), Ne    │
00:00:38 verbose #160 > > │ (n, e), (Fe (f, e)), (Ti (t, i)))                                            │
00:00:38 verbose #161 > > │ 00:00:16 verbose #67 > >     // inl isfj_personality = ISFJ (i, s, f,   │
00:00:38 verbose #162 > > │ j, isfj_stack)                                                               │
00:00:38 verbose #163 > > │ 00:00:16 verbose #68 > >                                                │
00:00:38 verbose #164 > > │ 00:00:16 verbose #69 > >     ;[[                                        │
00:00:38 verbose #165 > > │ 00:00:16 verbose #70 > >         istj_personality                       │
00:00:38 verbose #166 > > │ 00:00:16 verbose #71 > >     ]]                                         │
00:00:38 verbose #167 > > │ 00:00:16 verbose #72 > >     |> fun x => $'$"%A{!x}"' : string          │
00:00:38 verbose #168 > > │ 00:00:16 verbose #73 > >     |> console.write_line                      │
00:00:38 verbose #169 > > │ 00:00:16 verbose #74 > >                                                │
00:00:38 verbose #170 > > │ 00:00:16 verbose #75 > > inl main () =                                  │
00:00:38 verbose #171 > > │ 00:00:16 verbose #76 > >     $'!main ()' : ()                           │
00:00:38 verbose #172 > > │ 00:00:18 verbose #77 > >                                                │
00:00:38 verbose #173 > > │ 00:00:18 verbose #78 > > ╭─[ 2.48s - stdout                             │
00:00:38 verbose #174 > > │ ]───────────────────────────────────────────────────────────╮                │
00:00:38 verbose #175 > > │ 00:00:18 verbose #79 > > │ [|US5_0 (US4_0 (US0_0, US1_1, US2_1,         │
00:00:38 verbose #176 > > │ US3_0))|]                               │                                    │
00:00:38 verbose #177 > > │ 00:00:18 verbose #80 > > │                                              │
00:00:38 verbose #178 > > │                                                                              │
00:00:38 verbose #179 > > │ │                                                                            │
00:00:38 verbose #180 > > │ 00:00:18 verbose #81 > >                                                │
00:00:38 verbose #181 > > │ ╰─────────────────────────────────────────────────────────────────────────── │
00:00:38 verbose #182 > > │ ───╯                                                                         │
00:00:38 verbose #183 > > │ 00:00:20 verbose #82 > >                                                │
00:00:38 verbose #184 > > │ 00:00:20 verbose #83 > > ── fsharp                                      │
00:00:38 verbose #185 > > │ ──────────────────────────────────────────────────────────────────────       │
00:00:38 verbose #186 > > │ 00:00:20 verbose #84 > > type PhonologicalFeature =                     │
00:00:38 verbose #187 > > │ 00:00:20 verbose #85 > >     | VowelFeature of                          │
00:00:38 verbose #188 > > │ 00:00:20 verbose #86 > >         height: Height                         │
00:00:38 verbose #189 > > │ 00:00:20 verbose #87 > >         * backness: Backness                   │
00:00:38 verbose #190 > > │ 00:00:20 verbose #88 > >         * roundedness: Roundedness             │
00:00:38 verbose #191 > > │ 00:00:20 verbose #89 > >         * tone: Option<Tone>                   │
00:00:38 verbose #192 > > │ 00:00:20 verbose #90 > >         * stress: Option<Stress>               │
00:00:38 verbose #193 > > │ 00:00:20 verbose #91 > >         * length: Option<Length>               │
00:00:38 verbose #194 > > │ 00:00:20 verbose #92 > >     | ConsonantFeature of                      │
00:00:38 verbose #195 > > │ 00:00:20 verbose #93 > >         place: PlaceOfArticulation             │
00:00:38 verbose #196 > > │ 00:00:20 verbose #94 > >         * manner: MannerOfArticulation         │
00:00:38 verbose #197 > > │ 00:00:20 verbose #95 > >         * voicing: Voicing                     │
00:00:38 verbose #198 > > │ 00:00:20 verbose #96 > >         * length: Option<Length>               │
00:00:38 verbose #199 > > │ 00:00:20 verbose #97 > >     | VowelHarmonyFeature                      │
00:00:38 verbose #200 > > │ 00:00:20 verbose #98 > >     | PitchAccentFeature                       │
00:00:38 verbose #201 > > │ 00:00:20 verbose #99 > >                                                │
00:00:38 verbose #202 > > │ 00:00:20 verbose #100 > > and Stress = Primary | Secondary              │
00:00:38 verbose #203 > > │ 00:00:20 verbose #101 > > and Length = Long | Short | HalfLong          │
00:00:38 verbose #204 > > │ 00:00:20 verbose #102 > >                                               │
00:00:38 verbose #205 > > │ 00:00:20 verbose #103 > > and Height =                                  │
00:00:38 verbose #206 > > │ 00:00:20 verbose #104 > >     | High | NearHigh | HighMid               │
00:00:38 verbose #207 > > │ 00:00:20 verbose #105 > >     | Mid | LowMid | NearLow                  │
00:00:38 verbose #208 > > │ 00:00:20 verbose #106 > >     | Low                                     │
00:00:38 verbose #209 > > │ 00:00:20 verbose #107 > >                                               │
00:00:38 verbose #210 > > │ 00:00:20 verbose #108 > > and Backness = Front | Central | Back         │
00:00:38 verbose #211 > > │ 00:00:20 verbose #109 > >                                               │
00:00:38 verbose #212 > > │ 00:00:20 verbose #110 > > and Roundedness = Rounded | Unrounded         │
00:00:38 verbose #213 > > │ 00:00:20 verbose #111 > >                                               │
00:00:38 verbose #214 > > │ 00:00:20 verbose #112 > > and PlaceOfArticulation =                     │
00:00:38 verbose #215 > > │ 00:00:20 verbose #113 > >     | Bilabial | Labiodental | Dental         │
00:00:38 verbose #216 > > │ 00:00:20 verbose #114 > >     | Alveolar | Postalveolar | Retroflex     │
00:00:38 verbose #217 > > │ 00:00:20 verbose #115 > >     | Palatal | Velar | Uvular                │
00:00:38 verbose #218 > > │ 00:00:20 verbose #116 > >     | Pharyngeal | Epiglottal | Glottal       │
00:00:38 verbose #219 > > │ 00:00:20 verbose #117 > >                                               │
00:00:38 verbose #220 > > │ 00:00:20 verbose #118 > > and MannerOfArticulation =                    │
00:00:38 verbose #221 > > │ 00:00:20 verbose #119 > >     | Plosive | Nasal | Trill                 │
00:00:38 verbose #222 > > │ 00:00:20 verbose #120 > >     | TapOrFlap | Fricative |                 │
00:00:38 verbose #223 > > │ LateralFricative                                                             │
00:00:38 verbose #224 > > │ 00:00:20 verbose #121 > >     | Approximant | LateralApproximant        │
00:00:38 verbose #225 > > │ 00:00:20 verbose #122 > >                                               │
00:00:38 verbose #226 > > │ 00:00:20 verbose #123 > > and Voicing = Voiced | Voiceless              │
00:00:38 verbose #227 > > │ 00:00:20 verbose #124 > >                                               │
00:00:38 verbose #228 > > │ 00:00:20 verbose #125 > > and SecondaryArticulation =                   │
00:00:38 verbose #229 > > │ 00:00:20 verbose #126 > >     | Labialization | Palatalization |        │
00:00:38 verbose #230 > > │ Velarization                                                                 │
00:00:38 verbose #231 > > │ 00:00:20 verbose #127 > >     | Pharyngealization | Aspiration          │
00:00:38 verbose #232 > > │ 00:00:20 verbose #128 > >                                               │
00:00:38 verbose #233 > > │ 00:00:20 verbose #129 > > and Tone =                                    │
00:00:38 verbose #234 > > │ 00:00:20 verbose #130 > >     | LevelTone of int                        │
00:00:38 verbose #235 > > │ 00:00:20 verbose #131 > >     | ContourTone of int list                 │
00:00:38 verbose #236 > > │ 00:00:20 verbose #132 > >                                               │
00:00:38 verbose #237 > > │ 00:00:20 verbose #133 > > and MorphologicalFeature =                    │
00:00:38 verbose #238 > > │ 00:00:20 verbose #134 > >     | RootFeature of string                   │
00:00:38 verbose #239 > > │ 00:00:20 verbose #135 > >     | AffixFeature of AffixType * string      │
00:00:38 verbose #240 > > │ 00:00:20 verbose #136 > >     | IncorporationFeature of string *        │
00:00:38 verbose #241 > > │ MorphologicalFeature                                                         │
00:00:38 verbose #242 > > │ 00:00:20 verbose #137 > >     | NonConcatenativePattern of string *     │
00:00:38 verbose #243 > > │ string                                                                       │
00:00:38 verbose #244 > > │ 00:00:20 verbose #138 > >     | AgglutinativeAffixFeature of            │
00:00:38 verbose #245 > > │ AgglutinativeAffixType * string                                              │
00:00:38 verbose #246 > > │ 00:00:20 verbose #139 > >     | HonorificFeature of HonorificType *     │
00:00:38 verbose #247 > > │ string                                                                       │
00:00:38 verbose #248 > > │ 00:00:20 verbose #140 > >                                               │
00:00:38 verbose #249 > > │ 00:00:20 verbose #141 > > and AgglutinativeAffixType = Suffix | Prefix  │
00:00:38 verbose #250 > > │ 00:00:20 verbose #142 > >                                               │
00:00:38 verbose #251 > > │ 00:00:20 verbose #143 > > and HonorificType = VerbHonorific |           │
00:00:38 verbose #252 > > │ NounHonorific                                                                │
00:00:38 verbose #253 > > │ 00:00:20 verbose #144 > >                                               │
00:00:38 verbose #254 > > │ 00:00:20 verbose #145 > > and AffixType =                               │
00:00:38 verbose #255 > > │ 00:00:20 verbose #146 > >     | Prefix | Suffix | Infix                 │
00:00:38 verbose #256 > > │ 00:00:20 verbose #147 > >     | Circumfix                               │
00:00:38 verbose #257 > > │ 00:00:20 verbose #148 > >                                               │
00:00:38 verbose #258 > > │ 00:00:20 verbose #149 > > type SyntacticFeature =                       │
00:00:38 verbose #259 > > │ 00:00:20 verbose #150 > >     | WordFeature of MorphologicalFeature     │
00:00:38 verbose #260 > > │ list * LexicalCategory                                                       │
00:00:38 verbose #261 > > │ 00:00:20 verbose #151 > >     | PhraseFeature of PhraseType *           │
00:00:38 verbose #262 > > │ SyntacticFeature list                                                        │
00:00:38 verbose #263 > > │ 00:00:20 verbose #152 > >     | GrammaticalRelation of                  │
00:00:38 verbose #264 > > │ GrammaticalRelationType * SyntacticFeature list                              │
00:00:38 verbose #265 > > │ 00:00:20 verbose #153 > >     | SOVOrderFeature                         │
00:00:38 verbose #266 > > │ 00:00:20 verbose #154 > >     | TopicCommentFeature                     │
00:00:38 verbose #267 > > │ 00:00:20 verbose #155 > >                                               │
00:00:38 verbose #268 > > │ 00:00:20 verbose #156 > > and GrammaticalRelationType =                 │
00:00:38 verbose #269 > > │ 00:00:20 verbose #157 > >     | Ergative | Absolutive | Nominative      │
00:00:38 verbose #270 > > │ 00:00:20 verbose #158 > >     | Accusative                              │
00:00:38 verbose #271 > > │ 00:00:20 verbose #159 > >                                               │
00:00:38 verbose #272 > > │ 00:00:20 verbose #160 > > and LexicalCategory =                         │
00:00:38 verbose #273 > > │ 00:00:20 verbose #161 > >     | Noun | Verb | Adjective                 │
00:00:38 verbose #274 > > │ 00:00:20 verbose #162 > >     | Adverb | Pronoun | Preposition          │
00:00:38 verbose #275 > > │ 00:00:20 verbose #163 > >     | Conjunction | Determiner | Interjection │
00:00:38 verbose #276 > > │ 00:00:20 verbose #164 > >                                               │
00:00:38 verbose #277 > > │ 00:00:20 verbose #165 > > and PhraseType =                              │
00:00:38 verbose #278 > > │ 00:00:20 verbose #166 > >     | NP | VP | AP                            │
00:00:38 verbose #279 > > │ 00:00:20 verbose #167 > >     | PP | CP                                 │
00:00:38 verbose #280 > > │ 00:00:20 verbose #168 > >                                               │
00:00:38 verbose #281 > > │ 00:00:20 verbose #169 > > and SemanticFeature =                         │
00:00:38 verbose #282 > > │ 00:00:20 verbose #170 > >     | Meaning of string                       │
00:00:38 verbose #283 > > │ 00:00:20 verbose #171 > >     | SemanticRole of SemanticRoleType *      │
00:00:38 verbose #284 > > │ SemanticFeature                                                              │
00:00:38 verbose #285 > > │ 00:00:20 verbose #172 > >                                               │
00:00:38 verbose #286 > > │ 00:00:20 verbose #173 > > and SemanticRoleType =                        │
00:00:38 verbose #287 > > │ 00:00:20 verbose #174 > >     | Agent | Patient | Instrument            │
00:00:38 verbose #288 > > │ 00:00:20 verbose #175 > >     | Location | Time | Cause                 │
00:00:38 verbose #289 > > │ 00:00:20 verbose #176 > >                                               │
00:00:38 verbose #290 > > │ 00:00:20 verbose #177 > > and PragmaticFeature =                        │
00:00:38 verbose #291 > > │ 00:00:20 verbose #178 > >     | UseContext of string                    │
00:00:38 verbose #292 > > │ 00:00:20 verbose #179 > >     | PolitenessLevel of Politeness           │
00:00:38 verbose #293 > > │ 00:00:20 verbose #180 > >     | SpeechAct of SpeechActType              │
00:00:38 verbose #294 > > │ 00:00:20 verbose #181 > >     | SpeechLevel of SpeechLevelType          │
00:00:38 verbose #295 > > │ 00:00:20 verbose #182 > >                                               │
00:00:38 verbose #296 > > │ 00:00:20 verbose #183 > > and Politeness = Formal | Informal | Neutral  │
00:00:38 verbose #297 > > │ 00:00:20 verbose #184 > >                                               │
00:00:38 verbose #298 > > │ 00:00:20 verbose #185 > > and SpeechActType =                           │
00:00:38 verbose #299 > > │ 00:00:20 verbose #186 > >     | Assertive | Directive | Commissive      │
00:00:38 verbose #300 > > │ 00:00:20 verbose #187 > >     | Expressive | Declarative                │
00:00:38 verbose #301 > > │ 00:00:20 verbose #188 > >                                               │
00:00:38 verbose #302 > > │ 00:00:20 verbose #189 > > and SpeechLevelType =                         │
00:00:38 verbose #303 > > │ 00:00:20 verbose #190 > >     | FormalHigh | FormalLow | InformalHigh   │
00:00:38 verbose #304 > > │ 00:00:20 verbose #191 > >     | InformalLow | Neutral                   │
00:00:38 verbose #305 > > │ 00:00:20 verbose #192 > >                                               │
00:00:38 verbose #306 > > │ 00:00:20 verbose #193 > > type LinguisticFeature =                      │
00:00:38 verbose #307 > > │ 00:00:20 verbose #194 > >     | Phonological of PhonologicalFeature     │
00:00:38 verbose #308 > > │ 00:00:20 verbose #195 > >     | Morphological of MorphologicalFeature   │
00:00:38 verbose #309 > > │ 00:00:20 verbose #196 > >     | Syntactic of SyntacticFeature           │
00:00:38 verbose #310 > > │ 00:00:20 verbose #197 > >     | Semantic of SemanticFeature             │
00:00:38 verbose #311 > > │ 00:00:20 verbose #198 > >     | Pragmatic of PragmaticFeature           │
00:00:38 verbose #312 > > │ 00:00:20 verbose #199 > >                                               │
00:00:38 verbose #313 > > │ 00:00:20 verbose #200 > > type LanguageConstruct =                      │
00:00:38 verbose #314 > > │ 00:00:20 verbose #201 > >     | LanguageElement of LinguisticFeature    │
00:00:38 verbose #315 > > │ 00:00:20 verbose #202 > >     | LanguageStructure of LanguageConstruct  │
00:00:38 verbose #316 > > │ list                                                                         │
00:00:38 verbose #317 > > │ 00:00:20 verbose #203 > >     | TranslationElement of                   │
00:00:38 verbose #318 > > │ TranslationFeature                                                           │
00:00:38 verbose #319 > > │ 00:00:20 verbose #204 > >                                               │
00:00:38 verbose #320 > > │ 00:00:20 verbose #205 > > and TranslationFeature =                      │
00:00:38 verbose #321 > > │ 00:00:20 verbose #206 > >     | LinkedPhonological of                   │
00:00:38 verbose #322 > > │ PhonologicalFeature * PhonologicalFeature                                    │
00:00:38 verbose #323 > > │ 00:00:20 verbose #207 > >     | LinkedMorphological of                  │
00:00:38 verbose #324 > > │ MorphologicalFeature * MorphologicalFeature                                  │
00:00:38 verbose #325 > > │ 00:00:20 verbose #208 > >     | LinkedSyntactic of SyntacticFeature *   │
00:00:38 verbose #326 > > │ SyntacticFeature                                                             │
00:00:38 verbose #327 > > │ 00:00:20 verbose #209 > >     | LinkedSemantic of SemanticFeature *     │
00:00:38 verbose #328 > > │ SemanticFeature                                                              │
00:00:38 verbose #329 > > │ 00:00:20 verbose #210 > >                                               │
00:00:38 verbose #330 > > │ 00:00:20 verbose #211 > > type Discourse = DiscourseUnit of             │
00:00:38 verbose #331 > > │ LanguageConstruct list                                                       │
00:00:38 verbose #332 > > │ 00:00:20 verbose #212 > >                                               │
00:00:38 verbose #333 > > │ 00:00:20 verbose #213 > > type LanguageModel =                          │
00:00:38 verbose #334 > > │ 00:00:20 verbose #214 > >     | Model of discourse: Discourse           │
00:00:38 verbose #335 > > │ 00:00:21 verbose #215 > >                                               │
00:00:38 verbose #336 > > │ 00:00:21 verbose #216 > > ── fsharp                                     │
00:00:38 verbose #337 > > │ ──────────────────────────────────────────────────────────────────────       │
00:00:38 verbose #338 > > │ 00:00:21 verbose #217 > > let testEnglish =                             │
00:00:38 verbose #339 > > │ 00:00:21 verbose #218 > >     Model(                                    │
00:00:38 verbose #340 > > │ 00:00:21 verbose #219 > >         DiscourseUnit [[                      │
00:00:38 verbose #341 > > │ 00:00:21 verbose #220 > >             LanguageElement (Phonological     │
00:00:38 verbose #342 > > │ (ConsonantFeature (Alveolar, Nasal,                                          │
00:00:38 verbose #343 > > │ 00:00:21 verbose #221 > > Voiced, Some(HalfLong))));                    │
00:00:38 verbose #344 > > │ 00:00:21 verbose #222 > >             LanguageElement (Phonological     │
00:00:38 verbose #345 > > │ (VowelFeature (High, Front, Unrounded,                                       │
00:00:38 verbose #346 > > │ 00:00:21 verbose #223 > > Some(LevelTone 1), Some(Primary),             │
00:00:38 verbose #347 > > │ Some(Short))));                                                              │
00:00:38 verbose #348 > > │ 00:00:21 verbose #224 > >             LanguageElement (Phonological     │
00:00:38 verbose #349 > > │ (VowelFeature (Low, Front, Unrounded,                                        │
00:00:38 verbose #350 > > │ 00:00:21 verbose #225 > > Some(LevelTone 2), Some(Secondary),           │
00:00:38 verbose #351 > > │ Some(Long))));                                                               │
00:00:38 verbose #352 > > │ 00:00:21 verbose #226 > >             LanguageElement (Phonological     │
00:00:38 verbose #353 > > │ (ConsonantFeature (Velar, Plosive,                                           │
00:00:38 verbose #354 > > │ 00:00:21 verbose #227 > > Voiceless, Some(HalfLong))));                 │
00:00:38 verbose #355 > > │ 00:00:21 verbose #228 > >             LanguageElement (Morphological    │
00:00:38 verbose #356 > > │ (RootFeature "I"));                                                          │
00:00:38 verbose #357 > > │ 00:00:21 verbose #229 > >             LanguageElement (Morphological    │
00:00:38 verbose #358 > > │ (RootFeature "see"));                                                        │
00:00:38 verbose #359 > > │ 00:00:21 verbose #230 > >             LanguageElement (Morphological    │
00:00:38 verbose #360 > > │ (RootFeature "a"));                                                          │
00:00:38 verbose #361 > > │ 00:00:21 verbose #231 > >             LanguageElement (Morphological    │
00:00:38 verbose #362 > > │ (RootFeature "cat"));                                                        │
00:00:38 verbose #363 > > │ 00:00:21 verbose #232 > >             LanguageElement (Syntactic        │
00:00:38 verbose #364 > > │ (PhraseFeature (NP, [[WordFeature                                            │
00:00:38 verbose #365 > > │ 00:00:21 verbose #233 > > ([[RootFeature "I"]], Pronoun)]])));          │
00:00:38 verbose #366 > > │ 00:00:21 verbose #234 > >             LanguageElement (Syntactic        │
00:00:38 verbose #367 > > │ (PhraseFeature (VP, [[WordFeature                                            │
00:00:38 verbose #368 > > │ 00:00:21 verbose #235 > > ([[RootFeature "see"]], Verb)]])));           │
00:00:38 verbose #369 > > │ 00:00:21 verbose #236 > >             LanguageElement (Syntactic        │
00:00:38 verbose #370 > > │ (PhraseFeature (NP, [[WordFeature                                            │
00:00:38 verbose #371 > > │ 00:00:21 verbose #237 > > ([[RootFeature "a"; RootFeature "cat"]],      │
00:00:38 verbose #372 > > │ Noun)]])));                                                                  │
00:00:38 verbose #373 > > │ 00:00:21 verbose #238 > >             LanguageElement (Semantic         │
00:00:38 verbose #374 > > │ (Meaning "Perception act of a feline by                                      │
00:00:38 verbose #375 > > │ 00:00:21 verbose #239 > > the speaker"));                               │
00:00:38 verbose #376 > > │ 00:00:21 verbose #240 > >             LanguageElement (Pragmatic        │
00:00:38 verbose #377 > > │ (UseContext "Statement of an action being                                    │
00:00:38 verbose #378 > > │ 00:00:21 verbose #241 > > observed"))                                   │
00:00:38 verbose #379 > > │ 00:00:21 verbose #242 > >         ]]                                    │
00:00:38 verbose #380 > > │ 00:00:21 verbose #243 > >     )                                         │
00:00:38 verbose #381 > > │ 00:00:21 verbose #244 > >                                               │
00:00:38 verbose #382 > > │ 00:00:21 verbose #245 > > let testPortuguese =                          │
00:00:38 verbose #383 > > │ 00:00:21 verbose #246 > >     Model(                                    │
00:00:38 verbose #384 > > │ 00:00:21 verbose #247 > >         DiscourseUnit [[                      │
00:00:38 verbose #385 > > │ 00:00:21 verbose #248 > >             LanguageElement (Phonological     │
00:00:38 verbose #386 > > │ (VowelFeature (High, Front, Unrounded,                                       │
00:00:38 verbose #387 > > │ 00:00:21 verbose #249 > > Some(LevelTone 1), Some(Primary),             │
00:00:38 verbose #388 > > │ Some(Short))));                                                              │
00:00:38 verbose #389 > > │ 00:00:21 verbose #250 > >             LanguageElement (Phonological     │
00:00:38 verbose #390 > > │ (VowelFeature (Low, Front, Unrounded,                                        │
00:00:38 verbose #391 > > │ 00:00:21 verbose #251 > > Some(LevelTone 2), Some(Secondary),           │
00:00:38 verbose #392 > > │ Some(Long))));                                                               │
00:00:38 verbose #393 > > │ 00:00:21 verbose #252 > >             LanguageElement (Phonological     │
00:00:38 verbose #394 > > │ (VowelFeature (Mid, Back, Rounded,                                           │
00:00:38 verbose #395 > > │ 00:00:21 verbose #253 > > Some(LevelTone 3), Some(Primary),             │
00:00:38 verbose #396 > > │ Some(Short))));                                                              │
00:00:38 verbose #397 > > │ 00:00:21 verbose #254 > >             LanguageElement (Phonological     │
00:00:38 verbose #398 > > │ (ConsonantFeature (Velar, Plosive,                                           │
00:00:38 verbose #399 > > │ 00:00:21 verbose #255 > > Voiceless, Some(HalfLong))));                 │
00:00:38 verbose #400 > > │ 00:00:21 verbose #256 > >             LanguageElement (Morphological    │
00:00:38 verbose #401 > > │ (RootFeature "Eu"));                                                         │
00:00:38 verbose #402 > > │ 00:00:21 verbose #257 > >             LanguageElement (Morphological    │
00:00:38 verbose #403 > > │ (RootFeature "ver" |> ignore;                                                │
00:00:38 verbose #404 > > │ 00:00:21 verbose #258 > > AffixFeature (Suffix, "o")));                 │
00:00:38 verbose #405 > > │ 00:00:21 verbose #259 > >             LanguageElement (Morphological    │
00:00:38 verbose #406 > > │ (RootFeature "um"));                                                         │
00:00:38 verbose #407 > > │ 00:00:21 verbose #260 > >             LanguageElement (Morphological    │
00:00:38 verbose #408 > > │ (RootFeature "gato"));                                                       │
00:00:38 verbose #409 > > │ 00:00:21 verbose #261 > >             LanguageElement (Syntactic        │
00:00:38 verbose #410 > > │ (PhraseFeature (NP, [[WordFeature                                            │
00:00:38 verbose #411 > > │ 00:00:21 verbose #262 > > ([[RootFeature "Eu"]], Pronoun)]])));         │
00:00:38 verbose #412 > > │ 00:00:21 verbose #263 > >             LanguageElement (Syntactic        │
00:00:38 verbose #413 > > │ (PhraseFeature (VP, [[WordFeature                                            │
00:00:38 verbose #414 > > │ 00:00:21 verbose #264 > > ([[RootFeature "vejo"]], Verb)]])));          │
00:00:38 verbose #415 > > │ 00:00:21 verbose #265 > >             LanguageElement (Syntactic        │
00:00:38 verbose #416 > > │ (PhraseFeature (NP, [[WordFeature                                            │
00:00:38 verbose #417 > > │ 00:00:21 verbose #266 > > ([[RootFeature "um"; RootFeature "gato"]],    │
00:00:38 verbose #418 > > │ Noun)]])));                                                                  │
00:00:38 verbose #419 > > │ 00:00:21 verbose #267 > >             LanguageElement (Semantic         │
00:00:38 verbose #420 > > │ (Meaning "Ação de percepção de um felino                                     │
00:00:38 verbose #421 > > │ 00:00:21 verbose #268 > > pelo falante"));                              │
00:00:38 verbose #422 > > │ 00:00:21 verbose #269 > >             LanguageElement (Pragmatic        │
00:00:38 verbose #423 > > │ (UseContext "Declaração de uma ação sendo                                    │
00:00:38 verbose #424 > > │ 00:00:21 verbose #270 > > observada"))                                  │
00:00:38 verbose #425 > > │ 00:00:21 verbose #271 > >         ]]                                    │
00:00:38 verbose #426 > > │ 00:00:21 verbose #272 > >     )                                         │
00:00:38 verbose #427 > > │ 00:00:21 verbose #273 > >                                               │
00:00:38 verbose #428 > > │ 00:00:21 verbose #274 > > let testKorean =                              │
00:00:38 verbose #429 > > │ 00:00:21 verbose #275 > >     Model(                                    │
00:00:38 verbose #430 > > │ 00:00:21 verbose #276 > >         DiscourseUnit [[                      │
00:00:38 verbose #431 > > │ 00:00:21 verbose #277 > >             LanguageElement (Phonological     │
00:00:38 verbose #432 > > │ (ConsonantFeature (Alveolar, Nasal,                                          │
00:00:38 verbose #433 > > │ 00:00:21 verbose #278 > > Voiced, Some(Short))));                       │
00:00:38 verbose #434 > > │ 00:00:21 verbose #279 > >             LanguageElement (Phonological     │
00:00:38 verbose #435 > > │ (VowelFeature (High, Back, Rounded,                                          │
00:00:38 verbose #436 > > │ 00:00:21 verbose #280 > > None, None, Some(Short))));                   │
00:00:38 verbose #437 > > │ 00:00:21 verbose #281 > >             LanguageElement (Phonological     │
00:00:38 verbose #438 > > │ (VowelFeature (Mid, Front, Unrounded,                                        │
00:00:38 verbose #439 > > │ 00:00:21 verbose #282 > > None, None, Some(Long))));                    │
00:00:38 verbose #440 > > │ 00:00:21 verbose #283 > >             LanguageElement (Phonological     │
00:00:38 verbose #441 > > │ (ConsonantFeature (Bilabial, Plosive,                                        │
00:00:38 verbose #442 > > │ 00:00:21 verbose #284 > > Voiceless, Some(Short))));                    │
00:00:38 verbose #443 > > │ 00:00:21 verbose #285 > >             LanguageElement (Morphological    │
00:00:38 verbose #444 > > │ (RootFeature "나"));                                                         │
00:00:38 verbose #445 > > │ 00:00:21 verbose #286 > >             LanguageElement (Morphological    │
00:00:38 verbose #446 > > │ (RootFeature "보다"));                                                       │
00:00:38 verbose #447 > > │ 00:00:21 verbose #287 > >             LanguageElement (Morphological    │
00:00:38 verbose #448 > > │ (AffixFeature (Suffix, "아")));                                              │
00:00:38 verbose #449 > > │ 00:00:21 verbose #288 > >             LanguageElement (Morphological    │
00:00:38 verbose #450 > > │ (RootFeature "고양이"));                                                     │
00:00:38 verbose #451 > > │ 00:00:21 verbose #289 > >             LanguageElement (Syntactic        │
00:00:38 verbose #452 > > │ (PhraseFeature (NP, [[WordFeature                                            │
00:00:38 verbose #453 > > │ 00:00:21 verbose #290 > > ([[RootFeature "나"]], Pronoun)]])));         │
00:00:38 verbose #454 > > │ 00:00:21 verbose #291 > >             LanguageElement (Syntactic        │
00:00:38 verbose #455 > > │ (PhraseFeature (VP, [[WordFeature                                            │
00:00:38 verbose #456 > > │ 00:00:21 verbose #292 > > ([[RootFeature "보다"; AffixFeature (Suffix,  │
00:00:38 verbose #457 > > │ "아")]], Verb)]])));                                                         │
00:00:38 verbose #458 > > │ 00:00:21 verbose #293 > >             LanguageElement (Syntactic        │
00:00:38 verbose #459 > > │ (PhraseFeature (NP, [[WordFeature                                            │
00:00:38 verbose #460 > > │ 00:00:21 verbose #294 > > ([[RootFeature "고양이"]], Noun)]])));        │
00:00:38 verbose #461 > > │ 00:00:21 verbose #295 > >             LanguageElement (Semantic         │
00:00:38 verbose #462 > > │ (Meaning "화자에 의한 고양이의 관찰                                          │
00:00:38 verbose #463 > > │ 00:00:21 verbose #296 > > 행위"));                                      │
00:00:38 verbose #464 > > │ 00:00:21 verbose #297 > >             LanguageElement (Pragmatic        │
00:00:38 verbose #465 > > │ (UseContext "관찰되고 있는 행동의 진술"))                                    │
00:00:38 verbose #466 > > │ 00:00:21 verbose #298 > >         ]]                                    │
00:00:38 verbose #467 > > │ 00:00:21 verbose #299 > >     )                                         │
00:00:38 verbose #468 > > │ 00:00:21 verbose #300 > >                                               │
00:00:38 verbose #469 > > │ 00:00:21 verbose #301 > > ── markdown                                   │
00:00:38 verbose #470 > > │ ────────────────────────────────────────────────────────────────────         │
00:00:38 verbose #471 > > │ 00:00:21 verbose #302 > >                                               │
00:00:38 verbose #472 > > │ ╭─────────────────────────────────────────────────────────────────────────── │
00:00:38 verbose #473 > > │ ───╮                                                                         │
00:00:38 verbose #474 > > │ 00:00:21 verbose #303 > > │ ## main                                     │
00:00:38 verbose #475 > > │ │                                                                            │
00:00:38 verbose #476 > > │ 00:00:21 verbose #304 > >                                               │
00:00:38 verbose #477 > > │ ╰─────────────────────────────────────────────────────────────────────────── │
00:00:38 verbose #478 > > │ ───╯                                                                         │
00:00:38 verbose #479 > > │ 00:00:21 verbose #305 > >                                               │
00:00:38 verbose #480 > > │ 00:00:21 verbose #306 > > ── spiral                                     │
00:00:38 verbose #481 > > │ ──────────────────────────────────────────────────────────────────────       │
00:00:38 verbose #482 > > │ 00:00:21 verbose #307 > > inl main (_args : array_base string) =        │
00:00:38 verbose #483 > > │ 00:00:21 verbose #308 > >     0i32                                      │
00:00:38 verbose #484 > > │ 00:00:21 verbose #309 > >                                               │
00:00:38 verbose #485 > > │ 00:00:21 verbose #310 > > inl main () =                                 │
00:00:38 verbose #486 > > │ 00:00:21 verbose #311 > >     $'let main args = !main args' : ()        │
00:00:38 verbose #487 > > │ 00:00:22 verbose #312 > >                                               │
00:00:38 verbose #488 > > │ 00:00:22 verbose #313 > > ── spiral                                     │
00:00:38 verbose #489 > > │ ──────────────────────────────────────────────────────────────────────       │
00:00:38 verbose #490 > > │ 00:00:22 verbose #314 > > inl app () =                                  │
00:00:38 verbose #491 > > │ 00:00:22 verbose #315 > >     "test" |> console.write_line              │
00:00:38 verbose #492 > > │ 00:00:22 verbose #316 > >     0i32                                      │
00:00:38 verbose #493 > > │ 00:00:22 verbose #317 > >                                               │
00:00:38 verbose #494 > > │ 00:00:22 verbose #318 > > inl main () =                                 │
00:00:38 verbose #495 > > │ 00:00:22 verbose #319 > >     print_static "<test>"                     │
00:00:38 verbose #496 > > │ 00:00:22 verbose #320 > >                                               │
00:00:38 verbose #497 > > │ 00:00:22 verbose #321 > >     app                                       │
00:00:38 verbose #498 > > │ 00:00:22 verbose #322 > >     |> dyn                                    │
00:00:38 verbose #499 > > │ 00:00:22 verbose #323 > >     |> ignore                                 │
00:00:38 verbose #500 > > │ 00:00:22 verbose #324 > >                                               │
00:00:38 verbose #501 > > │ 00:00:22 verbose #325 > >     print_static "</test>"                    │
00:00:38 verbose #502 > > │ 00:00:22 verbose #326 > 00:00:21 verbose #3                       │
00:00:38 verbose #503 > > │ runtime.execute_with_options / result / { exit_code = 0; std_trace_length =  │
00:00:38 verbose #504 > > │ 10945 }                                                                      │
00:00:38 verbose #505 > > │ 00:00:22 verbose #327 > 00:00:21   debug #4                       │
00:00:38 verbose #506 > > │ runtime.execute_with_options / { file_name = jupyter; arguments = [          │
00:00:38 verbose #507 > > │ "nbconvert", "c:/home/git/polyglot/apps/spiral/temp/test/test.dib.ipynb",    │
00:00:38 verbose #508 > > │ "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter  │
00:00:38 verbose #509 > > │ nbconvert "c:/home/git/polyglot/apps/spiral/temp/test/test.dib.ipynb" --to   │
00:00:38 verbose #510 > > │ html --HTMLExporter.theme=dark; cancellation_token = None;                   │
00:00:38 verbose #511 > > │ environment_variables = Array(MutCell([])); on_line = None; stdin = None;    │
00:00:38 verbose #512 > > │ trace = true; working_directory = None } }                                   │
00:00:38 verbose #513 > > │ 00:00:25 verbose #328 > 00:00:24 verbose #5 ! [NbConvertApp]      │
00:00:38 verbose #514 > > │ Converting notebook                                                          │
00:00:38 verbose #515 > > │ c:/home/git/polyglot/apps/spiral/temp/test/test.dib.ipynb to html            │
00:00:38 verbose #516 > > │ 00:00:25 verbose #329 > 00:00:24 verbose #6 !                     │
00:00:38 verbose #517 > > │ C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__ │
00:00:38 verbose #518 > > │ .py:93: MissingIDFieldWarning: Code cell is missing an id field, this will   │
00:00:38 verbose #519 > > │ become a hard error in future nbformat versions. You may want to use         │
00:00:38 verbose #520 > > │ `normalize()` on your notebooks before validations (available since nbformat │
00:00:38 verbose #521 > > │ 5.1.4). Previous versions of nbformat are fixing this issue transparently,   │
00:00:38 verbose #522 > > │ and will stop doing so in the future.                                        │
00:00:38 verbose #523 > > │ 00:00:25 verbose #330 > 00:00:24 verbose #7 !   validate(nb)      │
00:00:38 verbose #524 > > │ 00:00:28 verbose #331 > 00:00:26 verbose #8 ! [NbConvertApp]      │
00:00:38 verbose #525 > > │ Writing 318992 bytes to                                                      │
00:00:38 verbose #526 > > │ c:\home\git\polyglot\apps\spiral\temp\test\test.dib.html                     │
00:00:38 verbose #527 > > │ 00:00:28 verbose #332 > 00:00:26 verbose #9                       │
00:00:38 verbose #528 > > │ runtime.execute_with_options / result / { exit_code = 0; std_trace_length =  │
00:00:38 verbose #529 > > │ 661 }                                                                        │
00:00:38 verbose #530 > > │ 00:00:28 verbose #333 > 00:00:26   debug #10 spiral_builder.run / │
00:00:38 verbose #531 > > │ dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 661 }     │
00:00:38 verbose #532 > > │ 00:00:28 verbose #334 > 00:00:26   debug #11                      │
00:00:38 verbose #533 > > │ runtime.execute_with_options / { file_name = pwsh; arguments = ["-c",        │
00:00:38 verbose #534 > > │ "$counter = 1; $path =                                                       │
00:00:38 verbose #535 > > │ 'c:/home/git/polyglot/apps/spiral/temp/test/test.dib.html'; (Get-Content     │
00:00:38 verbose #536 > > │ $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value │
00:00:38 verbose #537 > > │ + $counter++ } | Set-Content $path"]; options = { command = pwsh -c          │
00:00:38 verbose #538 > > │ "$counter = 1; $path =                                                       │
00:00:38 verbose #539 > > │ 'c:/home/git/polyglot/apps/spiral/temp/test/test.dib.html'; (Get-Content     │
00:00:38 verbose #540 > > │ $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + │
00:00:38 verbose #541 > > │ $counter++ } | Set-Content $path"; cancellation_token = None;                │
00:00:38 verbose #542 > > │ environment_variables = Array(MutCell([])); on_line = None; stdin = None;    │
00:00:38 verbose #543 > > │ trace = true; working_directory = None } }                                   │
00:00:38 verbose #544 > > │ 00:00:29 verbose #335 > 00:00:27 verbose #12                      │
00:00:38 verbose #545 > > │ runtime.execute_with_options / result / { exit_code = 0; std_trace_length =  │
00:00:38 verbose #546 > > │ 0 }                                                                          │
00:00:38 verbose #547 > > │ 00:00:29 verbose #336 > 00:00:27   debug #13 spiral_builder.run / │
00:00:38 verbose #548 > > │ dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 } │
00:00:38 verbose #549 > > │ 00:00:30 verbose #337 > 00:00:28   debug #14 spiral_builder.run / │
00:00:38 verbose #550 > > │ dib / { exit_code = 0; result_length = 11665 }                               │
00:00:38 verbose #551 > > │ 00:00:30   debug #338 runtime.execute_with_options_async / { exit_code  │
00:00:38 verbose #552 > > │ = 0; output_length = 14996 }                                                 │
00:00:38 verbose #553 > > │ 00:00:30   debug #1 main / executeCommand / exitCode: 0 / command:      │
00:00:38 verbose #554 > > │ ../../../../workspace/target/release/spiral_builder.exe dib --path test.dib  │
00:00:38 verbose #555 > > │ --retries 3                                                                  │
00:00:38 verbose #556 > > │                                                                              │
00:00:38 verbose #557 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:38 verbose #558 > >
00:00:38 verbose #559 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:38 verbose #560 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:38 verbose #561 > > │ ### parse the .dib file into .spi format with dibparser                      │
00:00:38 verbose #562 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:38 verbose #563 > >
00:00:38 verbose #564 > > ── pwsh ────────────────────────────────────────────────────────────────────────
00:00:38 verbose #565 > > { . ../../../../apps/parser/dist/DibParser$(_exe) test.dib spi } | Invoke-Block
00:00:40 verbose #566 > >
00:00:40 verbose #567 > > ╭─[ 1.13s - stdout ]───────────────────────────────────────────────────────────╮
00:00:40 verbose #568 > > │ 00:00:00   debug #1 writeDibCode / output: Spi / path: test.dib         │
00:00:40 verbose #569 > > │ 00:00:00   debug #2 parseDibCode / output: Spi / file: test.dib         │
00:00:40 verbose #570 > > │                                                                              │
00:00:40 verbose #571 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:40 verbose #572 > >
00:00:40 verbose #573 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:40 verbose #574 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:40 verbose #575 > > │ ### build .fsx file from .spi using supervisor                               │
00:00:40 verbose #576 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:40 verbose #577 > >
00:00:40 verbose #578 > > ── pwsh ────────────────────────────────────────────────────────────────────────
00:00:40 verbose #579 > > { . ../../../../apps/spiral/dist/Supervisor$(_exe) --build-file test.spi
00:00:40 verbose #580 > > test.fsx } | Invoke-Block
00:00:42 verbose #581 > 00:00:41   debug #8 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/apps/spiral/temp/test/test.spi
00:00:43 verbose #582 > <test>
00:00:43 verbose #583 > </test>
00:00:43 verbose #584 > >
00:00:43 verbose #585 > > ╭─[ 3.32s - stdout ]───────────────────────────────────────────────────────────╮
00:00:43 verbose #586 > > │ 00:00:01 verbose #1 async.run_with_timeout_async / { timeout = 180 }    │
00:00:43 verbose #587 > > │ 00:00:01 verbose #2 async.run_with_timeout_async / { timeout = 180 }    │
00:00:43 verbose #588 > > │ 00:00:01   debug #1 Supervisor.buildFile / takeWhileInclusive /         │
00:00:43 verbose #589 > > │ outputContent:                                                               │
00:00:43 verbose #590 > > │  / errors: [] / typeErrorCount: 0 / retry: 0 / path: test.spi                │
00:00:43 verbose #591 > > │ 00:00:02   debug #2 Supervisor.buildFile / AsyncSeq.scan /              │
00:00:43 verbose #592 > > │ outputContent:                                                               │
00:00:43 verbose #593 > > │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
00:00:43 verbose #594 > > │ error:  / path: test.spi                                                     │
00:00:43 verbose #595 > > │ 00:00:02   debug #3 Supervisor.buildFile / takeWhileInclusive /         │
00:00:43 verbose #596 > > │ outputContent:                                                               │
00:00:43 verbose #597 > > │  / errors: [] / typeErrorCount: 0 / retry: 0 / path: test.spi                │
00:00:43 verbose #598 > > │ 00:00:02 verbose #4 Supervisor.sendJson / port: 13805 / json:           │
00:00:43 verbose #599 > > │ {"FileOpen":{"spiText":"/// # test (Polyglot)\nnominal i = ()\nnominal e =   │
00:00:43 verbose #600 > > │ ()\nnominal s =                                                              │
00:00:43 verbose #601 > > │ ()\nnomin...0022\u003C/test\u003E\u0022\n","uri":"file:///c:/home/git/polygl │
00:00:43 verbose #602 > > │ ot/apps/spiral/temp/test/test.spi"}} / result:                               │
00:00:43 verbose #603 > > │ 00:00:02 verbose #5 Supervisor.sendJson / port: 13805 / json:           │
00:00:43 verbose #604 > > │ {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/apps/sp │
00:00:43 verbose #605 > > │ iral/temp/test/test.spi"}} / result:                                         │
00:00:43 verbose #606 > > │ 00:00:02   debug #6 Supervisor.buildFile / AsyncSeq.scan /              │
00:00:43 verbose #607 > > │ outputContent:                                                               │
00:00:43 verbose #608 > > │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
00:00:43 verbose #609 > > │ error:  / path: test.spi                                                     │
00:00:43 verbose #610 > > │ 00:00:02   debug #7 Supervisor.buildFile / takeWhileInclusive /         │
00:00:43 verbose #611 > > │ outputContent:                                                               │
00:00:43 verbose #612 > > │  / errors: [] / typeErrorCount: 0 / retry: 0 / path: test.spi                │
00:00:43 verbose #613 > > │ 00:00:02   debug #8 Supervisor.buildFile / AsyncSeq.scan /              │
00:00:43 verbose #614 > > │ outputContent:                                                               │
00:00:43 verbose #615 > > │ let rec closure0 () () : int32 =                                             │
00:00:43 verbose #616 > > │     let v2 : (string -> unit) = System.Console.WriteLine                     │
00:00:43 verbose #617 > > │     let v3 : string = "test"                                                 │
00:00:43 verbose #618 > > │     v2 v3                                                                    │
00:00:43 verbose #619 > > │     0                                                                        │
00:00:43 verbose #620 > > │ let v0 : (unit -> int32) = closure0()                                        │
00:00:43 verbose #621 > > │ ()                                                                           │
00:00:43 verbose #622 > > │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
00:00:43 verbose #623 > > │ error:  / path: test.spi                                                     │
00:00:43 verbose #624 > > │ 00:00:02   debug #9 Supervisor.buildFile / takeWhileInclusive /         │
00:00:43 verbose #625 > > │ outputContent:                                                               │
00:00:43 verbose #626 > > │ let rec closure0 () () : int32 =                                             │
00:00:43 verbose #627 > > │     let v2 : (string -> unit) = System.Console.WriteLine                     │
00:00:43 verbose #628 > > │     let v3 : string = "test"                                                 │
00:00:43 verbose #629 > > │     v2 v3                                                                    │
00:00:43 verbose #630 > > │     0                                                                        │
00:00:43 verbose #631 > > │ let v0 : (unit -> int32) = closure0()                                        │
00:00:43 verbose #632 > > │ ()                                                                           │
00:00:43 verbose #633 > > │  / errors: [] / typeErrorCount: 0 / retry: 0 / path: test.spi                │
00:00:43 verbose #634 > > │ 00:00:02   debug #10 FileSystem.watchWithFilter / Disposing watch       │
00:00:43 verbose #635 > > │ stream / filter: FileName, LastWrite                                         │
00:00:43 verbose #636 > > │                                                                              │
00:00:43 verbose #637 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:43 verbose #638 > >
00:00:43 verbose #639 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:43 verbose #640 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:43 verbose #641 > > │ ## compile and format the project                                            │
00:00:43 verbose #642 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:43 verbose #643 > >
00:00:43 verbose #644 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:43 verbose #645 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:43 verbose #646 > > │ ### compile project with fable targeting optimized rust                      │
00:00:43 verbose #647 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:43 verbose #648 > >
00:00:43 verbose #649 > > ── pwsh ────────────────────────────────────────────────────────────────────────
00:00:43 verbose #650 > > dotnet fable --optimize --lang rs --extension .rs
00:00:49 verbose #651 > >
00:00:49 verbose #652 > > ╭─[ 6.14s - stdout ]───────────────────────────────────────────────────────────╮
00:00:49 verbose #653 > > │ Fable 4.19.3: F# to Rust compiler (status: alpha)                            │
00:00:49 verbose #654 > > │                                                                              │
00:00:49 verbose #655 > > │ Thanks to the contributor! @mastoj                                           │
00:00:49 verbose #656 > > │ Stand with Ukraine! https://standwithukraine.com.ua/                         │
00:00:49 verbose #657 > > │                                                                              │
00:00:49 verbose #658 > > │ Parsing test.fsproj...                                                       │
00:00:49 verbose #659 > > │ Retrieving project options from cache, in case of issues run `dotnet fable   │
00:00:49 verbose #660 > > │ clean` or try `--noCache` option.                                            │
00:00:49 verbose #661 > > │ Project and references (1 source files) parsed in 272ms                      │
00:00:49 verbose #662 > > │                                                                              │
00:00:49 verbose #663 > > │ Started Fable compilation...                                                 │
00:00:49 verbose #664 > > │                                                                              │
00:00:49 verbose #665 > > │ Fable compilation finished in 2515ms                                         │
00:00:49 verbose #666 > > │                                                                              │
00:00:49 verbose #667 > > │ .\test.fsx(7,0): (7,2) warning FABLE: For Rust, support for F# static and    │
00:00:49 verbose #668 > > │ module do bindings is disabled by default. It can be enabled with the        │
00:00:49 verbose #669 > > │ 'static_do_bindings' feature. Use at your own risk!                          │
00:00:49 verbose #670 > > │                                                                              │
00:00:49 verbose #671 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:49 verbose #672 > >
00:00:49 verbose #673 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:49 verbose #674 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:49 verbose #675 > > │ ### fix formatting issues in the .rs file using regex and set-content        │
00:00:49 verbose #676 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:49 verbose #677 > >
00:00:49 verbose #678 > > ── pwsh ────────────────────────────────────────────────────────────────────────
00:00:49 verbose #679 > > (Get-Content test.rs) `
00:00:49 verbose #680 > >     -replace [[regex]]::Escape("),);"), "));" `
00:00:49 verbose #681 > >     | FixRust `
00:00:49 verbose #682 > > | Set-Content test.rs
00:00:49 verbose #683 > >
00:00:49 verbose #684 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:49 verbose #685 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:49 verbose #686 > > │ ### format the rust code using cargo fmt                                     │
00:00:49 verbose #687 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:49 verbose #688 > >
00:00:49 verbose #689 > > ── pwsh ────────────────────────────────────────────────────────────────────────
00:00:49 verbose #690 > > cargo fmt --
00:00:50 verbose #691 > >
00:00:50 verbose #692 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:50 verbose #693 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:50 verbose #694 > > │ ## build and test the project                                                │
00:00:50 verbose #695 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:50 verbose #696 > >
00:00:50 verbose #697 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:50 verbose #698 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:50 verbose #699 > > │ ### build the project in release mode using nightly rust compiler            │
00:00:50 verbose #700 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:50 verbose #701 > >
00:00:50 verbose #702 > > ── pwsh ────────────────────────────────────────────────────────────────────────
00:00:50 verbose #703 > > cargo +nightly build --release
00:01:05 verbose #704 > >
00:01:05 verbose #705 > > ╭─[ 14.90s - stdout ]──────────────────────────────────────────────────────────╮
00:01:05 verbose #706 > > │    Compiling fable_library_rust v0.1.0                                  │
00:01:05 verbose #707 > > │ (C:\home\git\polyglot\lib\rust\fable\fable_modules\fable-library-rust)     │
00:01:05 verbose #708 > > │    Compiling spiral_temp_test v0.0.1                                    │
00:01:05 verbose #709 > > │ (C:\home\git\polyglot\apps\spiral\temp\test)                               │
00:01:05 verbose #710 > > │ warning: enum `Item` is never used                                    │
00:01:05 verbose #711 > > │   --> C:\home\git\polyglot\apps\spiral\temp\test\./main.rs:16:6       │
00:01:05 verbose #712 > > │    |                                                                  │
00:01:05 verbose #713 > > │ 16 | enum Item {                                                      │
00:01:05 verbose #714 > > │    |      ^^^^                                                        │
00:01:05 verbose #715 > > │    |                                                                  │
00:01:05 verbose #716 > > │    = note: `#[warn(dead_code)]` on by default                         │
00:01:05 verbose #717 > > │                                                                       │
00:01:05 verbose #718 > > │ warning: struct `Cart` is never constructed                           │
00:01:05 verbose #719 > > │   --> C:\home\git\polyglot\apps\spiral\temp\test\./main.rs:41:8       │
00:01:05 verbose #720 > > │    |                                                                  │
00:01:05 verbose #721 > > │ 41 | struct Cart {                                                    │
00:01:05 verbose #722 > > │    |        ^^^^                                                      │
00:01:05 verbose #723 > > │                                                                       │
00:01:05 verbose #724 > > │ warning: associated items `new`, `add_item`, and `remove_item` are      │
00:01:05 verbose #725 > > │ never used                                                                 │
00:01:05 verbose #726 > > │   --> C:\home\git\polyglot\apps\spiral\temp\test\./main.rs:46:8       │
00:01:05 verbose #727 > > │    |                                                                  │
00:01:05 verbose #728 > > │ 45 | impl Cart {                                                      │
00:01:05 verbose #729 > > │    | --------- associated items in this implementation                │
00:01:05 verbose #730 > > │ 46 |     fn new() -> Cart {                                           │
00:01:05 verbose #731 > > │    |        ^^^                                                       │
00:01:05 verbose #732 > > │ ...                                                                   │
00:01:05 verbose #733 > > │ 50 |     fn add_item(&mut self, item: Item) {                         │
00:01:05 verbose #734 > > │    |        ^^^^^^^^                                                  │
00:01:05 verbose #735 > > │ ...                                                                   │
00:01:05 verbose #736 > > │ 56 |     fn remove_item(&mut self, item: &Item) {                     │
00:01:05 verbose #737 > > │    |        ^^^^^^^^^^^                                               │
00:01:05 verbose #738 > > │                                                                       │
00:01:05 verbose #739 > > │ warning: function `parse_comment` is never used                       │
00:01:05 verbose #740 > > │    --> C:\home\git\polyglot\apps\spiral\temp\test\./main.rs:124:4     │
00:01:05 verbose #741 > > │     |                                                                 │
00:01:05 verbose #742 > > │ 124 | fn parse_comment(input: &str) -> IResult<&str, SpiralToken> {   │
00:01:05 verbose #743 > > │     |    ^^^^^^^^^^^^^                                                │
00:01:05 verbose #744 > > │                                                                       │
00:01:05 verbose #745 > > │ warning: function `parse_string` is never used                        │
00:01:05 verbose #746 > > │    --> C:\home\git\polyglot\apps\spiral\temp\test\./main.rs:130:4     │
00:01:05 verbose #747 > > │     |                                                                 │
00:01:05 verbose #748 > > │ 130 | fn parse_string(input: &str) -> IResult<&str, SpiralToken> {    │
00:01:05 verbose #749 > > │     |    ^^^^^^^^^^^^                                                 │
00:01:05 verbose #750 > > │                                                                       │
00:01:05 verbose #751 > > │ warning: function `parse_identifier` is never used                    │
00:01:05 verbose #752 > > │    --> C:\home\git\polyglot\apps\spiral\temp\test\./main.rs:145:4     │
00:01:05 verbose #753 > > │     |                                                                 │
00:01:05 verbose #754 > > │ 145 | fn parse_identifier(input: &str) -> IResult<&str, SpiralToken> {[  │
00:01:05 verbose #755 > > │ 0m                                                                           │
00:01:05 verbose #756 > > │     |    ^^^^^^^^^^^^^^^^                                             │
00:01:05 verbose #757 > > │                                                                       │
00:01:05 verbose #758 > > │ warning: function `parse_integer` is never used                       │
00:01:05 verbose #759 > > │    --> C:\home\git\polyglot\apps\spiral\temp\test\./main.rs:157:4     │
00:01:05 verbose #760 > > │     |                                                                 │
00:01:05 verbose #761 > > │ 157 | fn parse_integer(input: &str) -> IResult<&str, SpiralToken> {   │
00:01:05 verbose #762 > > │     |    ^^^^^^^^^^^^^                                                │
00:01:05 verbose #763 > > │                                                                       │
00:01:05 verbose #764 > > │ warning: function `parse_operator` is never used                      │
00:01:05 verbose #765 > > │    --> C:\home\git\polyglot\apps\spiral\temp\test\./main.rs:165:4     │
00:01:05 verbose #766 > > │     |                                                                 │
00:01:05 verbose #767 > > │ 165 | fn parse_operator(input: &str) -> IResult<&str, SpiralToken> {  │
00:01:05 verbose #768 > > │     |    ^^^^^^^^^^^^^^                                               │
00:01:05 verbose #769 > > │                                                                       │
00:01:05 verbose #770 > > │ warning: function `parse_token` is never used                         │
00:01:05 verbose #771 > > │    --> C:\home\git\polyglot\apps\spiral\temp\test\./main.rs:170:4     │
00:01:05 verbose #772 > > │     |                                                                 │
00:01:05 verbose #773 > > │ 170 | fn parse_token(input: &str) -> IResult<&str, SpiralToken> {     │
00:01:05 verbose #774 > > │     |    ^^^^^^^^^^^                                                  │
00:01:05 verbose #775 > > │                                                                       │
00:01:05 verbose #776 > > │ warning: function `format_token` is never used                        │
00:01:05 verbose #777 > > │    --> C:\home\git\polyglot\apps\spiral\temp\test\./main.rs:180:4     │
00:01:05 verbose #778 > > │     |                                                                 │
00:01:05 verbose #779 > > │ 180 | fn format_token(token: &SpiralToken) -> String {                │
00:01:05 verbose #780 > > │     |    ^^^^^^^^^^^^                                                 │
00:01:05 verbose #781 > > │                                                                       │
00:01:05 verbose #782 > > │ warning: function `parse_expression` is never used                    │
00:01:05 verbose #783 > > │    --> C:\home\git\polyglot\apps\spiral\temp\test\./main.rs:201:4     │
00:01:05 verbose #784 > > │     |                                                                 │
00:01:05 verbose #785 > > │ 201 | fn parse_expression(input: &str) -> IResult<&str, SpiralToken> {[  │
00:01:05 verbose #786 > > │ 0m                                                                           │
00:01:05 verbose #787 > > │     |    ^^^^^^^^^^^^^^^^                                             │
00:01:05 verbose #788 > > │                                                                       │
00:01:05 verbose #789 > > │ warning: `spiral_temp_test` (bin "spiral_temp_test") generated 11       │
00:01:05 verbose #790 > > │ warnings                                                                   │
00:01:05 verbose #791 > > │     Finished `release` profile [optimized] target(s) in 14.70s        │
00:01:05 verbose #792 > > │                                                                              │
00:01:05 verbose #793 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:05 verbose #794 > >
00:01:05 verbose #795 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:05 verbose #796 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:05 verbose #797 > > │ ### run release tests with output enabled                                    │
00:01:05 verbose #798 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:05 verbose #799 > >
00:01:05 verbose #800 > > ── pwsh ────────────────────────────────────────────────────────────────────────
00:01:05 verbose #801 > > { cargo +nightly test --release -- --show-output } | Invoke-Block
00:01:38 verbose #802 > >
00:01:38 verbose #803 > > ╭─[ 33.84s - stdout ]──────────────────────────────────────────────────────────╮
00:01:38 verbose #804 > > │    Compiling fable_library_rust v0.1.0                                  │
00:01:38 verbose #805 > > │ (C:\home\git\polyglot\lib\rust\fable\fable_modules\fable-library-rust)     │
00:01:38 verbose #806 > > │    Compiling spiral_temp_test v0.0.1                                    │
00:01:38 verbose #807 > > │ (C:\home\git\polyglot\apps\spiral\temp\test)                               │
00:01:38 verbose #808 > > │     Finished `release` profile [optimized] target(s) in 33.16s        │
00:01:38 verbose #809 > > │      Running unittests main.rs                                          │
00:01:38 verbose #810 > > │ (C:\home\git\polyglot\workspace\target\release\deps\spiral_temp_test-5f6d226 │
00:01:38 verbose #811 > > │ b2c944840.exe)                                                             │
00:01:38 verbose #812 > > │                                                                              │
00:01:38 verbose #813 > > │ running 3 tests                                                              │
00:01:38 verbose #814 > > │ test test_parse_number ... ok                                                │
00:01:38 verbose #815 > > │ test prop_parse_format_idempotent ... ok                                     │
00:01:38 verbose #816 > > │ test                                                                         │
00:01:38 verbose #817 > > │ adding_and_then_removing_an_item_from_the_cart_leaves_the_cart_unchanged ... │
00:01:38 verbose #818 > > │ ok                                                                           │
00:01:38 verbose #819 > > │                                                                              │
00:01:38 verbose #820 > > │ successes:                                                                   │
00:01:38 verbose #821 > > │                                                                              │
00:01:38 verbose #822 > > │ ---- prop_parse_format_idempotent stdout ----                                │
00:01:38 verbose #823 > > │ input=Identifier("S")                                                        │
00:01:38 verbose #824 > > │ input=Comment("9ls> $T:G_:`3")                                               │
00:01:38 verbose #825 > > │ input=StringLiteral("CBH(N")                                                 │
00:01:38 verbose #826 > > │ input=Comment("-Y[+'dc%=")                                                   │
00:01:38 verbose #827 > > │ input=Identifier("Wb9521qmfteC9Rn0XjArW6368")                                │
00:01:38 verbose #828 > > │ input=Comment("<.6N_*l")                                                     │
00:01:38 verbose #829 > > │ input=StringLiteral("nwLyF7`28`.')+%1;b^A?")                                 │
00:01:38 verbose #830 > > │ input=Operator("/")                                                          │
00:01:38 verbose #831 > > │ input=Integer(-8795051646225402606)                                          │
00:01:38 verbose #832 > > │ input=Integer(499723063182596218)                                            │
00:01:38 verbose #833 > > │ input=Identifier("aue2fa2g1pA9t3XXq7")                                       │
00:01:38 verbose #834 > > │ input=Integer(6816995923466786752)                                           │
00:01:38 verbose #835 > > │ input=Identifier("Ry")                                                       │
00:01:38 verbose #836 > > │ input=StringLiteral("!{bLTP,QcT]!T-r?GC%?:QQT(")                             │
00:01:38 verbose #837 > > │ input=Integer(5814981975174165601)                                           │
00:01:38 verbose #838 > > │ input=StringLiteral("*`")                                                    │
00:01:38 verbose #839 > > │ input=StringLiteral(",5%1%&1:t|X")                                           │
00:01:38 verbose #840 > > │ input=Integer(-4091226150592788945)                                          │
00:01:38 verbose #841 > > │ input=Integer(305061223898469167)                                            │
00:01:38 verbose #842 > > │ input=Identifier("hRyKnM1I6Xk")                                              │
00:01:38 verbose #843 > > │ input=Integer(-3456990186797432469)                                          │
00:01:38 verbose #844 > > │ input=Operator("=")                                                          │
00:01:38 verbose #845 > > │ input=Identifier("cWI99Vjyxvqu5NEhevp7F4oME")                                │
00:01:38 verbose #846 > > │ input=Integer(8768126015596531044)                                           │
00:01:38 verbose #847 > > │ input=Operator("+")                                                          │
00:01:38 verbose #848 > > │ input=Comment("\\9|IKn/[A+:")                                                │
00:01:38 verbose #849 > > │ input=StringLiteral("2+3gp5*P =KX")                                          │
00:01:38 verbose #850 > > │ input=StringLiteral("9Z4Y,v-`{/u0-`")                                        │
00:01:38 verbose #851 > > │ input=Integer(8728184593251596350)                                           │
00:01:38 verbose #852 > > │ input=StringLiteral("2'R95_}/UaF?*$8J%-oQu7&F[5z4}a")                        │
00:01:38 verbose #853 > > │ input=Operator("+")                                                          │
00:01:38 verbose #854 > > │ input=StringLiteral("/%")                                                    │
00:01:38 verbose #855 > > │ input=Comment("j{")                                                          │
00:01:38 verbose #856 > > │ input=Identifier("A9ldQK1FDwe")                                              │
00:01:38 verbose #857 > > │ input=Integer(-8618717584229014838)                                          │
00:01:38 verbose #858 > > │ input=Integer(-8377886100454017370)                                          │
00:01:38 verbose #859 > > │ input=Comment("&XV\\(c&.}j$$/m9n@_::bmS;0")                                  │
00:01:38 verbose #860 > > │ input=Operator("*")                                                          │
00:01:38 verbose #861 > > │ input=StringLiteral("rHM^V.$=(B!~ ")                                         │
00:01:38 verbose #862 > > │ input=StringLiteral("{}<Xg_8q:)F.8Mt/x/F{")                                  │
00:01:38 verbose #863 > > │ input=Integer(-2643490882138058746)                                          │
00:01:38 verbose #864 > > │ input=Comment("+),S5][*u[<.2:&@>6!X*'|c1*")                                  │
00:01:38 verbose #865 > > │ input=Operator("=")                                                          │
00:01:38 verbose #866 > > │ input=Comment("lb)Lo\\`\\RFg??'+b")                                          │
00:01:38 verbose #867 > > │ input=Integer(-6856311219203582744)                                          │
00:01:38 verbose #868 > > │ input=Integer(1470006779434907172)                                           │
00:01:38 verbose #869 > > │ input=Identifier("s045qzpd")                                                 │
00:01:38 verbose #870 > > │ input=Integer(-5636466603879473356)                                          │
00:01:38 verbose #871 > > │ input=Operator("(")                                                          │
00:01:38 verbose #872 > > │ input=Operator("+")                                                          │
00:01:38 verbose #873 > > │ input=StringLiteral("'")                                                     │
00:01:38 verbose #874 > > │ input=Operator("*")                                                          │
00:01:38 verbose #875 > > │ input=StringLiteral("P_`gwzUBPlB<!}/")                                       │
00:01:38 verbose #876 > > │ input=StringLiteral("4pW;bQl`{s")                                            │
00:01:38 verbose #877 > > │ input=Operator("-")                                                          │
00:01:38 verbose #878 > > │ input=Operator("(")                                                          │
00:01:38 verbose #879 > > │ input=Operator(")")                                                          │
00:01:38 verbose #880 > > │ input=Identifier("ohyb0xwqxXC8e1nZjAT")                                      │
00:01:38 verbose #881 > > │ input=Comment("U$/{P!$Cwv<&u*\"\"")                                          │
00:01:38 verbose #882 > > │ input=Identifier("Eb00FLVhOosulL1D8k8fMh0Bq0qT1thT4")                        │
00:01:38 verbose #883 > > │ input=Identifier("b7ZFgnKSRnQvhg45882Mi9JJgU4d49")                           │
00:01:38 verbose #884 > > │ input=Operator("/")                                                          │
00:01:38 verbose #885 > > │ input=Integer(-7740711048221943639)                                          │
00:01:38 verbose #886 > > │ input=Operator("/")                                                          │
00:01:38 verbose #887 > > │ input=Integer(7081487607452679306)                                           │
00:01:38 verbose #888 > > │ input=Operator(")")                                                          │
00:01:38 verbose #889 > > │ input=Integer(8311795038828205249)                                           │
00:01:38 verbose #890 > > │ input=StringLiteral(":9")                                                    │
00:01:38 verbose #891 > > │ input=StringLiteral("")                                                      │
00:01:38 verbose #892 > > │ input=StringLiteral("s'z`.-z&<'5m:?wrh [?r/:q")                              │
00:01:38 verbose #893 > > │ input=Operator("/")                                                          │
00:01:38 verbose #894 > > │ input=StringLiteral("QT'Q/@P7zH:R0@kh.2")                                    │
00:01:38 verbose #895 > > │ input=StringLiteral("?zA)P:}#STw*x}/:B%N:8K':")                              │
00:01:38 verbose #896 > > │ input=StringLiteral("+:[")                                                   │
00:01:38 verbose #897 > > │ input=Comment("5%Vj?A?Veu$#!'LN=V")                                          │
00:01:38 verbose #898 > > │ input=Operator("+")                                                          │
00:01:38 verbose #899 > > │ input=Identifier("gldTpoK49XWPoyZiEj81gJOg22r9e4y")                          │
00:01:38 verbose #900 > > │ input=StringLiteral(":3i:%9{$G:[V=Du{@&WNvJ")                                │
00:01:38 verbose #901 > > │ input=Identifier("pG")                                                       │
00:01:38 verbose #902 > > │ input=Operator(")")                                                          │
00:01:38 verbose #903 > > │ input=StringLiteral("'(67/8Z<`ml/%$1I")                                      │
00:01:38 verbose #904 > > │ input=Operator("/")                                                          │
00:01:38 verbose #905 > > │ input=Integer(8879910261570709615)                                           │
00:01:38 verbose #906 > > │ input=StringLiteral(".#mN`Y 2*H2mag'")                                       │
00:01:38 verbose #907 > > │ input=Operator("*")                                                          │
00:01:38 verbose #908 > > │ input=Integer(6783910119656354527)                                           │
00:01:38 verbose #909 > > │ input=StringLiteral("")                                                      │
00:01:38 verbose #910 > > │ input=Integer(-3614373123073249357)                                          │
00:01:38 verbose #911 > > │ input=Operator("-")                                                          │
00:01:38 verbose #912 > > │ input=Integer(-2561489546348420985)                                          │
00:01:38 verbose #913 > > │ input=Comment("m\"'~i5czica/")                                               │
00:01:38 verbose #914 > > │ input=Comment("cp(TVz?v??")                                                  │
00:01:38 verbose #915 > > │ input=StringLiteral("?)x0=")                                                 │
00:01:38 verbose #916 > > │ input=Integer(-9118312697788960513)                                          │
00:01:38 verbose #917 > > │ input=Identifier("DIBYS6Rj6sqJ2rgvl6eNu6Yj")                                 │
00:01:38 verbose #918 > > │ input=Identifier("n4NcFvZJG2B1El87")                                         │
00:01:38 verbose #919 > > │ input=Integer(-444902606020311740)                                           │
00:01:38 verbose #920 > > │ input=StringLiteral("`Ak:yQ&(")                                              │
00:01:38 verbose #921 > > │ input=Integer(-8573697253370036626)                                          │
00:01:38 verbose #922 > > │ input=Operator("(")                                                          │
00:01:38 verbose #923 > > │ input=Identifier("uaP6s1414XX")                                              │
00:01:38 verbose #924 > > │ input=Operator("/")                                                          │
00:01:38 verbose #925 > > │ input=Integer(5479348143679456435)                                           │
00:01:38 verbose #926 > > │ input=StringLiteral("wJ::^{'h")                                              │
00:01:38 verbose #927 > > │ input=Operator("*")                                                          │
00:01:38 verbose #928 > > │ input=Comment("*&J")                                                         │
00:01:38 verbose #929 > > │ input=Operator("(")                                                          │
00:01:38 verbose #930 > > │ input=Comment("\\*N#{|P(S5Yf@eE-N(")                                         │
00:01:38 verbose #931 > > │ input=StringLiteral("$FAi%*MRW{qqJ&#`")                                      │
00:01:38 verbose #932 > > │ input=Identifier("H0yWPHPGVNysfqM")                                          │
00:01:38 verbose #933 > > │ input=Identifier("IXlDVbnKO8hdd8LM5Lq5nGGS")                                 │
00:01:38 verbose #934 > > │ input=Identifier("SpVNzqZp5H0fR3pz7oP1Yra0")                                 │
00:01:38 verbose #935 > > │ input=Identifier("WFG296VA1mqeCY2k")                                         │
00:01:38 verbose #936 > > │ input=Identifier("WdwJB4zok6vfO7x6qra")                                      │
00:01:38 verbose #937 > > │ input=Comment("4Uwe%l!a3}<1h?/.N$4e@Ow:?/")                                  │
00:01:38 verbose #938 > > │ input=Integer(5024507902730974421)                                           │
00:01:38 verbose #939 > > │ input=StringLiteral("-${")                                                   │
00:01:38 verbose #940 > > │ input=Identifier("t052S4g1qrO9zuiGT2A4jYT61YlKJW3")                          │
00:01:38 verbose #941 > > │ input=StringLiteral("pJa$#%_}*IV{.Y4Kj0:")                                   │
00:01:38 verbose #942 > > │ input=Identifier("N1eVoEuIJDNkrIi2qO2l39SA5U")                               │
00:01:38 verbose #943 > > │ input=StringLiteral(".Fctu")                                                 │
00:01:38 verbose #944 > > │ input=StringLiteral("!qo{TE=9.c*T'%?hK?A( e{`+`5cD>'")                       │
00:01:38 verbose #945 > > │ input=Comment("Lh&")                                                         │
00:01:38 verbose #946 > > │ input=Integer(7305697115416768774)                                           │
00:01:38 verbose #947 > > │ input=Integer(-4973288485278320269)                                          │
00:01:38 verbose #948 > > │ input=Integer(-534706737127387614)                                           │
00:01:38 verbose #949 > > │ input=Identifier("Dr")                                                       │
00:01:38 verbose #950 > > │ input=Identifier("P8SeU77U2D7ORIlTCitpTFA4V70F2xQ")                          │
00:01:38 verbose #951 > > │ input=Comment("G")                                                           │
00:01:38 verbose #952 > > │ input=StringLiteral("H")                                                     │
00:01:38 verbose #953 > > │ input=Integer(-8900362249269777324)                                          │
00:01:38 verbose #954 > > │ input=Comment("sk9[jI%M*~`B=&Gf")                                            │
00:01:38 verbose #955 > > │ input=Integer(2131381989157902052)                                           │
00:01:38 verbose #956 > > │ input=Identifier("N6roTr8jKrBByptxKE2s")                                     │
00:01:38 verbose #957 > > │ input=StringLiteral("eb")                                                    │
00:01:38 verbose #958 > > │ input=Comment("CTwuAM&&/&0tZ!uRc4=<rf")                                      │
00:01:38 verbose #959 > > │ input=StringLiteral(":zo:")                                                  │
00:01:38 verbose #960 > > │ input=StringLiteral("yq=")                                                   │
00:01:38 verbose #961 > > │ input=Identifier("yxcPC12z")                                                 │
00:01:38 verbose #962 > > │ input=StringLiteral("?~.SdXN7{EO=Iz")                                        │
00:01:38 verbose #963 > > │ input=Comment("'/`A>j@:&%>{.2P{J")                                           │
00:01:38 verbose #964 > > │ input=Comment("I<B[&~$P{")                                                   │
00:01:38 verbose #965 > > │ input=Operator("/")                                                          │
00:01:38 verbose #966 > > │ input=Comment("Tlxz")                                                        │
00:01:38 verbose #967 > > │ input=Identifier("Ki9c4MiDnOB6j")                                            │
00:01:38 verbose #968 > > │ input=Operator("(")                                                          │
00:01:38 verbose #969 > > │ input=Integer(1805339806117523125)                                           │
00:01:38 verbose #970 > > │ input=Integer(2114053602191402618)                                           │
00:01:38 verbose #971 > > │ input=Comment("%\"kaCz;s&D")                                                 │
00:01:38 verbose #972 > > │ input=Comment("{@\":v\\4I\\PX\"_g==ZX7><8@T\"")                              │
00:01:38 verbose #973 > > │ input=Operator("-")                                                          │
00:01:38 verbose #974 > > │ input=Integer(-5943976046382629326)                                          │
00:01:38 verbose #975 > > │ input=StringLiteral("K8{3'ci?AU:pq3D$Q,=%BZDm*~%z")                          │
00:01:38 verbose #976 > > │ input=Comment("=?<%:='b??W\\")                                               │
00:01:38 verbose #977 > > │ input=Operator("(")                                                          │
00:01:38 verbose #978 > > │ input=StringLiteral("am7;/PT8:]<")                                           │
00:01:38 verbose #979 > > │ input=Operator("+")                                                          │
00:01:38 verbose #980 > > │ input=StringLiteral("?<R")                                                   │
00:01:38 verbose #981 > > │ input=Operator("(")                                                          │
00:01:38 verbose #982 > > │ input=StringLiteral("t&W)g<6?E$&<EuV=NI:&gw%zrX")                            │
00:01:38 verbose #983 > > │ input=Comment("+N%]$5a1\"R.")                                                │
00:01:38 verbose #984 > > │ input=Comment("@g2p$*'gQ=f(yH6")                                             │
00:01:38 verbose #985 > > │ input=Identifier("M")                                                        │
00:01:38 verbose #986 > > │ input=Identifier("OmB8ez")                                                   │
00:01:38 verbose #987 > > │ input=Identifier("V67TaVE4H39rnxK3G2931Cfc7Ox5")                             │
00:01:38 verbose #988 > > │ input=Integer(5140633362637000079)                                           │
00:01:38 verbose #989 > > │ input=Integer(3260080517030310898)                                           │
00:01:38 verbose #990 > > │ input=Integer(-3105307772975257850)                                          │
00:01:38 verbose #991 > > │ input=Comment("+.")                                                          │
00:01:38 verbose #992 > > │ input=StringLiteral("`U=q! {:@zCrC6#>Wul<T0Eeh*iN")                          │
00:01:38 verbose #993 > > │ input=Comment("]Di <<=?`MoJ")                                                │
00:01:38 verbose #994 > > │ input=Comment("T%7A7\"4Bf2`Qdmup(*$9*@/^,=&i/<")                             │
00:01:38 verbose #995 > > │ input=Operator("(")                                                          │
00:01:38 verbose #996 > > │ input=Identifier("qsmH0Wd6")                                                 │
00:01:38 verbose #997 > > │ input=Operator(")")                                                          │
00:01:38 verbose #998 > > │ input=Integer(-6507350241466290839)                                          │
00:01:38 verbose #999 > > │ input=Identifier("VRwPqvTN45zD72CB861XGLZc56o8iR")                           │
00:01:38 verbose #1000 > > │ input=StringLiteral("=%l{JrRXS!B$n <$.Jy?j=`?")                              │
00:01:38 verbose #1001 > > │ input=Integer(4337296628787266898)                                           │
00:01:38 verbose #1002 > > │ input=Integer(-6615774950031395893)                                          │
00:01:38 verbose #1003 > > │ input=Comment("}zW!=`\\'`KG")                                                │
00:01:38 verbose #1004 > > │ input=Identifier("M6os6t0rPy1gaY1XY7Uu3u1Lf")                                │
00:01:38 verbose #1005 > > │ input=Operator("-")                                                          │
00:01:38 verbose #1006 > > │ input=Identifier("pyPD0Phm4tXRh0cqm")                                        │
00:01:38 verbose #1007 > > │ input=Operator("/")                                                          │
00:01:38 verbose #1008 > > │ input=Comment("?L{.zq5?*T2<FM3%/0<C/t]?s\\,u%zZ~")                           │
00:01:38 verbose #1009 > > │ input=Integer(58280085367550482)                                             │
00:01:38 verbose #1010 > > │ input=StringLiteral("YcBDw^h")                                               │
00:01:38 verbose #1011 > > │ input=Identifier("KHJ23a4WQTYvmuPU0W6")                                      │
00:01:38 verbose #1012 > > │ input=Identifier("lQuuI")                                                    │
00:01:38 verbose #1013 > > │ input=Operator("(")                                                          │
00:01:38 verbose #1014 > > │ input=Comment("")                                                            │
00:01:38 verbose #1015 > > │ input=Integer(-8987744057628590900)                                          │
00:01:38 verbose #1016 > > │ input=Operator("(")                                                          │
00:01:38 verbose #1017 > > │ input=Comment("'`Y]%N?}0H")                                                  │
00:01:38 verbose #1018 > > │ input=Identifier("RmD49c42z")                                                │
00:01:38 verbose #1019 > > │ input=Identifier("rgIFQ7ghfxg2")                                             │
00:01:38 verbose #1020 > > │ input=Comment("Q_jy3:EI0(rH<O")                                              │
00:01:38 verbose #1021 > > │ input=Operator("*")                                                          │
00:01:38 verbose #1022 > > │ input=Integer(-7119783546440685047)                                          │
00:01:38 verbose #1023 > > │ input=Identifier("z0ZPcHWJ0sAodmjqfra7hj48PX")                               │
00:01:38 verbose #1024 > > │ input=Integer(-1076624853285305074)                                          │
00:01:38 verbose #1025 > > │ input=Comment("<v$554z&h;g1\\]X&EHL1U\"MX&:\"k=q")                           │
00:01:38 verbose #1026 > > │ input=Operator("/")                                                          │
00:01:38 verbose #1027 > > │ input=Integer(-3341358367186666177)                                          │
00:01:38 verbose #1028 > > │ input=Integer(5107214431329367939)                                           │
00:01:38 verbose #1029 > > │ input=Operator(")")                                                          │
00:01:38 verbose #1030 > > │ input=Comment("L?0}=g^IA9K9F2l%a\\p<")                                       │
00:01:38 verbose #1031 > > │ input=Operator("=")                                                          │
00:01:38 verbose #1032 > > │ input=Identifier("Wy9")                                                      │
00:01:38 verbose #1033 > > │ input=Integer(1504355783547424997)                                           │
00:01:38 verbose #1034 > > │ input=Operator("/")                                                          │
00:01:38 verbose #1035 > > │ input=Comment("5*%`X$:M8:}cr7\"(I)$w)")                                      │
00:01:38 verbose #1036 > > │ input=StringLiteral("MNTzOvJ`+K|/*`{[`y=1?bvO 3 MUx")                        │
00:01:38 verbose #1037 > > │ input=Integer(-7743599223812119244)                                          │
00:01:38 verbose #1038 > > │ input=Identifier("HMBU89jLXnB")                                              │
00:01:38 verbose #1039 > > │ input=Operator("(")                                                          │
00:01:38 verbose #1040 > > │ input=Identifier("SCy3bSBSf27uQpwQ8E")                                       │
00:01:38 verbose #1041 > > │ input=Operator("/")                                                          │
00:01:38 verbose #1042 > > │ input=StringLiteral("<&:{F/oTp,")                                            │
00:01:38 verbose #1043 > > │ input=Identifier("Zi9Um06JXdWLbb297zE")                                      │
00:01:38 verbose #1044 > > │ input=Operator("(")                                                          │
00:01:38 verbose #1045 > > │ input=StringLiteral("<Altj+.V)^$-&}$}.8JG@RO.<?.")                           │
00:01:38 verbose #1046 > > │ input=StringLiteral("/L5$D$?w%Ur/X1:*WShk")                                  │
00:01:38 verbose #1047 > > │ input=Operator("(")                                                          │
00:01:38 verbose #1048 > > │ input=Comment("*$r:Z3h<51:35+%$2{Q#nE,")                                     │
00:01:38 verbose #1049 > > │ input=StringLiteral("tN*%%FNaK%%%'a?X8<Fm9'Cbc'")                            │
00:01:38 verbose #1050 > > │ input=Integer(-3950582927698788332)                                          │
00:01:38 verbose #1051 > > │ input=Integer(-1164324350801590213)                                          │
00:01:38 verbose #1052 > > │ input=StringLiteral(";8II[y%*8")                                             │
00:01:38 verbose #1053 > > │ input=StringLiteral(".?sjh")                                                 │
00:01:38 verbose #1054 > > │ input=Comment("r%$4$%O#A...: L|:f")                                          │
00:01:38 verbose #1055 > > │ input=Identifier("EFsdYf4mJFkqsN36J76rbI43VQ0ocQo")                          │
00:01:38 verbose #1056 > > │ input=StringLiteral("D1*$}P=*{1$s/oi'/ /n")                                  │
00:01:38 verbose #1057 > > │ input=Identifier("AG9tZwK73c")                                               │
00:01:38 verbose #1058 > > │ input=Operator("(")                                                          │
00:01:38 verbose #1059 > > │ input=Comment("\"9{i`v=C{ rx=\"~`L")                                         │
00:01:38 verbose #1060 > > │ input=Operator("+")                                                          │
00:01:38 verbose #1061 > > │ input=Operator(")")                                                          │
00:01:38 verbose #1062 > > │ input=Identifier("NalN5xW835sEBD7CJwmGHuxWl")                                │
00:01:38 verbose #1063 > > │ input=Integer(-4384548414884476931)                                          │
00:01:38 verbose #1064 > > │ input=StringLiteral("ma%s`MXlx=zjB$r{:)")                                    │
00:01:38 verbose #1065 > > │ input=Integer(-6829790138517230739)                                          │
00:01:38 verbose #1066 > > │ input=StringLiteral("$I6O}DTv@&")                                            │
00:01:38 verbose #1067 > > │ input=Comment("m")                                                           │
00:01:38 verbose #1068 > > │ input=StringLiteral(":,")                                                    │
00:01:38 verbose #1069 > > │ input=Comment("")                                                            │
00:01:38 verbose #1070 > > │ input=Integer(-208943480779409055)                                           │
00:01:38 verbose #1071 > > │ input=Comment(")/JJd'</Q=/&vZ2S_:bvAmY%Eyk&b\"")                             │
00:01:38 verbose #1072 > > │ input=StringLiteral("yZ<5I@x}Y~.*={`%xtE',p|hL<b*qz")                        │
00:01:38 verbose #1073 > > │ input=Identifier("hUZ")                                                      │
00:01:38 verbose #1074 > > │ input=Identifier("ye9A0S2G1LF6DBKOymhjq")                                    │
00:01:38 verbose #1075 > > │ input=StringLiteral("02=7o{$?yN8w8Xz[J(Io8/")                                │
00:01:38 verbose #1076 > > │ input=Comment("tjG.'+3%D{Pcw']cYU[b..sUv/7D-")                               │
00:01:38 verbose #1077 > > │ input=Comment(" uq %i\\&c")                                                  │
00:01:38 verbose #1078 > > │ input=Identifier("RnH4L2vMw4")                                               │
00:01:38 verbose #1079 > > │                                                                              │
00:01:38 verbose #1080 > > │                                                                              │
00:01:38 verbose #1081 > > │ successes:                                                                   │
00:01:38 verbose #1082 > > │     adding_and_then_removing_an_item_from_the_cart_leaves_the_cart_unchanged │
00:01:38 verbose #1083 > > │     prop_parse_format_idempotent                                             │
00:01:38 verbose #1084 > > │     test_parse_number                                                        │
00:01:38 verbose #1085 > > │                                                                              │
00:01:38 verbose #1086 > > │ test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out;  │
00:01:38 verbose #1087 > > │ finished in 0.32s                                                            │
00:01:38 verbose #1088 > > │                                                                              │
00:01:38 verbose #1089 > > │                                                                              │
00:01:38 verbose #1090 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:38 verbose #1091 > >
00:01:38 verbose #1092 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:38 verbose #1093 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:38 verbose #1094 > > │ ### execute the binary in release mode                                       │
00:01:38 verbose #1095 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:38 verbose #1096 > >
00:01:38 verbose #1097 > > ── pwsh ────────────────────────────────────────────────────────────────────────
00:01:38 verbose #1098 > > { . $ScriptDir/../../../../workspace/target/release/spiral_temp_test$(_exe) } |
00:01:38 verbose #1099 > > Invoke-Block
00:01:39 verbose #1100 > >
00:01:39 verbose #1101 > > ╭─[ 171.57ms - stdout ]────────────────────────────────────────────────────────╮
00:01:39 verbose #1102 > > │ app=test                                                                     │
00:01:39 verbose #1103 > > │                                                                              │
00:01:39 verbose #1104 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:39 verbose #1105 > 00:01:36 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 86142 }
00:01:39 verbose #1106 > 00:01:36   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/apps/spiral/temp/test/build.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/apps/spiral/temp/test/build.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:01:42 verbose #1107 > 00:01:39 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/apps/spiral/temp/test/build.dib.ipynb to html
00:01:42 verbose #1108 > 00:01:39 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:01:42 verbose #1109 > 00:01:39 verbose #7 !   validate(nb)
00:01:44 verbose #1110 > 00:01:40 verbose #8 ! [NbConvertApp] Writing 355205 bytes to c:\home\git\polyglot\apps\spiral\temp\test\build.dib.html
00:01:44 verbose #1111 > 00:01:41 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 663 }
00:01:44 verbose #1112 > 00:01:41   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 663 }
00:01:44 verbose #1113 > 00:01:41   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/apps/spiral/temp/test/build.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/apps/spiral/temp/test/build.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:01:46 verbose #1114 > 00:01:43 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:01:46 verbose #1115 > 00:01:43   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:01:47 verbose #1116 > 00:01:44   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 86864 }
00:01:47   debug #1117 runtime.execute_with_options_async / { exit_code = 0; output_length = 91714 }
00:01:47   debug #4 main / executeCommand / exitCode: 0 / command: ../../../../workspace/target/release/spiral_builder.exe dib --path build.dib
00:01:47 verbose #6 networking.wait_for_port_access / { port = 13805; retry = 0; timeout = Some 100; status = false }
00:01:47 verbose #7 async.run_with_timeout_async / { timeout = 100 }
In [ ]:
{ pwsh ../apps/spiral/vscode/build.ps1 } | Invoke-Block
bun install v1.1.7 (b0b7db5c)

Checked 203 installs across 191 packages (no changes) [2.07s]
Symlink already exists: C:\home\git\polyglot\apps\spiral\vscode\LICENSE -> C:\home\git\polyglot\LICENSE

  out\src\extension.js                  2.4kb
  out\media\cellOutputScrollButtons.js  1.9kb

⚡ Done in 33ms
 DONE  Packaged: out\spiral-vscode-0.0.1.vsix (26 files, 98.15KB)
In [ ]:
{ pwsh ../apps/ipfs/build.ps1 } | Invoke-Block
bun install v1.1.7 (b0b7db5c)

 Done! Checked 220 packages (no changes) [2.44s]
In [ ]:
{ pwsh ./outdated.ps1 } | Invoke-Block
Paket version 8.1.0-alpha004+7aa412f49b32de979c3d5acde07e88e6d47c965b
Resolving dependency graph...
Outdated packages found:
  Group: Main
    * Expecto.FsCheck 10.2.1-fscheck3 -> 10.2.1
    * FsCheck 3.0.0-rc3 -> 2.16.6
    * FSharp.Core 8.0.300-beta.24080.5 -> 8.0.400-beta.24321.3
    * Microsoft.AspNetCore.Connections.Abstractions 7.0 -> 9.0.0-preview.6.24328.4
    * Microsoft.AspNetCore.Http.Connections.Client 7.0 -> 9.0.0-preview.6.24328.4
    * Microsoft.AspNetCore.Http.Connections.Common 7.0 -> 9.0.0-preview.6.24328.4
    * Microsoft.AspNetCore.SignalR.Client 7.0 -> 9.0.0-preview.6.24328.4
    * Microsoft.AspNetCore.SignalR.Client.Core 7.0 -> 9.0.0-preview.6.24328.4
    * Microsoft.AspNetCore.SignalR.Common 7.0 -> 9.0.0-preview.6.24328.4
    * Microsoft.AspNetCore.SignalR.Protocols.Json 7.0 -> 9.0.0-preview.6.24328.4
    * Microsoft.Extensions.DependencyInjection 8.0 -> 9.0.0-preview.6.24327.7
    * Microsoft.Extensions.DependencyInjection.Abstractions 8.0.1 -> 9.0.0-preview.6.24327.7
    * Microsoft.Extensions.Features 7.0 -> 9.0.0-preview.6.24328.4
    * Microsoft.Extensions.Logging 8.0 -> 9.0.0-preview.6.24327.7
    * Microsoft.Extensions.Logging.Abstractions 8.0.1 -> 9.0.0-preview.6.24327.7
    * Microsoft.Extensions.Options 8.0.2 -> 9.0.0-preview.6.24327.7
    * Microsoft.Extensions.Primitives 8.0 -> 9.0.0-preview.6.24327.7
    * System.CodeDom 8.0 -> 9.0.0-preview.6.24327.7
    * System.Management 7.0 -> 9.0.0-preview.6.24327.7
    * System.Threading.Channels 8.0 -> 9.0.0-preview.6.24327.7
Total time taken: 1 minute, 16 seconds

CheckToml / toml: C:\home\git\polyglot\workspace\Cargo.toml
chat_contract_tests
================
Name        Project  Compat   Latest   Kind    Platform
----        -------  ------   ------   ----    --------
autocfg     1.3.0    ---      Removed  Build   ---
equivalent  1.0.1    Removed  ---      Normal  ---
hashbrown   0.12.3   ---      0.14.5   Normal  ---
hashbrown   0.14.5   0.12.3   ---      Normal  ---
indexmap    1.9.3    ---      2.2.6    Normal  ---
indexmap    2.2.6    1.9.3    ---      Normal  ---

CheckToml / toml: C:\home\git\polyglot\apps\chat\contract\Cargo.toml
Name                         Project  Compat   Latest   Kind    Platform
----                         -------  ------   ------   ----    --------
darling->darling_core        0.20.9   0.20.10  0.20.10  Normal  ---
darling->darling_macro       0.20.9   0.20.10  0.20.10  Normal  ---
darling_macro->darling_core  0.20.9   0.20.10  0.20.10  Normal  ---
near-sdk-macros->darling     0.20.9   0.20.10  0.20.10  Normal  ---

CheckToml / toml: C:\home\git\polyglot\apps\chat\contract\tests\Cargo.toml
Name                         Project  Compat   Latest   Kind    Platform
----                         -------  ------   ------   ----    --------
backtrace->cc                1.0.106  1.1.0    1.1.0    Build   ---
bzip2-sys->cc                1.0.106  1.1.0    1.1.0    Build   ---
darling->darling_core        0.20.9   0.20.10  0.20.10  Normal  ---
darling->darling_macro       0.20.9   0.20.10  0.20.10  Normal  ---
darling_macro->darling_core  0.20.9   0.20.10  0.20.10  Normal  ---
hyper-timeout->hyper         0.14.29  0.14.30  0.14.30  Normal  ---
hyper-tls->hyper             0.14.29  0.14.30  0.14.30  Normal  ---
iana-time-zone-haiku->cc     1.0.106  1.1.0    1.1.0    Build   ---
indexmap->autocfg            1.3.0    Removed  Removed  Build   ---
indexmap->hashbrown          0.12.3   0.14.5   0.14.5   Normal  ---
openssl-src->cc              1.0.106  1.1.0    1.1.0    Normal  ---
openssl-sys->cc              1.0.106  1.1.0    1.1.0    Build   ---
reqwest->hyper               0.14.29  0.14.30  0.14.30  Normal  cfg(not(target_arch = "wasm32"))
ring->cc                     1.0.106  1.1.0    1.1.0    Build   ---
secp256k1-sys->cc            1.0.106  1.1.0    1.1.0    Build   ---
serde_with->indexmap         1.9.3    2.2.6    2.2.6    Normal  ---
serde_with_macros->darling   0.20.9   0.20.10  0.20.10  Normal  ---
tonic->hyper                 0.14.29  0.14.30  0.14.30  Normal  ---
zstd-sys->cc                 1.0.106  1.1.0    1.1.0    Build   ---

CheckToml / toml: C:\home\git\polyglot\apps\plot\Cargo.toml
Name                      Project  Compat  Latest  Kind   Platform
----                      -------  ------  ------  ----   --------
iana-time-zone-haiku->cc  1.0.106  1.1.0   1.1.0   Build  ---

CheckJson / json: C:/home/git/polyglot
$ npm-check-updates --target greatest
Using bun
Checking C:\home\git\polyglot\package.json

CheckJson / json: C:/home/git/polyglot/apps/ipfs
$ npm-check-updates --target greatest
Using bun
Checking C:\home\git\polyglot\apps\ipfs\package.json

CheckJson / json: C:/home/git/polyglot/apps/spiral/temp/extension
$ npm-check-updates --target greatest
Using bun
Checking C:\home\git\polyglot\apps\spiral\temp\extension\package.json

CheckJson / json: C:/home/git/polyglot/apps/spiral/vscode
$ npm-check-updates --target greatest
Using bun
Checking C:\home\git\polyglot\apps\spiral\vscode\package.json

CheckJson / json: C:/home/git/polyglot/deps/The-Spiral-Language/VS Code Plugin
$ npm-check-updates --target greatest
Checking C:\home\git\polyglot\deps\The-Spiral-Language\VS Code Plugin\package.json